/* ═══════════════════════════════════════════════════════════
   CEYESOV International — hoja de estilos
   Mobile-first. Tokens → base → componentes → utilidades.
   Comparte componentes y colores con el sitio del Dubai Global Dental
   Summit (azul noche y oro), pero en versión clara para distinguirse:
   fondo blanco, el hero sobre fotografía y el pie quedan oscuros.
   ═══════════════════════════════════════════════════════════ */

/* ── Día dorado — fondo blanco con el azul noche y el oro del logotipo ──
   --navy-* sigue siendo la tinta oscura (texto sobre oro, bloques oscuros).
   En claro el oro también hace de TEXTO, así que --gold-400/300 bajan de tono
   para cumplir 4.5:1 sobre blanco; el oro brillante del logotipo (#d79901)
   se reserva para rellenos, bordes y degradados. */
:root {
  --navy-900: #030d1c;  --navy-800: #06182f;  --navy-700: #0a2440;
  --navy-600: #103252;  --navy-500: #1a4468;
  --gold-600: #7a5600;  --gold-500: #d79901;  --gold-400: #8f6400;  --gold-300: #7d5800;

  --cream: #24344c;  --text: #0a1f3a;  --muted: #4f5e74;
  --line: rgba(169,118,0,.28);
  --line-suave: rgba(10,31,58,.08);

  --surf-0: #ffffff;
  --surf-1: linear-gradient(160deg, #f6f8fc 0%, #eef3fa 60%, #f3f1ea 100%);
  --surf-2: linear-gradient(160deg, #fbf8f1 0%, #f6efe0 55%, #eef2f8 100%);
  --surf-tarjeta: #ffffff;
  --chip-bg: #fbf6ea;
  --tinte: rgba(215,153,1,.08);

  --fondo-rgb: 255,255,255;   --cabecera-rgb: 255,255,255;
  --grad-cta: linear-gradient(135deg, #d79901 0%, #eeb52a 50%, #ffd569 100%);
  --sombra-acento: rgba(215,153,1,.35);
}

/* El hero va siempre sobre fotografía: sus tokens no dependen del tema */
:root {
  --hero-rgb: 8,16,30;
  --hero-text: #f6f2ea;
  --hero-muted: #c3ccdb;
  --hero-line: rgba(255,255,255,.20);
  --hero-acento: #e0b86a;
  --hero-acento-claro: #f2d79c;
}

/* El hero (sobre la fotografía) y el pie son bloques oscuros: redefinen
   los tokens de color dentro de su propio ámbito. */
.hero,
.footer {
  --text:     var(--hero-text);
  --muted:    var(--hero-muted);
  --cream:    var(--hero-text);
  --gold-400: var(--hero-acento);
  --gold-300: var(--hero-acento-claro);
  --line:     var(--hero-line);
  --line-suave: rgba(255,255,255,.08);
  --chip-bg:  #fdf3dd;
}
/* color explícito: si no, sus textos heredan el azul ya calculado del body */
.hero, .footer { color: var(--text); }
.footer { background: var(--navy-900); }

:root {

  /* Tipografía */
  --font-sans:   'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala fluida */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-xl:   clamp(1.3rem,  1.15rem + 0.7vw,  1.6rem);
  --fs-2xl:  clamp(1.7rem,  1.4rem  + 1.4vw,  2.5rem);
  --fs-3xl:  clamp(2.2rem,  1.7rem  + 2.4vw,  3.75rem);
  --fs-hero: clamp(2.5rem,  1.6rem  + 4.4vw,  5.5rem);

  /* Espaciado */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;    --space-8: 4rem;    --space-9: 6rem;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 18px 44px -18px rgba(10,31,58,.28);

  --wrap: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── Reset y base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* compensa el header sticky al saltar a un ancla */
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  transition: background-color .5s var(--ease), color .5s var(--ease);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--surf-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Salta al contenido — sólo visible con teclado */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold-500); color: var(--navy-900);
  padding: var(--space-3) var(--space-5); font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 4rem, var(--wrap)); } }

.section { padding-block: var(--space-8); }
@media (min-width: 768px) { .section { padding-block: var(--space-9); } }

/* ── Tipografía de apoyo ───────────────────────────────── */
.kicker {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-400);
}

.section-head { margin-bottom: var(--space-6); }
.section-title { font-size: var(--fs-2xl); }
.section-sub { color: var(--muted); margin-top: var(--space-3); max-width: 58ch; font-size: var(--fs-lg); }

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

/* ── Botones ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px;                      /* objetivo táctil cómodo */
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--grad-cta); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-300); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: var(--gold-500); background: var(--tinte); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }

