/*
 * La hora Q · landing. Colores de la app (apps/mobile/src/theme/tokens.ts, validados AA):
 * blanco sobre las tres paradas del degradado ≥ 5,7:1; textos oscuros sobre blanco ≥ 7:1.
 * Estilo de la pantalla de compartir: anillos de plató, píldora amarilla, cifras enormes y la
 * «entrada» blanca con perforación.
 */
:root {
  --g1: #2b4be0;
  --g2: #7c3aed;
  --g3: #a21caf;
  --gradient: linear-gradient(100deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --gradient-diag: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --deep: #120a2e;
  --deep-2: #1e1146;
  --on-gradient: #ffffff;
  --on-gradient-muted: #e0e7ff;
  --text: #101828;
  --text-muted: #475467;
  --surface: #f5f3ff;
  --card: #ffffff;
  --border: #7c8799;
  --hairline: #e4e7ec;
  --primary: #3730a3;
  --highlight: #fde68a;
  --on-highlight: #78350f;
  --live: #be123c;
  --correct: #047857;
  --correct-surface: #d1fae5;
  --on-correct-surface: #065f46;
  --podium: #e0e7ff;
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow: 0 30px 60px -20px rgba(30, 10, 80, 0.45), 0 12px 24px -12px rgba(30, 10, 80, 0.35);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 900;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
}
.skip-link:focus {
  top: 12px;
}

.gradient {
  background: var(--gradient);
  color: var(--on-gradient);
}

.deep {
  background: radial-gradient(120% 90% at 85% 10%, #3b1a8a 0%, var(--deep-2) 40%, var(--deep) 100%);
  color: var(--on-gradient);
}

/* ------------------------------------------------------------------ anillos de plató */
.rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.rings span {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  right: -12vw;
  top: 50%;
  translate: 0 -50%;
}
.rings span:nth-child(1) {
  width: 70vw;
  height: 70vw;
  max-width: 980px;
  max-height: 980px;
}
.rings span:nth-child(2) {
  width: 48vw;
  height: 48vw;
  max-width: 680px;
  max-height: 680px;
  right: -1vw;
  border-color: rgba(255, 255, 255, 0.22);
}
.rings span:nth-child(3) {
  width: 26vw;
  height: 26vw;
  max-width: 380px;
  max-height: 380px;
  right: 10vw;
  border-color: rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}
.rings-left span {
  left: -20vw;
  right: auto;
}
.rings-card span:nth-child(1) {
  width: 300px;
  height: 300px;
  right: -130px;
  top: 40%;
}
.rings-card span:nth-child(2) {
  width: 190px;
  height: 190px;
  right: -75px;
  top: 40%;
}

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
}
.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.8rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stores-center {
  justify-content: center;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 24px 10px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6);
}
.store svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store span {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.store small {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.store.is-preferred {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ píldoras y etiquetas */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--highlight);
  color: var(--on-highlight);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
}
.live-pill-small {
  font-size: 0.68rem;
  padding: 4px 10px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(190, 18, 60, 0.6);
  animation: pulse 1.8s ease-out infinite;
}
.is-live .live-pill {
  background: #fff;
  color: var(--live);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow-light {
  color: var(--highlight);
}

/* ------------------------------------------------------------------ cabecera */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(43, 20, 120, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.4);
}
.nav-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}
.nav-sep {
  opacity: 0.6;
}
.nav-clock,
[data-clock-compact] {
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  flex: none;
}

/* ------------------------------------------------------------------ portada */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 56px) 0 40px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  text-wrap: balance;
  margin: 22px 0 22px;
  letter-spacing: -0.045em;
}
.h1-accent {
  color: var(--highlight);
}
.lead strong {
  color: #fff;
  font-weight: 800;
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--on-gradient-muted);
  max-width: 34em;
  font-weight: 500;
}

