/* Napsi · napsi.app. El cielo de la app, su cristal y sus ilustraciones. Sin tipografías externas ni rastreo. */
:root {
  --night-0: #07061a;
  --night-1: #0d0b2b;
  --night-2: #17134a;
  --night-3: #221b66;
  --lavender: #9684ff;
  --lavender-soft: #c9bdff;
  --apricot: #ffc98b;
  --cream: #ffe3bd;
  --text: #f4f1ff;
  --muted: rgba(236, 232, 255, .72);
  --faint: rgba(236, 232, 255, .5);
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .12);
  --round: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, "Segoe UI", system-ui, sans-serif;
  --text-font: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --spring: cubic-bezier(.2, .9, .25, 1.1);
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text-font);
  color: var(--text);
  background: var(--night-1);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(150, 132, 255, .45); }

/* ── Cielo ─────────────────────────────────────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(150, 132, 255, .32), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 18%, rgba(255, 201, 139, .14), transparent 70%),
    linear-gradient(180deg, var(--night-3) 0%, var(--night-2) 28%, var(--night-1) 62%, var(--night-0) 100%); }
.stars { position: absolute; inset: -50% 0 0; background-repeat: repeat; }
.stars.s1 { background-size: 340px 340px; opacity: .9; animation: twinkle 6s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.6px 1.6px at 30px 40px, #fff, transparent), radial-gradient(1.2px 1.2px at 190px 120px, #fff, transparent),
    radial-gradient(1.4px 1.4px at 280px 260px, #fff, transparent), radial-gradient(1px 1px at 90px 300px, #fff, transparent); }
.stars.s2 { background-size: 520px 520px; opacity: .6; animation: twinkle 9s ease-in-out infinite alternate-reverse;
  background-image:
    radial-gradient(1.8px 1.8px at 120px 80px, #fff, transparent), radial-gradient(1.2px 1.2px at 400px 200px, #ffe3bd, transparent),
    radial-gradient(1.4px 1.4px at 260px 440px, #fff, transparent), radial-gradient(1px 1px at 470px 370px, #c9bdff, transparent); }
.aurora { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(80px); opacity: .35; }
.aurora.a1 { left: -25vmax; top: 30vh; background: radial-gradient(circle, rgba(132, 121, 238, .55), transparent 65%); animation: drift 24s ease-in-out infinite alternate; }
.aurora.a2 { right: -30vmax; top: 110vh; background: radial-gradient(circle, rgba(255, 170, 200, .28), transparent 65%); animation: drift 30s ease-in-out infinite alternate-reverse; }
@keyframes twinkle { from { opacity: .35; } to { opacity: .95; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate3d(0, -14px, 0) rotate(calc(var(--r, 0deg) + 3deg)); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ── Barra ─────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter); transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(13, 11, 43, .62); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--round); font-weight: 800; font-size: 21px; letter-spacing: -.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.nav .links { display: flex; gap: 26px; margin-left: auto; }
.nav .links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav .links a:hover { color: var(--text); }
.lang { font-size: 13px; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.lang:hover { color: var(--text); background: var(--glass); }
@media (max-width: 760px) { .nav .links { display: none; } .lang { margin-left: auto; } }

/* ── Texto ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--round); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(46px, 8.2vw, 96px); }
h2 { font-size: clamp(36px, 5.6vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
em { font-style: normal; background: linear-gradient(92deg, var(--cream), var(--apricot) 45%, var(--lavender-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 34em; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); padding: 9px 16px; border-radius: 999px; background: rgba(255, 217, 168, .08); border: 1px solid rgba(255, 217, 168, .24); }
.eyebrow img { width: 24px; height: 24px; }

/* ── Botones ───────────────────────────────────────────────────────────── */
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 16px; text-decoration: none;
  background: #fff; color: #0b0b12; box-shadow: 0 16px 40px rgba(5, 3, 30, .5), inset 0 0 0 1px rgba(255, 255, 255, .6); transition: transform .35s var(--spring), box-shadow .35s; }
