/* MaxGame · estilos del sitio */

@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('../fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('../fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-display: swap; src: url('../fonts/nunito-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-display: swap; src: url('../fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; font-display: swap; src: url('../fonts/nunito-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --navy: #0E1630;
  --navy-2: #141E3F;
  --navy-3: #1B2752;
  --line: rgba(255, 255, 255, 0.10);
  --text: #F2F4FB;
  --muted: #AEB6D3;
  --green: #3BE37A;
  --green-2: #23C863;
  --violet: #5B3FE0;
  --violet-2: #7B5CFF;
  --amber: #FFC53D;
  --cyan: #34B6FF;
  --pink: #FF5FA2;
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1120px;
  --font-display: 'Fredoka', 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #6CF09B; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
/* Promoción vencida (ver partials/head.html): se ocultan premios, sorteos y días gratis */
.promo-vencida [data-promo] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--green); text-decoration: none; }
.logo:hover { color: var(--green); }
.logo__icon { width: 40px; height: 27px; }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; line-height: 1; }
.logo__max { color: var(--text); }
.logo__game { color: var(--green); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--cta { background: var(--green); color: #06210F; box-shadow: 0 8px 24px rgba(59, 227, 122, 0.28); }
.btn--cta:hover { background: #5BEA92; color: #06210F; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .93rem; }
.btn--lg { min-height: 60px; padding: 16px 32px; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn__icon { width: 22px; height: 22px; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14, 22, 48, 0.88); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.site-nav { display: none; gap: 22px; margin-left: 8px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .96rem; }
.site-nav a:hover { color: var(--text); }
.site-header__actions { margin-left: auto; display: flex; gap: 8px; }
@media (min-width: 900px) { .site-nav { display: flex; } }
@media (max-width: 420px) {
  .site-header .logo__text { font-size: 1.25rem; }
  .site-header .logo__icon { width: 32px; }
  .site-header__actions .btn--sm { padding: 8px 12px; font-size: .88rem; }
}

.lp-header { border-bottom: 1px solid var(--line); }
.lp-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.lp-header__login { color: var(--muted); font-weight: 700; font-size: .93rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.45), rgba(123, 92, 255, 0));
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__login { margin-top: 18px; color: var(--muted); font-weight: 700; }
.hero__art { display: flex; justify-content: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(59, 227, 122, 0.12); color: var(--green); font-weight: 800; font-size: .86rem; letter-spacing: .02em; }
.hl { color: var(--green); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* CTA y precio (Google y TikTok piden precio y frecuencia de cobro junto al botón) */
.cta { margin-top: 26px; max-width: 520px; }
.center .cta { margin-left: auto; margin-right: auto; }
/* El precio va siempre en blanco */
.price-line { margin: 14px 0 6px; font-size: .98rem; line-height: 1.45; color: #fff; }
.price-line strong { color: #fff; font-weight: 800; }
.price-line__how { margin: 0; font-size: .88rem; color: var(--muted); }
.price-line__how strong { color: var(--text); }
.sin-sms .price-line__how { display: none; }

/* QR que reemplaza el botón en computadora (lo inserta maxgame-medicion.js) */
.mg-desktop-qr { margin-top: 0 !important; background: var(--navy-3) !important; border-color: rgba(255, 255, 255, 0.16) !important; text-align: left; }
.center .mg-desktop-qr { margin-left: auto; margin-right: auto; }

/* ---------- Teléfono ilustrado ---------- */
.phone {
  width: 270px; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 44px;
  background: linear-gradient(160deg, #2A3566, #121A38);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(4deg);
}
.phone__screen { height: 100%; border-radius: 34px; overflow: hidden; background: #0B1228; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.phone__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.phone__logo b { color: var(--green); font-weight: 700; }
.phone__dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--violet-2), var(--cyan)); }
.phone__chips { display: flex; gap: 6px; overflow: hidden; }
.phone__chips span { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--navy-3); color: var(--muted); font-size: .7rem; font-weight: 800; }
.phone__chips .on { background: var(--green); color: #06210F; }
.phone__feature img, .t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__feature {
  position: relative; flex: none; height: 118px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 197, 61, 0.95) 0 16px, transparent 17px),
    linear-gradient(0deg, rgba(0,0,0,.28), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--violet), var(--violet-2) 55%, var(--pink));
}
.phone__tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(14, 22, 48, 0.72); font-size: .68rem; font-weight: 800; }
.phone__play { position: absolute; right: 10px; bottom: 9px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #06210F; font-size: .75rem; }
.phone__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone__nav { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 2px; border-top: 1px solid var(--line); }
.phone__nav span { width: 22px; height: 6px; border-radius: 99px; background: var(--navy-3); }
.phone__nav .on { background: var(--green); }
.t { aspect-ratio: 1; border-radius: 14px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.t:nth-child(2n) { background: linear-gradient(135deg, var(--green-2), #2BD9C5); }
.t:nth-child(3n) { background: linear-gradient(135deg, var(--amber), var(--pink)); }
@media (max-width: 899px) { .phone { width: 230px; transform: rotate(3deg); } }

/* ---------- Secciones ---------- */
.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.section--tight { padding-top: 24px; }
.section__title { margin-bottom: .4em; }
.section__lead { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin-bottom: 28px; }
.more { margin-top: 20px; font-weight: 800; }
.section--final { background: linear-gradient(180deg, var(--navy), var(--navy-2)); padding-bottom: 80px; }
.page-hero { padding: 48px 0 8px; }
.page-hero--404 { padding: 72px 0 40px; }
.big404 { font-family: var(--font-display); font-weight: 700; font-size: 5.5rem; line-height: 1; color: var(--violet-2); margin-bottom: 8px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }


/* Pasos */
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.step { position: relative; padding: 24px 22px 20px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--line); }
.step__num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--violet); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; }
/* En celular: número o ícono a la izquierda para acortar la página */
@media (max-width: 759px) {
  .step, .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; }
  .step > :first-child, .card > :first-child { grid-row: span 2; margin: 0; }
  .step h3, .card h3 { margin: 2px 0 4px; font-size: 1.12rem; }
  .step p, .card p { grid-column: 2; }
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .step__num { margin-bottom: 14px; } }

/* Tarjetas */
.cards { display: grid; gap: 16px; margin-top: 24px; }
.card { padding: 24px 22px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--line); }
.card__icon { width: 44px; height: 44px; padding: 10px; margin-bottom: 14px; border-radius: 12px; background: rgba(255, 197, 61, .16); color: var(--amber); }
.card p { color: var(--muted); margin: 0; }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