/* ── Header ────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--cabecera-rgb),.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-suave);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.header[data-scrolled='true'] { border-bottom-color: var(--line); background: rgba(var(--cabecera-rgb),.97); box-shadow: 0 8px 24px -18px rgba(10,31,58,.35); }
.header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 4.5rem; }
.header__logo { display: flex; align-items: center; flex: 1; }
.header__logo img { height: 46px; width: auto; }
@media (min-width: 1024px) { .header__logo img { height: 54px; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--space-5); list-style: none; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav__link:hover { color: var(--gold-400); border-bottom-color: var(--gold-400); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }

.langswitch {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding-inline: var(--space-3);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.langswitch:hover { color: var(--gold-400); border-color: var(--gold-400); }

.header .btn { display: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded='true'] .burger__open { display: none; }
.burger[aria-expanded='true'] .burger__close { display: block; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header .btn { display: inline-flex; }
  .burger { display: none; }
}

/* Menú móvil */
.mobilenav {
  position: fixed; inset: 4.5rem 0 auto; z-index: 99;
  background: var(--surf-0); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: var(--space-5) 0 var(--space-6);
  transform: translateY(-120%); visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s;
  max-height: calc(100dvh - 4.5rem); overflow-y: auto;
}
.mobilenav[data-open='true'] { transform: translateY(0); visibility: visible; }
.mobilenav__list { list-style: none; padding: 0; display: grid; gap: var(--space-1); }
.mobilenav__link {
  display: block; padding: var(--space-4) var(--space-2);
  text-decoration: none; font-size: var(--fs-lg); font-weight: 600;
  border-bottom: 1px solid var(--line-suave);
}
.mobilenav__link:hover { color: var(--gold-400); }
.mobilenav .btn { margin-top: var(--space-5); }
@media (min-width: 1024px) { .mobilenav { display: none; } }

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; display: grid; align-items: center;
        min-height: calc(100dvh - 4.5rem); padding-block: var(--space-8) var(--space-7); overflow: hidden; }
/* El fondo es más alto que el hero para que el parallax no descubra los bordes */
.hero__bg {
  position: absolute; left: 0; right: 0; top: -8%; height: 116%; z-index: -2;
  will-change: transform;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: scale(1.06);
  animation: hero-entrada 1.9s cubic-bezier(.16,.84,.32,1) forwards;
}
/* Tras la entrada, una deriva casi imperceptible mantiene viva la imagen */
@keyframes hero-entrada { to { transform: scale(1); animation-timing-function: ease-in-out; } }
.hero__bg img.deriva { animation: hero-deriva 28s ease-in-out infinite alternate; }
@keyframes hero-deriva {
  from { transform: scale(1)    translate3d(0, 0, 0); }
  to   { transform: scale(1.05) translate3d(-1.2%, -1%, 0); }
}

.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--hero-rgb),.72) 0%, rgba(var(--hero-rgb),.55) 42%, rgba(var(--hero-rgb),.96) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(var(--hero-rgb),0) 0%, rgba(var(--hero-rgb),.5) 100%);
}
/* ── Hero "Coming Soon 2027" ───────────────────────────────
   Escena con la proporción de la referencia (1671×941): el dragón es una
   imagen fija con transparencia y el texto se coloca en % encima, con
   tamaños en cqw para que todo escale junto. Sólo se mueve la luz, en un
   ciclo de 7 s: barrido sobre las escamas → destello del año → línea de luz,
   más destellos sueltos en puntos del dragón. */
.pronto {
  --oro-brillo: #fff3c4; --oro-claro: #ffd569; --oro: #eeb52a; --oro-logo: #d79901; --oro-hondo: #8a5a00;
  --ciclo: 7s;
  background: #000;
  padding-block: var(--space-6);
  min-height: calc(100dvh - 4.5rem);
  place-items: center;
}
.pronto::after { display: none; }

.pronto__escena {
  position: relative; container-type: inline-size;
  aspect-ratio: 1671 / 941;
  width: min(94vw, 1500px, (100dvh - 4.5rem - 3rem) * 1.776);
  /* centra el conjunto dragón + texto, no la imagen (que tiene aire a la derecha) */
  left: 1.2%;
}
.pronto__dragon { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Barrido de luz que recorre sólo las escamas (enmascarado con el propio dragón) */
.pronto__barrido {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--mascara) center / 100% 100% no-repeat;
          mask: var(--mascara) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, rgba(255,190,90,0) 44%, rgba(255,190,90,.32) 47.5%, rgba(255,246,218,.78) 50%, rgba(255,190,90,.32) 52.5%, rgba(255,190,90,0) 56%) 130% 0 / 260% 100% no-repeat;
  mix-blend-mode: screen;
  animation: pronto-barrido var(--ciclo) cubic-bezier(.45,.05,.3,1) .8s infinite;
}
@keyframes pronto-barrido {
  0%        { background-position: 130% 0; }
  42%, 100% { background-position: -30% 0; }
}

