/* ============================================================
   Lucashian — Landing page
   Colores y tipografía alineados con lunian_design_system:
   ink #222033 · paper #FAFAF8 · purple #7E5CD9 / #5A3FA8 · lilac #D6CDE8
   Fuentes: Space Grotesk (títulos) · Inter (texto) · IBM Plex Mono (precios)
   ============================================================ */

:root {
  /* Foundations (LunianPalette) */
  --ink: #222033;
  --ink-2: #2c2942;
  --paper: #fafaf8;
  --paper-2: #f2f0f7;
  --lilac: #d6cde8;
  --purple: #7e5cd9;
  --purple-deep: #5a3fa8;
  --purple-soft: #efeafb;
  --success: #1f9d6b;
  --success-soft: #e3f5ec;
  --amber: #e0952b;
  --amber-soft: #fbf0dc;
  --danger: #e5484d;

  /* Semantic (theme-aware, light default) */
  --bg: var(--paper);
  --bg-elev: #ffffff;
  --text: var(--ink);
  --text-mute: #625f74;
  --border: #e7e4ee;
  --border-strong: #d8d3e4;
  --brand: var(--purple);
  --brand-ink: var(--purple-deep);

  /* Scale */
  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(34, 32, 51, .06), 0 1px 3px rgba(34, 32, 51, .05);
  --shadow-md: 0 8px 24px rgba(34, 32, 51, .08), 0 2px 6px rgba(34, 32, 51, .05);
  --shadow-lg: 0 30px 60px rgba(34, 32, 51, .16), 0 8px 20px rgba(34, 32, 51, .08);
  --maxw: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1826;
    --bg-elev: #232135;
    --text: #f3f1fa;
    --text-mute: #a7a2bd;
    --border: #322f45;
    --border-strong: #3d3a54;
    --paper-2: #232135;
    --purple-soft: #2b2542;
    --success-soft: #17322a;
    --amber-soft: #33291a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, .5);
    --brand: #9a7cec;
  }
}

