/* OniriaTracker — web de descarga. Identidad "Entrega 1": medianoche + ámbar lunar, Manrope. */
@font-face { font-family: 'Manrope'; src: url('fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0B0E1C; --bg-2: #0F1326; --surface: #151A33; --surface-2: #1C2242; --line: rgba(244,236,221,.09);
  --text: #F3EEE4; --text-2: #A9ABC4; --text-3: #6F7396;
  --amber: #F2B85B; --amber-press: #E0A44A; --on-amber: #1A1405; --lucid: #8E7CF0; --cream: #F4ECDD;
  --r: 22px; --wrap: 1160px; --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: inherit; font-weight: 700; color: var(--amber); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.defs { position: absolute; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
::selection { background: rgba(242,184,91,.3); }

/* ---------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; border-radius: 16px; transition: transform .15s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-pri { background: var(--amber); color: var(--on-amber); box-shadow: 0 10px 30px -10px rgba(242,184,91,.55); }
.btn-pri:hover { background: #F5C273; }
.btn-ghost { color: var(--text); background: rgba(244,236,221,.06); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(244,236,221,.1); }
.btn-lg { height: 58px; padding: 0 26px; font-size: 17px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn-sm svg.i { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11,14,28,.72); backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.tile { width: 36px; height: 36px; border-radius: 23%; background: linear-gradient(165deg, #232A55 0%, #141833 62%); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(255,255,255,.05); flex: none; }
.tile svg { width: 86%; height: 86%; }
.tile.big { width: 76px; height: 76px; }
.wm { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.wm span { font-weight: 500; opacity: .6; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 650; color: var(--text-2); }
.links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* ---------------------------------------------------------------- portada */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.g1 { width: 720px; height: 720px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(64,76,160,.42), transparent 65%); }
.g2 { width: 520px; height: 520px; right: 180px; top: 260px; background: radial-gradient(circle, rgba(242,184,91,.12), transparent 65%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text-2); padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(244,236,221,.05); box-shadow: inset 0 0 0 1px var(--line); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242,184,91,.16); }
h1 { font-size: clamp(44px, 7.2vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; margin: 22px 0 22px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 560px; font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.meta { margin-top: 14px; font-size: 14px; color: var(--text-3); font-weight: 600; }
.qr-card { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(244,236,221,.04); box-shadow: inset 0 0 0 1px var(--line); max-width: 420px; }
.qr-card b { display: block; font-size: 15px; }
.qr-card span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; display: block; margin-top: 2px; }
.qr { width: 88px; height: 88px; border-radius: 10px; background: #F4ECDD; padding: 6px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-card.inline { margin: 22px auto 0; }
body:not(.desktop) .desktop-only { display: none; }

.hero-phones { position: relative; height: 640px; }
.phone { position: relative; border-radius: 46px; padding: 9px; background: #05060C; box-shadow: 0 0 0 1.5px #262A3D, 0 40px 80px -24px rgba(0,0,0,.7); }
.phone img { border-radius: 37px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: #0F1222; }
.phone::after { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 26%; height: 22px; border-radius: 12px; background: #05060C; }
.p-front { position: absolute; width: 300px; right: 34px; top: 10px; z-index: 2; animation: float 7s ease-in-out infinite; }
.p-back { position: absolute; width: 262px; right: 290px; top: 74px; opacity: .92; transform: rotate(-5deg); animation: float2 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(8px); } }

.trust { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.trust li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(244,236,221,.035); box-shadow: inset 0 0 0 1px var(--line); }
.trust svg { grid-row: span 2; color: var(--amber); width: 26px; height: 26px; }
.trust b { font-size: 15.5px; }
.trust span { font-size: 13px; color: var(--text-3); font-weight: 600; }

/* ---------------------------------------------------------------- secciones */
section { position: relative; }
.features, .privacy, .download, .changes, .faq { padding: 110px 0 0; }
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head.center { margin: 0 auto 56px; text-align: center; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin-top: 12px; text-wrap: balance; }
.sec-head p { font-size: 18px; color: var(--text-2); margin-top: 16px; font-weight: 500; }

.feat { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feat.rev { grid-template-columns: 360px 1fr; }
.feat.rev .feat-text { order: 2; }
.feat .phone { width: 320px; justify-self: center; }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(242,184,91,.12); color: var(--amber); margin-bottom: 20px; }
.feat-ic svg.i { width: 24px; height: 24px; }
h3 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; line-height: 1.12; font-weight: 800; }
.feat p { font-size: 18px; color: var(--text-2); margin-top: 14px; max-width: 520px; font-weight: 500; }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; font-weight: 600; color: var(--text); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(142,124,240,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5A9F5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 64px; }
.card { padding: 24px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), background .3s; }
.card:hover { transform: translateY(-3px); background: var(--surface-2); }
.card svg.i { color: var(--amber); width: 26px; height: 26px; }
.card b { display: block; font-size: 17px; margin-top: 16px; letter-spacing: -.01em; }
.card span { display: block; font-size: 14.5px; color: var(--text-2); margin-top: 4px; font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 64px; }
.phone.sm { border-radius: 36px; padding: 7px; }
.phone.sm img { border-radius: 30px; }
.phone.sm::after { top: 15px; height: 17px; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-size: 14px; font-weight: 700; color: var(--text-2); }

/* ---------------------------------------------------------------- privacidad */
.privacy { padding-top: 150px; }
.privacy::before { content: ''; position: absolute; inset: 60px 0 -60px; background: radial-gradient(800px 380px at 50% 30%, rgba(64,76,160,.22), transparent 70%); pointer-events: none; }
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { padding: 30px; border-radius: var(--r); background: linear-gradient(180deg, rgba(28,34,66,.9), rgba(21,26,51,.9)); box-shadow: inset 0 0 0 1px var(--line); }
.pillar b { display: block; font-size: 19px; letter-spacing: -.015em; }
.pillar p { font-size: 15.5px; color: var(--text-2); margin-top: 8px; font-weight: 500; }

/* ---------------------------------------------------------------- descarga */
.dl-card { position: relative; overflow: hidden; text-align: center; padding: 56px 32px 44px; border-radius: 32px; background: radial-gradient(600px 300px at 50% 0%, rgba(242,184,91,.14), transparent 70%), linear-gradient(170deg, #1C2248 0%, #121633 100%); box-shadow: inset 0 0 0 1px rgba(244,236,221,.1), 0 40px 80px -30px rgba(0,0,0,.7); }
.dl-main { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: left; }
.dl-main h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.dl-main p { color: var(--text-2); font-weight: 600; font-size: 15px; margin-top: 4px; }
.dl-btn { margin-top: 32px; min-width: 280px; }
.ios-note { display: none; margin-top: 14px; color: var(--text-2); font-size: 14px; font-weight: 600; }
body.ios .ios-note { display: block; }

.steps { margin-top: 64px; }
.steps h3 { font-size: 26px; margin-bottom: 22px; }
.steps ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 26px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(242,184,91,.14); color: var(--amber); font-weight: 800; font-size: 15px; margin-bottom: 16px; }
.steps b { display: block; font-size: 17px; }
.steps span { display: block; font-size: 15px; color: var(--text-2); margin-top: 6px; font-weight: 500; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 15px; color: var(--text-2); font-weight: 600; }
.note svg.i { color: #5DBB94; width: 20px; height: 20px; margin-top: 2px; }

/* ---------------------------------------------------------------- novedades y preguntas */
.release { padding: 26px 28px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.release header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.release header b { font-size: 20px; letter-spacing: -.02em; }
.release header span { font-size: 14px; color: var(--text-3); font-weight: 700; }
.release ul { padding-left: 20px; display: grid; gap: 8px; }
.release li { font-size: 15.5px; color: var(--text-2); font-weight: 500; }
.release li b { color: var(--text); }
.release li::marker { color: var(--amber); }

details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--text-3); transition: transform .25s var(--ease); line-height: 1; }
details[open] summary::after { transform: rotate(45deg); color: var(--amber); }
details p { padding: 0 40px 22px 0; color: var(--text-2); font-size: 16px; font-weight: 500; }

.foot { margin-top: 110px; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot p { font-size: 14px; color: var(--text-3); font-weight: 600; }
.foot p b { color: var(--text-2); }

.sticky-dl { display: none; }

/* ---------------------------------------------------------------- aparición suave */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- móvil */
@media (max-width: 960px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 44px; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-phones { height: 520px; max-width: 420px; width: 100%; margin: 10px auto 0; }
  .p-front { width: 238px; right: 6%; top: 0; }
  .p-back { width: 206px; right: auto; left: 2%; top: 56px; }
  .trust { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }
  .feat.rev .feat-text { order: 0; }
  .feat .phone { width: min(290px, 78vw); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 56px -24px 0; padding: 0 24px 48px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .phone { flex: 0 0 64%; scroll-snap-align: center; }
  .pillars, .steps ol { grid-template-columns: 1fr; }
  .features, .privacy, .download, .changes, .faq { padding-top: 84px; }
  .sticky-dl { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; height: 54px; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; background: var(--amber); color: var(--on-amber); font-weight: 800; font-size: 16px; box-shadow: 0 14px 40px -10px rgba(0,0,0,.7), 0 8px 24px -8px rgba(242,184,91,.5); transform: translateY(130%); transition: transform .35s var(--ease); }
  .sticky-dl.show { transform: none; }
  .foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  body { font-size: 16px; }
  .cta .btn { width: 100%; }
  .trust li { padding: 14px; }
  .grid { grid-template-columns: 1fr; }
  .dl-card { padding: 40px 20px 32px; }
  .dl-main { flex-direction: column; text-align: center; }
  .dl-btn { width: 100%; min-width: 0; }
  .gallery { margin: 56px -18px 0; padding: 0 18px 48px; }
  details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