/* El ojo respira */
.pronto__ojo {
  position: absolute; left: 53.4%; top: 18.1%; width: 6cqw; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,226,140,.95) 0%, rgba(255,150,40,.45) 30%, rgba(255,60,20,0) 70%);
  mix-blend-mode: screen;
  animation: pronto-ojo 3.5s ease-in-out infinite;
}
@keyframes pronto-ojo { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1.1; } }

/* Texto: centrado dentro del anillo, igual que en la referencia */
.pronto__titulo {
  position: absolute; left: 54.6%; top: 35.6%; translate: -50% 0;
  display: grid; justify-items: center; gap: 1.6cqw;
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif; font-weight: 600;
  line-height: 1; letter-spacing: 0; text-wrap: nowrap; white-space: nowrap;
}
.pronto__pronto {
  display: flex; align-items: center; gap: 2.4cqw;
  font-size: 3.5cqw; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--oro-claro);
}
/* filetes a los lados, como en la referencia */
.pronto__pronto::before, .pronto__pronto::after {
  content: ''; width: 8cqw; height: max(1px, .12cqw);
  background: linear-gradient(90deg, rgba(215,153,1,0), var(--oro) 70%, var(--oro-claro));
}
.pronto__pronto::after { scale: -1 1; }

/* Oro metálico con un destello que lo cruza después del barrido del dragón.
   El año es candidato a LCP: no se anima su opacidad. */
.pronto__anio {
  font-size: 19.4cqw; letter-spacing: .05em; line-height: .86; padding-inline: .05em;
  color: var(--oro);
  background:
    linear-gradient(105deg, rgba(255,250,228,0) 42%, rgba(255,252,236,.95) 50%, rgba(255,250,228,0) 58%) 160% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, var(--oro-brillo) 0%, #f6dc8c 22%, #e2b54a 45%, #b9861f 58%, #e9c25e 76%, var(--oro-brillo) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1.6cqw rgba(215,153,1,.3));
  animation: pronto-destello var(--ciclo) cubic-bezier(.45,.05,.25,1) 2.4s infinite;
}
@keyframes pronto-destello {
  0%        { background-position: 160% 0, 0 0; }
  32%, 100% { background-position: -60% 0, 0 0; }
}

/* Línea de luz bajo el año, con un punto que la recorre */
.pronto__linea {
  position: absolute; left: 26%; width: 52%; top: 72.4%; height: max(1px, .16cqw);
  background: linear-gradient(90deg, rgba(255,200,80,0), rgba(255,213,105,.9) 50%, rgba(255,200,80,0));
  filter: drop-shadow(0 0 .5cqw rgba(255,190,60,.9));
  overflow: visible; pointer-events: none;
}
.pronto__linea::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 14cqw; height: 1.4cqw;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,250,225,1) 0%, rgba(255,200,90,.6) 30%, rgba(255,170,40,0) 70%);
  mix-blend-mode: screen; opacity: 0;
  animation: pronto-linea var(--ciclo) cubic-bezier(.5,0,.3,1) 3.2s infinite;
}
@keyframes pronto-linea {
  0%   { left: 0;    opacity: 0; }
  6%   { opacity: 1; }
  30%  { left: 100%; opacity: 1; }
  36%, 100% { left: 100%; opacity: 0; }
}

/* Destellos tipo estrella de cuatro puntas */
.pronto__destello {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(5cqw * var(--k)); aspect-ratio: 1; translate: -50% -50%;
  pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,240,1) 0%, rgba(255,220,140,.75) 9%, rgba(255,190,80,0) 26%);
  animation: pronto-estrella 5.5s ease-in-out var(--d) infinite;
}
.pronto__destello::before, .pronto__destello::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 100%; height: 5%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,240,1) 0%, rgba(255,214,120,.6) 35%, rgba(255,190,80,0) 70%);
}
.pronto__destello::after { width: 5%; height: 100%; }
@keyframes pronto-estrella {
  0%, 62%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  72%           { opacity: 1; transform: scale(1) rotate(45deg); }
  84%           { opacity: 0; transform: scale(.35) rotate(90deg); }
}

/* Móvil: la escena se agranda y se recorta el aire de los lados para que el
   año se lea grande; el hero deja de ocupar toda la pantalla. */
@media (max-width: 700px) {
  .pronto { min-height: 62svh; padding-block: var(--space-7); }
  .pronto__escena { width: 122vw; left: 0; justify-self: start; margin-left: -9.4vw; } /* (100 - 122) / 2 + compensación del aire derecho */
}