/* Promoción */
.section--promo { padding: 40px 0; }
.promo {
  display: grid; gap: 24px; align-items: center; padding-top: 36px; padding-bottom: 36px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 20%, rgba(255, 197, 61, 0.22), transparent 45%), linear-gradient(135deg, #2A1F7A, #3B2AA8 60%, #4B35C9);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.promo .eyebrow { background: rgba(255, 197, 61, 0.16); color: var(--amber); }
.promo__head { max-width: 46em; }
.promo__head p { color: #DCD8FF; }
.promo .fine { font-size: .88rem; color: #BEB8F0; margin: 0; }
.promo .fine a { color: var(--amber); }
@media (min-width: 860px) { .promo { padding: 44px 48px; } }
@media (max-width: 859px) { .promo { margin: 0 12px; width: auto; padding: 28px 20px; } }

/* Premios */
.prizes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prizes:has(> :only-child) { grid-template-columns: minmax(0, 360px); justify-content: center; }
.prize { display: grid; gap: 6px; align-content: start; text-align: center; padding: 14px 10px 16px; border-radius: 20px; background: rgba(14, 22, 48, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); }
.prize__visual { width: 100%; max-width: 190px; margin: 0 auto; aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgba(255, 197, 61, 0.28), rgba(255, 197, 61, 0) 70%); display: grid; place-items: center; overflow: hidden; }
.prize__img { width: 100%; height: 100%; object-fit: contain; }
.prize__visual--photo { background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); }
.prize__visual--photo .prize__img { padding: 6%; }
.prize__art { width: 100%; height: 100%; }
.prize__art--phone .pa-headphones, .prize__art--headphones .pa-phone, .prize__art > circle { display: none; }
.prize h3 { font-size: 1.15rem; margin: 0 0 2px; color: #fff; }
.prize p { margin: 0; color: var(--amber); font-weight: 800; font-size: .9rem; line-height: 1.3; }
@media (min-width: 640px) {
  .prizes { gap: 18px; }
  .prize { padding: 22px 18px 24px; }
  .prize h3 { font-size: 1.35rem; }
  .prize p { font-size: 1rem; }
}
@media (min-width: 900px) { .prize__visual { max-width: 240px; } }

.prize-chip { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 10px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 197, 61, 0.18), rgba(123, 92, 255, 0.22)); border: 1px solid rgba(255, 197, 61, 0.45); color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.3; max-width: 520px; }
.prize-chip:hover { color: var(--text); border-color: var(--amber); }
.prize-chip strong { color: var(--amber); }
.prize-chip__icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: var(--navy); }
.prize-chip__icon svg { width: 22px; height: 22px; }
.prize-chip__photo { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: #fff; }
.prize-chip__photo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

/* Premios en el encabezado de /l/sorteo/ (solo computadora) */
.prize-hero { position: relative; width: 400px; height: 430px; }
.prize-hero__item { position: absolute; background: #fff; border-radius: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.prize-hero__item .prize__img { padding: 7%; }
.prize-hero__item--1 { left: 0; top: 24px; width: 300px; height: 300px; transform: rotate(-4deg); z-index: 1; }
.prize-hero__item--2 { right: 0; bottom: 0; width: 200px; height: 200px; transform: rotate(6deg); }
.prize-hero__badge { position: absolute; right: -30px; top: -26px; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--amber); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: .9; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); transform: rotate(8deg); }
.prize-hero__badge small { font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }

