/* La portada de getanyplay.com (index.html). Los colores y la letra son los de la app
   (app/shared/.../ui/Theme.kt); el resto de páginas usa styles.css. */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --brand: #FF3B47;
  --brand-deep: #D61F2C;
  --brand-soft: #FFE3E5;
  --sky: #7CC8FF;
  --sky-deep: #1E7BFF;
  --sun: #FFCB2F;
  --sun-deep: #F5A300;
  --grass: #22B864;
  --grape: #7C4DFF;
  --night: #121420;

  --ink: #1B1D29;
  --ink-soft: #3A3E52;
  --muted: #5F6478;
  --line: #E4E6EF;
  --canvas: #F5F6FA;
  --surface: #FFFFFF;
  --surface-alt: #EEF0F7;
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(27, 29, 41, .06), 0 12px 32px rgba(27, 29, 41, .08);
  --shadow-lg: 0 40px 100px rgba(27, 29, 41, .22);
  --glow: .5;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-soft: #3D2027;
    --ink: #ECEEF6;
    --ink-soft: #C9CDDB;
    --muted: #9EA4B8;
    --line: #2E3242;
    --canvas: #0F111A;
    --surface: #191C27;
    --surface-alt: #222634;
    --glass: rgba(20, 22, 32, .72);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 40px 100px rgba(0, 0, 0, .6);
    --glow: .3;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.015em; }
p { margin: 0; }
svg { flex: none; }
button, input { font: inherit; color: inherit; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 10px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), box-shadow .25s, background .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #FF5A5F, var(--brand) 45%, var(--brand-deep)); box-shadow: 0 10px 30px rgba(255, 59, 71, .38), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(255, 59, 71, .5), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.btn-light { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-soon { background: var(--surface-alt); color: var(--muted); cursor: default; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-soon:hover { transform: none; }

/* ---------- Cabecera ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface-alt); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-alt); }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 980px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 460px) { .nav-cta { display: none; } }

/* ---------- Portada ---------- */
.hero { position: relative; padding: 40px 0 72px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(80px); opacity: calc(var(--glow) * .8); }
.aurora i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.aurora .a1 { width: 520px; height: 520px; left: -6%; top: 0; background: var(--brand); }
.aurora .a2 { width: 460px; height: 460px; right: 4%; top: 6%; background: var(--sky-deep); animation-delay: -6s; }
.aurora .a3 { width: 380px; height: 380px; left: 40%; top: 40%; background: var(--sun); animation-delay: -11s; }
.aurora .a4 { width: 300px; height: 300px; right: 30%; top: -6%; background: var(--grape); animation-delay: -3s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.12); } 100% { transform: translate(-30px, 50px) scale(.94); } }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); opacity: .55; }

.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); text-decoration: none; }
.pill .tag { padding: 3px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pill svg { width: 14px; height: 14px; transition: transform .2s; }
.pill:hover svg { transform: translateX(3px); }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); font-weight: 700; margin: 22px 0 20px; letter-spacing: -.03em; }
.hl { background: linear-gradient(100deg, var(--brand) 0%, #FF7A45 30%, var(--sun-deep) 50%, var(--brand) 70%, var(--grape) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--grass); }

/* La escena: una TV con partidas de verdad, un móvil con la app y otro de mando. */
.stage { position: relative; aspect-ratio: 1.18; perspective: 1600px; }
.tv { position: absolute; left: 0; right: 4%; top: 6%; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, #2A2E3E, #0E1018);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.12); transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d; animation: floaty 9s ease-in-out infinite; }
.tv::after { content: ""; position: absolute; left: 36%; right: 36%; bottom: -26px; height: 16px; border-radius: 0 0 14px 14px; background: linear-gradient(#1A1D28, #0B0D14); }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: #000; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s ease; }
.screen img.on { opacity: 1; transform: scale(1); }
.screen .glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 38%); pointer-events: none; }
.screen .now { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(10, 12, 20, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600; }
.now .live { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(255,59,71,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,71,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,71,0); } }
.phone { position: absolute; width: 27%; aspect-ratio: 9 / 19.5; border-radius: 30px; padding: 7px; background: linear-gradient(160deg, #31354A, #0C0E15);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.14); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.phone.p1 { right: 0; bottom: 0; transform: rotate(6deg); animation: floaty2 8s ease-in-out infinite; }
.phone.p2 { left: 6%; bottom: -2%; width: 40%; aspect-ratio: 19.5 / 9; transform: rotate(-5deg); animation: floaty2 10s ease-in-out infinite reverse; }
.phone.p2 img { object-position: center; }
@keyframes floaty { 50% { transform: rotateY(-5deg) rotateX(2deg) translateY(-10px); } }
@keyframes floaty2 { 50% { translate: 0 -12px; } }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.chip .e { display: block; width: 26px; height: 26px; }
.chip .e img { width: 100%; height: 100%; }
.chip.c1 { left: -3%; top: 0; }
.chip.c2 { right: -2%; top: 46%; animation-delay: -2s; }
.chip.c3 { left: 44%; bottom: 3%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .stage { max-width: 620px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) { .chip.c2 { display: none; } .chip { font-size: 12px; padding: 7px 11px; } }

/* Números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.stat { padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stat span { color: var(--muted); font-size: 15px; }
.stat:nth-child(1) b { color: var(--brand); } .stat:nth-child(2) b { color: var(--sky-deep); } .stat:nth-child(3) b { color: var(--grass); } .stat:nth-child(4) b { color: var(--sun-deep); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cinta de juegos ---------- */
.marquee { padding: 18px 0 8px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: scrollx 70s linear infinite; padding: 8px 0; }
.track.rev { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .track { animation-play-state: paused; }
.track img { width: 256px; height: 144px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); transition: transform .3s; }
.track img:hover { transform: scale(1.05) rotate(-1deg); }
@keyframes scrollx { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .track img { width: 188px; height: 106px; border-radius: 12px; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--surface-alt); }
.head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.head h2, .split h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.025em; }
.head p { margin-top: 16px; font-size: 19px; color: var(--ink-soft); }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 52px; left: 16%; right: 16%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--sky-deep), var(--grass)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.6,0,.2,1) .3s; }
.steps.in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 12px; }
.num { position: relative; z-index: 1; display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto 22px; border-radius: 32px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.num small { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--brand); }
.step:nth-child(2) .num small { background: var(--sky-deep); } .step:nth-child(3) .num small { background: var(--grass); }
.num img { width: 70px; height: 70px; transition: transform .4s cubic-bezier(.2,.9,.3,1.6); }
.step:hover .num img { transform: scale(1.12) rotate(-6deg); }
.step h3 { font-size: 23px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 34px; } .steps::before { display: none; } }

