/* ====================================================================
   EMBE Academy – Propuesta Estratégica
   styles.css
   ====================================================================
   Índice:
   01. Custom Properties (Variables)
   02. Reset & Base
   03. Tipografía
   04. Layout & Contenedor
   05. Navegación
   06. Pantalla de Acceso (Token)
   07. Hero
   08. Secciones – Estilos Base
   09. Stats & Métricas
   10. Feature Cards
   11. Timeline & Roadmap
   12. Swatches de Marca
   13. Stack Técnico
   14. Bloque de Feedback & Estrellas
   15. Botones & CTAs
   16. Footer
   17. Animaciones de Scroll
   18. Utilidades
   19. Responsive
   ==================================================================== */

/* ====================================================================
   01. Custom Properties (Variables)
   ==================================================================== */

:root {
  /* Paleta principal */
  --navy-950: #060e1b;
  --navy-900: #0a1628;
  --navy-800: #0f2040;
  --navy-700: #162b55;
  --navy-600: #1e3a6e;
  --navy-500: #2a5298;

  --gold-600: #8a6820;
  --gold-500: #b8892e;
  --gold-400: #cfa84a;
  --gold-300: #dfc270;
  --gold-200: #eed99a;
  --gold-100: #f7efdc;
  --gold-50:  #fdf8ee;

  --gray-950: #0d111a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --white: #ffffff;

  /* Tipografías */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Espaciado */
  --section-pad-y: 100px;
  --container-max: 1200px;
  --nav-h: 72px;

  /* Radio */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  /* Sombras */
  --shadow-xs: 0 1px 3px rgba(10,22,40,.06), 0 1px 2px rgba(10,22,40,.04);
  --shadow-sm: 0 2px 8px rgba(10,22,40,.08), 0 1px 3px rgba(10,22,40,.05);
  --shadow-md: 0 4px 20px rgba(10,22,40,.10), 0 2px 8px rgba(10,22,40,.06);
  --shadow-lg: 0 8px 40px rgba(10,22,40,.14), 0 4px 16px rgba(10,22,40,.08);
  --shadow-xl: 0 20px 60px rgba(10,22,40,.20), 0 8px 24px rgba(10,22,40,.10);

  /* Transiciones */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.45s ease;
  --t-slower: 0.65s cubic-bezier(.22,.61,.36,1);
}

/* ====================================================================
   02. Reset & Base
   ==================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  transition: color var(--t-base);
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
}

::selection {
  background-color: rgba(184, 137, 46, 0.25);
  color: var(--navy-900);
}

/* ====================================================================
   03. Tipografía
   ==================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  line-height: 1.7;
  color: var(--gray-700);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--gray-600);
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: inherit;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-600);
  max-width: 720px;
}

/* ====================================================================
   04. Layout & Contenedor
   ==================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.col {
  flex: 1;
  min-width: 0;
}

.col-4 { flex: 0 0 calc(33.333% - 1.34rem); }
.col-6 { flex: 0 0 calc(50% - 1rem); }
.col-8 { flex: 0 0 calc(66.666% - 0.67rem); }

/* ====================================================================
   05. Navegación
   ==================================================================== */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color var(--t-slow), box-shadow var(--t-slow);
}

.main-nav.scrolled {
  background-color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-brand span {
  color: var(--gold-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--t-base);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background-color: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--white);
}

.nav-link.cta-nav {
  background-color: rgba(184, 137, 46, 0.15);
  border: 1px solid rgba(184, 137, 46, 0.35);
  color: var(--gold-300);
  border-radius: 100px;
  padding: 0.4rem 1rem;
}

.nav-link.cta-nav:hover {
  background-color: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}

.nav-link.cta-nav::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ====================================================================
   06. Pantalla de Acceso (Token)
   ==================================================================== */

.access-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(42, 82, 152, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184, 137, 46, 0.08) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.access-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  padding: 3.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
}

