
:root {
  --fondo: #0b1020;
  --fondo-2: #10172d;
  --superficie: rgba(255, 255, 255, 0.045);
  --borde: rgba(255, 255, 255, 0.10);
  --texto: #eef1f8;
  --suave: #a9b2c8;
  --oro: #f5b544;
  --oro-2: #ffd88a;
  --menta: #3dd9c1;
  --violeta: #7c6cff;
  --radio: 20px;
  --ancho: 1120px;
  --letra: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --letra-num: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--letra);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  /* clip y no hidden: no crea un contenedor de desplazamiento y en iOS sí frena el corrimiento lateral. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px; background: var(--oro); color: var(--fondo);
  font-weight: 700; text-decoration: none;
}
.saltar:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--oro-2); outline-offset: 3px; border-radius: 6px; }

/* Encabezado */
.encabezado {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--ancho); margin: 0 auto; padding: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11, 16, 32, 0.85), rgba(11, 16, 32, 0.55));
}
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -0.01em; }
.marca em { font-style: normal; color: var(--oro); }
.marca__icono { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 0.95rem; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--suave); transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--texto); background: var(--superficie); }
.nav .nav__cta { color: var(--fondo); background: var(--oro); font-weight: 700; }
.nav .nav__cta:hover { color: var(--fondo); background: var(--oro-2); }