/* Funciones: cuadrícula tipo bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), box-shadow .35s; isolation: isolate; }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.tile::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; opacity: .16; background: var(--c, var(--brand)); filter: blur(30px); transition: opacity .35s; }
.tile:hover::before { opacity: .3; }
.tile .ic { width: 64px; height: 64px; margin: -4px 0 14px -4px; }
.tile .ic img { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(27, 29, 41, .18)); transition: transform .4s cubic-bezier(.2,.9,.3,1.6); }
.tile:hover .ic img { transform: scale(1.1) rotate(-6deg); }
.tile h3 { font-size: 22px; margin-bottom: 8px; }
.tile p { color: var(--ink-soft); font-size: 16px; }
.t-wide { grid-column: span 3; } .t-third { grid-column: span 2; } .t-full { grid-column: span 6; }
.tile.media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding-right: 0; padding-bottom: 0; }
.tile.media img { align-self: end; width: 100%; max-height: 300px; object-fit: cover; object-position: top left; border-radius: 18px 0 0 0; box-shadow: var(--shadow); }
.tile.media.tall { grid-template-columns: 1fr; padding-right: 28px; }
.tile.media.tall img { border-radius: 18px 18px 0 0; max-height: 280px; width: 78%; margin-inline: auto; object-fit: cover; object-position: top; }
@media (max-width: 980px) { .t-wide, .t-third { grid-column: span 3; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .t-wide, .t-third, .t-full { grid-column: auto; } .tile.media { grid-template-columns: 1fr; padding-right: 28px; } .tile.media img { border-radius: 18px 18px 0 0; } }

/* Juegos */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -20px 0 34px; }
.tabs button { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--surface); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--canvas); box-shadow: none; }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transition: transform .35s cubic-bezier(.2,.9,.3,1.2), box-shadow .35s, opacity .3s; }
.game:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.game .cv { aspect-ratio: 16 / 9; overflow: hidden; }
.game .cv img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.game:hover .cv img { transform: scale(1.07); }
.game .bd { padding: 14px 16px 16px; }
.game h3 { font-size: 18px; }
.game p { font-size: 14px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.game .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.game .meta span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-alt); color: var(--ink-soft); }
.game[hidden] { display: none; }
.games-more { display: flex; justify-content: center; margin-top: 30px; }
.games.collapsed .game.extra { display: none; }
@media (max-width: 1040px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .games { grid-template-columns: repeat(2, 1fr); gap: 12px; } .game p { display: none; } .game .bd { padding: 10px 12px 12px; } .game h3 { font-size: 15px; } }