@media (prefers-reduced-motion: reduce) {
  .pronto__barrido, .pronto__ojo, .pronto__linea::after, .pronto__destello { animation: none !important; }
  .pronto__destello, .pronto__linea::after { display: none; }
  .pronto__anio { animation: none !important; }
}

/* Dos columnas: el mensaje de la marca y la tarjeta del evento destacado */
.hero__inner { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.25fr minmax(340px, .75fr); gap: var(--space-8); } }
.hero__texto { display: grid; gap: var(--space-5); justify-items: start; }
/* Entrada escalonada: cada bloque sube y aparece en secuencia */
.hero__texto > *, .destacado { animation: hero-sube .85s cubic-bezier(.16,.84,.32,1) backwards; }
.hero__texto > :nth-child(1) { animation-delay: .10s; }
.hero__texto > :nth-child(2) { animation-delay: .20s; }
.hero__texto > :nth-child(3) { animation-delay: .30s; }
.hero__texto > :nth-child(4) { animation-delay: .40s; }
.destacado { animation-delay: .55s; }
@keyframes hero-sube { from { opacity: 0; transform: translateY(18px); } }

/* El título es el candidato a LCP. Se anima SÓLO con transform: un elemento
   en opacity:0 cuenta como "no pintado" y retrasaría la métrica ~700 ms. */
.hero__texto > .hero__title { animation-name: hero-sube-plano; }
@keyframes hero-sube-plano { from { transform: translateY(18px); } }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border: 1px solid var(--line); border-radius: 999px;
  background: rgba(var(--hero-rgb),.5); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300);
}
.hero__title {
  color: var(--hero-text);
  font-size: var(--fs-hero); font-weight: 300; letter-spacing: -.03em; line-height: .95;
  text-transform: uppercase;
}
.hero__title strong { display: block; font-weight: 800; }
.hero__lema { font-size: var(--fs-xl); color: var(--hero-text); max-width: 34ch; font-weight: 400; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--hero-text); font-weight: 600; }
.hero__meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__meta svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); width: 100%; }
.hero__cta .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .hero__cta .btn { flex: 0 0 auto; } }

/* Cuenta regresiva */
.countdown { display: grid; gap: var(--space-3); }
.countdown__label { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--hero-muted); }
.countdown__grid { display: flex; gap: var(--space-2); }
.countdown__cell {
  min-width: 68px; padding: var(--space-3) var(--space-2);
  background: rgba(var(--hero-rgb),.55); border: 1px solid var(--hero-line); border-radius: var(--radius);
  text-align: center;
}
.countdown__num { display: block; font-size: var(--fs-xl); font-weight: 800; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.countdown__unit { display: block; font-size: var(--fs-xs); color: var(--hero-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ── Intro ─────────────────────────────────────────────── */
.intro__grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: center; } }
.intro__title { font-size: var(--fs-2xl); }
.intro__body { display: grid; gap: var(--space-4); color: var(--muted); font-size: var(--fs-lg); }
/* Revelado editorial: una cortinilla abre la imagen de abajo hacia arriba mientras la
   foto asienta su escala, y un marco dorado se desplaza detrás. Al hacer scroll la foto
   se mueve dentro de su ventana (parallax interno), como si fuera un mirador. */
.intro__media {
  position: relative; margin: 0;
  /* aire para que el marco desplazado no se corte */
  padding: 0 var(--space-5) var(--space-5) 0;
}
.intro__media.reveal { opacity: 1; transform: none; }   /* el revelado lo hace la cortinilla */

.intro__marco {
  position: absolute; inset: var(--space-5) 0 0 var(--space-5);
  border: 1.5px solid var(--gold-500); border-radius: var(--radius-lg);
  opacity: 0; transform: translate(-16px, -16px);
  transition: opacity .9s .35s var(--ease), transform 1.1s .35s var(--ease);
  pointer-events: none;
}
.intro__media[data-visible='true'] .intro__marco { opacity: 1; transform: none; }

.intro__ventana {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4/3;                       /* la ventana fija la proporción */
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s var(--ease);
}
@media (min-width: 900px) { .intro__ventana { aspect-ratio: 3/4; } }
.intro__media[data-visible='true'] .intro__ventana { clip-path: inset(0 0 0 0); }

.intro__media img {
  /* absoluta y sobredimensionada: así el parallax nunca descubre un borde */
  position: absolute; inset: -6% 0; width: 100%; height: 112%;
  object-fit: cover; display: block;
  transform: scale(1.14) translate3d(0, var(--py, 0px), 0);
  transition: transform 1.6s var(--ease);
}
.intro__media[data-visible='true'] img { transform: scale(1) translate3d(0, var(--py, 0px), 0); }


/* ── Por qué estudiar ──────────────────────────────────── */
.porque { background: var(--surf-2); }
.porque__grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .porque__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .porque__grid { grid-template-columns: repeat(4, 1fr); } }
.porque__item { padding-top: var(--space-4); border-top: 2px solid var(--gold-500); }
.porque__num { font-size: var(--fs-sm); font-weight: 800; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.porque__title { font-size: var(--fs-lg); margin-block: var(--space-2); }
.porque__text { color: var(--muted); font-size: var(--fs-sm); }

/* ── Acordeón (plan de estudios) ───────────────────────── */
.plan { background: var(--surf-1); }
.programa__nota {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin-bottom: var(--space-5); padding: var(--space-4);
  background: var(--tinte); border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-sm); color: var(--cream);
}
.programa__nota svg { width: 20px; height: 20px; color: var(--gold-400); flex-shrink: 0; }
.programa__list { display: grid; gap: var(--space-3); }

