/* Foco · usafoco.com — un océano en calma: negro profundo, azules y un poco de blanco. */
:root {
  --abyss: #02050b;
  --deep: #040a16;
  --navy: #071528;
  --sea: #0c2a4d;
  --blue: #2f7bff;
  --sky: #7db5ff;
  --foam: #eef4fb;
  --mist: #93a6c0;
  --line: rgba(125, 181, 255, 0.14);
  --glass: rgba(14, 34, 64, 0.38);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
html { scrollbar-color: #1c3150 var(--abyss); accent-color: var(--blue); caret-color: var(--sky); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
a { text-underline-offset: 3px; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sky); letter-spacing: -0.005em; }
::selection { background: rgba(47, 123, 255, .35); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--foam); color: var(--abyss); padding: 12px 16px; line-height: 20px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--foam); color: var(--abyss);
  font: 500 15px/1 var(--sans); text-decoration: none; letter-spacing: -0.005em;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  box-shadow: 0 10px 40px -12px rgba(125, 181, 255, .45);
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: transparent; color: var(--foam); border-color: rgba(238, 244, 251, .22); box-shadow: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.btn:focus-visible, .tabs button:focus-visible, summary:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ── Navegación ── */
.nav {
  position: fixed; inset: 12px 12px auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 10px 12px 10px 16px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled { background: rgba(4, 10, 22, .62); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--mist); text-decoration: none; font-size: 14px; transition: color .2s; }