.countdown {
  margin: 32px 0 28px;
}
.countdown-label {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.tiles {
  display: flex;
  gap: 10px;
}
.tile {
  min-width: 92px;
  padding: 12px 12px 10px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}
.tile span {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.tile small {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-gradient-muted);
}
.countdown.is-live .tiles {
  display: none;
}
.live-now {
  display: none;
  font-size: 2rem;
  font-weight: 900;
}
.countdown.is-live .live-now {
  display: block;
}

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--on-gradient-muted);
}
.perks li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--highlight);
  font-weight: 900;
}

.hero-note {
  position: relative;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--on-gradient-muted);
}

/* teléfono */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 640 / 1391;
  border-radius: 46px;
  padding: 10px;
  background: #0b0b12;
  box-shadow: var(--shadow), inset 0 0 0 2px #2b2b38;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
}
.phone::after {
  /* isla dinámica */
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  width: 30%;
  height: 22px;
  border-radius: 999px;
  background: #0b0b12;
}

.hero-visual {
  position: relative;
  justify-self: center;
  padding: 10px 40px;
}
.phone-hero {
  width: min(330px, 74vw);
  rotate: 3deg;
  animation: float 7s ease-in-out infinite;
}
.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  background: #fff;
  color: var(--live);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.45);
}
.chip-points {
  color: var(--text);
  font-size: 0.9rem;
  top: 16%;
  left: -6px;
  animation: float 6s ease-in-out -2s infinite;
}
.chip-correct {
  top: 54%;
  right: -10px;
  background: var(--correct-surface);
  color: var(--on-correct-surface);
  border: 2px solid var(--correct);
  animation: float 6.5s ease-in-out -4s infinite;
}
.chip-correct span {
  color: var(--correct);
}
.chip-rank {
  bottom: 18%;
  left: -24px;
  background: var(--highlight);
  color: var(--on-highlight);
  animation: float 6s ease-in-out infinite;
}

/* entrada (como en la imagen de compartir) */
.ticket {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.ticket-eyebrow {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticket-when {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.perforation {
  height: 2px;
  margin: 10px 0;
  background: repeating-linear-gradient(90deg, var(--border) 0 7px, transparent 7px 13px);
}
.ticket-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ticket-float {
  position: absolute;
  z-index: 2;
  bottom: 6%;
  left: -40px;
  width: 270px;
  rotate: -4deg;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.5);
  animation: float 8s ease-in-out -1s infinite;
}

/* ------------------------------------------------------------------ marquesina */
.marquee {
  display: flex;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  padding: 18px 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  flex: none;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 48s linear infinite;
}
.marquee-track li {
  flex: none;
  padding: 0 26px;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-track li::after {
  content: '?';
  margin-left: 52px;
  color: var(--highlight);
}

/* ------------------------------------------------------------------ secciones */
.section {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0;
}
.section h2 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  letter-spacing: -0.04em;
}
.h2-accent {
  color: var(--highlight);
}
.section-lead {
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 40em;
}

/* cómo funciona */
.how {
  background: var(--surface);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-top: 48px;
}
.how-grid-tight {
  margin-top: 36px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 10px 30px -18px rgba(55, 48, 163, 0.45);
}
.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-diag);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
}
.step h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.step p {
  color: var(--text-muted);
}
.how-phones {
  position: relative;
  height: 640px;
}
.how-phones .phone {
  position: absolute;
  width: 280px;
}
.phone-back {
  left: 6%;
  top: 0;
  rotate: -6deg;
  opacity: 0.95;
}
.phone-front {
  right: 4%;
  top: 60px;
  rotate: 4deg;
}

/* FOMO */
.fomo-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.fomo-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 40px;
  display: grid;
  gap: 18px;
}
.fomo-list li {
  padding-left: 22px;
  border-left: 3px solid var(--highlight);
  color: var(--on-gradient-muted);
  font-size: 1.1rem;
}
.fomo-list strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.fomo-visual {
  position: relative;
  justify-self: center;
}
.fomo-visual .phone {
  width: 300px;
  rotate: -3deg;
}