/* Portada */
.portada {
  position: relative; isolation: isolate;
  /* La aurora se sale de la sección a propósito; que nunca dé desplazamiento lateral en el teléfono. */
  overflow-x: clip;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
  max-width: var(--ancho); margin: 0 auto; padding: 72px 16px 96px;
}
.portada__texto > * { animation: subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.portada__texto > :nth-child(2) { animation-delay: 0.08s; }
.portada__texto > :nth-child(3) { animation-delay: 0.16s; }
.portada__texto > :nth-child(4) { animation-delay: 0.24s; }
.portada__entrada { font-size: 1.2rem; color: var(--suave); max-width: 36em; }
.resaltado {
  background: linear-gradient(100deg, var(--oro) 10%, var(--oro-2) 45%, var(--menta) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: brillo 8s ease-in-out infinite alternate;
}
.etiqueta {
  display: inline-block; margin-bottom: 1em;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--menta);
}

.aurora { position: absolute; inset: -10% -20% 0; z-index: -1; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.aurora span { position: absolute; border-radius: 50%; animation: derivar 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 42vmax; height: 42vmax; left: 45%; top: -10%; background: radial-gradient(circle, rgba(124, 108, 255, 0.55), transparent 65%); }
.aurora span:nth-child(2) { width: 36vmax; height: 36vmax; left: 65%; top: 25%; background: radial-gradient(circle, rgba(61, 217, 193, 0.38), transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30vmax; height: 30vmax; left: 5%; top: 40%; background: radial-gradient(circle, rgba(245, 181, 68, 0.28), transparent 65%); animation-duration: 32s; animation-delay: -12s; }

.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.boton:hover { transform: translateY(-2px); }
.boton--primario { color: var(--fondo); background: var(--oro); box-shadow: 0 10px 30px -10px rgba(245, 181, 68, 0.7); }
.boton--primario:hover { background: var(--oro-2); }
.boton--secundario { border: 1px solid var(--borde); background: var(--superficie); }
.boton--secundario:hover { background: rgba(255, 255, 255, 0.09); }

/* Boleto de muestra */
.portada__visual { position: relative; display: grid; place-items: center; min-height: 360px; animation: aparecer 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.boleto {
  position: relative; width: min(100%, 360px); padding: 26px;
  border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(245, 181, 68, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: flotar 7s ease-in-out infinite;
}
.boleto::before, .boleto::after {
  content: ""; position: absolute; top: 58%; width: 22px; height: 22px; border-radius: 50%; background: var(--fondo);
}
.boleto::before { left: -11px; }
.boleto::after { right: -11px; }
.boleto__cabeza { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 26px; font-size: 0.78rem; font-weight: 700; }
.boleto__chip { padding: 4px 10px; border-radius: 999px; background: rgba(124, 108, 255, 0.22); color: #cfc8ff; }
.boleto__ok { padding: 4px 10px; border-radius: 999px; background: rgba(61, 217, 193, 0.16); color: var(--menta); }
.boleto__rotulo { margin: 0 0 6px; font-size: 0.85rem; color: var(--suave); }
.boleto__numero { display: flex; gap: 8px; margin: 0 0 26px; font-family: var(--letra-num); font-size: 3rem; font-weight: 700; line-height: 1; }
.boleto__numero span {
  display: grid; place-items: center; width: 1.25em; height: 1.45em; border-radius: 14px;
  background: rgba(11, 16, 32, 0.55); border: 1px solid var(--borde); color: var(--oro-2);
  animation: latir 4.8s ease-in-out infinite;
}
.boleto__numero span:nth-child(2) { animation-delay: 0.3s; }
.boleto__numero span:nth-child(3) { animation-delay: 0.6s; }
.boleto__numero span:nth-child(4) { animation-delay: 0.9s; }
.boleto__pie {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, 0.18); font-size: 0.8rem; color: var(--suave);
}
.boleto__qr {
  width: 44px; height: 44px; flex: none; border-radius: 8px;
  background:
    conic-gradient(from 90deg at 30% 30%, var(--texto) 25%, transparent 0) 0 0 / 11px 11px,
    rgba(255, 255, 255, 0.06);
  opacity: 0.8;
}
.flotante {
  position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 0.85rem; font-weight: 700;
  border: 1px solid var(--borde); background: rgba(16, 23, 45, 0.85);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9);
  animation: flotar 9s ease-in-out infinite;
}
.flotante::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--menta); vertical-align: middle; }
.flotante--a { top: 6%; right: -2%; animation-delay: -2s; }
.flotante--b { bottom: 4%; left: -4%; animation-delay: -5s; }
.flotante--b::before { background: var(--oro); }

/* Secciones */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: 88px 16px; }
.seccion__entrada { font-size: 1.15rem; color: var(--suave); max-width: 40em; }
.seccion--banda {
  max-width: none;
  background: linear-gradient(180deg, transparent, var(--fondo-2) 18%, var(--fondo-2) 82%, transparent);
}
.seccion--banda > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 40px; }
.tarjeta {
  position: relative; padding: 26px; border-radius: var(--radio);
  border: 1px solid var(--borde); background: var(--superficie);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.tarjeta:hover { transform: translateY(-4px); border-color: rgba(245, 181, 68, 0.45); background: rgba(255, 255, 255, 0.07); }
.tarjeta p { margin: 0; color: var(--suave); }
.tarjeta__icono {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; color: var(--oro); background: rgba(245, 181, 68, 0.12);
}
.tarjeta__icono svg { width: 24px; height: 24px; }

.pasos { counter-reset: paso; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; margin-top: 40px; }
.paso { counter-increment: paso; position: relative; padding: 26px; border-radius: var(--radio); border: 1px solid var(--borde); background: rgba(11, 16, 32, 0.6); }
.paso::before {
  content: counter(paso, decimal-leading-zero);
  display: block; margin-bottom: 14px; font-family: var(--letra-num); font-size: 1.9rem; font-weight: 700;
  background: linear-gradient(120deg, var(--oro), var(--menta)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.paso p { margin: 0; color: var(--suave); }

.columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lista { list-style: none; padding: 0; margin: 24px 0 0; }
.lista li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.lista li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, var(--menta) 35%, rgba(61, 217, 193, 0.18) 40%);
}
.destacado {
  padding: 32px; border-radius: 26px; border: 1px solid var(--borde);
  background: radial-gradient(120% 120% at 100% 0%, rgba(124, 108, 255, 0.18), transparent 55%), var(--superficie);
}
.destacado p { color: var(--suave); }
.destacado p:last-child { margin-bottom: 0; }

.contacto { text-align: center; }
.contacto h2 { margin-bottom: 0.4em; }
.contacto__texto { font-size: 1.2rem; color: var(--suave); }

.no-encontrada { min-height: 60vh; }

.pie {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  max-width: var(--ancho); margin: 0 auto; padding: 32px 16px 48px;
  border-top: 1px solid var(--borde); font-size: 0.9rem; color: var(--suave);
}
.pie p { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.pie .marca__icono { width: 22px; height: 22px; }

/* Movimiento */
/* El texto de la portada solo se desliza, sin fundido: se lee desde el primer cuadro aunque la
   animación se retrase (pestaña en segundo plano, equipo lento). */
@keyframes subir { from { transform: translateY(14px); } to { transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes derivar { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 8%, 0) scale(1.12); } }
@keyframes brillo { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes latir { 0%, 70%, 100% { box-shadow: 0 0 0 rgba(245, 181, 68, 0); } 80% { box-shadow: 0 0 22px rgba(245, 181, 68, 0.35); } }
@keyframes revelar { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Aparición al desplazarse, solo donde el navegador lo admite (sin JS). */
@supports (animation-timeline: view()) {
  .revelar { animation: revelar linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}

@media (max-width: 860px) {
  .portada { grid-template-columns: 1fr; padding-top: 40px; gap: 56px; }
  .columnas { grid-template-columns: 1fr; }
  .flotante--a { right: 0; }
  .flotante--b { left: 0; }
}

@media (max-width: 640px) {
  .nav a:not(.nav__cta) { display: none; }
  .seccion { padding: 64px 16px; }
  .boleto__numero { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