.dia { background: var(--surf-0); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dia > summary {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); min-height: 64px;
  cursor: pointer; list-style: none; font-weight: 700;
  transition: background-color .2s var(--ease);
}
.dia > summary::-webkit-details-marker { display: none; }
.dia > summary:hover { background: var(--tinte); }
.dia__fecha {
  flex-shrink: 0; min-width: 74px; padding: var(--space-2) var(--space-3);
  background: var(--gold-500); color: var(--navy-900); border-radius: 8px;
  font-size: var(--fs-xs); font-weight: 800; text-align: center;
  text-transform: uppercase; letter-spacing: .06em;
}
.dia__titulo { flex: 1; font-size: var(--fs-lg); }
.dia__chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--gold-400); transition: transform .25s var(--ease); }
.dia[open] .dia__chevron { transform: rotate(180deg); }
.dia__body { padding: 0 var(--space-5) var(--space-5); display: grid; gap: var(--space-4); }

.bloque { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line-suave); }
@media (min-width: 640px) { .bloque { grid-template-columns: 140px 1fr; gap: var(--space-4); } }
.bloque__hora { font-weight: 700; color: var(--gold-400); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.bloque__items { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.bloque__items li { position: relative; padding-left: var(--space-5); color: var(--cream); font-size: var(--fs-sm); }
.bloque__items li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500);
}
.dia__cats { display: grid; gap: var(--space-2); }
.cat { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2);
       padding: var(--space-3) var(--space-4); background: rgba(201,162,77,.07);
       border-radius: var(--radius); font-size: var(--fs-sm); }
.cat__nivel { font-weight: 800; color: var(--gold-300); text-transform: uppercase;
              letter-spacing: .06em; font-size: var(--fs-xs); }
.cat__texto { color: var(--cream); }
.dia__opcional { font-size: var(--fs-sm); color: var(--muted); font-style: italic; }

/* ── Tarjeta ───────────────────────────────────────────── */
.card {
  background: var(--surf-tarjeta); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.card__title { font-size: var(--fs-lg); display: flex; align-items: center; gap: var(--space-3); }
.card__title svg { width: 22px; height: 22px; color: var(--gold-400); flex-shrink: 0; }
.card__text { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--space-3); }

/* ── Footer ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: var(--space-7) var(--space-6); }
.footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr auto; align-items: center; } }
.footer__logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.footer__logos img { height: 40px; width: auto; }
/* Los logos de los avales son oscuros: van sobre un chip claro
   para respetar los colores originales de cada marca. */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-3) var(--space-4);
  background: var(--chip-bg); border-radius: 12px;
}
.footer__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); width: 100%; }
.footer__bottom {
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--line-suave);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--fs-sm); color: var(--muted);
}
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__bottom a:hover { color: var(--gold-400); }