.access-logo {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.access-logo span {
  color: var(--gold-400);
}

.access-tagline {
  color: var(--gray-400);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(184, 137, 46, 0.4);
  color: var(--gold-300);
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0;
  font-family: var(--font-body);
}

.access-form {
  margin-top: 2rem;
}

.access-input {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--t-base), background-color var(--t-base);
  text-align: center;
  letter-spacing: 0.1em;
}

.access-input:focus {
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, 0.07);
}

.access-input::placeholder {
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.access-btn {
  display: block;
  width: 100%;
  background-color: var(--gold-500);
  color: var(--navy-900);
  border: none;
  border-radius: var(--r-md);
  padding: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t-base), transform var(--t-fast);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
  font-family: var(--font-body);
}

.access-btn:hover {
  background-color: var(--gold-400);
  transform: translateY(-1px);
}

.access-btn:active {
  transform: translateY(0);
}

.access-error {
  color: #e87070;
  font-size: 0.85rem;
  margin-top: 1rem;
  display: none;
  line-height: 1.4;
}

.access-error.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.access-shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.access-year {
  color: var(--gray-600);
  font-size: 0.75rem;
  margin-top: 2rem;
  letter-spacing: 0.06em;
}

/* ====================================================================
   07. Hero
   ==================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--navy-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(184, 137, 46, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(42, 82, 152, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(184, 137, 46, 0.06) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(184, 137, 46, 0.3);
  background: rgba(184, 137, 46, 0.08);
  color: var(--gold-300);
  font-size: 0.72rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-400);
  flex-shrink: 0;
}

.hero-eyebrow {
  display: block;
  color: var(--gold-400);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--white);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--gold-400);
  display: block;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.75rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  letter-spacing: 0.02em;
}

.hero-cta:hover {
  background-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--navy-900);
}

.hero-cta svg,
.hero-cta i {
  transition: transform var(--t-base);
}

.hero-cta:hover svg,
.hero-cta:hover i {
  transform: translateX(4px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(184, 137, 46, 0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ====================================================================
   08. Secciones – Estilos Base
   ==================================================================== */

.section {
  padding: var(--section-pad-y) 0;
}

.section-light {
  background-color: var(--white);
}

.section-gray {
  background-color: var(--gray-50);
}

.section-dark {
  background-color: var(--navy-800);
  color: var(--white);
}

.section-darkest {
  background-color: var(--navy-900);
  color: var(--white);
}

.section-header {
  position: relative;
  margin-bottom: 4rem;
}

.section-number {
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  font-family: var(--font-heading);
  font-size: 9rem;
  font-weight: 700;
  line-height: 1;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  color: var(--navy-900);
  opacity: 0.05;
}

.section-dark .section-number,
.section-darkest .section-number {
  color: var(--gold-400);
  opacity: 0.06;
}

.section-header > *:not(.section-number) {
  position: relative;
  z-index: 1;
}

.section-dark .section-title,
.section-darkest .section-title {
  color: var(--white);
}

.section-dark .section-label,
.section-darkest .section-label {
  color: var(--gold-400);
}

.section-dark .section-desc,
.section-darkest .section-desc {
  color: rgba(255, 255, 255, 0.62);
}

.section-dark p,
.section-darkest p {
  color: rgba(255, 255, 255, 0.7);
}

/* ====================================================================
   09. Stats & Métricas
   ==================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background-color: var(--gold-50);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold-500);
  font-size: 1.3rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-highlight {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.3rem;
}

.stat-card-dark {
  background: var(--navy-700);
  border-color: var(--navy-600);
}

.stat-card-dark .stat-value {
  color: var(--white);
}

.stat-card-dark .stat-label {
  color: rgba(255, 255, 255, 0.45);
}

.stat-card-dark .stat-highlight {
  color: rgba(255, 255, 255, 0.6);
}

.stat-card-dark .stat-icon {
  background: rgba(184, 137, 46, 0.12);
  color: var(--gold-400);
}

/* ====================================================================
   10. Feature Cards
   ==================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background-color: var(--navy-800);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.6rem;
  font-family: var(--font-body);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* Dark variant */