.store:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 22px 50px rgba(5, 3, 30, .6); }
.store svg { width: 28px; height: 28px; }
.store span { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--round); font-weight: 700; font-size: 21px; letter-spacing: -.2px; }
.store small { font-family: var(--text-font); font-weight: 500; font-size: 11.5px; letter-spacing: 0; opacity: .7; }
.gift { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.gift img { width: 30px; height: 30px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }

/* ── Portada ───────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(60px, 8vw, 120px); max-width: 1320px; margin: 0 auto; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-art { position: relative; justify-self: center; width: min(400px, 82vw); }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero-copy { justify-items: center; } .lead { margin-inline: auto; } .ctas { justify-content: center; } }

/* iPhone hecho con CSS, con la captura de la app dentro. */
.phone { position: relative; aspect-ratio: 1000 / 2140; border-radius: 15.6% / 7.3%; padding: 2.2%;
  background: linear-gradient(145deg, #4a4a55, #0c0c10 30%, #0c0c10 70%, #34343c);
  box-shadow: 0 0 0 1.5px #55555f, 0 50px 120px rgba(5, 3, 30, .8), 0 0 140px rgba(150, 132, 255, .28); }
.phone .screen { width: 100%; height: 100%; border-radius: 13.8% / 6.4%; overflow: hidden; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sprite { position: absolute; filter: drop-shadow(0 22px 30px rgba(5, 3, 30, .55)); animation: float 7s ease-in-out infinite; will-change: transform; }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 22px; white-space: nowrap;
  background: rgba(40, 34, 110, .55); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 24px 60px rgba(5, 3, 30, .55); animation: float 8s ease-in-out infinite; }
.chip img { width: 44px; height: 44px; }
.chip b { display: block; font-family: var(--round); font-size: 16px; font-weight: 800; }
.chip span { display: block; font-size: 13px; color: var(--muted); }

/* ── Secciones ─────────────────────────────────────────────────────────── */
section { position: relative; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; display: grid; justify-items: center; gap: 22px; }
.block { padding: clamp(70px, 10vw, 140px) 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding: clamp(40px, 6vw, 80px) 0; }
.feature:nth-child(even) .feature-art { order: -1; }
.feature-copy { display: grid; gap: 20px; justify-items: start; }
.feature-copy .lead { font-size: 19px; }
.feature-art { position: relative; justify-self: center; width: min(330px, 74vw); }
.points { list-style: none; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 16.5px; }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 12px var(--apricot); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; text-align: center; } .feature:nth-child(even) .feature-art { order: 0; } .feature-copy { justify-items: center; } .points li { text-align: left; } }

/* Rejilla de detalles */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 56px; width: 100%; }
.card { position: relative; padding: 26px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line); text-align: left;
  box-shadow: 0 24px 60px rgba(5, 3, 30, .35); transition: transform .45s var(--spring), background .3s; overflow: hidden; }
.card:hover { transform: translateY(-4px); background: var(--glass-strong); }
.card img { width: 64px; height: 64px; margin-bottom: 16px; filter: drop-shadow(0 10px 18px rgba(5, 3, 30, .5)); }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

/* Privacidad */
.vault { border-radius: 40px; padding: clamp(40px, 7vw, 90px) clamp(24px, 6vw, 80px); text-align: center; display: grid; justify-items: center; gap: 22px;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(150, 132, 255, .22), transparent 70%), rgba(255, 255, 255, .04);
  border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(5, 3, 30, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.vault .scene { width: min(300px, 70vw); animation: breathe 9s ease-in-out infinite; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.badges span { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }

/* Premium */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; width: 100%; max-width: 920px; text-align: left; }
.plan { padding: 34px; border-radius: 32px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.plan.premium { background: linear-gradient(160deg, rgba(150, 132, 255, .28), rgba(255, 201, 139, .1) 70%), rgba(255, 255, 255, .05);
  border-color: rgba(255, 217, 168, .35); box-shadow: 0 40px 100px rgba(80, 60, 200, .35); }
.plan h3 { display: flex; align-items: center; gap: 12px; }
.plan h3 img { width: 44px; height: 44px; }
.plan .tag { font-size: 14px; color: var(--cream); font-weight: 600; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Preguntas */
.faq { width: 100%; max-width: 820px; margin-top: 46px; display: grid; gap: 12px; text-align: left; }
details { border-radius: 22px; background: var(--glass); border: 1px solid var(--line); transition: background .3s; }
details[open] { background: var(--glass-strong); }
summary { cursor: pointer; list-style: none; padding: 22px 26px; font-family: var(--round); font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--apricot); transition: transform .35s var(--spring); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 26px 22px; color: var(--muted); }

/* Cierre */
.finale { text-align: center; display: grid; justify-items: center; gap: 26px; padding: clamp(70px, 10vw, 130px) var(--gutter) 90px; }
.finale .moon { width: min(340px, 72vw); animation: float 9s ease-in-out infinite; filter: drop-shadow(0 40px 60px rgba(5, 3, 30, .6)); }

footer { border-top: 1px solid var(--line); padding: 34px var(--gutter) 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; color: var(--faint); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── Páginas de texto (privacidad, soporte) ────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) 100px; }
.doc header { display: grid; gap: 18px; margin-bottom: 44px; }
.doc header img { width: 120px; filter: drop-shadow(0 20px 30px rgba(5, 3, 30, .5)); }
.doc h1 { font-size: clamp(40px, 6vw, 64px); }
.doc h2 { font-size: 26px; margin: 44px 0 14px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 10px; }
.doc strong { color: var(--text); }
.doc .updated { color: var(--faint); font-size: 14px; }
.doc .note { margin-top: 30px; padding: 22px 24px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.doc a { color: var(--apricot); }

/* ── Aparición al desplazarse ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s ease, transform 1s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Teléfono ──────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .eyebrow { font-size: 11.5px; letter-spacing: .1em; padding: 8px 14px; white-space: nowrap; }
  .gift { flex-basis: 100%; justify-content: center; font-size: 14px; }
  .hero-art { width: min(300px, 70vw); margin-top: 10px; }
  .chip { padding: 9px 14px 9px 9px; border-radius: 18px; }
  .chip img { width: 34px; height: 34px; }
  .chip b { font-size: 14px; } .chip span { font-size: 12px; }
  .feature-art { width: min(260px, 66vw); }
  footer nav { margin-left: 0; }
}