/* ── CTA flotante en móvil ─────────────────────────────── */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: rgba(var(--fondo-rgb),.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.stickycta[data-visible='true'] { transform: translateY(0); }
@media (min-width: 1024px) { .stickycta { display: none; } }

/* ══════════════════════════════════════════════════════════
   COMPONENTES PROPIOS DEL SITIO RAÍZ
   ══════════════════════════════════════════════════════════ */

/* ── Estado del evento ─────────────────────────────────────
   html[data-evento] vale proximo | enCurso | concluido. Lo fija el build y
   main.js lo recalcula con la hora del visitante. [data-solo] muestra un
   elemento sólo en ese estado; [data-oculto-en] lo esconde en ese estado. */
html[data-evento='proximo']   [data-solo]:not([data-solo='proximo']),
html[data-evento='enCurso']   [data-solo]:not([data-solo='enCurso']),
html[data-evento='concluido'] [data-solo]:not([data-solo='concluido']),
html[data-evento='proximo']   [data-oculto-en='proximo'],
html[data-evento='enCurso']   [data-oculto-en='enCurso'],
html[data-evento='concluido'] [data-oculto-en='concluido'] { display: none !important; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.kicker + .section-title, .kicker + .intro__title, .kicker + h1 { margin-top: var(--space-3); }
.intro__title + .intro__body { margin-top: var(--space-5); }

/* ── Marca ─────────────────────────────────────────────── */
.marca { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; flex: 1; min-width: 0; }
/* El escudo es morado y turquesa: va sobre un chip claro para respetar sus colores */
.marca__escudo {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 12px; background: var(--chip-bg);
}
.marca__escudo img { width: 36px; height: 36px; }
.marca__texto { font-weight: 800; letter-spacing: .08em; font-size: var(--fs-base); line-height: 1.1; color: var(--text); }
.marca__texto small {
  display: block; font-size: .62rem; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gold-400);
}

/* ── Tarjeta del evento destacado (hero) ───────────────── */
.destacado {
  display: grid; gap: var(--space-4); justify-items: start;
  padding: var(--space-6) var(--space-5);
  background: rgba(var(--hero-rgb), .66);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hero-line); border-top: 2px solid var(--gold-500);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.destacado__estado {
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-400); padding: var(--space-1) var(--space-3); border-radius: 999px;
}
.destacado__logo { height: 72px; width: auto; }
.destacado__nombre { font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: -.01em; }
.destacado__meta { list-style: none; padding: 0; display: grid; gap: var(--space-2); font-weight: 600; font-size: var(--fs-sm); }
.destacado__meta li { display: flex; align-items: center; gap: var(--space-2); }
.destacado__meta svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }
.destacado__gracias { color: var(--hero-muted); }
.destacado .countdown { width: 100%; }
.destacado .countdown__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.destacado .countdown__cell { min-width: 0; }
.destacado__cifras {
  list-style: none; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2);
}
.destacado__cifras li {
  display: grid; gap: 2px; padding: var(--space-3) var(--space-2); text-align: center;
  border: 1px solid var(--hero-line); border-radius: 10px; background: rgba(255,255,255,.04);
}
.destacado__cifras strong { font-size: var(--fs-xl); font-weight: 800; color: var(--hero-acento-claro); line-height: 1.1; }
.destacado__cifras span { font-size: var(--fs-xs); color: var(--hero-muted); line-height: 1.3; }

/* ── Resultados de Dubái 2026 (sólo con el congreso concluido) ── */
.resultados { background: var(--surf-1); }
.resultados__grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .resultados__grid { grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: center; } }
.resultados__cita { margin: 0; padding-left: var(--space-5); border-left: 3px solid var(--gold-500); }
.resultados__cita blockquote { margin: 0; }
.resultados__cita blockquote p { font-size: var(--fs-xl); line-height: 1.35; font-weight: 300; color: var(--text); }
.resultados__cita blockquote p::before { content: '«'; color: var(--gold-500); }
.resultados__cita blockquote p::after  { content: '»'; color: var(--gold-500); }
html[lang='en'] .resultados__cita blockquote p::before { content: '“'; }
html[lang='en'] .resultados__cita blockquote p::after  { content: '”'; }
.resultados__cita figcaption { margin-top: var(--space-3); font-size: var(--fs-sm); font-weight: 600; color: var(--gold-400); }

/* Mosaico de 5 fotos: la primera ocupa doble; cierra en 2 y en 4 columnas */
.mosaico {
  list-style: none; padding: 0; margin-top: var(--space-7);
  display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr);
}
.mosaico__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.mosaico__item:first-child { grid-column: span 2; }
.mosaico__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaico__item:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .mosaico { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
  .mosaico__item:first-child { grid-row: span 2; aspect-ratio: auto; }
}
.resultados__cta { margin-top: var(--space-6); }