/* juego limpio */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #fff;
  border: 1.5px solid var(--hairline);
  box-shadow: 0 14px 34px -24px rgba(16, 24, 40, 0.4);
}
.card h3 {
  font-size: 1.35rem;
  margin: 18px 0 8px;
  letter-spacing: -0.02em;
}
.card p {
  color: var(--text-muted);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--podium);
}
.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* compartir */
.share-section {
  background: var(--surface);
}
.share-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.share-visual {
  justify-self: center;
}
.share-card {
  position: relative;
  overflow: hidden;
  width: min(360px, 86vw);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  padding: 30px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  background: var(--gradient-diag);
  rotate: -2deg;
}
.share-card > * {
  position: relative;
}
.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sc-date {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--on-gradient-muted);
}
.sc-player {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-player strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
}
.sc-player small {
  color: var(--on-gradient-muted);
  font-weight: 600;
  font-size: 0.85rem;
}
.sc-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--podium);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.3rem;
}
.sc-big {
  display: block;
  font-size: 8.4rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.sc-sub {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-gradient-muted);
}
.sc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sc-stats span {
  border: 1.5px solid var(--on-gradient-muted);
  border-radius: 12px;
  padding: 8px 10px;
}
.sc-stats b {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
}
.sc-stats small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--on-gradient-muted);
}
.sc-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--on-gradient-muted);
}
.sc-footer b {
  color: #fff;
  font-weight: 900;
}
.share-card .ticket-when {
  font-size: 1.3rem;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
  font-weight: 700;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.checks li::before {
  content: '✓';
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--correct-surface);
  color: var(--correct);
  font-weight: 900;
}

/* presentador y accesibilidad */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.duo-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 4vw, 48px);
}
.duo-card > * {
  position: relative;
}
.duo-card h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 16px;
}
.duo-card.gradient p {
  color: var(--on-gradient-muted);
  font-size: 1.1rem;
}
.duo-card.light {
  background: var(--surface);
}
.duo-card.light p {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.duo-card blockquote {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}
.duo-card blockquote::before {
  content: '';
  position: absolute;
  left: 28px;
  top: -10px;
  border: 10px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.tags li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
}

/* preguntas frecuentes */
.faq-wrap {
  max-width: 820px;
}
.faq-list {
  margin-top: 40px;
  border-top: 1.5px solid var(--hairline);
}
.faq details {
  border-bottom: 1.5px solid var(--hairline);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  min-height: 48px;
  font-weight: 800;
  font-size: 1.2rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  /* El «+» dibujado con dos barras: el carácter queda descentrado según la tipografía. */
  content: '';
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background:
    linear-gradient(var(--primary), var(--primary)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 2.5px 14px no-repeat;
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  padding: 0 4px 24px;
  color: var(--text-muted);
  max-width: 40em;
}

/* cierre */
.final {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 140px) 0;
  text-align: center;
}
.final-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.final-icon {
  border-radius: 24px;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6);
}
.final h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.045em;
}
.final .lead {
  margin: 0 auto;
}
.tiles-final {
  justify-content: center;
  margin: 8px 0 12px;
}

