@font-face { font-family: 'Space Grotesk'; src: url('../app/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../app/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../app/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #000; --l1: #1c1c1c; --l2: #2a2a2a; --l3: #444; --t1: #fff; --t2: #b4b4b4; --t3: #7c7c7c;
  --head: 'Space Grotesk', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.4, .5, 1);
  --sab: env(safe-area-inset-bottom, 0px); --sat: env(safe-area-inset-top, 0px);
  --pad: clamp(16px, 5vw, 64px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--t1); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.dim { color: var(--t3); }
.ol { color: transparent; -webkit-text-stroke: 1.3px #fff; }
.center { text-align: center; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
main, .foot { position: relative; z-index: 1; }
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); z-index: 40; }

/* ---------- Navegación ---------- */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(14px + var(--sat)) var(--pad) 14px; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
#nav.solid { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--l1); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--t2); margin-left: auto; }
.nav-links a { text-decoration: none; transition: color .25s; }
.nav-links a:hover { color: #fff; }
#nav .btn-buy { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
#nav.solid .btn-buy { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Botón de compra ---------- */
.btn-buy { position: relative; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #000; border-radius: 999px; padding: 17px 30px; font-weight: 500; font-size: 16px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .4s; box-shadow: 0 0 0 0 rgba(255,255,255,.0); will-change: transform; }
.btn-buy:hover { box-shadow: 0 0 40px 2px rgba(255,255,255,.22); }
.btn-buy:active { transform: scale(.96) !important; }
.btn-buy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(0,0,0,.12) 50%, transparent 70%); transform: translateX(-110%); animation: shine 3.6s 2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.btn-buy span { position: relative; z-index: 1; pointer-events: none; }
.btn-buy.small { padding: 10px 18px; font-size: 14px; }
.btn-buy.busy { opacity: .7; pointer-events: none; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(90px, 14vw, 170px) var(--pad); max-width: 1180px; margin: 0 auto; }
.kick { color: var(--t3); letter-spacing: .18em; margin: 0 0 18px; font-size: 11.5px; }
.sh { font-size: clamp(40px, 7vw, 92px); line-height: .98; margin-bottom: 22px; }
.lead { color: var(--t2); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; max-width: 36ch; margin: 0 0 28px; }
.micro { color: var(--t3); margin: 14px 0 0; font-size: 11.5px; }
.note { color: var(--t3); font-size: 11px; line-height: 1.6; max-width: 70ch; margin: 18px 0 0; }

/* ---------- Portada ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) calc(clamp(48px, 9vh, 110px) + var(--sab)); position: relative; }
.hero-in { max-width: 1180px; margin: 0 auto; width: 100%; }
.hero-t { font-size: clamp(64px, 14vw, 210px); line-height: .9; letter-spacing: -.045em; margin: 0 0 26px; font-weight: 600; }
.hero-t.small { font-size: clamp(60px, 12vw, 170px); }
.hero-t .ln { display: block; overflow: hidden; padding: 0 .04em .06em; margin: 0 -.04em; }
.hero-t .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero-t .ln + .ln > span { transition-delay: .12s; }
.hero-t.in .ln > span { transform: none; }
.hero-t .ol { -webkit-text-stroke-width: 2px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; }
.scroll-hint { position: absolute; right: var(--pad); bottom: calc(clamp(48px, 9vh, 110px) + var(--sab)); color: var(--t3); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; writing-mode: vertical-rl; letter-spacing: .2em; font-size: 10.5px; }
.scroll-hint i { width: 1px; height: 54px; background: linear-gradient(#fff, transparent); animation: drip 2.2s infinite var(--ease); transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Aparición al bajar ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Antes y después ---------- */
.ba { --v: .5; position: relative; height: clamp(440px, 62vh, 600px); border: 1px solid var(--l2); border-radius: 26px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.ba-side { position: absolute; inset: 0; padding: 22px; }
.ba-antes { background: radial-gradient(circle at 30% 20%, #141414, #000 70%); }
.ba-despues { background: #000; clip-path: inset(0 0 0 calc(var(--v) * 100%)); }
.ba-tag { position: absolute; top: 18px; font-size: 10.5px; letter-spacing: .16em; color: var(--t3); z-index: 2; }
.ba-antes .ba-tag { left: 20px; }
.ba-despues .ba-tag { right: 20px; color: #fff; }
.mess { position: absolute; inset: 50px 16px 16px; }
.mess p { position: absolute; left: var(--x); top: var(--y); margin: 0; transform: rotate(var(--r)); background: #111; border: 1px solid #2c2c2c; color: #9a9a9a; padding: 10px 14px; border-radius: 8px; font-size: clamp(12px, 1.6vw, 15px); font-family: var(--mono); white-space: nowrap; animation: wobble 5s ease-in-out infinite alternate; animation-delay: calc(var(--y) * -0.08s); }
.mess p:nth-child(odd) { text-decoration: line-through; text-decoration-color: #555; }
@keyframes wobble { to { transform: rotate(calc(var(--r) * -0.6)) translateY(-6px); } }
.tidy { position: absolute; inset: 54px 20px 20px; display: flex; flex-direction: column; gap: 12px; justify-content: center; max-width: 460px; margin-left: auto; }
.tcard { border: 1px solid var(--l2); border-radius: 16px; padding: 14px 16px; background: rgba(8, 8, 8, .9); }
.tcard p { margin: 0; }
.tcard .dim { font-size: 11px; margin-bottom: 8px; }
.tcard .row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; }
.tcard .row i { width: 15px; height: 15px; border: 1.3px solid #777; border-radius: 50%; flex: none; position: relative; }
.tcard .row.ok { color: var(--t3); text-decoration: line-through; }
.tcard .row.ok i { background: #fff; border-color: #fff; }
.tcard .bar { height: 3px; background: var(--l2); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.tcard .bar i { display: block; height: 100%; background: #fff; }
.heat { display: grid; grid-template-columns: repeat(21, 1fr); gap: 3px; }
.heat i { aspect-ratio: 1; border-radius: 2px; background: #1a1a1a; }
.heat i.on { background: #fff; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: calc(var(--v) * 100%); width: 0; z-index: 3; outline: none; }
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: #fff; box-shadow: 0 0 16px rgba(255,255,255,.6); }
.ba-handle span { position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .3s var(--spring); }
.ba-handle span::before { content: '‹  ›'; color: #000; font-size: 20px; font-weight: 600; letter-spacing: -2px; }
.ba-handle:focus-visible span, .ba.drag .ba-handle span { transform: scale(1.12); }
.vs { margin-top: 40px; border-top: 1px solid var(--l1); }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--l1); font-size: clamp(14px, 1.5vw, 17px); }
.vs-row span { color: var(--t3); text-decoration: line-through; text-decoration-color: #444; }
.vs-row b { font-weight: 500; }

/* ---------- Módulos ---------- */
.mods { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.mod { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--l2); border-radius: 999px; padding: 11px 18px 11px 12px; background: rgba(0,0,0,.6); font-size: 15px; transition: background .3s, color .3s, border-color .3s, transform .4s var(--spring); }
.mod svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mod:hover { border-color: #fff; transform: translateY(-2px); }
.mod.on { background: #fff; color: #000; border-color: #fff; }
.mod-info { margin-top: 26px; max-width: 560px; min-height: 120px; border-left: 1px solid #fff; padding: 4px 0 4px 20px; }
.mod-info h3 { font-size: 28px; margin-bottom: 8px; }
.mod-info p { margin: 0; color: var(--t2); line-height: 1.6; }
.mod-info .swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateX(-12px); } }

/* ---------- Demostración ---------- */
.demo { display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 90px); align-items: center; }
.day { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.day-n { font-family: var(--mono); font-weight: 300; font-size: clamp(80px, 11vw, 150px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.day-of { color: var(--t3); font-size: 13px; }
.day-bar { height: 2px; background: var(--l2); margin: 18px 0 16px; max-width: 420px; }
.day-bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(.033); transition: transform .35s var(--ease); }
.day-cap { font-family: var(--head); font-size: clamp(20px, 2.4vw, 30px); margin: 0; min-height: 2.4em; letter-spacing: -.01em; }
.day-cap.swap { animation: swap .5s var(--ease); }
.phone { width: min(340px, 82vw); aspect-ratio: 375 / 780; border-radius: 48px; padding: 10px; background: #111; border: 1px solid #333; box-shadow: 0 40px 120px rgba(255,255,255,.07), inset 0 0 0 1px #000; justify-self: center; position: relative; }
.phone-in { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; position: relative; background: #000; }
.phone iframe { border: 0; width: 375px; height: 780px; transform-origin: 0 0; transform: scale(var(--k, 1)); display: block; pointer-events: none; }
.phone-shade { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); transition: opacity .5s; }
.phone-shade.off { opacity: 0; pointer-events: none; }
.play { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: pulse 2.2s infinite; }
.play i { width: 0; height: 0; border-left: 20px solid #000; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 100% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } }

/* ---------- Precio comparado ---------- */
.cmp { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cmp-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; grid-template-areas: 'n bar p' 'w bar p'; column-gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--l1); }
.cmp-n { grid-area: n; font-family: var(--head); font-size: 18px; }
.cmp-what { grid-area: w; color: var(--t3); font-size: 11px; }
.cmp-bar { grid-area: bar; height: 10px; background: #0e0e0e; border-radius: 6px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; width: calc(var(--w, 0) * 1%); background: #555; border-radius: 6px; transition: width 1.6s var(--ease); }
.cmp-p { grid-area: p; text-align: right; color: var(--t2); font-size: 14px; white-space: nowrap; }
.cmp-p b { font-family: var(--mono); font-weight: 400; font-size: 22px; color: #fff; }
.cmp-row.us { border-bottom: 0; padding-top: 22px; }
.cmp-row.us .cmp-n { font-weight: 600; font-size: 22px; }
.cmp-row.us .cmp-bar i { background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.7); }
.cmp-row.us .cmp-what { color: #fff; }
.total { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.total > div { border: 1px solid var(--l2); border-radius: 20px; padding: 22px; background: rgba(0,0,0,.6); }
.total p { margin: 0; }
.t-big { font-family: var(--head); font-size: clamp(26px, 4vw, 46px); margin-top: 8px !important; letter-spacing: -.02em; }
.total > div:first-child .t-big { color: var(--t3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #666; }
.t-us { background: #fff !important; color: #000; border-color: #fff !important; }
.t-us .dim { color: #555; }
#precio .center { margin-top: 44px; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 30px 0; border-top: 1px solid var(--l1); }
.steps b { font-weight: 400; color: var(--t3); padding-top: 8px; }
.steps h3 { font-size: clamp(24px, 3.2vw, 40px); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--t2); max-width: 46ch; }

/* ---------- Ventajas ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.feat { border: 1px solid var(--l2); border-radius: 22px; padding: 26px; background: rgba(0,0,0,.72); transform-style: preserve-3d; transition: border-color .3s, transform .6s var(--ease); min-height: 220px; display: flex; flex-direction: column; }
.feat:hover { border-color: #666; }
.f-i { color: var(--t3); margin: 0 0 auto; }
.feat h3 { font-size: 22px; margin: 28px 0 8px; }
.feat p { margin: 0; color: var(--t2); font-size: 14.5px; line-height: 1.55; }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--l1); }
.faq details:last-child { border-bottom: 1px solid var(--l1); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--head); font-size: clamp(18px, 2vw, 24px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 14px; height: 14px; flex: none; background: linear-gradient(#fff, #fff) center / 100% 1.4px no-repeat, linear-gradient(#fff, #fff) center / 1.4px 100% no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--t2); max-width: 62ch; line-height: 1.65; animation: swap .5s var(--ease); }

/* ---------- Cierre y pie ---------- */
.fin { min-height: 90vh; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; align-items: center; }
.fin .lead { margin-left: auto; margin-right: auto; }
.fin .hero-t { text-align: center; }
.foot { border-top: 1px solid var(--l1); padding: 40px var(--pad) calc(110px + var(--sab)); max-width: 1180px; margin: 0 auto; color: var(--t2); font-size: 14px; display: flex; flex-direction: column; gap: 6px; background: #000; }
.foot p { margin: 0; }
.foot .brand { margin-bottom: 10px; }

/* ---------- Barra de compra (móvil) y aviso ---------- */
#buybar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--sab)); z-index: 35; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; background: rgba(10,10,10,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--l2); border-radius: 999px; transform: translateY(140%); transition: transform .55s var(--ease); }
#buybar.on { transform: none; }
#buybar span { font-size: 13px; color: var(--t2); }
#buybar b { color: #fff; font-family: var(--head); font-size: 18px; margin-right: 2px; }
#toast { position: fixed; left: 50%; bottom: calc(90px + var(--sab)); transform: translate(-50%, 14px); z-index: 60; background: #fff; color: #000; padding: 12px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--spring); max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cursor (solo con ratón) ---------- */
#cur { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; z-index: 80; pointer-events: none; mix-blend-mode: difference; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); }
#cur.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.has-cur, .has-cur a, .has-cur button, .has-cur summary { cursor: none; }

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  #nav .btn-buy { display: none; }
  #buybar { display: flex; }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn-buy { width: 100%; }
  .hero-cta .micro { text-align: center; }
  .scroll-hint { display: none; }
  .demo { grid-template-columns: 1fr; }
  .phone { order: 2; }
  .day-n { font-size: 84px; }
  .feats { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .feat h3 { margin-top: 18px; }
  .total { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr auto; grid-template-areas: 'n p' 'w p' 'bar bar'; row-gap: 4px; }
  .cmp-bar { margin-top: 8px; height: 8px; }
  .cmp-p b { font-size: 19px; }
  .vs-row { grid-template-columns: 1fr; gap: 4px; }
  .steps li { grid-template-columns: 44px 1fr; }
  .tidy { inset: 50px 14px 14px; }
  .mess p { white-space: normal; max-width: 46%; }
  .fin .btn-buy { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-t .ln > span { opacity: 1; transform: none; }
}
.phone-badge { display: none; position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 2; align-items: center; gap: 8px; white-space: nowrap; background: rgba(255,255,255,.95); color: #000; border-radius: 999px; padding: 8px 14px; font-size: 11px; box-shadow: 0 6px 24px rgba(0,0,0,.5); max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.phone-badge b { font-weight: 500; }
.phone-badge span { font-family: var(--body); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) { .phone-badge { display: flex; } }
