/* PuraNota · landing «El portal» (docs/LANDING.md). Usa tokens.css y components.css.
   La página baja del día (.exp, en el <body>) a la noche (.arena, en .lp-night). */

html { scroll-behavior: smooth; }
.lp { overflow-x: clip; }
.lp-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.lp-h2 { font-size: clamp(30px, 8.4vw, 46px); font-weight: 700; }
.lp-sub { font-size: 18px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.lp :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Barra fija ---------- */
.lp-bar { position: sticky; top: 0; z-index: 20; color: var(--ink); background: rgba(255, 247, 232, .9); border-bottom: 2px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .25s, border-color .25s, color .25s; }
.lp-bar.arena { background: rgba(15, 16, 32, .88); }
.lp-bar .lp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.lp-bar .btn { min-height: 48px; padding: 8px 16px; }
.lp-logo { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: .2px; text-decoration: none; color: var(--ink); }
.lp-logo b { font-weight: 700; color: var(--primary); }

/* ---------- Inicio (día) ---------- */
.lp-hero { padding: 24px 0 32px; }
.lp-hero .lp-wrap { display: grid; gap: 30px; }
.lp-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lp-hero h1 { font-size: clamp(48px, 14vw, 92px); font-weight: 700; line-height: .98; letter-spacing: -.5px; }
.lp-hero h1 em { font-style: normal; color: var(--primary); white-space: nowrap; background: linear-gradient(var(--gold), var(--gold)) 0 96% / 100% .12em no-repeat; }
.lp-lead { max-width: 31ch; font-size: 19px; font-weight: 700; color: #374151; }
.lp-cta { width: 100%; max-width: 360px; min-height: 64px; font-size: 23px; }
.lp-cta .avatar { width: 36px; height: 36px; font-size: 20px; box-shadow: 0 0 0 2px #fff; }

/* El celular muestra el inicio de la Expedición, hecho con los mismos componentes del app */
.lp-stage { position: relative; width: fit-content; margin: 0 auto; }
.lp-phone { --k: .6; width: calc(390px * var(--k) + 16px); height: calc(598px * var(--k) + 16px); border: 8px solid #1F2937; border-radius: 38px; overflow: hidden; background: var(--bg); box-shadow: 0 24px 46px rgba(31, 41, 55, .24); }
.lp-phone .screen { width: 390px; max-width: none; height: 598px; min-height: 0; margin: 0; padding-bottom: 16px; transform: scale(var(--k)); transform-origin: 0 0; }
.lp-phone .pin .dot { animation: pulso 1.8s ease-in-out infinite; }
.lp-phone .pin:nth-of-type(2) .dot { animation-delay: .45s; }
.lp-phone .pin:nth-of-type(3) .dot { animation-delay: .9s; }
.lp-phone .pin:nth-of-type(4) .dot { animation-delay: 1.35s; }
.lp-float { position: absolute; z-index: 2; font-size: 16px; padding: 8px 14px; box-shadow: 0 3px 0 var(--line), 0 10px 20px rgba(31, 41, 55, .14); animation: flota 3.6s ease-in-out infinite; }
.lp-float.f1 { left: -22px; top: 15%; --giro: -7deg; }
.lp-float.f2 { right: -24px; top: 56%; --giro: 6deg; animation-delay: 1.2s; }
@keyframes flota { 0%, 100% { transform: rotate(var(--giro)) translateY(0); } 50% { transform: rotate(var(--giro)) translateY(-8px); } }

/* ---------- ¿Te la sabés? ---------- */
.lp-demo { padding: 8px 0 40px; }
.lp-demo .card { position: relative; overflow: hidden; max-width: 640px; margin: 16px auto 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.lp-demo .lp-head { max-width: 640px; margin: 0 auto; }
button.opt { appearance: none; cursor: pointer; transition: transform .08s, box-shadow .08s; }
button.opt:not(:disabled):active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
button.opt:disabled { cursor: default; }
.lp-fb { display: none; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; }
.lp-fb.ok, .lp-fb.bad { display: flex; }
.lp-fb.ok { background: #ECFDF5; }
.lp-fb.bad { background: #FEF2F2; }
.lp-fb h3 { font-size: 22px; }
.lp-fb.ok h3 { color: #047857; }
.lp-fb.bad h3 { color: #B91C1C; }
.lp-fb .why { font-weight: 700; }
.lp-fb.ok .why { color: #065F46; }
.lp-fb.bad .why { color: #7F1D1D; }
.lp-fb .more { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.lp-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lp-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: cae 1.5s ease-in forwards; }
@keyframes cae { to { transform: translateY(560px) rotate(540deg); opacity: 0; } }

/* ---------- De día explorás ---------- */
.lp-day { padding: 0 0 32px; }
.lp-feats { display: grid; gap: 12px; margin-top: 16px; }
.lp-feat { display: flex; align-items: center; gap: 14px; }
.lp-feat .ico { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; line-height: 1; background: var(--tint); }
.lp-feat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.lp-feat .mini { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.lp-feat .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 2px 0 2px rgba(31, 41, 55, .14); }
.lp-feat .xp { flex: 1; max-width: 150px; margin: 0; }

/* ---------- Atardecer: el paso del día a la noche ---------- */
.lp-dusk { position: relative; height: 320px; overflow: hidden; background: linear-gradient(180deg, #FFF7E8 0%, #FFE3B0 16%, #FFB37A 34%, #F0709A 52%, #7C3AAE 70%, #2A1B5E 86%, #0F1020 100%); }
.lp-sun { position: absolute; left: 50%; top: 56px; width: 112px; height: 112px; margin-left: -56px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFF6C2, #FFC83D 58%, #FF8A1F); box-shadow: 0 0 70px 24px rgba(255, 200, 61, .45); }
.lp-stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .85; animation: titila 2.4s ease-in-out infinite; }
@keyframes titila { 50% { opacity: .25; } }
.lp-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 130px; display: block; }
.lp-pere { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; }
.lp-pere .pere { transition: background .5s, box-shadow .5s; }
.lp-pere .pere.gamer::after { animation: audifonos .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes audifonos { from { transform: translateX(-50%) translateY(-26px) scale(.4); opacity: 0; } }
.lp-pere .bubble { max-width: 230px; color: #1F2937; background: #fff; box-shadow: 0 3px 0 rgba(15, 16, 32, .35); font-size: 17px; }

/* ---------- Noche ---------- */
.lp-night { color: var(--ink); background:
    radial-gradient(70% 22% at 100% 8%, rgba(255, 79, 216, .20), rgba(255, 79, 216, 0) 70%),
    radial-gradient(80% 24% at 0% 34%, rgba(34, 211, 238, .16), rgba(34, 211, 238, 0) 70%),
    radial-gradient(90% 26% at 50% 70%, rgba(124, 58, 237, .38), rgba(124, 58, 237, 0) 70%),
    linear-gradient(180deg, #0F1020 0%, #1B1140 55%, #0F1020 100%); }
.lp-night .lp-h2 { color: #fff; text-shadow: 0 0 12px rgba(34, 211, 238, .8), 0 0 34px rgba(124, 58, 237, .9); }
.lp-arena { padding: 20px 0 40px; }
.lp-arena .lp-wrap { display: grid; gap: 22px; }
.lp-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.lp-points li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.lp-points .ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px var(--line); }
.lp-duel { display: flex; flex-direction: column; gap: 12px; padding: 14px; max-width: 430px; width: 100%; margin: 0 auto; box-shadow: 0 0 0 2px #22D3EE, 0 0 34px rgba(34, 211, 238, .32), 0 18px 40px rgba(0, 0, 0, .4); }
.lp-duel .timer { width: 48px; height: 48px; font-size: 18px; }
.lp-duel .q-text { font-size: 19px; }
.lp-duel .answer { min-height: 74px; padding: 12px; font-size: 17px; border-radius: 16px; }
.lp-duel .answer .shape { width: 18px; height: 18px; }
.lp-duel .player { padding: 10px 2px 8px; }

.lp-nums { padding: 0 0 40px; }
.lp-nums .lp-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-num { padding: 18px 10px; border-radius: 22px; text-align: center; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line); }
.lp-num b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(46px, 15vw, 68px); line-height: 1; color: var(--n); text-shadow: 0 0 22px var(--n); font-variant-numeric: tabular-nums; }
.lp-num span { display: block; margin-top: 6px; font-weight: 800; font-size: 16px; color: var(--ink); }

.lp-worlds { padding: 0 0 36px; }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.lp-world { grid-column: 1 / -1; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lp-world .art { height: 104px; display: flex; align-items: center; justify-content: space-around; font-size: 46px; line-height: 1; background: linear-gradient(112deg, #FFF7E8 0 50%, #1B1140 50% 100%); }
.lp-world .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lp-world h3 { font-size: 24px; }
.lp-world .chip { align-self: flex-start; color: var(--ok); }
.lp-lock { min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 22px; border: 2px dashed var(--line); color: var(--muted); font-weight: 800; font-size: 14px; text-align: center; }
.lp-lock .ico { font-size: 30px; line-height: 1; opacity: .8; }
.lp-soon { grid-column: 1 / -1; margin-top: 6px; }

.lp-end { padding: 0 0 36px; text-align: center; }
.lp-end .lp-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lp-end .neon-title { font-size: clamp(48px, 15vw, 76px); letter-spacing: 1px; }
/* ---------- Contacto (para personas adultas) ---------- */
.lp-contact { padding: 8px 0 44px; }
.lp-contact-grid { display: grid; gap: 14px; margin-top: 16px; }
.lp-school { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.lp-school > .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; line-height: 1; background: rgba(255, 79, 216, .16); box-shadow: 0 0 0 1px rgba(255, 79, 216, .4); }
.lp-school h3 { font-size: 24px; }
.lp-school > .btn { margin-top: 6px; font-size: 18px; line-height: 1.2; text-align: center; }
.lp-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.lp-form[hidden], .lp-sent[hidden], .lp-school > .btn[hidden] { display: none; }
.lp-field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
.lp-field i { font-style: normal; font-weight: 700; color: var(--muted); }
.lp-field input, .lp-field select, .lp-field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 17px; outline: none; }
.lp-field textarea { min-height: 96px; resize: vertical; }
.lp-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.lp-field select option { color: #1F2937; }
.lp-field ::placeholder { color: #7C7FA6; }
.lp-field :focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }
.lp-field [aria-invalid] { border-color: var(--bad); }
.lp-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-form-error { min-height: 1em; font-weight: 800; color: var(--bad); }
.lp-form-error:empty { display: none; }
.lp-sent { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--ok-soft); box-shadow: 0 0 0 1px rgba(74, 222, 128, .4); }
.lp-sent b { font-family: var(--font-display); font-weight: 600; font-size: 19px; }

.lp-reach { display: flex; flex-direction: column; gap: 14px; }
.lp-mail { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: 22px; text-decoration: none; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--line); font-family: var(--font-display); font-weight: 600; font-size: 21px; overflow-wrap: anywhere; }
.lp-mail:hover { box-shadow: 0 0 0 2px var(--primary), 0 0 18px rgba(34, 211, 238, .3); }
.lp-mail .ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: rgba(34, 211, 238, .14); }
.lp-mail small { display: block; font-family: var(--font-body); font-weight: 800; font-size: 13px; color: var(--muted); }
.lp-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lp-red { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line); opacity: .7; }
a.lp-red { color: var(--ink); opacity: 1; }
.lp-red svg { width: 24px; height: 24px; }
.lp-pronto { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-foot { padding: 20px 0 30px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.lp-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-bottom: 8px; }
.lp-foot a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 800; }

/* ---------- Tableta y computadora ---------- */
@media (min-width: 900px) {
  .lp-wrap { padding: 0 32px; }
  .lp-hero { padding: 56px 0 72px; }
  .lp-hero .lp-wrap { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
  .lp-lead { font-size: 22px; }
  .lp-phone { --k: .8; }
  .lp-copy { gap: 20px; }
  .lp-demo, .lp-day { padding-bottom: 80px; }
  .lp-feats { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .lp-feat { flex-direction: column; align-items: flex-start; padding: 22px; }
  .lp-dusk { height: 440px; }
  .lp-sun { top: 90px; }
  .lp-hills { height: 170px; }
  .lp-arena { padding: 48px 0 80px; }
  .lp-arena .lp-wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .lp-points li { font-size: 24px; }
  .lp-nums { padding-bottom: 80px; }
  .lp-nums .lp-wrap { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .lp-worlds { padding-bottom: 80px; }
  .lp-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; }
  .lp-world { grid-column: auto; grid-row: span 2; }
  .lp-lock { min-height: 0; grid-row: span 2; }
  .lp-soon { order: 9; }
  .lp-contact { padding-bottom: 72px; }
  .lp-contact-grid { grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
  .lp-school { padding: 26px; }
  .lp-form { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-form > p, .lp-form > .btn, .lp-form > .lp-field:has(textarea), .lp-form-error { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-confetti { display: none; }
}