/* Recorrido de la app */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(72px, 9vw, 120px); }
.split.flip .copy { order: 2; }
.copy h2 { margin: 6px 0 16px; font-size: clamp(30px, 3.8vw, 46px); }
.copy > p { font-size: 18px; color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.shot { position: relative; }
.shot .frame { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); border: 8px solid #1A1D28; }
.shot .frame img { width: 100%; }
.shot .float { position: absolute; width: 34%; right: -4%; bottom: -10%; border-radius: 22px; overflow: hidden; border: 6px solid #1A1D28; box-shadow: var(--shadow-lg); animation: floaty2 7s ease-in-out infinite; }
.shot .float img { width: 100%; }
.shot.phoneonly { max-width: 330px; margin-inline: auto; }
.shot.phoneonly .frame { border-radius: 40px; border-width: 9px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .copy { order: 0; } .shot .float { right: 2%; } }

/* Familia */
.family { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fam { padding: 24px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fam .e { display: block; width: 56px; height: 56px; }
.fam .e img { width: 100%; height: 100%; filter: drop-shadow(0 5px 8px rgba(27, 29, 41, .16)); }
.fam h3 { font-size: 19px; margin: 12px 0 6px; }
.fam p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 980px) { .family { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .family { grid-template-columns: 1fr; } }

/* ---------- Programa beta ---------- */
.beta { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(32px, 6vw, 72px); color: #fff; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, #FF5A5F 0%, var(--brand) 25%, #B3132A 55%, #3A1060 100%); box-shadow: 0 40px 100px rgba(214, 31, 44, .35); }
.beta::before, .beta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.beta::before { width: 420px; height: 420px; right: -80px; top: -120px; background: var(--sun); }
.beta::after { width: 360px; height: 360px; left: 30%; bottom: -200px; background: var(--sky-deep); animation-delay: -7s; }
.beta-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.beta .eyebrow { color: #FFE08A; }
.beta h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.025em; }
.beta .sub { margin-top: 16px; font-size: 19px; color: rgba(255,255,255,.88); }
.perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks .e { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: rgba(255,255,255,.16); }
.perks .e img { width: 38px; height: 38px; }
.perks b { display: block; }
.perks span { color: rgba(255,255,255,.8); font-size: 15px; }
.signup { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: rgba(255,255,255,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.signup h3 { font-size: 24px; }
.signup > p { color: rgba(255,255,255,.82); margin-top: 6px; font-size: 15px; }
.field { display: flex; gap: 8px; margin-top: 20px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 16px; font-size: 17px; color: #1B1D29; }
.field input::placeholder { color: #8A90A6; }
.field .btn { min-height: 50px; white-space: nowrap; }
.field:focus-within { box-shadow: 0 0 0 4px rgba(255, 224, 138, .7), 0 10px 30px rgba(0,0,0,.2); }
.devices { border: 0; margin: 18px 0 0; padding: 0; }
.devices legend { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 10px; padding: 0; }
.devices .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.devices label { cursor: pointer; }
.devices input { position: absolute; opacity: 0; pointer-events: none; }
.devices span svg { width: 16px; height: 16px; }
.devices span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); transition: all .2s; }
.devices input:checked + span { background: #fff; color: var(--brand-deep); box-shadow: none; }
.devices input:focus-visible + span { outline: 3px solid #FFE08A; outline-offset: 2px; }
.consent { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.75); }
.consent a { color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 22px; margin-top: 12px; font-size: 15px; font-weight: 600; color: #FFE08A; }
.done { display: none; text-align: center; padding: 18px 6px; }
.done .big { width: 96px; margin: 0 auto; animation: pop .6s cubic-bezier(.2,.9,.3,1.6); }
.done h3 { margin-top: 8px; }
.done p { color: rgba(255,255,255,.85); margin-top: 8px; }
.join-steps { margin: 14px 0 18px 20px; display: grid; gap: 8px; color: rgba(255,255,255,.9); }
.signup .consent { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.75); }
@keyframes pop { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.confetti i { position: absolute; top: -10px; width: 9px; height: 14px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(520px) rotate(720deg); opacity: 0; } }
@media (max-width: 900px) { .beta-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .field { flex-direction: column; border-radius: 22px; } .field input { min-height: 48px; } }

/* ---------- Descargas ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl { text-align: center; padding: 30px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.dl .os { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--surface-alt); }
.dl .os svg { width: 32px; height: 32px; }
.dl h3 { font-size: 22px; }
.dl p { color: var(--muted); margin: 4px 0 18px; font-size: 15px; }
.stores { margin-top: 26px; text-align: center; }
.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.store { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 16px; background: var(--ink); color: var(--canvas); text-decoration: none; opacity: .92; }
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.15; }
.store[aria-disabled="true"]::after { content: attr(data-soon); position: absolute; top: -9px; right: -8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--sun); color: #1B1D29; }
.stores-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.dl-beta { margin-top: 26px; text-align: center; color: var(--ink-soft); }
.dl-beta a { color: var(--brand); font-weight: 600; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-alt); font-size: 22px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Cierre y pie ---------- */
.final { text-align: center; }
.final .logo { width: 110px; margin: 0 auto 18px; animation: floaty2 6s ease-in-out infinite; }
.final h2 { font-size: clamp(34px, 5vw, 62px); max-width: 15em; margin: 0 auto; letter-spacing: -.03em; }
.final .cta-row { justify-content: center; }
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot-row p { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.brand.sm { font-size: 17px; } .brand.sm img { width: 32px; }

/* ---------- Aparecer al bajar ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
