/* 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%; }
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: 8px 14px; 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:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 16px 50px -12px rgba(125, 181, 255, .6); }
.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-ghost:hover { background: rgba(238, 244, 251, .06); box-shadow: none; }
.btn-small { padding: 9px 16px; 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 { 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; }
.nav-links a:hover { color: var(--foam); }

/* ── 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; }
.hero-inner { text-align: center; padding: 120px 20px 160px; max-width: 880px; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(12, 42, 77, .35);
  color: var(--sky); font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
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; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 24px; height: 40px; border: 1px solid rgba(238, 244, 251, .25); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--foam); animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ── Secciones ── */
.section { position: relative; padding: clamp(96px, 14vw, 170px) 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: linear-gradient(180deg, var(--abyss), var(--deep)); }
.stats { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.stat { background: var(--deep); padding: 36px 30px 30px; }
.stat-num { margin: 0; font-size: clamp(42px, 5vw, 60px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--foam); }
.stat-text { margin: 16px 0 0; color: var(--mist); }
.stat-src { margin: 18px 0 0; font-size: 12px; color: rgba(147, 166, 192, .6); letter-spacing: .02em; }

/* ── Cómo funciona ── */
.how { background: radial-gradient(70% 60% at 85% 50%, rgba(18, 60, 120, .35), transparent 70%), var(--deep); }
.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; padding: 10px 18px; border-radius: 999px;
  background: transparent; color: var(--mist); font: 500 14px/1 var(--sans); transition: background .3s, color .3s;
}
.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: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; 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-head { display: flex; justify-content: space-between; align-items: center; padding: 58px 18px 10px; }
.screen-title { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.screen-dots { display: flex; gap: 10px; }
.screen-dots i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(238, 244, 251, .85); }
.feed { flex: 1; overflow: hidden; padding: 0 0 80px; }
.post { margin-bottom: 14px; animation: rise .5s var(--ease) both; }
.post-head { display: flex; align-items: center; gap: 9px; padding: 8px 14px; }
.post-head b { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--sea)); flex: none; }
.post-head span { height: 8px; width: 90px; border-radius: 4px; background: rgba(238, 244, 251, .35); }
.post-media { aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, #10325c, #071528 60%, #0b223f); position: relative; overflow: hidden; }
.post-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 70% 30%, rgba(125, 181, 255, .3), transparent 70%); }
.post-media.alt { background: linear-gradient(200deg, #1a2f4f, #050b16 70%); }
.post-media.video { display: grid; place-items: center; }
.post-media.video::before { content: ""; width: 0; height: 0; border-left: 18px solid rgba(238, 244, 251, .9); border-top: 11px solid transparent; border-bottom: 11px solid transparent; z-index: 1; }
.post-lines { padding: 10px 14px 0; display: grid; gap: 6px; }
.post-lines i { height: 7px; border-radius: 4px; background: rgba(238, 244, 251, .2); }
.post-lines i:last-child { width: 60%; }
.removed { margin: 0 14px 14px; padding: 14px; border: 1px dashed rgba(125, 181, 255, .35); border-radius: 14px; color: var(--sky); font-size: 12.5px; text-align: center; animation: rise .5s var(--ease) both; }
.pill { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: flex; gap: 18px; padding: 12px 20px; border-radius: 999px; background: rgba(30, 40, 58, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .08); }
.pill i { width: 18px; height: 18px; border-radius: 6px; border: 1.6px solid rgba(238, 244, 251, .55); }
.pill i.on { border-color: var(--foam); background: rgba(238, 244, 251, .15); }
.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); }

/* ── Funciones ── */
.features { background: var(--deep); }
.cards { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 30px 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s, background .4s; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 181, 255, .5), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.card:hover { transform: translateY(-4px); background: rgba(16, 42, 80, .45); }
.card:hover::before { opacity: 1; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 123, 255, .14); color: var(--sky); margin-bottom: 22px; }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--mist); font-size: 15.5px; }

/* ── Privacidad ── */
.privacy { background: linear-gradient(180deg, var(--deep), var(--navy)); }
.privacy-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy-list li { padding: 24px 26px; border-radius: 20px; background: rgba(4, 10, 22, .45); border: 1px solid var(--line); color: var(--mist); }
.privacy-list strong { display: block; color: var(--foam); font-weight: 500; margin-bottom: 4px; }

/* ── Preguntas ── */
.faq { background: var(--navy); }
.faq-wrap { max-width: 820px; }
.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: radial-gradient(90% 60% at 50% 100%, rgba(20, 70, 140, .5), transparent 70%), var(--navy); }
#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; }
.footer nav a:hover { color: var(--foam); }
.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 { 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 { color: var(--sky); }
.page .updated { color: rgba(147, 166, 192, .6); font-size: 14px; margin-top: 16px; }

/* ── Móvil ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .how-grid, .privacy-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .lists { grid-template-columns: 1fr; gap: 20px; }
  .hero-inner { padding: 110px 16px 140px; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .wrap { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
