/* playpasskids.valladares.org — siempre en blanco, con los colores de la app:
   rosa #FF4F8B → naranja #FF8A3D, amarillo #FFC233 y morado de acento. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(../fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --pink: #ff4f8b;
  --pink-600: #e63a76;
  --orange: #ff8a3d;
  --yellow: #ffc233;
  --purple: #7c5cff;
  --teal: #14b8a6;
  --blue: #3b82f6;
  --grad: linear-gradient(120deg, #ff4f8b 0%, #ff6a64 45%, #ff8a3d 100%);
  --grad-soft: linear-gradient(120deg, #fff0f5, #fff4ec);
  --bg: #ffffff;
  --soft: #fff7f9;
  --ink: #1d1b2e;
  --ink-2: #4b4860;
  --ink-3: #7a7790;
  --line: #f1e6ec;
  --card: #ffffff;
  --shadow: 0 2px 4px rgba(255, 79, 139, .05), 0 14px 34px rgba(80, 40, 90, .08);
  --shadow-lg: 0 30px 70px -24px rgba(255, 79, 139, .45);
  --radius: 22px;
  --wrap: 1160px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
          "Noto Sans Devanagari", "Nirmala UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; font-weight: 900; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.16rem; font-weight: 800; }
.h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted, .fine { color: var(--ink-3); font-size: .9rem; }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 720px; }
.center .lead, .sec-head.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: .8em; padding: 6px 14px; border-radius: 999px; background: var(--grad-soft); color: var(--pink-600); font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; }
.ic-xs { width: 12px; height: 12px; opacity: .55; }
.flip { transform: scaleX(-1); }

/* Botones */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 800 1rem var(--font); border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; text-decoration: none !important; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px rgba(255, 79, 139, .7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-600); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Tiendas */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.stores-center { justify-content: center; }
.store { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-width: 190px; padding: 10px 20px 10px 15px; border-radius: 16px; background: #15131f; color: #fff; border: 1px solid #15131f; transition: transform .15s, box-shadow .2s; text-decoration: none !important; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .7rem; opacity: .85; font-weight: 600; }
.store b { font-size: 1.22rem; font-weight: 800; }
.store-ic { width: 28px; height: 28px; }
.store.is-soon { background: #fff; color: var(--ink-2); border: 2px dashed #d9d2e3; cursor: default; }
.store.is-soon em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--purple); padding: 2px 7px; border-radius: 999px; }
.stores-sm .store { min-width: 0; padding: 8px 14px 8px 11px; border-radius: 12px; }
.stores-sm .store b { font-size: 1rem; }
.stores-sm .store-ic { width: 22px; height: 22px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(80, 40, 90, .35); }
.top-inner { display: flex; align-items: center; gap: 16px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em; text-decoration: none !important; }
.brand img { border-radius: 10px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { color: var(--ink-2); font-weight: 800; font-size: .96rem; padding: 8px 12px; border-radius: 12px; }
.nav > a:not(.btn):hover, .nav > a[aria-current] { color: var(--pink-600); background: #fff0f5; text-decoration: none; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }
.nav-burger { display: none; margin-left: auto; padding: 8px; cursor: pointer; color: var(--ink); }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 10px; border-radius: 12px; color: var(--ink-2); font-weight: 800; font-size: .94rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: #fff0f5; color: var(--pink-600); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 170px; z-index: 60; }
.lang li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 700; }
.lang li a:hover { background: #fff0f5; text-decoration: none; }
.lang li a[aria-current] { color: var(--pink-600); font-weight: 900; }
.flag { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: none; }
.flag svg { width: 100%; height: 100%; display: block; }
@media (max-width: 940px) {
  .nav-burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav > a:not(.btn) { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .lang ul { position: static; box-shadow: none; margin-top: 4px; }
}

.lang-hint { background: #1d1b2e; color: #fff; font-size: .94rem; }
.lang-hint-inner { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.lang-hint-inner > span:not(.flag) { flex: 1; }
.lang-hint-x { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; opacity: .7; }

/* Hero */
.hero { position: relative; padding: 46px 0 30px; overflow: hidden; background: radial-gradient(60% 70% at 85% 10%, #ffe3ee 0%, rgba(255, 227, 238, 0) 70%), radial-gradient(50% 60% at 0% 100%, #fff1e2 0%, rgba(255, 241, 226, 0) 70%), #fff; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy .lead strong { color: var(--ink); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 800; font-size: .9rem; box-shadow: 0 4px 12px -8px rgba(80, 40, 90, .3); }
.chips .ic { color: var(--teal); }
.hero-visual { position: relative; height: 610px; }
.hero-visual-sm { height: 520px; }
.blob { position: absolute; inset: 6% 4% 4% 12%; background: var(--grad); border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; opacity: .9; animation: morph 14s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; transform: rotate(0deg); } 50% { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; transform: rotate(8deg); } }
.device { position: absolute; width: 270px; border-radius: 42px; padding: 10px; background: #15131f; box-shadow: 0 40px 80px -30px rgba(60, 20, 70, .6), inset 0 0 0 2px #2c2a3a; transition: transform .25s ease-out; }
.device img { border-radius: 33px; width: 100%; aspect-ratio: 540 / 1200; object-fit: cover; }
.device-front { left: 12%; top: 18px; transform: rotate(-4deg); z-index: 2; }
.hero-visual-sm .device-front { left: 22%; }

/* Panel "Jugando ahora" */
.live { position: absolute; z-index: 3; right: -2%; bottom: 26px; width: 300px; padding: 16px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.live-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 900; font-size: .9rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.live-row { position: relative; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; transition: background .3s; }
.live-row + .live-row { margin-top: 4px; }
.ring { position: relative; width: 42px; height: 42px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: #f3e9f0; }
.ring-fg { stroke: var(--pink); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke .3s; }
.ring i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 1.1rem; }
.live-who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.live-who small { color: var(--ink-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-time { text-align: right; display: flex; flex-direction: column; line-height: 1.15; }
.live-time small { color: var(--ink-3); font-size: .7rem; font-weight: 700; }
.live-time b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.live-over { display: none; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 999px; background: #ff3b5c; color: #fff; font-weight: 900; font-size: .78rem; animation: pulse 1s ease-in-out infinite; }
.live-row.is-over { background: #fff0f2; }
.live-row.is-over .live-time { visibility: hidden; }
.live-row.is-over .live-over { display: block; }
.live-row.is-over .ring-fg { stroke: #ff3b5c; }
.live-row.is-warn .ring-fg { stroke: var(--orange); }
.live-row.is-warn .live-time b { color: var(--orange); }
@keyframes pulse { 0%, 100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(1.07); } }
.live-today { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; }
.live-today b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* Confeti y globos que suben */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cf { position: absolute; bottom: -40px; opacity: 0; animation: rise var(--d, 12s) linear var(--delay, 0s) infinite; }
.cf.piece { width: 9px; height: 16px; border-radius: 3px; background: var(--c, var(--pink)); }
.cf.balloon { width: 30px; height: 38px; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; background: var(--c, var(--pink)); box-shadow: inset -5px -6px 0 rgba(0, 0, 0, .08); }
.cf.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 26px; background: rgba(0, 0, 0, .18); }
@keyframes rise {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: var(--o, .7); }
  50% { transform: translate(var(--x, 20px), -55vh) rotate(calc(var(--r, 180deg) / 2)); }
  90% { opacity: var(--o, .7); }
  100% { transform: translate(0, -110vh) rotate(var(--r, 180deg)); opacity: 0; }
}

.stats { position: relative; z-index: 1; list-style: none; margin: 40px 0 0; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats li { text-align: center; display: flex; flex-direction: column; }
.stats b { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--ink-2); font-size: .92rem; font-weight: 700; }

.marquee { position: relative; z-index: 1; margin-top: 30px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.marquee li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; color: var(--ink-2); }
.marquee li i { font-style: normal; font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 560px; max-width: 480px; margin: 0 auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 26px; }
  .hero-visual { height: 520px; }
  .device { width: 210px; border-radius: 34px; padding: 8px; }
  .device img { border-radius: 27px; }
  .device-front { left: 0; }
  .hero-visual-sm .device-front { left: 18%; }
  .live { width: 255px; right: 0; bottom: 0; padding: 12px; }
  .store { min-width: 0; flex: 1 1 150px; }
}

/* Secciones */
.sec { position: relative; padding: 86px 0; }
.sec-tight { padding: 50px 0 70px; }
.sec-soft { background: var(--soft); }
.sec-head { margin-bottom: 42px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
@media (max-width: 640px) { .sec { padding: 62px 0; } }

/* Cuaderno vs app */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.vs-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.vs-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.vs-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vs-card li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.vs-card li .ic { margin-top: 4px; flex: none; }
.vs-before { background: repeating-linear-gradient(#fffdf6, #fffdf6 31px, #ece6d4 32px); border-color: #ece6d4; }
.vs-before li { color: #7a6f55; }
.vs-before li .ic { color: #e05555; }
.vs-before.in li span { background: linear-gradient(#e05555, #e05555) no-repeat 0 55% / 0 2px; animation: strike .6s ease-out forwards; animation-delay: calc(var(--i, 0) * .25s + .4s); }
@keyframes strike { to { background-size: 100% 2px; } }
.vs-emoji { font-size: 1.8rem; }
.vs-after { background: #fff; box-shadow: var(--shadow-lg); border-color: #ffd3e2; }
.vs-after h3 img { border-radius: 9px; }
.vs-after li .ic { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.vs-arrow { align-self: center; font-size: 2.2rem; font-weight: 900; color: var(--pink); }
@media (max-width: 820px) { .vs { grid-template-columns: 1fr; } .vs-arrow { transform: rotate(90deg); justify-self: center; } }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--grad); color: #fff; font-weight: 900; font-size: 1.3rem; margin-bottom: 16px; box-shadow: 0 10px 20px -8px rgba(255, 79, 139, .7); }
.step:nth-child(2) .step-n { background: linear-gradient(120deg, #7c5cff, #a78bfa); box-shadow: 0 10px 20px -8px rgba(124, 92, 255, .7); }
.step:nth-child(3) .step-n { background: linear-gradient(120deg, #14b8a6, #34d399); box-shadow: 0 10px 20px -8px rgba(20, 184, 166, .7); }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Calculadora */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.calc { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: .92rem; color: var(--ink-2); }
.field input[type=number], .field select { font: 800 1.1rem/1.2 var(--font); color: var(--ink); background: var(--soft); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; min-width: 0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 79, 139, .15); }
.field input[type=range] { accent-color: var(--pink); width: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.calc-out > div { padding: 14px; border-radius: 16px; background: #fff0f5; display: flex; flex-direction: column; min-width: 0; }
.calc-out small { color: var(--ink-3); font-weight: 800; font-size: .8rem; }
.calc-out b { font-size: 1.15rem; font-weight: 900; overflow-wrap: anywhere; }
.calc-out .calc-main { background: var(--grad); color: #fff; }
.calc-out .calc-main small { color: rgba(255, 255, 255, .9); }
.calc-out .calc-main b { font-size: 1.5rem; }
@media (max-width: 820px) { .calc-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 460px) { .calc-out { grid-template-columns: 1fr 1fr; } .calc-out .calc-main { grid-column: span 2; } .calc { padding: 20px; } }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feature, .platform { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.feature p, .platform p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.feature-ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #fff0f5; color: var(--pink); margin-bottom: 14px; }
.f1 .feature-ic { background: #f1edff; color: var(--purple); }
.f2 .feature-ic { background: #fff5e0; color: #e09a00; }
.f3 .feature-ic { background: #e6fbf7; color: var(--teal); }
.f4 .feature-ic { background: #eaf2ff; color: var(--blue); }

/* Capturas */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.shot { margin: 0; flex: 0 0 250px; scroll-snap-align: center; }
.shot img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 540 / 960; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.rail-btn:hover { border-color: var(--pink); color: var(--pink); }
@media (max-width: 640px) { .rail-nav { display: none; } .shot { flex-basis: 70vw; } }

/* Tipos de juego */
.ride-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ride-grid-sm { grid-template-columns: repeat(5, 1fr); }
.ride-card { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ride-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #ffc6da; }
.ride-emoji { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; font-size: 2rem; margin-bottom: 10px; background: #fff0f5; transition: transform .3s; }
.ride-card:hover .ride-emoji { transform: rotate(-8deg) scale(1.1); }
.r1 .ride-emoji { background: #eaf2ff; } .r2 .ride-emoji { background: #fff5e0; } .r3 .ride-emoji { background: #e6fbf7; } .r4 .ride-emoji { background: #f1edff; } .r5 .ride-emoji { background: #fff0e6; }
.ride-card p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.ride-go { margin-top: 10px; color: var(--pink-600); font-weight: 900; display: inline-flex; align-items: center; gap: 4px; }
.ride-grid-sm .ride-card { align-items: center; text-align: center; padding: 18px 12px; }
.ride-grid-sm h3 { font-size: 1rem; margin: 0; }
@media (max-width: 940px) { .ride-grid { grid-template-columns: repeat(2, 1fr); } .ride-grid-sm { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ride-grid { grid-template-columns: 1fr; } .ride-grid-sm { grid-template-columns: repeat(2, 1fr); } }

/* Plantillas de precios */
.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tpl-card { padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tpl-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.tpl-card h3 span { font-size: 1.4rem; }
.prices { list-style: none; margin: 0; padding: 0; }
.prices li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 2px dotted var(--line); font-weight: 700; color: var(--ink-2); }
.prices li:last-child { border-bottom: 0; }
.prices b { color: var(--ink); font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1000px) { .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* Mundo */
.world { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.world-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.world-card p { color: var(--ink-2); margin: 0; }
.world-emoji { font-size: 2rem; display: block; margin-bottom: 10px; }
@media (max-width: 820px) { .world { grid-template-columns: 1fr; } }

/* Precio */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; margin-bottom: 18px; }
.plan { position: relative; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 26px; display: flex; flex-direction: column; }
.plan-pro { border: 2px solid var(--pink); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -14px; left: 32px; background: var(--grad); color: #fff; font-weight: 900; font-size: .8rem; padding: 5px 13px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; }
.price { margin: 4px 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price b { font-size: 2.7rem; font-weight: 900; line-height: 1.1; }
.price .per { color: var(--ink-2); font-weight: 800; }
.price small { flex-basis: 100%; color: var(--ink-3); font-size: .82rem; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-weight: 700; }
.plan li .ic { color: var(--teal); margin-top: 4px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pf-badge { position: absolute; top: 22px; right: 20px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: #f1edff; color: var(--purple); }
.pf-badge.is-live { background: #e6fbf7; color: #0f8f80; }
@media (max-width: 940px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platforms { grid-template-columns: 1fr; } }

/* Preguntas */
.faq-wrap { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq-chev { color: var(--pink); transition: transform .2s; }
.faq details[open] .faq-chev { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Llamado final */
.cta { background: var(--grad-soft); text-align: center; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-inner img { border-radius: 26px; margin-bottom: 18px; box-shadow: var(--shadow-lg); animation: hop 2.8s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-12px) rotate(-4deg); } 60% { transform: translateY(-12px) rotate(4deg); } }

/* Páginas de juego */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-3); margin-bottom: 16px; font-weight: 700; }
.crumbs a { color: var(--ink-2); }
.big-emoji { font-size: 1.2rem; }
.hero-ride h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.ride-badge { position: absolute; z-index: 3; right: 8%; bottom: 40px; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 34px; background: #fff; box-shadow: var(--shadow-lg); font-size: 4rem; animation: bob 6s ease-in-out infinite; }
.ride-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ride-box { padding: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 10px; font-weight: 700; color: var(--ink-2); }
.ticks .ic { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 22px; height: 22px; flex: none; }
@media (max-width: 820px) { .ride-cols { grid-template-columns: 1fr; } }

/* Aparición escalonada */
.js .reveal { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Brillo en botones */
.btn-primary::after, a.store::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Barra de descarga (móvil) */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .dock.show { transform: none; }
  .dock img { border-radius: 10px; }
  .dock-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .dock-txt small { color: var(--ink-3); font-size: .76rem; }
}

/* Pie */
.foot { position: relative; background: #fff; border-top: 1px solid var(--line); padding: 56px 0 30px; font-size: .95rem; }
.foot-band { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ff4f8b, #ff8a3d, #ffc233, #14b8a6, #7c5cff, #ff4f8b); background-size: 200% 100%; animation: band 8s linear infinite; }
@keyframes band { to { background-position: -200% 0; } }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid a:not(.brand):not(.store) { color: var(--ink-2); font-weight: 600; }
.foot-brand p { color: var(--ink-2); margin: 6px 0 0; }
.foot-brand .stores { margin: 12px 0 0; }
.foot-h { font-weight: 900; margin: 0 0 4px; }
.studio-sign { margin-top: 44px; padding: 34px 20px 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.studio-ante { margin: 0 0 14px; color: var(--ink-3); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.studio { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none !important; padding: 10px 20px 10px 10px; border-radius: 22px; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.studio:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(99, 102, 241, .55); border-color: #6366f1; }
.studio-logo { border-radius: 14px; flex: none; }
.studio-v { stroke-dasharray: 560; stroke-dashoffset: 560; }
.studio-sign.in .studio-v { animation: draw 1.4s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.studio-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.studio-name { font-size: 1.45rem; font-weight: 900; }
.studio-name span { background: linear-gradient(120deg, #22d3ee, #6366f1 50%, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-txt small { color: var(--ink-3); font-size: .8rem; font-weight: 700; }
.studio-about { max-width: 640px; margin: 16px auto 6px; color: var(--ink-2); font-size: .94rem; }
.studio-legal { margin: 0; color: var(--ink-3); font-size: .82rem; }
.foot-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-langs a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 800; }
.foot-langs a[aria-current] { color: var(--pink-600); }
.foot-legal { margin-top: 18px; color: var(--ink-3); font-size: .84rem; text-align: center; }
.foot-legal p { margin: 0 0 4px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }

/* Raíz y 404 */
.root-pick, .notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.root-langs { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.root-langs a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; }
.big404 { font-size: 6rem; font-weight: 900; line-height: 1; margin: 0 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Aviso de cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 18px 20px; background: #fff; color: var(--ink); border: 2px solid var(--pink); border-radius: 20px; box-shadow: 0 20px 60px -10px rgba(80, 40, 90, .35); font-size: .92rem; }
.cookie-banner[hidden] { display: none; }
.cookie-text p { margin: 0; color: var(--ink-2); }
.cookie-title { font-weight: 900; color: var(--ink) !important; margin-bottom: 2px !important; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-btn { font: 800 .92rem var(--font); padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 2px solid var(--pink); background: #fff; color: var(--pink-600); }
.cookie-btn:hover { background: var(--pink); color: #fff; }
@media (max-width: 620px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-actions .cookie-btn { flex: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .confetti { display: none; }
  .studio-v { stroke-dashoffset: 0; }
  .vs-before li span { background-size: 100% 2px; }
}
