/* Francisco Javier Presidente 2028 · sitio oficial
   Una escena fija: la intro en video y luego el póster morado en capas (el candidato quieto, el 2028 en sus manos,
   FRANCISCO JAVIER siempre en movimiento). El contenido pasa encima en paneles de vidrio.
   Letras: Anton (titulares, como el póster) + Montserrat (texto; misma familia geométrica del logo). */

:root {
  --papel: #FAF8FC;
  --papel-2: #EFEAF4;
  --tinta: #1C1230;
  --tinta-2: #4A4058;
  --gris: #6E6680;
  --morado: #6E2C86;
  --morado-medio: #4B1C6E;
  --morado-hondo: #2B1145;
  --lila: #CDB8E6;
  --naranja-1: #FFB21E;
  --naranja-2: #FF8A00;
  --naranja-3: #FF6F00;
  --oro: #F4C430;
  /* Naranja del póster, más hondo abajo para que se lea sobre papel claro (≈3:1 o más en el cuerpo de la letra) */
  --grad-naranja: linear-gradient(180deg, #FFA51C 0%, #F57C00 46%, #DE5B00 100%);
  --grad-morado: linear-gradient(180deg, #8A3FA3 0%, var(--morado) 60%, #5A2170 100%);
  --grad-javier: linear-gradient(180deg, #F7B13E 0%, #E8940F 50%, #CC7A03 100%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Escala tipográfica (7 pasos) y ritmo vertical */
  --t-nota: 13px;
  --t-ui: 15px;
  --t-cuerpo: 17px;
  --t-lead: clamp(19px, 1.6vw, 22px);
  --t-titulo: 24px;
  --t-seccion: clamp(60px, 8.5vw, 128px);
  --espacio-seccion: clamp(88px, 11vw, 144px);
  --base: 0.15s;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-cuerpo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.solo-lectores { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Barra ─────────────────────────────────────────────────────────────── */
.barra {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), padding 0.25s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: max(14px, env(safe-area-inset-top)) max(4vw, 18px) 14px;
}
/* Al bajar, la barra se vuelve un material translúcido sobre el contenido (sin borde duro) */
/* Al bajar la barra no se enmarca: los enlaces y el nombre se apagan y quedan solo FJ y «Únete» */
.marca-texto, .navegacion { transition: opacity 0.3s var(--ease-out), visibility 0.3s; }
.barra.con-fondo .marca-texto, .barra.con-fondo .navegacion { opacity: 0; visibility: hidden; }
.barra .marca-sello, .barra .boton-barra { box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.55); }
/* Sobre la escena morada: letras claras y botón blanco, con o sin fondo */
.barra .marca-texto { color: #fff; }
.barra .marca-texto b { color: var(--naranja-1); }
.barra .navegacion a { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 8px rgba(20, 8, 34, 0.55); }
.barra .marca-texto { text-shadow: 0 1px 8px rgba(20, 8, 34, 0.55); }
.barra .boton-barra { background: #fff; color: var(--morado); }
main section { scroll-margin-top: 76px; }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marca-sello {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad-morado);
  color: #fff;
  font-weight: 800;
  font-size: var(--t-cuerpo);
  letter-spacing: -0.02em;
  box-shadow: inset 0 -3px 0 var(--oro);
}
.marca-texto { font-weight: 700; font-size: var(--t-ui); color: var(--tinta); }
.marca-texto b { color: var(--morado); }
.navegacion { display: flex; gap: 26px; }
.navegacion a { font-weight: 600; font-size: var(--t-ui); text-decoration: none; color: var(--tinta-2); }

/* ── Entrada de la barra: aparece después del 2028, pieza por pieza ─────── */
/* Mientras tanto no se ve ni se puede tocar (sin JavaScript la barra está siempre). */
.js-barra:not(.barra-lista) .barra :is(.marca-sello, .marca-texto, .navegacion a, .boton-barra, .boton-acerca) { opacity: 0; visibility: hidden; }
/* 1. El sello FJ cae como un sello que se estampa y deja una onda de oro */
.marca-sello { position: relative; }
.barra-lista .marca-sello { animation: selloEntra 0.7s var(--ease-out) 0.12s backwards; }
.barra-lista .marca-sello::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 13px;
  border: 2px solid var(--oro);
  opacity: 0;
  pointer-events: none;
  animation: selloOnda 1s var(--ease-out) 0.6s;
}
@keyframes selloEntra { from { opacity: 0; transform: scale(1.7) rotate(-14deg); filter: blur(6px); } }
@keyframes selloOnda { 0% { opacity: 0.95; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }
/* 2. «Francisco Javier 2028» se escribe de izquierda a derecha */
.barra-lista .marca-texto { animation: textoEntra 0.8s var(--ease-out) 0.38s backwards; }
@keyframes textoEntra { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-10px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
/* 3. Los enlaces bajan uno tras otro y se enfocan */
.barra-lista .navegacion a { display: inline-block; animation: enlaceEntra 0.6s var(--ease-out) backwards; animation-delay: calc(0.6s + var(--n, 0) * 0.09s); }
@keyframes enlaceEntra { from { opacity: 0; transform: translateY(-12px); filter: blur(6px); } }
/* 4. «Únete» llega último, con un destello de oro que lo cruza */
.boton-barra { position: relative; overflow: hidden; }
.barra-lista .boton-barra { animation: uneteEntra 0.6s var(--ease-out) 0.9s backwards; }
.barra-lista .boton-barra::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 214, 90, 0.85) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
  animation: uneteBrillo 0.9s var(--ease-out) 1.4s;
}
@keyframes uneteEntra { from { opacity: 0; transform: scale(0.86); } }
@keyframes uneteBrillo { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

/* Terminada la entrada, la barra queda quieta: girar el teléfono o cambiar el tamaño no la vuelve a animar */
.barra-hecha .barra :is(.marca-sello, .marca-texto, .navegacion a, .boton-barra, .boton-acerca),
.barra-hecha .barra :is(.marca-sello, .boton-barra)::after { animation: none !important; }

/* ── Botones ───────────────────────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--t-cuerpo);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), box-shadow 0.2s, background-color 0.2s;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.boton:active { transform: scale(0.97); }
.boton-principal { background: var(--grad-naranja); color: var(--morado-hondo); box-shadow: 0 14px 30px -14px rgba(255, 111, 0, 0.75); }
.boton-claro { background: #fff; color: var(--morado); box-shadow: inset 0 0 0 1.5px rgba(110, 44, 134, 0.35); }
.boton-barra { height: 42px; padding: 0 20px; font-size: var(--t-ui); background: var(--morado); color: #fff; }
a:not(.boton) { transition: opacity 100ms var(--ease-out); }
a:not(.boton):active { opacity: 0.6; }
:where(a, button):focus-visible { outline: 3px solid var(--naranja-2); outline-offset: 3px; border-radius: 8px; }
.boton:focus-visible { border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .boton-principal:hover { box-shadow: 0 18px 34px -14px rgba(255, 111, 0, 0.9); }
  .boton-claro:hover { background: var(--papel-2); }
  .boton-barra:hover { background: #F1EAFA; }
  .navegacion a:hover { color: #FFC24D; }
}

/* ── Escena viva: el póster en capas, fijo detrás de toda la página ───────── */
body { background: #0B0612; color: #F6F1FB; }
.escena {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* arriba del póster, el mismo morado; abajo, el negro del póster (si la pantalla crece al esconder Safari su barra) */
  background: linear-gradient(180deg, #822894 0 50%, #000 50% 100%);
}
/* Pantallas más anchas que el póster: a los lados sigue el mismo degradado (lo trae escena.json) */
@media (min-aspect-ratio: 16/9) { .escena:not(.vertical) { background: var(--grad, #822894); } }
@media (max-aspect-ratio: 9/10) and (min-aspect-ratio: 9/16) { .escena.vertical { background: var(--grad, #822894); } }
.lienzo {
  position: absolute;
  left: 50%;
  /* anclado arriba con una medida que no cambia al bajar (svh): el candidato no se mueve ni un píxel */
  top: calc(100svh - min(100vw / var(--prop, 1.7787), 100svh));
  width: min(100vw, calc(100svh * var(--prop, 1.7787)));
  transform: translateX(-50%);
  overflow: hidden;
}
.capa, .candidato, .grupo, .letra, .escena-video, .anio-mano { position: absolute; }
.capa.fondo {
  inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* la textura de rostros entra suave: sin borde donde empieza el póster */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%);
  mask-image: linear-gradient(180deg, transparent 0, #000 10%);
}
.candidato img { display: block; width: 100%; height: 100%; }
.manos { z-index: 6; pointer-events: none; }
.manos img { position: absolute; }
.capa.logo { z-index: 7; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35)); }
.grupo { inset: 0; will-change: transform, opacity; }
.grupo-fran, .grupo-cisco { z-index: 2; }       /* detrás de su cabeza */
.candidato { z-index: 3; }
.grupo-javier { z-index: 4; }                   /* delante de su cuerpo */
.grupo-presidente { z-index: 4; }
.escena.vertical .grupo-presidente { filter: drop-shadow(0 2px 5px rgba(22, 8, 32, 0.6)); }
.escena-video { z-index: 9; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s var(--ease-out), transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
/* Mientras el video cubre la pantalla (al principio de la intro) el lienzo lo deja salir de sus bordes */
.lienzo.cubriendo { overflow: visible; }
.escena-video.oculto { opacity: 0; pointer-events: none; }
.escena.sin-transicion .escena-video { transition: none; }
.escena-quieta { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Letras: la forma exacta del logo, coloreada por CSS para que respiren y brillen.
   Todo lo que se mueve aquí es transform u opacidad: lo dibuja el compositor a la frecuencia de la pantalla
   (120 Hz en los iPhone con ProMotion y en los Android de 120 Hz), sin pasar por JavaScript. */
.letra {
  display: block;
  overflow: hidden;
  -webkit-mask: var(--m) center / 100% 100% no-repeat;
  mask: var(--m) center / 100% 100% no-repeat;
  background: #fff;
}
.letra.naranja { background: #FC9F01; }
/* El destello: una banda que cruza la letra (se desliza; antes se repintaba el fondo en cada cuadro) */
.letra::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 214, 90, 0.95) 50%, transparent 70%);
  transform: translateX(-120%);
}
.letra.naranja::after { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%); }
/* FRANCISCO JAVIER siempre en movimiento: una ola suave letra por letra y un destello que las recorre */
.escena.viva .grupo-fran .letra, .escena.viva .grupo-cisco .letra, .escena.viva .grupo-javier .letra { animation: olaLetra 3.4s ease-in-out calc(var(--i) * 0.13s) infinite; }
.escena.viva .grupo-fran .letra::after, .escena.viva .grupo-cisco .letra::after, .escena.viva .grupo-javier .letra::after { animation: brilloBanda 6.5s ease-in-out calc(1.2s + var(--i) * 0.06s) infinite; }
.escena.viva .grupo-presidente .letra::after { animation: brilloBanda 6.5s ease-in-out 2.2s infinite; }
@keyframes olaLetra { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes brilloBanda { 0%, 60% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
@keyframes brillo { 0%, 60% { background-position: 160% 0, 0 0; } 82%, 100% { background-position: -60% 0, 0 0; } }
/* Al bajar solo se mueven las letras (FRAN y CISCO se abren, JAVIER y PRESIDENTE crecen y se apagan), atadas al
   desplazamiento: el navegador las mueve junto con la página, a 120 Hz donde la pantalla lo da. Donde no hay
   animaciones ligadas al desplazamiento lo hace js/escena.js. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .grupo-fran { animation: salirFran cubic-bezier(0.45, 0, 0.55, 1) both; }
    .grupo-cisco { animation: salirCisco cubic-bezier(0.45, 0, 0.55, 1) both; }
    .grupo-javier { animation: salirJavier cubic-bezier(0.45, 0, 0.55, 1) both; }
    .grupo-presidente { animation: salirPresidente cubic-bezier(0.45, 0, 0.55, 1) both; }
    .grupo-fran, .grupo-cisco, .grupo-javier, .grupo-presidente { animation-timeline: scroll(root); animation-range: 0 80vh; }
  }
}
@keyframes salirFran { to { transform: translate3d(-42vw, 0, 0); opacity: 0; } }
@keyframes salirCisco { to { transform: translate3d(42vw, 0, 0); opacity: 0; } }
@keyframes salirJavier { 87%, 100% { opacity: 0; } 100% { transform: scale(1.45); } }
@keyframes salirPresidente { 71%, 100% { opacity: 0; } 100% { transform: scale(1.3); } }
/* Cuando las letras ya se fueron (más abajo en la página) sus animaciones y el destello del 2028 descansan: así los
   paneles de vidrio no recalculan el desenfoque de algo que no se ve */
.escena.lejos .letra, .escena.lejos .letra::after, .escena.lejos .anio-mano .cara { animation-play-state: paused; }

/* 2028 entre sus manos, en 3D, como si lo agarrara (las manos van encima: sus dedos tapan los bordes del 2 y del 8) */
.anio-mano {
  z-index: 5;
  margin: 0;
  display: flex;
  justify-content: space-between;
  /* El volumen sale del grosor y de la sombra (una inclinación 3D real rompe el degradado recortado al texto) */
  transform: translateY(-50%);
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.anio-mano span { position: relative; display: inline-block; opacity: 0; }
/* El grosor: el mismo número, detrás, con capas que bajan del naranja al tostado y la sombra sobre el traje */
.anio-mano .lado {
  position: absolute;
  left: 0; top: 0;
  font-style: normal;
  color: #D97000;
  text-shadow:
    0 0.011em 0 #C86400,
    0 0.022em 0 #BD5E00,
    0 0.033em 0 #B25800,
    0 0.044em 0 #A65100,
    0 0.055em 0 #9B4B00,
    0 0.066em 0 #904500,
    0 0.077em 0 #843E00,
    0 0.088em 0 #793800,
    0 0.099em 0 #6E3200,
    0 0.13em 0.1em rgba(15, 5, 25, 0.55),
    0 0.24em 0.28em rgba(15, 5, 25, 0.38);
}
/* La cara: naranja con su destello */
.anio-mano .cara {
  position: relative;
  display: block;
  font-weight: 400;
  color: transparent;
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.9) 50%, transparent 62%), linear-gradient(180deg, #FFC24D 0%, #FCA208 42%, #EE8400 100%);
  background-size: 320% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}
/* Aparece de una vez cuando PRESIDENTE termina de entrar (≈3.8 s del video) */
.escena.con-anio .anio-mano span { animation: anioEntra 0.45s var(--ease-out) both; animation-delay: calc(var(--i) * 0.035s); }
.escena.con-anio .anio-mano .cara { animation: brillo 6.5s ease-in-out infinite; animation-delay: calc(1.6s + var(--i) * 0.06s); }
@keyframes anioEntra { from { opacity: 0; transform: translateY(10%) scale(0.97); } to { opacity: 1; transform: none; } }
/* Desde que aparece, el 2028 y sus manos van por encima del video (el candidato del video ya está quieto) */
.escena.con-anio .anio-mano { z-index: 10; }
.escena.con-anio .manos { z-index: 11; }

/* Botón de sonido (fijo abajo a la izquierda; el logo del PLD está a la derecha) */
.portada-sonido {
  position: fixed;
  z-index: 15;
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 10, 34, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 600 var(--t-nota)/1 "Montserrat", sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), opacity 0.3s var(--ease-out), background-color 0.2s;
}
.portada-sonido:active { transform: scale(0.97); }
.portada-sonido.lejos { opacity: 0; pointer-events: none; transform: translateY(8px); }
.portada-sonido svg { width: 18px; height: 18px; flex: none; }
.portada-sonido[hidden] { display: none; }
.portada-sonido .ondas, .portada-sonido .repetir { display: none; }
.portada-sonido[data-estado="sonido"] .ondas { display: inline; }
.portada-sonido[data-estado="sonido"] .tachado { display: none; }
.portada-sonido[data-estado="repetir"] :is(.altavoz, .tachado) { display: none; }
.portada-sonido span { overflow: hidden; white-space: nowrap; max-width: 12em; transition: max-width 0.4s var(--ease-out), opacity 0.3s; }
.portada-sonido[data-estado="repetir"] { padding: 0; width: 40px; justify-content: center; gap: 0; }
.portada-sonido[data-estado="repetir"] span { max-width: 0; opacity: 0; }
.portada-sonido[data-estado="repetir"] .repetir { display: inline; }
@media (hover: hover) and (pointer: fine) { .portada-sonido:hover { background: rgba(20, 10, 34, 0.78); } }

/* ── Recorrido: el contenido pasa en paneles de vidrio por encima de la escena ── */
.recorrido { position: relative; z-index: 2; }
.tramo-inicio { position: relative; height: 100svh; }
.bajar {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: 30px; height: 46px;
  margin-left: -15px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 99px;
  opacity: 0;
}
.escena.viva ~ .recorrido .bajar { animation: aparece 0.8s var(--ease-out) 1.4s forwards; }
.bajar span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: #fff; animation: rueda 1.8s ease-in-out infinite; }
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
html.bajando .bajar { visibility: hidden; }

.panel {
  position: relative;
  width: min(30vw, 460px);
  margin: 0 4.5vw 62svh;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 30px;
  background: rgba(22, 9, 38, 0.56);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  color: #F6F1FB;
}
.panel-izq { margin-right: auto; }
/* Los paneles llegan subiendo un poco y apareciendo (una vez) */
.js-paneles .panel { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js-paneles .panel.visible { opacity: 1; transform: none; }
.panel-der { margin-left: auto; }
.panel-ancho { width: min(34vw, 520px); }
#firme { margin-top: 6svh; }
#unete { margin-bottom: 40svh; }
.final-escena { height: 1px; }
@media (prefers-reduced-transparency: reduce) { .panel { background: #1D0F33; -webkit-backdrop-filter: none; backdrop-filter: none; } }

.panel :is(h1, h2) {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  color: #fff;
  text-wrap: balance;
}
.panel :is(h1, h2) span { color: transparent; background: var(--grad-naranja); -webkit-background-clip: text; background-clip: text; }
.antetitulo { margin: 0 0 12px; font-size: var(--t-nota); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #FFC24D; }
.entrada { margin: 14px 0 0; font-size: var(--t-lead); line-height: 1.45; color: #E2D6F0; }
.panel .acciones { justify-content: flex-start; margin-top: 24px; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.boton-vidrio { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
@media (hover: hover) and (pointer: fine) { .boton-vidrio:hover { background: rgba(255, 255, 255, 0.18); } }

.cita { margin: 22px 0 0; padding-left: 18px; border-left: 3px solid #FC9F01; }
.cita blockquote { margin: 0; }
.cita p { margin: 0; font-weight: 500; font-size: var(--t-cuerpo); line-height: 1.6; color: #F6F1FB; }
.cita figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.cita figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #2B1145; }
.cita figcaption span { display: grid; line-height: 1.35; font-size: var(--t-ui); }
.cita figcaption a { color: #CDB8E6; font-size: var(--t-nota); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cita figcaption a:hover { color: #fff; text-decoration: underline; } }

.pasos { counter-reset: paso; display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.pasos li {
  counter-increment: paso;
  position: relative;
  padding: 16px 18px 16px 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pasos li::before {
  content: counter(paso);
  position: absolute; left: 18px; top: 12px;
  font-family: "Anton", Impact, sans-serif;
  font-size: 38px;
  line-height: 1;
  color: transparent;
  background: var(--grad-naranja);
  -webkit-background-clip: text; background-clip: text;
}
.pasos h3 { margin: 0 0 4px; font-size: var(--t-cuerpo); line-height: 1.25; font-weight: 800; }
.pasos p { margin: 0 0 8px; color: #D9CCE8; font-size: var(--t-ui); line-height: 1.5; }
.pasos a { font-weight: 700; font-size: var(--t-ui); color: #FFC24D; text-underline-offset: 4px; }


/* Conócelo: su recorrido en una lista corta con viñetas de estrella */
.texto { margin: 16px 0 0; font-size: var(--t-cuerpo); line-height: 1.6; color: #D9CCE8; }
.trayectoria { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.trayectoria li { position: relative; padding-left: 28px; font-weight: 600; font-size: var(--t-ui); line-height: 1.45; color: #F6F1FB; }
.trayectoria li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 17px; height: 17px;
  background: var(--grad-naranja);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-10 2.9-3.1 10.5-3.1 4.3 1.4 6.7 8.6 0 4.2-6.7 8.6-4.3 1.4-10.5-3.1-2.9-3.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-10 2.9-3.1 10.5-3.1 4.3 1.4 6.7 8.6 0 4.2-6.7 8.6-4.3 1.4-10.5-3.1-2.9-3.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Prioridades: tres tarjetas con una franja naranja */
.prioridades { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.prioridades li {
  position: relative;
  padding: 16px 18px 16px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.prioridades li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-naranja); }
.prioridades h3 { margin: 0 0 4px; font-size: var(--t-cuerpo); line-height: 1.25; font-weight: 800; }
.prioridades p { margin: 0; color: #D9CCE8; font-size: var(--t-ui); line-height: 1.5; }

/* Preguntas frecuentes: se abren con un toque (sin JavaScript) */
.preguntas { display: grid; gap: 10px; margin: 22px 0 0; }
.preguntas details { border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.preguntas summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  font-weight: 700; font-size: var(--t-ui); line-height: 1.35;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid #FFC24D; border-bottom: 2px solid #FFC24D;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.preguntas details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.preguntas details p { margin: 0; padding: 0 16px 15px; color: #D9CCE8; font-size: var(--t-ui); line-height: 1.55; }
.preguntas details[open] p { animation: respuesta 0.3s var(--ease-out); }
@keyframes respuesta { from { opacity: 0; transform: translateY(-4px); } }
.preguntas a { color: #FFC24D; font-weight: 700; text-underline-offset: 4px; }
.preguntas summary:focus-visible { outline: 3px solid var(--naranja-2); outline-offset: 2px; border-radius: 16px; }
@media (hover: hover) and (pointer: fine) { .preguntas summary:hover { color: #FFC24D; } }

/* Botón «Acerca de» en la barra: en el celular, donde no caben los enlaces (de vidrio, junto a «Únete») */
.boton-acerca { display: none; height: 42px; padding: 0 16px; font-size: var(--t-ui); background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45), 0 8px 22px -10px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.barra-lista .boton-acerca { animation: uneteEntra 0.6s var(--ease-out) 0.78s backwards; }
@media (max-width: 1119px) { .boton-acerca { display: inline-flex; } .barra { gap: 10px; } }
.navegacion a[aria-current="page"] { color: #FFC24D; }

/* Página «Acerca de»: la misma escena y los mismos paneles, con menos aire entre ellos para leer de corrido */
.subpagina .tramo-inicio { height: 58svh; }
.subpagina .panel { margin-bottom: 30svh; }
.subpagina .panel:last-of-type { margin-bottom: 36svh; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.etiquetas li { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 600; font-size: var(--t-nota); color: #F6F1FB; }
.dos-listas { display: grid; gap: 14px; margin: 22px 0 0; }
.dos-listas section { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.dos-listas h3 { margin: 0 0 10px; font-size: var(--t-cuerpo); font-weight: 800; }
.dos-listas section:last-child h3 { color: #FFC24D; }
.dos-listas ul { margin: 0; padding-left: 18px; color: #D9CCE8; font-size: var(--t-ui); line-height: 1.6; }

/* ── Pie ───────────────────────────────────────────────────────────────── */
.pie { position: relative; z-index: 2; padding: 48px max(6vw, 20px) calc(48px + env(safe-area-inset-bottom)); background: #0B0612; color: #B9AFC8; text-align: center; font-size: var(--t-nota); }
.pie p { margin: 4px 0; }
.pie-nombre { color: #fff; font-weight: 700; font-size: var(--t-ui); }
.pie-nombre b { color: var(--naranja-1); }
.pie-nota { margin-top: 14px !important; color: #A79DB8; }
.pie-autor { color: #A79DB8; }
.pie-redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 10px !important; }
.pie-redes a { color: #E2D6F0; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pie-redes a:hover { color: #FFC24D; } }

/* ── Tableta y celular ─────────────────────────────────────────────────── */
@media (max-width: 1119px) { .navegacion { display: none; } }
@media (max-width: 899px) {
  .navegacion { display: none; }
  .marca-texto { display: none; }
  .boton { height: 52px; padding: 0 22px; }
  .panel, .panel-ancho { width: auto; margin: 0 14px 54svh; border-radius: 26px; }
  .panel :is(h1, h2) { font-size: clamp(40px, 11vw, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