/* Juegos */
.section--games { overflow: hidden; }
.games { list-style: none; margin: 8px 0 0; padding: 4px 20px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.games::-webkit-scrollbar { display: none; }
.game { scroll-snap-align: start; position: relative; border-radius: 18px; overflow: hidden; background: var(--navy-3); aspect-ratio: 1.4; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.game img { width: 100%; height: 100%; object-fit: cover; }
.game__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(0deg, rgba(8, 12, 30, 0.92), rgba(8, 12, 30, 0)); font-weight: 800; font-size: .9rem; line-height: 1.25; }
.games__more { margin: 10px 0 0; color: var(--muted); font-weight: 700; }
@media (min-width: 640px) { .games { grid-auto-columns: 40%; } }
@media (min-width: 900px) {
  .games { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; max-width: var(--wrap); margin: 8px auto 0; padding: 4px 20px 0; }
  .game:nth-child(n+13) { display: none; }
}

/* Preguntas */
.faq { display: grid; gap: 10px; margin-bottom: 10px; }
.faq details { border-radius: 14px; background: var(--navy-2); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 1.5rem; color: var(--green); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* Datos clave */
.facts { margin: 20px 0 0; display: grid; gap: 10px; }
.facts div { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--navy-2); border: 1px solid var(--line); }
.facts dt { font-weight: 800; color: var(--amber); }
.facts dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .facts div { grid-template-columns: 150px 1fr; gap: 16px; } }

/* Textos legales */
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.3em; }
.prose p, .prose li { color: #C9CFE6; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .6em; }
.legal-list li p { margin-bottom: .5em; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: var(--navy-2); }
.site-footer__grid { display: grid; gap: 28px; }
.site-footer h2 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--green); }
.site-footer p { color: var(--muted); font-size: .95rem; }
.site-footer__tag { margin-top: 12px; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

.legal-footer { background: #0A1126; padding: 22px 0 28px; font-size: .86rem; color: #fff; }
.legal-footer p { margin: 0 0 8px; }
.legal-footer a { color: #fff; }
.landing .legal-footer { padding-bottom: 150px; }

/* ---------- Barra fija de las landings (solo celular) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 17, 38, 0.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .2s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 52px; }
.sticky-cta__price { margin: 6px 0 0; text-align: center; font-size: .84rem; color: #fff; }
.sin-sms .sticky-cta, .sticky-cta:has(.mg-desktop-qr) { display: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } .landing .legal-footer { padding-bottom: 28px; } }

/* Landings: encabezado más compacto */
.hero--lp { padding-top: 28px; }
@media (max-width: 899px) { .hero__art { display: none; } }