/* Explicit theme override wins over media query (for toggles/embeds) */
:root[data-theme="dark"] {
  --bg: #1a1826; --bg-elev: #232135; --text: #f3f1fa; --text-mute: #a7a2bd;
  --border: #322f45; --border-strong: #3d3a54; --paper-2: #232135;
  --purple-soft: #2b2542; --brand: #9a7cec;
}
:root[data-theme="light"] {
  --bg: #fafaf8; --bg-elev: #fff; --text: #222033; --text-mute: #625f74;
  --border: #e7e4ee; --border-strong: #d8d3e4; --paper-2: #f2f0f7;
  --purple-soft: #efeafb; --brand: #7e5cd9;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(15px, 1vw + 13px, 17px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(126, 92, 217, .8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(126, 92, 217, .85); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { display: inline-grid; place-items: center; }
.brand__name { font-family: var(--font-head); font-size: 1.24rem; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 6px; margin-left: 12px; }
.nav__links a { padding: 8px 12px; border-radius: 10px; color: var(--text-mute); font-weight: 500; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: var(--paper-2); }
.nav__actions { display: flex; gap: 10px; margin-left: auto; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; margin: 4px 0; transition: transform .3s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 22px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.nav__mobile a { padding: 12px 8px; color: var(--text-mute); font-weight: 500; border-radius: 10px; }
.nav__mobile a.btn { margin-top: 8px; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 78% 12%, rgba(126, 92, 217, .28), transparent 70%),
    radial-gradient(46% 38% at 12% 4%, rgba(214, 205, 232, .5), transparent 70%);
  filter: blur(6px);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple-soft); color: var(--brand-ink);
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--lilac); } }
:root[data-theme="dark"] .eyebrow { color: var(--lilac); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; }
.dot--pulse { position: relative; }
.dot--pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.hero__title { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; margin: 20px 0 0; }
.grad { background: linear-gradient(100deg, var(--purple), var(--purple-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-mute); max-width: 34em; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero__proof li { display: flex; flex-direction: column; }
.hero__proof strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.hero__proof span { font-size: .82rem; color: var(--text-mute); }

/* ---------- Phone mock ---------- */
.hero__device { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(300px, 82vw); aspect-ratio: 300 / 620;
  background: var(--bg-elev); border-radius: 42px; padding: 12px;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: var(--ink); border-radius: 0 0 14px 14px; z-index: 2; }
@media (prefers-color-scheme: dark) { .phone__notch { background: #000; } }
.phone__screen {
  height: 100%; border-radius: 32px; overflow: hidden; padding: 30px 14px 16px;
  background: linear-gradient(180deg, var(--paper-2), var(--bg-elev) 30%);
  display: flex; flex-direction: column; gap: 10px;
}
.appbar { display: flex; justify-content: space-between; align-items: center; }
.appbar__hi { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.appbar__city { font-size: .72rem; color: var(--text-mute); }
.ring {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--purple) 72%, var(--border) 0);
  font-size: .58rem; font-weight: 700; color: var(--text);
}
.ring span { background: var(--bg-elev); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.searchbar { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: .74rem; color: var(--text-mute); }
.mock-label { font-family: var(--font-head); font-weight: 600; font-size: .74rem; margin-top: 4px; }
.pricecard { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pricecard__name { font-weight: 600; font-size: .76rem; }
.pricecard__store { font-size: .66rem; color: var(--text-mute); }
.pricecard__right { text-align: right; display: grid; gap: 3px; justify-items: end; }
.price { font-family: var(--font-mono); font-weight: 600; font-size: .86rem; }
.tag { font-size: .58rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.tag--drop { background: var(--success-soft); color: var(--success); }
.tag--promo { background: var(--amber-soft); color: var(--amber); }
.tag--ok { background: var(--purple-soft); color: var(--brand-ink); }
:root[data-theme="dark"] .tag--ok, [data-theme="dark"] .tag--ok { color: var(--lilac); }
.plancard { margin-top: auto; background: linear-gradient(120deg, var(--purple-deep), var(--purple)); color: #fff; border-radius: 14px; padding: 12px; }
.plancard__title { font-family: var(--font-head); font-weight: 600; font-size: .78rem; }
.plancard__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.28); margin: 8px 0 6px; overflow: hidden; }
.plancard__bar span { display: block; height: 100%; background: #fff; border-radius: 999px; }
.plancard__hint { font-size: .64rem; opacity: .92; }
.phone__fab {
  position: absolute; bottom: 26px; right: -6px; z-index: 3;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 24px -8px rgba(126,92,217,.9);
  animation: floaty 7s ease-in-out infinite; animation-delay: .4s;
}

/* ---------- Trust strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 26px; padding: 26px 0; }
.strip__item { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.strip__k { font-family: var(--font-head); font-weight: 600; color: var(--lilac); font-size: .82rem; letter-spacing: .02em; }
.strip__v { font-size: .86rem; color: #c9c6d8; }

/* ---------- Section heads ---------- */
.section-head { max-width: 42rem; margin: 0 auto clamp(32px, 5vw, 54px); text-align: center; }
.section-head--left { text-align: left; margin-inline: 0; }
.kicker { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.kicker--light { color: var(--lilac); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--text-mute); font-size: 1.05rem; }

section { padding: clamp(56px, 9vw, 104px) 0; }
.strip { padding: 0; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--purple-soft); color: var(--brand-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }
:root[data-theme="dark"] .step__num, [data-theme="dark"] .step__num { color: var(--lilac); }
.step h3 { font-size: 1.24rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-mute); font-size: .96rem; }
.step::after { content: "→"; position: absolute; top: 46px; right: -18px; color: var(--border-strong); font-size: 1.4rem; z-index: 1; }
.step:last-child::after { display: none; }

/* ---------- Funciones ---------- */
.features { background: var(--paper-2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .25s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-mute); font-size: .95rem; }
.card__ic { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; background: var(--purple-soft); position: relative; }
.card__ic::before { content: ""; position: absolute; inset: 0; margin: auto; background: var(--brand); -webkit-mask: center / 24px no-repeat; mask: center / 24px no-repeat; }
.ic--search::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.ic--trend::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M17 7h4v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M17 7h4v4'/%3E%3C/svg%3E"); }
.ic--bell::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E"); }
.ic--compare::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h7M4 12h7M4 18h7M20 6h-5M20 12h-5M20 18h-5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h7M4 12h7M4 18h7M20 6h-5M20 12h-5M20 18h-5'/%3E%3C/svg%3E"); }
.ic--trophy::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 5H4v2a3 3 0 0 0 3 3M17 5h3v2a3 3 0 0 1-3 3'/%3E%3C/svg%3E"); }
.ic--shield::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v5c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v5c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.chip { display: inline-block; margin-top: 14px; font-size: .72rem; font-weight: 600; color: var(--brand-ink); background: var(--purple-soft); border-radius: 999px; padding: 4px 11px; }
:root[data-theme="dark"] .chip, [data-theme="dark"] .chip { color: var(--lilac); }

/* ---------- Gamificación (dark) ---------- */
.game { background: var(--ink); color: #fff; }
.game__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.game__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.game__copy p { color: #c9c6d8; margin-top: 16px; font-size: 1.05rem; }
.tiers { display: flex; gap: 16px; margin-top: 28px; }
.tier { flex: 1; background: var(--ink-2); border: 1px solid rgba(214,205,232,.16); border-radius: var(--radius); padding: 20px; }
.tier--pro { background: linear-gradient(140deg, var(--purple-deep), var(--purple)); border-color: transparent; }
.tier__pts { font-family: var(--font-mono); font-weight: 600; font-size: 1.6rem; }
.tier__pts span { font-family: var(--font-body); font-size: .72rem; color: #c9c6d8; font-weight: 500; }
.tier--pro .tier__pts span { color: #efeafb; }
.tier__name { font-family: var(--font-head); font-weight: 600; margin-top: 6px; }
.game__note { font-size: .86rem; color: #a7a2bd; margin-top: 16px; }
.game__card { background: var(--ink-2); border: 1px solid rgba(214,205,232,.16); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.ladder__title { font-family: var(--font-head); font-weight: 600; color: var(--lilac); margin-bottom: 16px; }
.ladder li { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; margin-bottom: 8px; background: rgba(255,255,255,.03); border: 1px solid transparent; }
.ladder li span { font-weight: 500; color: #c9c6d8; }
.ladder li b { font-family: var(--font-mono); color: #8f8aa6; font-weight: 600; }
.ladder li.done { color: #fff; }
.ladder li.done span { color: #efeafb; }
.ladder li.done::before, .ladder li.current::before { content: "✓"; margin-right: auto; }
.ladder li.done span, .ladder li.current span { margin-left: 10px; margin-right: auto; }
.ladder li.done { background: rgba(126,92,217,.14); }
.ladder li.current { background: linear-gradient(120deg, var(--purple-deep), var(--purple)); border-color: transparent; }
.ladder li.current span, .ladder li.current b { color: #fff; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-8px); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan__name { font-size: 1.3rem; font-weight: 700; }
.plan__price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan__amt { font-family: var(--font-mono); font-weight: 600; font-size: 2.3rem; letter-spacing: -.02em; }
.plan__per { color: var(--text-mute); font-size: .92rem; }
.plan__tag { color: var(--brand-ink); font-weight: 600; font-size: .85rem; margin-bottom: 20px; }
:root[data-theme="dark"] .plan__tag, [data-theme="dark"] .plan__tag { color: var(--lilac); }
.plan__list { display: grid; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan__list li { position: relative; padding-left: 27px; font-size: .95rem; color: var(--text); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }
.pricing__foot { text-align: center; color: var(--text-mute); font-size: .84rem; margin-top: 28px; }

/* ---------- Galería ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shot__frame {
  width: 100%; max-width: 260px; aspect-ratio: 300 / 620; border-radius: 36px; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: grid; place-items: center; padding: 10px;
}
.shot__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.shot__frame.is-pending::after {
  content: "Imagen pendiente\A" attr(data-pending); white-space: pre; text-align: center;
  color: var(--text-mute); font-size: .82rem; font-weight: 600; line-height: 1.5;
  border: 2px dashed var(--border-strong); border-radius: 28px; width: 100%; height: 100%;
  display: grid; place-items: center; padding: 12px;
}
.shot figcaption { font-size: .9rem; color: var(--text-mute); font-weight: 500; text-align: center; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.qa { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.qa[open] { border-color: var(--border-strong); }
.qa summary { list-style: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.03rem; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .25s; line-height: 1; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--text-mute); padding: 0 0 18px; font-size: .96rem; }

/* ---------- CTA ---------- */
.cta__inner {
  text-align: center; background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 68px) 24px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta__inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% -10%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.cta__inner > * { position: relative; }
.cta__inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta__inner > p { margin-top: 12px; font-size: 1.08rem; color: #efeafb; max-width: 34em; margin-inline: auto; }
.cta__badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 11px 20px; border-radius: 14px; transition: background .2s, transform .15s; text-align: left; }
.store-badge:hover { background: rgba(0,0,0,.42); transform: translateY(-2px); }
.store-badge__ic { font-size: 1.3rem; width: 22px; text-align: center; }
.store-badge small { display: block; font-size: .64rem; opacity: .82; }
.store-badge strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.cta__mini { margin-top: 22px; font-size: .86rem; color: #efeafb; opacity: .9; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9c6d8; padding: clamp(48px, 7vw, 72px) 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .brand__name { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: .92rem; max-width: 30em; color: #a7a2bd; }
.footer__col h4 { font-family: var(--font-head); color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: #a7a2bd; font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: var(--lilac); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #8f8aa6; }
.footer__legal a { color: #8f8aa6; }
.footer__legal a:hover { color: var(--lilac); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .phone__fab, .dot--pulse::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile[data-open="true"] { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 1; }
  .hero__device { order: 2; }
  .eyebrow { margin-inline: auto; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__proof { justify-content: center; }
  .hero__proof li { align-items: center; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .game__inner { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots .shot:last-child { grid-column: 1 / -1; justify-self: center; }
  .faq__inner { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shots .shot { max-width: 300px; margin-inline: auto; }
  .strip__inner { grid-template-columns: 1fr; }
  .tiers { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__proof { gap: 18px; }
}