.feature-card-dark {
  background: var(--navy-700);
  border-color: var(--navy-600);
}

.feature-card-dark h3 {
  color: var(--white);
}

.feature-card-dark p {
  color: rgba(255, 255, 255, 0.62);
}

.feature-card-dark .feature-icon {
  background: var(--navy-600);
  color: var(--gold-400);
}

.feature-card-dark:hover {
  border-color: rgba(207, 168, 74, 0.4);
}

/* Small feature cards for MVP */
.feature-card-sm {
  padding: 1.35rem 1.5rem;
}

.feature-card-sm .feature-icon {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.feature-card-sm h3 {
  font-size: 0.95rem;
}

.feature-card-sm p {
  font-size: 0.82rem;
}

/* ====================================================================
   11. Timeline & Roadmap
   ==================================================================== */

.timeline {
  position: relative;
  padding-top: 3rem;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 7px;
  right: 7px;
  height: 1px;
  background: linear-gradient(to right, var(--gold-500), rgba(184, 137, 46, 0.3));
  z-index: 0;
}

.timeline-phase {
  position: relative;
  padding: 0 1.5rem 2rem 0;
  z-index: 1;
}

.timeline-phase:last-child {
  padding-right: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--gold-500);
  margin-bottom: 1.5rem;
  position: relative;
  flex-shrink: 0;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(184, 137, 46, 0.3);
  animation: pulseDot 2.5s ease infinite;
}

.timeline-phase-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.timeline-phase-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
}

.timeline-phase-period {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-phase-period i {
  font-size: 0.75rem;
}

.timeline-phase-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-phase-items li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.4;
}