/* ── Listas ────────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--cream); }
.checklist svg { width: 20px; height: 20px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; stroke-width: 2.2; }

.enlace {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  font-weight: 700; font-size: var(--fs-sm); color: var(--gold-400); text-decoration: none;
}
.enlace svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.enlace:hover svg { transform: translateX(3px); }
.enlace--volver svg { transform: rotate(180deg); }
.enlace--volver:hover svg { transform: rotate(180deg) translateX(3px); }

/* ── Evento: cursos Hands On ───────────────────────────── */
.handson { margin-top: var(--space-8); }
.handson__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.handson__titulo { font-size: var(--fs-xl); }
.handson__grid { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.handson__item a {
  display: grid; gap: var(--space-2); height: 100%; text-decoration: none;
  padding: var(--space-3); background: var(--surf-tarjeta);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.handson__item a:hover { border-color: var(--gold-400); transform: translateY(-4px); }
.handson__item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.handson__fecha { justify-self: start; margin-top: var(--space-2); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400); }
.handson__nombre { font-weight: 700; line-height: 1.3; }

/* ── Programas ─────────────────────────────────────────── */
.programas { background: var(--surf-1); }
.programas__grid { display: grid; gap: var(--space-6); }
.programa {
  display: grid; gap: var(--space-5);
  padding: var(--space-4); background: var(--surf-tarjeta);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .programa { grid-template-columns: 260px 1fr; gap: var(--space-6); padding: var(--space-5); align-items: center; }
}
.programa__img { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.programa__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.programa:hover .programa__img img { transform: scale(1.04); }
.programa__cuerpo { display: grid; gap: var(--space-4); justify-items: start; }
.programa__nombre { font-size: var(--fs-xl); }
.programa__nombre a { text-decoration: none; }
.programa__nombre a:hover { color: var(--gold-300); }
.programa__resumen { color: var(--muted); }
.programa__acciones { display: flex; flex-wrap: wrap; gap: var(--space-3); width: 100%; }
.programa__acciones .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .programa__acciones .btn { flex: 0 0 auto; } }

.datos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.datos li {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--cream);
}
.datos svg { width: 16px; height: 16px; color: var(--gold-400); flex-shrink: 0; }
/* En la página del programa los datos son una ficha con etiqueta y valor */
.datos--grande { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); width: 100%; }
.datos--grande li { align-items: flex-start; border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); }
.datos--grande li > span { display: grid; }
.datos--grande small { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.datos--grande svg { width: 20px; height: 20px; margin-top: 2px; }

/* ── Nosotros ──────────────────────────────────────────── */
.nosotros__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .nosotros__grid { grid-template-columns: .85fr 1.15fr; gap: var(--space-8); } }
.nosotros__foto { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.nosotros__foto img { width: 100%; aspect-ratio: 518/542; object-fit: cover; }
.nosotros__sellos { display: grid; gap: var(--space-5); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .nosotros__sellos { grid-template-columns: auto auto; justify-content: start; gap: var(--space-7); } }
.nosotros__sellos .footer__label { margin-bottom: var(--space-3); }
.sellos { display: flex; gap: var(--space-3); }
/* Los sellos ISO son grises claros (pensados para fondo oscuro): se pasan a tinta */
.sellos img { width: 64px; height: 64px; filter: brightness(0); opacity: .62; }

/* ── Trayectoria ───────────────────────────────────────── */
.trayectoria { background: var(--surf-2); }
.linea { list-style: none; padding: 0; display: grid; gap: var(--space-6); }
.hito {
  display: grid; gap: var(--space-5);
  padding: var(--space-4); background: var(--surf-tarjeta);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .hito { grid-template-columns: 360px 1fr; gap: var(--space-6); padding: var(--space-5); align-items: center; } }
.hito__img { border-radius: var(--radius); overflow: hidden; }
.hito__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 30%; }
.hito__cuerpo { display: grid; gap: var(--space-3); justify-items: start; }
.hito__cuando { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: var(--fs-sm); font-weight: 600; color: var(--cream); }
.hito__cuando > span:last-child { display: inline-flex; align-items: center; gap: var(--space-2); }
.hito__cuando svg { width: 16px; height: 16px; color: var(--gold-400); }
.hito__cuando .dia__fecha { min-width: 0; }
.hito__titulo { font-size: var(--fs-xl); }
.hito__titulo a { text-decoration: none; }
.hito__titulo a:hover { color: var(--gold-300); }
.hito__texto { color: var(--muted); }
.hito__puntos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--fs-sm); font-weight: 600; color: var(--cream); }
.hito__puntos li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hito__puntos svg { width: 18px; height: 18px; color: var(--gold-400); }

/* ── Contacto ──────────────────────────────────────────── */
.contacto__card {
  display: grid; gap: var(--space-6); align-items: center;
  padding: var(--space-6) var(--space-5); background: var(--surf-tarjeta);
  border: 1px solid var(--gold-500); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--gold-500) inset, var(--shadow);
}
@media (min-width: 900px) { .contacto__card { grid-template-columns: 1.2fr 1fr; padding: var(--space-7); gap: var(--space-8); } }
.contacto__acciones { display: grid; gap: var(--space-3); }
.contacto__dir { display: flex; gap: var(--space-3); margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--muted); }
.contacto__dir > svg { width: 20px; height: 20px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.contacto__dir strong { color: var(--text); }

/* ── Pie: complementos ─────────────────────────────────── */
.footer__dir { margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--muted); max-width: 38ch; }
.footer__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.footer__links a { gap: var(--space-2); }
.footer__links svg { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .footer .footer__logos { justify-content: flex-end; }
  .footer .footer__label { text-align: right; }
}
.footer__bottom { align-items: center; }