/* ── Portada ── */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(24, 74, 140, .55), transparent 60%),
    radial-gradient(80% 50% at 50% 0%, rgba(10, 30, 60, .5), transparent 70%),
    var(--abyss);
}
#ocean { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* con world.js el mar de la portada forma parte del mundo de fondo */
.world #ocean { display: none; }
.world .hero { background: transparent; }
/* la transición del círculo (iris-opens) deja ver el mundo a través de un velo, en vez de taparlo */
.world .mo-io__stage > .mo-io__cover { background: rgba(2, 5, 11, .6); }
.hero-inner { text-align: center; padding: 120px 20px 160px; width: 100%; max-width: 1080px; min-width: 0; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(44px, 8.4vw, 104px); }
h1 em, h2 em { font-size: 1.04em; }
.lead { margin: 26px auto 0; max-width: 620px; color: var(--mist); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Secciones ── */
.section { position: relative; padding: clamp(72px, 10vw, 132px) 0; }
h2 { font-size: clamp(36px, 5.6vw, 68px); }
.section-lead { margin: 24px 0 0; max-width: 600px; color: var(--mist); font-size: clamp(17px, 1.7vw, 19px); }

.problem { background: transparent; }
.facts { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 26px 0; border-bottom: 1px solid var(--line); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.02em; color: var(--mist); text-wrap: pretty; }
.facts .fact { display: block; max-width: 30em; text-wrap: balance; }
.facts strong { color: var(--foam); font-weight: 500; font-variant-numeric: tabular-nums; }
.facts sup { font-size: .45em; margin-left: 2px; vertical-align: super; line-height: 0; }
.facts sup a { color: var(--sky); text-decoration: none; display: inline-block; min-width: 24px; padding: 4px 0; text-align: center; }
.facts-src { margin: 20px 0 0; font-size: 13px; color: var(--mist); }

/* ── Calculadora ── */
.calc { background: transparent; }
.calc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.calc-card { padding: 34px; border-radius: 28px; background: linear-gradient(160deg, rgba(16, 44, 84, .55), rgba(4, 10, 22, .6)); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(47, 123, 255, .5); }
.calc-label { font-size: 14px; font-weight: 500; color: var(--sky); }
.calc-value { margin: 8px 0 18px; font-size: clamp(48px, 6vw, 72px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.calc-value span { font-size: .32em; letter-spacing: 0; color: var(--mist); font-weight: 400; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--fill, 22%), rgba(125, 181, 255, .18) var(--fill, 22%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--fill, 22%), rgba(125, 181, 255, .18) var(--fill, 22%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--foam); box-shadow: 0 0 0 6px rgba(47, 123, 255, .25), 0 6px 20px rgba(0, 0, 0, .4); cursor: grab; transition: transform .16s var(--ease); }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--foam); box-shadow: 0 0 0 6px rgba(47, 123, 255, .25); }
input[type="range"]:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; }
.calc-scale { display: flex; justify-content: space-between; margin-top: -4px; font-size: 12px; color: rgba(147, 166, 192, .6); }
.calc-results { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.calc-results > div { background: rgba(4, 10, 22, .7); padding: 20px 16px; }
.calc-big { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; letter-spacing: -0.03em; color: var(--foam); font-variant-numeric: tabular-nums; }
.calc-small { margin: 4px 0 0; font-size: 13px; color: var(--mist); line-height: 1.35; }
.calc-note { margin: 14px 0 0; font-size: 12px; color: rgba(147, 166, 192, .55); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Cómo funciona ── */
.how { background: transparent; }
.how-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.tabs { margin-top: 36px; display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: rgba(12, 42, 77, .4); border: 1px solid var(--line); }
.tabs button {
  appearance: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: transparent; color: var(--mist); font: 500 14px/1 var(--sans); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tabs button[aria-selected="true"] { background: var(--foam); color: var(--abyss); }
.lists { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lists h3 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--sky); }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--foam); font-size: 15px; animation: rise .5s var(--ease) both; }
.lists li:nth-child(2) { animation-delay: .04s; } .lists li:nth-child(3) { animation-delay: .08s; }
.lists li:nth-child(4) { animation-delay: .12s; } .lists li:nth-child(5) { animation-delay: .16s; } .lists li:nth-child(6) { animation-delay: .2s; }
.drop li { color: var(--mist); text-decoration: line-through; text-decoration-color: rgba(147, 166, 192, .5); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.phone-wrap { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 48px; padding: 12px;
  background: linear-gradient(160deg, #1c2638, #0a0f19 40%, #121a29);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 120px -30px rgba(47, 123, 255, .45), inset 0 0 0 2px rgba(0, 0, 0, .6);
  z-index: 1;
}
.phone-notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #000; display: flex; flex-direction: column; }
.screen { container-type: inline-size; }

/* ── Maqueta fiel de Foco (cómo funciona): las medidas van en puntos del iPhone (402 de ancho) ── */
.app { --pt: calc(100cqw / 402); position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; font-size: calc(var(--pt) * 14); line-height: 1.3; letter-spacing: 0; text-align: left; }
.app * { margin: 0; }
.app svg { width: calc(var(--pt) * 24); height: calc(var(--pt) * 24); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app svg.fill { fill: currentColor; stroke: none; }
.m-status { display: flex; justify-content: space-between; align-items: center; height: calc(var(--pt) * 56); padding: calc(var(--pt) * 14) calc(var(--pt) * 32) 0 calc(var(--pt) * 46); font-size: calc(var(--pt) * 16); flex: none; }
.m-status b { font-weight: 600; }
.m-status span { display: flex; align-items: flex-end; gap: calc(var(--pt) * 5); }
.m-status i { width: calc(var(--pt) * 4); height: calc(var(--pt) * 8); border-radius: 1px; background: #f5f5f5; }
.m-status i:nth-child(2) { height: calc(var(--pt) * 11); }
.m-status i:nth-child(3) { width: calc(var(--pt) * 25); height: calc(var(--pt) * 12); border-radius: calc(var(--pt) * 3.5); margin-left: calc(var(--pt) * 3); }
.m-scroll { flex: 1; overflow: hidden; position: relative; }
.m-track { animation: m-scroll 17s cubic-bezier(.45, 0, .25, 1) 1.5s infinite; }
@keyframes m-scroll { 0%, 12% { transform: none; } 66%, 90% { transform: translateY(var(--end, 0px)); } 100% { transform: none; } }

/* Instagram en Foco: «Siguiendo», historias, publicaciones, «Ya estás al día» y la píldora sin Reels */
.ig-head { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--pt) * 6) calc(var(--pt) * 16) calc(var(--pt) * 10); flex: none; }
.ig-head b { font-size: calc(var(--pt) * 25); font-weight: 700; letter-spacing: -0.01em; }
.ig-head svg { width: calc(var(--pt) * 28); height: calc(var(--pt) * 28); }
.ig-stories { display: flex; gap: calc(var(--pt) * 10); padding: calc(var(--pt) * 4) calc(var(--pt) * 10) calc(var(--pt) * 12); overflow: hidden; }
.ig-story { width: calc(var(--pt) * 80); flex: none; display: flex; flex-direction: column; align-items: center; gap: calc(var(--pt) * 6); font-size: calc(var(--pt) * 12); white-space: nowrap; }
.ig-story i { width: calc(var(--pt) * 78); height: calc(var(--pt) * 78); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: calc(var(--pt) * 26); color: #fff;
  border: calc(var(--pt) * 1.5) solid #363636; background: var(--c) padding-box; box-shadow: inset 0 0 0 calc(var(--pt) * 3) #000; }
.ig-story.ring i { border: calc(var(--pt) * 3.5) solid transparent; background: linear-gradient(var(--c), var(--c)) padding-box, linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5) border-box; }
.ig-post header { display: flex; align-items: center; gap: calc(var(--pt) * 10); padding: calc(var(--pt) * 8) calc(var(--pt) * 12); font-size: calc(var(--pt) * 14); }
.ig-post header b { font-weight: 600; }
.ig-post header svg { margin-left: auto; }
.ig-av { width: calc(var(--pt) * 32); height: calc(var(--pt) * 32); border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: calc(var(--pt) * 14); flex: none; font-style: normal; }
.ig-actions { display: flex; align-items: center; gap: calc(var(--pt) * 16); padding: calc(var(--pt) * 10) calc(var(--pt) * 12) calc(var(--pt) * 6); font-size: calc(var(--pt) * 14); font-weight: 600; }
.ig-actions span { display: flex; align-items: center; gap: calc(var(--pt) * 5); }
.ig-actions .end { margin-left: auto; }
.ig-post p { padding: 0 calc(var(--pt) * 12) calc(var(--pt) * 4); font-size: calc(var(--pt) * 14); }
.ig-post p b { font-weight: 600; }
.app .m-meta { color: #a8a8a8; font-size: calc(var(--pt) * 12); padding-bottom: calc(var(--pt) * 16); }
.ig-end { display: flex; flex-direction: column; align-items: center; gap: calc(var(--pt) * 6); text-align: center; padding: calc(var(--pt) * 26) calc(var(--pt) * 36) calc(var(--pt) * 130); }
.ig-ring { width: calc(var(--pt) * 66); height: calc(var(--pt) * 66); border-radius: 50%; display: grid; place-items: center; margin-bottom: calc(var(--pt) * 10);
  border: calc(var(--pt) * 3) solid transparent; background: linear-gradient(#000, #000) padding-box, linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5) border-box; }
.ig-ring svg { width: calc(var(--pt) * 32); height: calc(var(--pt) * 32); stroke-width: 2.2; }
.ig-end b { font-size: calc(var(--pt) * 20); font-weight: 600; }
.ig-end p { color: #a8a8a8; font-size: calc(var(--pt) * 14); }
.ig-pill { position: absolute; left: 50%; bottom: calc(var(--pt) * 26); translate: -50% 0; width: calc(var(--pt) * 340); height: calc(var(--pt) * 64); border-radius: calc(var(--pt) * 32);
  display: flex; justify-content: space-around; align-items: center; padding: 0 calc(var(--pt) * 8);
  background: rgba(40, 40, 40, .78); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 calc(var(--pt) * 8) calc(var(--pt) * 24) rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ig-pill i { width: calc(var(--pt) * 58); height: calc(var(--pt) * 48); border-radius: calc(var(--pt) * 24); display: grid; place-items: center; }
.ig-pill i.on { background: rgba(255, 255, 255, .16); }
.ig-pill svg { width: calc(var(--pt) * 26); height: calc(var(--pt) * 26); }
.ig-me::after { content: ""; width: calc(var(--pt) * 28); height: calc(var(--pt) * 28); border-radius: 50%; background: linear-gradient(135deg, #7d9cc4, #2f4a6d); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* YouTube en Foco: sin la pestaña Shorts ni sus estanterías; la barra lleva el botón para volver a Foco */
.app-youtube { background: #0f0f0f; color: #f1f1f1; }
.yt-head { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--pt) * 8) calc(var(--pt) * 16); flex: none; }
.yt-logo { display: flex; align-items: center; gap: calc(var(--pt) * 4); font-weight: 700; font-size: calc(var(--pt) * 21); letter-spacing: -0.05em; }
.yt-logo i { position: relative; width: calc(var(--pt) * 29); height: calc(var(--pt) * 20); border-radius: calc(var(--pt) * 6); background: #ff0033; }
.yt-logo i::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border-left: calc(var(--pt) * 8) solid #fff; border-top: calc(var(--pt) * 5) solid transparent; border-bottom: calc(var(--pt) * 5) solid transparent; }
.yt-head svg { width: calc(var(--pt) * 26); height: calc(var(--pt) * 26); }
.yt-chips { display: flex; gap: calc(var(--pt) * 8); padding: calc(var(--pt) * 6) calc(var(--pt) * 12) calc(var(--pt) * 12); white-space: nowrap; overflow: hidden; flex: none; }
.yt-chips span { padding: calc(var(--pt) * 6) calc(var(--pt) * 12); border-radius: calc(var(--pt) * 8); background: rgba(255, 255, 255, .1); font-size: calc(var(--pt) * 14); font-weight: 500; }
.yt-chips span.on { background: #f1f1f1; color: #0f0f0f; }
.yt-chips .yt-ico { display: grid; place-items: center; padding: calc(var(--pt) * 5) calc(var(--pt) * 9); }
.yt-chips .yt-ico svg { width: calc(var(--pt) * 20); height: calc(var(--pt) * 20); }
.yt-video .ph { aspect-ratio: 16 / 9; }
.yt-dur { position: absolute; right: calc(var(--pt) * 8); bottom: calc(var(--pt) * 8); z-index: 2; padding: calc(var(--pt) * 2) calc(var(--pt) * 5); border-radius: calc(var(--pt) * 4); background: rgba(0, 0, 0, .8); color: #fff; font-size: calc(var(--pt) * 12); font-weight: 600; }
.yt-info { display: flex; align-items: flex-start; gap: calc(var(--pt) * 12); padding: calc(var(--pt) * 12) calc(var(--pt) * 12) calc(var(--pt) * 22); }
.yt-info .ig-av { width: calc(var(--pt) * 36); height: calc(var(--pt) * 36); font-size: calc(var(--pt) * 15); }
.yt-info div { flex: 1; min-width: 0; }
.yt-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(var(--pt) * 15.5); font-weight: 500; line-height: 1.3; }
.yt-info p { margin-top: calc(var(--pt) * 4); color: #aaa; font-size: calc(var(--pt) * 12); }
.yt-info svg { width: calc(var(--pt) * 20); height: calc(var(--pt) * 20); }
.app-youtube .m-track { padding-bottom: calc(var(--pt) * 90); }
.yt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--pt) * 86); padding-bottom: calc(var(--pt) * 26); display: flex; justify-content: space-around; align-items: center;
  background: #0f0f0f; border-top: 1px solid rgba(255, 255, 255, .1); font-size: calc(var(--pt) * 10); }
.yt-bar span { display: flex; flex-direction: column; align-items: center; gap: calc(var(--pt) * 3); min-width: calc(var(--pt) * 64); }
.yt-me { width: calc(var(--pt) * 24); height: calc(var(--pt) * 24); border-radius: 50%; background: linear-gradient(135deg, #b39ddb, #6a4fb0); }

/* Fotos dibujadas (sin imágenes de nadie) */
.ph { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.ph::before, .ph::after { content: ""; position: absolute; inset: 0; }
.ph-sunset { background: radial-gradient(circle at 50% 56%, #fff4cf 0 6%, #ffc76f 7% 9%, rgba(255, 170, 90, .5) 10%, transparent 30%),
  linear-gradient(180deg, #2b1a4c 0%, #74306c 24%, #d4566c 44%, #ff9d5e 56%, #1d4c73 56.4%, #0c2a48 100%); }
.ph-sunset::before { top: 56.4%; background: repeating-linear-gradient(180deg, rgba(255, 196, 128, .32) 0 2px, transparent 2px 10px);
  -webkit-mask-image: radial-gradient(34% 70% at 50% 0%, #000, transparent 80%); mask-image: radial-gradient(34% 70% at 50% 0%, #000, transparent 80%); }
.ph-sunset::after { background: linear-gradient(180deg, transparent 80%, rgba(10, 30, 50, .5)); }
.ph-mountain { background: linear-gradient(180deg, #7fb8f0 0%, #cfe6fb 50%, #eef6ff 62%); }
.ph-mountain::before { background: linear-gradient(180deg, #5d7f9e, #2d4a66); clip-path: polygon(0 66%, 16% 44%, 28% 54%, 47% 22%, 61% 45%, 74% 33%, 100% 58%, 100% 100%, 0 100%); }
.ph-mountain::after { background: linear-gradient(180deg, #3b6b48, #1c3a28); clip-path: polygon(0 80%, 20% 64%, 38% 76%, 57% 60%, 79% 74%, 100% 66%, 100% 100%, 0 100%); }
.ph-road { background: linear-gradient(180deg, #a9d8ff 0 38%, #3a8cc1 38% 52%, #d9b77c 52% 100%); }
.ph-road::before { background: #3c3f45; clip-path: polygon(44% 52%, 56% 52%, 92% 100%, 8% 100%); }
.ph-road::after { background: repeating-linear-gradient(180deg, #f6e7a1 0 6%, transparent 6% 12%); clip-path: polygon(49.6% 54%, 50.4% 54%, 51.5% 100%, 48.5% 100%); }
.ph-bread { background: repeating-linear-gradient(90deg, #6a4126 0 9%, #78492b 9% 18%); }
.ph-bread::before { background: radial-gradient(ellipse 32% 30% at 50% 54%, #f0b871 0 55%, #c27b35 72%, #8a521f 79%, transparent 81%); }
.ph-bread::after { background: repeating-linear-gradient(115deg, transparent 0 4.4%, rgba(255, 236, 200, .55) 4.4% 5.2%, transparent 5.2% 9%);
  -webkit-mask-image: radial-gradient(ellipse 24% 20% at 50% 52%, #000 60%, transparent 62%); mask-image: radial-gradient(ellipse 24% 20% at 50% 52%, #000 60%, transparent 62%); }
.ph-lake { background: linear-gradient(180deg, #1c2a52 0%, #5a4889 34%, #e48d63 50%, #2a3c62 50.4%, #0f1931 100%); }
.ph-lake::before { background: #151d36; clip-path: polygon(0 50.4%, 0 34%, 14% 26%, 26% 38%, 40% 20%, 55% 36%, 68% 28%, 84% 40%, 100% 30%, 100% 50.4%); }
.ph-lake::after { top: 50.4%; background: repeating-linear-gradient(180deg, rgba(228, 141, 99, .3) 0 2px, transparent 2px 9px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.phone-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(47, 123, 255, .35), transparent 65%); filter: blur(30px); }


/* ── Privacidad ── */

/* ── Preguntas ── */
.faq { background: transparent; }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .faq-list { margin-top: 0; }
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.5px solid var(--sky); border-bottom: 1.5px solid var(--sky); transform: rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { margin: -6px 0 24px; color: var(--mist); max-width: 680px; }

/* ── Final ── */
.final { text-align: center; overflow: hidden; isolation: isolate; background: transparent; }
#ripples { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.final-inner { display: grid; justify-items: center; gap: 28px; }
.final-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 20px 60px -10px rgba(47, 123, 255, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
.final-note { margin: 0; color: var(--mist); font-size: 15px; }
.final-note a { color: var(--sky); }

/* ── Pie ── */
.footer { padding: 40px 0 48px; background: var(--abyss); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.footer nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer nav a { color: var(--mist); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.legal { grid-column: 1 / -1; margin: 0; color: rgba(147, 166, 192, .6); font-size: 12.5px; }

/* ── Aparición al hacer scroll (sin JS se ve todo) ── */
.js .reveal { opacity: 0; transform: translateY(26px); }
/* La portada entra sola, sin esperar a ninguna librería. */
.js .hero .reveal { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .hero .reveal:nth-child(2) { transition-delay: .12s; }
.js .hero .reveal:nth-child(3) { transition-delay: .24s; }
.js .hero .reveal:nth-child(4) { transition-delay: .36s; }
.ready .hero .reveal, .ready .hero .reveal:not(h1) { opacity: 1; transform: none; }

/* ── Páginas legales ── */
.page { padding: 140px 0 100px; background: radial-gradient(70% 40% at 50% 0%, rgba(18, 60, 120, .35), transparent 70%), var(--abyss); min-height: 70vh; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); }
.page h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 10px; }
.page p, .page li { color: var(--mist); }
.page strong { color: var(--foam); font-weight: 500; }
.page a:not(.btn) { color: var(--sky); }
.page .updated { color: rgba(147, 166, 192, .6); font-size: 14px; margin-top: 16px; }

/* ── Móvil ── */

/* Respuestas al pasar el ratón, solo en dispositivos con puntero fino */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 16px 50px -12px rgba(125, 181, 255, .6); }
  .btn-ghost:hover { background: rgba(238, 244, 251, .06); box-shadow: none; }
  .nav-links a:hover { color: var(--foam); }
  .footer nav a:hover { color: var(--foam); }
  .hero-link:hover { color: var(--foam); }
  .hero-link:hover::after { transform: translateY(1px) rotate(45deg); }
  .waitlist-msg a:hover { color: var(--foam); }
  .chips label:hover span { border-color: rgba(125, 181, 255, .5); }
  .wl-skip:hover { color: var(--foam); }
  .wl-copy:hover { background: rgba(238, 244, 251, .08); }
  .wl-channel:hover { background: rgba(47, 123, 255, .18); border-color: rgba(125, 181, 255, .5); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .how-grid, .calc-grid, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
}
/* ── Lista de espera ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero-cta { flex-direction: column; align-items: center; gap: 22px; }
.hero-link { color: var(--mist); font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; transition: color .25s; }
.hero-link::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.waitlist { width: min(470px, 100%); margin: 0 auto; position: relative; }
.final-form { width: min(470px, 100%); }
.waitlist-field {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(6, 18, 38, .62); border: 1px solid rgba(125, 181, 255, .24);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 60px -30px rgba(47, 123, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .3s, box-shadow .3s;
}
.waitlist-field:focus-within { border-color: rgba(125, 181, 255, .6); box-shadow: 0 0 0 4px rgba(47, 123, 255, .16), 0 20px 60px -30px rgba(47, 123, 255, .7); }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; width: 0; height: 46px; padding: 0 8px 0 18px; /* width 0: el campo nunca empuja el formulario fuera de su columna en móviles estrechos */
  background: transparent; border: 0; outline: 0; border-radius: 999px;
  color: var(--foam); font: 400 16px/1 var(--sans); letter-spacing: -0.005em;
}
.waitlist input[type="email"]::placeholder { color: rgba(147, 166, 192, .7); }
.waitlist input:-webkit-autofill { -webkit-text-fill-color: var(--foam); transition: background-color 9999s; }
.waitlist .btn { flex: none; height: 46px; padding: 0 22px; box-shadow: none; position: relative; }
.waitlist .btn:disabled { cursor: progress; }
.waitlist.is-loading .btn span { opacity: 0; }
.waitlist.is-loading .btn::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(2, 5, 11, .2); border-top-color: var(--abyss); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waitlist-msg { min-height: 1.5em; margin: 12px 0 0; font-size: 13.5px; color: var(--mist); text-align: center; transition: color .25s; }
.waitlist.is-error .waitlist-msg { color: #ffaaa5; }
.waitlist-msg a { color: var(--mist); text-underline-offset: 3px; text-decoration-color: rgba(147, 166, 192, .4); }
.waitlist.is-error .waitlist-field { border-color: rgba(255, 140, 130, .5); animation: nudge .4s var(--ease); }
@keyframes nudge { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

.waitlist-count { margin: -8px 0 0; font-size: 13.5px; color: var(--sky); display: inline-flex; align-items: center; gap: 8px; }
.waitlist-count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(125, 181, 255, .6); animation: pulse 2.4s infinite; }
.waitlist-count[hidden] { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(125, 181, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 181, 255, 0); } }
.final-lead { margin: -10px 0 0; color: var(--mist); font-size: 17px; }
.wl-invited { margin: 0 0 14px; font-size: 14px; color: var(--sky); }
.waitlist.is-step .waitlist-field, .waitlist.is-step > .waitlist-msg, .waitlist.is-step .wl-invited { display: none; }

.wl-quiz, .wl-result {
  text-align: center; padding: 26px 24px 24px; border-radius: 28px;
  background: linear-gradient(165deg, rgba(16, 44, 84, .62), rgba(4, 10, 22, .72));
  border: 1px solid rgba(125, 181, 255, .26);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -40px rgba(47, 123, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: rise .6s var(--ease) both;
}
.wl-title { margin: 0 0 18px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.wl-quiz fieldset { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.wl-quiz legend { padding: 0; margin: 0 auto 10px; font-size: 13.5px; color: var(--mist); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; font-size: 14px; line-height: 1;
  border: 1px solid rgba(125, 181, 255, .22); background: rgba(4, 10, 22, .4); color: var(--foam);
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.chips input:checked + span { background: var(--foam); color: var(--abyss); border-color: var(--foam); transform: scale(1.03); }
.chips input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.wl-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.wl-actions .btn { height: 46px; padding: 0 24px; box-shadow: none; position: relative; }
.wl-skip { background: none; border: 0; color: var(--mist); font: 400 14px var(--sans); cursor: pointer; padding: 8px; }
.waitlist.is-loading [data-save] span { opacity: 0; }
.waitlist.is-loading [data-save]::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(2, 5, 11, .2); border-top-color: var(--abyss); animation: spin .7s linear infinite;
}

.wl-kicker { margin: 0; font-size: 14px; font-weight: 500; color: var(--sky); }
.wl-position { margin: 2px 0 0; font: 400 clamp(56px, 12vw, 76px)/1 var(--serif); letter-spacing: -0.02em; }
.wl-position span { font-style: italic; }
.wl-sub { margin: 8px 0 0; color: var(--mist); font-size: 14px; }
.wl-bar { height: 4px; margin: 18px auto 0; max-width: 280px; border-radius: 4px; background: rgba(125, 181, 255, .14); overflow: hidden; }
.wl-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .15s; }
.wl-state { margin: 14px 0 0; font-size: 15px; color: var(--foam); }
.wl-share { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.wl-share p { margin: 0; font-size: 14.5px; color: var(--mist); }
.wl-share strong { color: var(--foam); font-weight: 500; }
.wl-link { display: flex; align-items: center; gap: 6px; margin: 14px auto 0; padding: 5px 5px 5px 16px; max-width: 360px; border-radius: 999px; background: rgba(4, 10, 22, .55); border: 1px solid var(--line); }
.wl-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font: 400 14px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--sky); }
.wl-copy { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(238, 244, 251, .2); background: transparent; color: var(--foam); font: 500 13px var(--sans); cursor: pointer; transition: background .2s; }
.wl-share-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wl-share-buttons .btn { height: 44px; padding: 0 20px; box-shadow: none; white-space: nowrap; }

.wl-channel { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: 18px; text-align: left; text-decoration: none; background: rgba(47, 123, 255, .1); border: 1px solid rgba(125, 181, 255, .28); font-size: 13.5px; line-height: 1.4; color: var(--mist); transition: background .2s, border-color .2s; }
.wl-channel[hidden] { display: none; }
.wl-channel img { flex: none; border-radius: 10px; }
.wl-channel strong { color: var(--foam); font-weight: 500; font-size: 15px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .lists { grid-template-columns: 1fr; gap: 20px; }
  .calc-card { padding: 24px 20px; }
  .calc-results { grid-template-columns: 1fr; }
  .calc-results > div { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .hero-inner { padding: 110px 16px 140px; }
  .hero-cta .btn { width: auto; }
  .waitlist input[type="email"] { padding-left: 14px; }
  .waitlist .btn { padding: 0 16px; }
  .wl-quiz, .wl-result { padding: 22px 16px 20px; border-radius: 24px; }
  .wl-share-buttons .btn { width: auto; flex: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .wrap { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .m-track { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-property: color, background-color, border-color, opacity !important; transition-duration: .15s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Entrada de la portada: palabras que suben desde su máscara (taste-skill, motion.md) ── */
.hero h1 .hm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hero h1 .hw { display: inline-block; transform: translateY(110%); transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.ready .hero h1 .hw { transform: none; }
.js .hero .reveal:not(h1) { opacity: 0; transform: translateY(12px); transition: opacity .52s cubic-bezier(.22, 1, .36, 1), transform .52s cubic-bezier(.22, 1, .36, 1); }
.ready .hero .reveal, .ready .hero .reveal:not(h1) { opacity: 1; transform: none; }
.js .hero h1.reveal { opacity: 1; transform: none; }

/* ── Pestañas con píldora deslizante ── */
.tabs { position: relative; }
.tabs-pill { position: absolute; top: 5px; left: 5px; height: calc(100% - 10px); border-radius: 999px; background: var(--foam); transition: transform .24s var(--ease); z-index: 0; }
.tabs button { position: relative; z-index: 1; }
.tabs button[aria-selected="true"] { background: transparent; }
.lists li { animation-duration: .2s; }

/* ── Botones (taste-skill): sube 1 px, se hunde al pulsar ── */
.btn { transition: transform .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .09s; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }

/* ── Atajos de la calculadora ── */
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.calc-presets button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(125, 181, 255, .24); background: rgba(4, 10, 22, .4); color: var(--foam); font: 500 14px var(--sans); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), transform .09s var(--ease); }
.calc-presets button[aria-pressed="true"] { background: var(--foam); color: var(--abyss); border-color: var(--foam); }
.calc-presets button:active { transform: scale(.97); }

/* ── Preguntas: la respuesta aparece suave (sin animar la altura) ── */
details[open] p { animation: faq-in .2s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
summary::after { transition-duration: .2s; }

/* ── Escena «la gota se convierte en el punto final»: tokens de Foco para el kit ── */
.statement-scene { --bg: var(--abyss); --ink: var(--foam); --muted: var(--mist); --p-inv-bg: var(--navy); --p-inv-ink: var(--foam); --p-inv-muted: var(--mist);
  --container: 1400px; --pad: 20px; --section: clamp(72px, 10vw, 132px); --font-display: var(--sans); --display-weight: 500; --display-tracking: -0.035em;
  --t-h1: clamp(44px, 8.4vw, 104px); --t-lead: clamp(17px, 1.7vw, 19px); --s-5: 20px; --s-6: 28px; --s-7: 24px; --nav-h: 80px; }
.statement-scene .dfs__line { margin: 0; text-align: center; }
.statement-scene .dfs__sub { color: var(--mist); margin-inline: auto; text-align: center; text-wrap: balance; }
/* En móvil todo a la izquierda (frase, texto y formulario). El kit centra con selectores igual de fuertes
   y se carga después: por eso [data-big-scene] aquí, para ganarle. */
@media (max-width: 767px) { .statement-scene .dfs__line, .statement-scene .dfs__sub { text-align: left; margin-inline: 0; }
  .statement-scene[data-big-scene].is-live > .sc__stage { justify-items: start; }
  .statement-scene[data-big-scene].is-live .dfs__sub, .statement-scene .waitlist-msg { text-align: left; } }

/* ── Fondo narrativo: un lienzo fijo detrás de toda la página (lo pinta main.js) ── */
#backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; display: block; }
.statement-scene { --bg: transparent; --p-inv-bg: rgba(7, 21, 40, .55); }

/* ── Transición portada → problema (taste-skill · iris-opens): el mar oscuro de la portada se abre en un círculo ── */
.problem { --bg: #02050b; --accent: var(--sky); --r-lg: 28px; }

/* ── Última página: la frase de la gota con el formulario en su segundo tiempo ── */
.statement-scene .dfs__sub { max-width: 560px; }
.statement-scene .dfs__lead { margin: 0 0 26px; color: var(--mist); font-size: var(--t-lead); line-height: 1.55; text-wrap: balance; }
.statement-scene .final-form { width: min(470px, 100%); margin: 0 auto; }
.statement-scene .final-note { margin: 18px 0 0; color: var(--mist); font-size: 15px; }
.statement-scene .final-note a { color: var(--sky); }
@media (max-width: 767px) { .statement-scene .final-form { margin: 0; } }
/* Sin animación (móvil en horizontal, «reducir movimiento»): la frase gigante del kit solo miraba el ancho
   y en un móvil tumbado ocupaba más que la pantalla. Ahora también mira el alto. */
.statement-scene[data-big-scene]:not(.is-live) .dfs__line { font-size: clamp(40px, min(14.5vw, 20svh), 224px); }
@media (max-width: 767px) { .statement-scene[data-big-scene]:not(.is-live) .dfs__line { font-size: clamp(36px, min(16vw, 15svh), 100px); } }
/* al apuntarse en la última página, su tarjeta ocupa la pantalla fija (en portátiles bajos no se corta) */
.statement-scene:has(.waitlist.is-step) .dfs__line, .statement-scene:has(.waitlist.is-step) .dfs__lead, .statement-scene:has(.waitlist.is-step) .final-note { display: none; }