.timeline-phase-items li::before {
  content: '·';
  color: var(--gold-400);
  font-size: 1.2rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.timeline-phase-items li:last-child {
  border-bottom: none;
}

/* MVP mini timeline */
.mini-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem;
  background: var(--navy-800);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-milestone {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.mini-milestone:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-milestone:first-child {
  padding-top: 0;
}

.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.mini-milestone-period {
  font-size: 0.72rem;
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.mini-milestone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.mini-milestone-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

/* ====================================================================
   12. Swatches de Marca
   ==================================================================== */

.swatch-group {
  margin-bottom: 2.5rem;
}

.swatch-group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.swatch-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.swatch-color {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.swatch:hover .swatch-color {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  letter-spacing: 0.03em;
}

.swatch-name {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-align: center;
}

/* ====================================================================
   12b. Tipografía Specimen
   ==================================================================== */

.type-specimen {
  background: var(--gray-50);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  height: 100%;
}

.type-specimen-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.type-heading-sample {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--navy-900);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.type-body-sample {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.type-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 1rem;
  font-family: var(--font-mono);
}

/* Diagnosis card */
.diagnosis-card {
  background: var(--gold-50);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.diagnosis-card .diagnosis-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  margin-bottom: 0.6rem;
}

.diagnosis-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Quote block */
.quote-block {
  background: var(--navy-800);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}

.quote-block::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 8rem;
  color: rgba(184, 137, 46, 0.12);
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  line-height: 1;
  pointer-events: none;
}

.quote-block p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.75;
  font-style: italic;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ====================================================================
   13. Stack Técnico
   ==================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.tech-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.tech-item:hover {
  border-color: var(--gold-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tech-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--navy-700);
}

.tech-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.2;
}

.tech-desc {
  font-size: 0.73rem;
  color: var(--gray-500);
  line-height: 1.3;
}

/* Security / Infrastructure lists */
.info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.info-block {
  background: var(--gray-50);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

.info-block h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-list li {
  font-size: 0.875rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.info-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* ====================================================================
   14. Bloque de Feedback & Estrellas
   ==================================================================== */

.feedback-block {
  margin-top: 4rem;
  border-top: 1px solid rgba(184, 137, 46, 0.2);
  padding-top: 2rem;
}

.section-light .feedback-block,
.section-gray .feedback-block {
  border-top-color: var(--gray-200);
}

.feedback-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gold-600);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0;
  transition: color var(--t-base);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.section-dark .feedback-toggle,
.section-darkest .feedback-toggle {
  color: var(--gold-500);
}

.feedback-toggle:hover {
  color: var(--gold-500);
}

.section-dark .feedback-toggle:hover,
.section-darkest .feedback-toggle:hover {
  color: var(--gold-400);
}

.feedback-toggle .toggle-icon {
  transition: transform var(--t-base);
  font-size: 0.9rem;
}

.feedback-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.feedback-form-wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-form-wrapper.open {
  max-height: 600px;
}

.feedback-form {
  padding-top: 1.5rem;
}

.fb-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-dark .fb-label,
.section-darkest .fb-label {
  color: rgba(255, 255, 255, 0.5);
}

.star-rating {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.star {
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray-300);
  transition: color var(--t-fast), transform var(--t-fast);
  line-height: 1;
  user-select: none;
  display: inline-block;
}

.star.active {
  color: var(--gold-400);
}

.star:hover {
  transform: scale(1.18);
}

.star-value {
  display: none;
}

.fb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.fb-input,
.fb-textarea {
  display: block;
  width: 100%;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  resize: vertical;
  transition: border-color var(--t-base), background-color var(--t-base);
  outline: none;
  line-height: 1.5;
}

.section-dark .fb-input,
.section-dark .fb-textarea,
.section-darkest .fb-input,
.section-darkest .fb-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.fb-input:focus,
.fb-textarea:focus {
  border-color: var(--gold-500);
  outline: none;
}

.fb-input::placeholder,
.fb-textarea::placeholder {
  color: var(--gray-400);
}

.section-dark .fb-input::placeholder,
.section-dark .fb-textarea::placeholder,
.section-darkest .fb-input::placeholder,
.section-darkest .fb-textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.fb-textarea {
  min-height: 88px;
  resize: none;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--gold-500);
  color: var(--navy-900);
  border: none;
  border-radius: var(--r-md);
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--t-base), transform var(--t-fast);
  margin-top: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.fb-btn:hover {
  background-color: var(--gold-400);
  transform: translateY(-1px);
}

.fb-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.fb-response {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  display: none;
  line-height: 1.5;
}

.fb-response.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.fb-response.success {
  color: #34d399;
}

.fb-response.error {
  color: #f87171;
}

/* ====================================================================
   15. Botones & CTAs
   ==================================================================== */

.cta-block {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 5rem 2rem;
  text-align: center;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(184, 137, 46, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.cta-block > * {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--white);
  margin: 0 0 1rem;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover {
  background-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--navy-900);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: transparent;
  border: 2px solid var(--gold-500);
  color: var(--gold-400);
  font-weight: 700;
  padding: 1.05rem 2.4rem;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--t-base);
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-outline:hover {
  background-color: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}

/* Action cards for Section 09 */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0;
}

.action-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: background-color var(--t-base), border-color var(--t-base), transform var(--t-base);
  position: relative;
}

.action-card--done {
  border-color: rgba(74, 222, 128, 0.22);
}

.action-card--done:hover {
  border-color: rgba(74, 222, 128, 0.38);
}

.action-card-done-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 22px;
  height: 22px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  font-size: 0.68rem;
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(184, 137, 46, 0.3);
  transform: translateY(-3px);
}

.action-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(184, 137, 46, 0.12);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold-400);
  font-size: 1.3rem;
}

.action-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}

.action-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin: 0;
}

/* Tarjeta de Sprint activa — con CTA enlazable */
.action-card--active {
  border-color: rgba(184, 137, 46, 0.28);
  background: rgba(184, 137, 46, 0.04);
}

.action-card--active:hover {
  border-color: rgba(184, 137, 46, 0.5);
  background: rgba(184, 137, 46, 0.08);
}

.action-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-400);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(184, 137, 46, 0.35);
  border-radius: 100px;
  background: rgba(184, 137, 46, 0.08);
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base);
}

.action-card-cta:hover {
  background-color: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-1px);
}