/* ── Página de programa ────────────────────────────────── */
.phero { background: var(--surf-1); padding-block: var(--space-6) var(--space-8); border-bottom: 1px solid var(--line); }
.phero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .phero__grid { grid-template-columns: 1.25fr .75fr; gap: var(--space-8); } }
.phero__texto { display: grid; gap: var(--space-5); justify-items: start; }
.phero__texto .hero__lema { color: var(--muted); font-size: var(--fs-lg); max-width: 52ch; }
.phero__title { font-size: var(--fs-3xl); }
.phero__img { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.phero__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
@media (max-width: 899px) { .phero__img { max-width: 420px; } }

.pintro__grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .pintro__grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); } }
.pintro__grid .programa__nota { margin-top: var(--space-6); margin-bottom: 0; }
.card .checklist { margin-top: var(--space-4); }
.card .checklist li { font-size: var(--fs-sm); }

.bloque__texto { color: var(--cream); font-size: var(--fs-sm); }

.profes__grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .profes__grid { grid-template-columns: repeat(2, 1fr); } }
.profe {
  display: flex; gap: var(--space-5); align-items: flex-start;
  padding: var(--space-5); background: var(--surf-tarjeta);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.profe img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-500); flex-shrink: 0; }
.profe__nombre { font-size: var(--fs-lg); margin-bottom: var(--space-3); }

/* ── Páginas legales ───────────────────────────────────── */
.phero--legal { padding-block: var(--space-6) var(--space-7); }
.phero--legal .wrap { display: grid; gap: var(--space-4); justify-items: start; }
.legal__resumen { color: var(--muted); font-size: var(--fs-lg); max-width: 68ch; }
.legal__fecha { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.legal__fecha svg { width: 18px; height: 18px; color: var(--gold-400); }

.legal__grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .legal__grid { grid-template-columns: 260px 1fr; gap: var(--space-8); align-items: start; } }
/* El índice acompaña la lectura en escritorio */
@media (min-width: 1024px) { .legal__indice { position: sticky; top: 6rem; } }
.legal__indice ol { padding-left: 1.2em; margin-top: var(--space-3); display: grid; gap: var(--space-2); font-size: var(--fs-sm); color: var(--muted); }
.legal__indice a { color: var(--text); text-decoration: none; }
.legal__indice a:hover { color: var(--gold-400); text-decoration: underline; }

.legal { max-width: 72ch; display: grid; gap: var(--space-7); }
.legal section { display: grid; gap: var(--space-4); scroll-margin-top: 6rem; }
.legal h2 { font-size: var(--fs-xl); }
.legal p { color: var(--cream); }
.legal .bloque__items li { font-size: var(--fs-base); }
.legal a { color: var(--gold-400); font-weight: 600; }

/* ── Tarjetas sobre fondo claro ────────────────────────────
   En blanco el color ya no separa la tarjeta del fondo: lo hace una
   sombra corta y fría, la misma en todas para que se lean como sistema. */
.programa, .hito, .handson__item a, .card, .profe, .dia, .contacto__card {
  box-shadow: 0 1px 2px rgba(10,31,58,.05), 0 12px 32px -20px rgba(10,31,58,.30);
}
.contacto__card { box-shadow: 0 0 0 1px var(--gold-500) inset, 0 18px 44px -22px var(--sombra-acento); }
.marca__escudo { border: 1px solid var(--line); }
.programa__img, .phero__img, .nosotros__foto { border-color: var(--line-suave); }

/* ── Animaciones de entrada ────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal[data-visible='true'] { opacity: 1; transform: none; }

/* Respeta la preferencia del sistema: sin movimiento, estado final visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .stickycta { transform: translateY(0); }
  /* el efecto de las fotos es decorativo: se entrega el estado final */
  .ponente__photo img { filter: none !important; }
  .ponente__photo::after, .ponente__photo::before { opacity: 0 !important; }
  /* hero: imagen quieta y contenido a la vista */
  .hero__bg, .hero__bg img { animation: none !important; transform: none !important; }
  .hero__texto > *, .destacado { animation: none !important; opacity: 1 !important; }
  /* intro: imagen abierta, marco en su sitio, sin parallax */
  .intro__ventana { clip-path: none !important; }
  .intro__media img { transform: none !important; }
  .intro__marco { opacity: .85 !important; transform: none !important; }
}

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