/* pie */
.footer {
  background: var(--deep);
  color: var(--on-gradient-muted);
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-dark {
  color: #fff;
  font-size: 1rem;
}
.brand-dark img {
  border-radius: 8px;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer nav a {
  text-decoration: none;
  font-weight: 700;
  padding: 12px 0;
}
.footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* barra fija (solo móvil) */
.sticky-cta {
  display: none;
}

/* ------------------------------------------------------------------ animaciones */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(190, 18, 60, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(190, 18, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(190, 18, 60, 0);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    translate: 0 0;
  }
  .marquee {
    flex-wrap: wrap;
  }
  .marquee-track[aria-hidden='true'] {
    display: none;
  }
}

/* ------------------------------------------------------------------ pantallas pequeñas */
@media (max-width: 960px) {
  .hero-grid,
  .how-grid,
  .fomo-grid,
  .share-grid,
  .duo-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 32px);
  }
  .hero-visual {
    margin-top: 12px;
  }
  .how-phones {
    height: 560px;
  }
  .how-phones .phone {
    width: 240px;
  }
  .share-visual {
    order: -1;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .nav-next {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .nav .btn {
    display: none;
  }
  .tile {
    min-width: 0;
    flex: 1;
  }
  .tile span {
    font-size: 2.1rem;
  }
  .store {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hero-visual {
    padding: 10px 16px;
  }
  .float-chip {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  .chip-points {
    left: 0;
  }
  .chip-correct {
    right: 0;
  }
  .ticket-float {
    left: 0;
    width: 230px;
  }
  .ticket-float .ticket-when {
    font-size: 1.2rem;
  }
  .how-phones {
    height: 470px;
  }
  .how-phones .phone {
    width: 200px;
  }
  .phone-back {
    left: 0;
  }
  .phone-front {
    right: 0;
  }
  .fomo-visual .phone {
    width: 260px;
  }
  .chip-rank {
    left: -8px;
  }
  .sc-big {
    font-size: 6.6rem;
  }
  .sticky-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(18, 10, 46, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    translate: 0 110%;
    transition: translate 0.3s ease;
  }
  .sticky-cta.is-visible {
    translate: 0 0;
  }
  .sticky-cta p {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* ------------------------------------------------------------------ páginas legales */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 0 136px;
}
.legal-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}
.legal-title {
  position: relative;
  margin-top: 48px;
}
.legal-title h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
}
.legal-updated {
  margin-top: 14px;
  color: var(--on-gradient-muted);
  font-weight: 600;
}
.legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas:
    'summary summary'
    'toc body';
  gap: 40px 56px;
  padding: 48px 0 96px;
}
.legal-summary {
  grid-area: summary;
  /* Las fichas suben sobre el degradado de la cabecera, como la «entrada» de la imagen de compartir. */
  margin-top: -88px;
  position: relative;
}
.legal-summary-title {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 14px;
}
.summary-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.summary-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border-radius: 20px;
  padding: 20px 20px 22px;
  box-shadow: 0 18px 40px -22px rgba(30, 10, 80, 0.55), 0 0 0 1.5px var(--hairline);
}
.summary-tile strong {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.summary-tile span:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.legal-toc {
  grid-area: toc;
  align-self: start;
  position: sticky;
  top: 24px;
}
.legal-toc ol {
  margin: 0;
  padding: 0 0 0 1.4em;
  display: grid;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.legal-toc a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.legal-toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.legal-body {
  grid-area: body;
  max-width: 760px;
}
.legal-body section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1.5px solid var(--hairline);
  scroll-margin-top: 24px;
}
.legal-body h2 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.legal-body h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
}
.legal-body p,
.legal-body li {
  color: #344054;
}
.legal-body p + p {
  margin-top: 12px;
}
.legal-body ul {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.legal-body a,
.legal-also a {
  color: var(--primary);
  font-weight: 700;
}
.legal-data {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
}
.legal-data dt {
  font-weight: 800;
}
.legal-data dd {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-md);
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.legal-body th,
.legal-body td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.legal-body th {
  background: var(--surface);
  font-weight: 800;
  color: var(--text);
}
.legal-body tr:last-child td {
  border-bottom: 0;
}
.legal-also {
  font-weight: 600;
}
.legal-page .footer nav a[aria-current='page'] {
  color: #fff;
}

@media (max-width: 860px) {
  .legal {
    grid-template-columns: 1fr;
    grid-template-areas:
      'summary'
      'toc'
      'body';
    gap: 28px;
  }
  .summary-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-toc {
    position: static;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px 20px;
  }
}
@media (max-width: 640px) {
  .legal-page {
    padding-bottom: 0;
  }
  .legal-nav .btn {
    display: inline-flex;
  }
  .summary-tiles {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .summary-tile {
    gap: 4px;
    padding: 16px 18px;
  }
  .legal-data {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .legal-data dd {
    margin-bottom: 10px;
  }
}

/* ---------------------------------------------------------------- 404 */
.legal-hero.not-found {
  padding-bottom: 96px;
  min-height: calc(100vh - 110px);
}
.not-found-actions {
  margin-top: 28px;
}