.cta-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 3.5rem 0;
}

/* ====================================================================
   16. Footer
   ==================================================================== */

.footer {
  background-color: var(--navy-950);
  color: rgba(255, 255, 255, 0.38);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.footer-brand span {
  color: var(--gold-400);
}

.footer-meta {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: center;
}

.footer-logout {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  transition: color var(--t-base), border-color var(--t-base);
  letter-spacing: 0.04em;
}

.footer-logout:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ====================================================================
   17. Animaciones de Scroll
   ==================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }

/* ====================================================================
   18. Utilidades
   ==================================================================== */

.text-gold { color: var(--gold-400); }
.text-navy { color: var(--navy-800); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }

.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 2rem 0;
}

.divider-dark {
  background: rgba(255, 255, 255, 0.07);
}

/* 360° visual box */
.vr-card {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 2rem;
  height: 100%;
}

.vr-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vr-card h4 i {
  color: var(--gold-400);
}

.vr-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.vr-list li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}

.vr-list li i {
  color: var(--gold-400);
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* Experience stat cards */
.exp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.exp-stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.exp-stat-icon {
  font-size: 1.5rem;
  color: var(--gold-500);
  margin-bottom: 0.6rem;
}

.exp-stat-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-800);
  margin-bottom: 0.2rem;
}

.exp-stat-desc {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* Branding direction section */
.branding-direction-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 2.5rem 0 1.5rem;
  font-family: var(--font-body);
}

/* ====================================================================
   18b. Branding — Opciones visuales & Feed Mockup
   ==================================================================== */

/* Wrapper de cada opción (A / B) */
.brand-option {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.brand-option:last-of-type { border-bottom: none; }

/* Cabecera de cada opción */
.brand-option-header {
  padding: 2.5rem;
  border-radius: var(--r-lg);
  margin-bottom: 1.5rem;
}
.opt-a-header { background: #fff; border: 1px solid #E8E4DE; }
.opt-b-header { background: var(--navy-900); border: 1px solid var(--navy-700); }

.brand-option-meta { margin-bottom: 0.5rem; }

.brand-option-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.badge-a { background: #E8F3EF; color: #3D6B57; }
.badge-b { background: rgba(74,144,217,0.18); color: #6aafed; border: 1px solid rgba(74,144,217,0.25); }

.brand-option-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  margin: 0 0 0.75rem;
  color: var(--gray-900);
  line-height: 1.2;
}
.brand-option-title-dark { color: #fff; }

.brand-option-desc {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0;
  max-width: 640px;
}
.brand-option-desc-dark { color: rgba(255,255,255,0.62); }

/* Fila de swatches de paleta dentro del header */
.brand-palette-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.brand-pal-swatch {
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-md);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  min-width: 88px;
  box-shadow: var(--shadow-xs);
  cursor: default;
  user-select: none;
  transition: transform var(--t-fast);
}
.brand-pal-swatch:hover { transform: translateY(-2px); }

/* Etiqueta de sección interna */
.brand-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  font-weight: 700;
  margin: 3rem 0 1.25rem;
}

/* Etiqueta sobre el feed grid */
.brand-feed-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.brand-feed-label.dark { color: var(--gold-400); }

/* Imagen de referencia — sin estilos extra cuando la imagen carga bien */
.brand-ref-image {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.brand-ref-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}
/* Placeholder: oculto por defecto, solo visible cuando onerror agrega .img-placeholder */
.img-placeholder-content {
  display: none;
}
.brand-ref-image.img-placeholder {
  background: var(--gray-100);
  min-height: 200px;
  border: 2px dashed var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-ref-image.img-placeholder img { display: none; }
.brand-ref-image.img-placeholder .img-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.83rem;
  padding: 1rem;
}
.img-placeholder-content i { font-size: 2rem; color: var(--gray-300); }
.img-placeholder-content small { font-size: 0.72rem; font-family: var(--font-mono); }

/* ── Feed Grid (simulación de feed de Instagram) ── */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 2.5rem;
}

/* Post card base — ratio forzado con ::before para máxima compatibilidad */
.post-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.post-card::before {
  content: '';
  display: block;
  padding-top: 100%; /* fuerza aspecto 1:1 sin depender de aspect-ratio */
}
.post-card:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* Capas de fondo (Option A) */
.post-bg-a {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-bg-green-light  { background: linear-gradient(135deg, #dff0ea 0%, #b5d4c8 100%); }
.post-bg-warm-white   { background: linear-gradient(135deg, #faf8f5 0%, #ede9e2 100%); }
.post-bg-gold         { background: linear-gradient(135deg, #f5e9c8 0%, #e0cb8a 100%); }
.post-bg-green-deep   { background: linear-gradient(140deg, #5B8A75 0%, #3a6352 100%); }
.post-bg-warm-gray    { background: linear-gradient(135deg, #edebe6 0%, #d8d4cc 100%); }
.post-bg-green-mid    { background: linear-gradient(135deg, #7A9E8E 0%, #56816e 100%); }
.post-bg-gold-soft    { background: linear-gradient(135deg, #c4a45a 0%, #a0823a 100%); }

/* Capas de fondo (Option B) */
.post-bg-b { position: absolute; inset: 0; z-index: 1; }
.post-bg-b-navy         { background: linear-gradient(145deg, #0A1628 0%, #101e38 100%); }
.post-bg-b-gradient     { background: linear-gradient(145deg, #0f2040 0%, #162B55 55%, #1e3a6e 100%); }
.post-bg-b-mid          { background: linear-gradient(145deg, #1B3260 0%, #162B55 100%); }
.post-bg-b-accent       { background: linear-gradient(145deg, #1e3a6e 0%, #2a5298 100%); }
.post-bg-b-gradient-gold{ background: linear-gradient(145deg, #0A1628 0%, #1a2438 60%, #261b0a 100%); }

/* Contenido del post */
.post-content {
  position: absolute;
  inset: 0;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
}

/* Tags de categoría */
.post-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
  line-height: 1.6;
}
.tag-a        { background: rgba(255,255,255,0.72); color: #3d5c4e; }
.tag-a-dark   { background: rgba(0,0,0,0.10);  color: #4a3000; }
.tag-a-white  { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.tag-b-gold   { background: rgba(201,169,110,0.22); color: #d4b86a; border: 1px solid rgba(201,169,110,0.35); }
.tag-b-blue   { background: rgba(74,144,217,0.22);  color: #8ec6f0; border: 1px solid rgba(74,144,217,0.3); }
.tag-b-white  { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.18); }

/* Títulos y subtítulos en posts */
.post-body  { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 0.25rem; }
.post-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  line-height: 1.25;
  margin: 0 0 0.2rem;
  color: #2C2C2C;
  font-weight: 700;
}
.post-title-dark  { color: #1a0e00; }
.post-title-white { color: #fff; }

.post-sub { font-size: 0.62rem; color: #5a6a5e; margin: 0; line-height: 1.4; }
.post-sub-dark  { color: #6a4a10; }
.post-sub-white { color: rgba(255,255,255,0.58); }

.post-stat       { font-family: var(--font-heading); font-size: 2rem; color: #2C2C2C; line-height: 1; margin-bottom: 0.2rem; font-weight: 700; }
.post-stat-white { color: #fff; }

/* Marca de agua "EMBE Academy" dentro del post */
.post-brand-a {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  color: #4a6b5c;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-style: normal;
}
.post-brand-a em { font-style: normal; color: #a07828; }

.post-brand-dark     { color: #5b3e00 !important; }
.post-brand-dark em  { color: #7a5010 !important; }
.post-brand-white     { color: rgba(255,255,255,0.6) !important; }
.post-brand-white em  { color: rgba(255,255,255,0.9) !important; }

.post-brand-b {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
  font-weight: 700;
}
.post-brand-b em { font-style: normal; color: #C9A96E; }

/* Bloque "Sistema de comunicación visual" */
.brand-system-block {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--gold-50);
  border: 1px solid rgba(184,137,46,0.22);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}
.brand-system-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-100);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.brand-system-text h4 {
  font-size: 0.98rem;
  color: var(--navy-800);
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.brand-system-text p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* Responsive feed */
@media (max-width: 768px) {
  .feed-grid { gap: 4px; }
  .post-title { font-size: 0.72rem; }
  .post-stat  { font-size: 1.5rem; }
  .post-content { padding: 0.6rem; }
  .brand-option-header { padding: 1.75rem; }
}
@media (max-width: 480px) {
  .feed-grid { gap: 3px; }
  .post-content { padding: 0.45rem; }
  .post-title { font-size: 0.6rem; }
  .post-sub   { display: none; }
  .post-tag   { font-size: 0.5rem; padding: 0.12rem 0.4rem; }
  .post-brand-a, .post-brand-b { font-size: 0.48rem; }
}

/* ====================================================================
   19. Responsive
   ==================================================================== */

@media (max-width: 1024px) {
  :root {
    --section-pad-y: 80px;
  }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .timeline-track::before {
    display: none;
  }

  .info-columns {
    grid-template-columns: 1fr;
  }

  .col-4 { flex: 0 0 calc(50% - 1rem); }
  .col-6 { flex: 0 0 100%; width: 100%; }
  .col-8 { flex: 0 0 100%; }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 60px;
    --nav-h: 64px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem;
    gap: 0.25rem;
    transition: right var(--t-slow);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .section-number {
    font-size: 6rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .fb-row {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .col,
  .col-4,
  .col-6,
  .col-8 {
    flex: 0 0 100%;
  }

  .row {
    gap: 1.5rem;
  }

  .access-card {
    padding: 2.5rem 1.75rem;
  }

  .exp-stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    text-align: center;
  }

  .type-specimen-row {
    flex-direction: column;
  }

  .cta-block {
    padding: 3.5rem 1.5rem;
    border-radius: var(--r-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad-y: 50px;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .access-card {
    padding: 2rem 1.25rem;
  }

  .access-logo {
    font-size: 2rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .swatch-color {
    width: 52px;
    height: 52px;
  }
}

/* ====================================================================
   20. Carrusel Presencia Digital
   ==================================================================== */

.media-carousel {
  max-width: 480px;
  margin: 0 auto;
}

.carousel-area {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  background: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 9 / 16;
  position: relative;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.carousel-slide:hover::after {
  background: rgba(0, 0, 0, 0.18);
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), opacity var(--t-base);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.carousel-controls {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
  background: var(--gold-400);
  transform: scale(1.35);
}

.carousel-counter {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

/* Desktop: dos columnas — header izquierda, carrusel derecha */
@media (min-width: 1024px) {
  #presencia .container {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 4rem;
    align-items: center;
  }

  #presencia .section-header {
    margin-bottom: 0;
  }

  #presencia .media-carousel {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .carousel-area {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ====================================================================
   21. Modal Presencia Digital
   ==================================================================== */

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.media-modal[hidden] {
  display: none;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.media-modal-content {
  position: relative;
  z-index: 1;
  height: 80vh;
  width: min(calc(80vh * 9 / 16), calc(100vw - 2rem));
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.22s ease;
}

.media-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--t-base);
}

.media-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.media-modal-body {
  width: 100%;
  height: 100%;
}

.media-modal-body img,
.media-modal-body video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

/* ====================================================================
   Keyframe Animations
   ==================================================================== */

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

@keyframes shake {
  10%, 90%  { transform: translateX(-2px); }
  20%, 80%  { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60%  { transform: translateX(6px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

@keyframes heroEntry {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge    { animation: heroEntry 0.7s ease 0.1s both; }
.hero-title    { animation: heroEntry 0.7s ease 0.25s both; }
.hero-tagline  { animation: heroEntry 0.7s ease 0.4s both; }
.hero-cta      { animation: heroEntry 0.7s ease 0.55s both; }
.hero-scroll   { animation: heroEntry 0.7s ease 0.8s both; }
