/* =========================================================
   Bills · web
   Dirección "Cobalto Bills": el navy de la app para el texto
   y un cobalto luminoso como protagonista. Ritmo de Auros:
   titulares de peso medio, mucho aire, sin sombras de papel.
   Tokens documentados en DESIGN.md.
   ========================================================= */

:root {
  --font-display: "Clash Display", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #F4F7FD;
  --surface: #FFFFFF;
  --surface-2: #E6EDFB;
  --text: #0C1630;
  --text-muted: #4A5776;
  --border: #D9E2F3;
  --border-strong: #6F82A9;
  --accent: #2456D6;
  --accent-hover: #1D49BA;
  --on-accent: #FFFFFF;
  --accent-text: #1E4BC0;

  /* Los de la app */
  --navy: #24375F;
  --azul-claro: #AFC3E0;
  /* Fondo profundo para la escena firma y el pie */
  --abismo: #091330;
  --abismo-2: #0F1D45;
  --sobre-abismo: #EDF2FC;
  --sobre-abismo-2: #A9B8D6;

  --radius: 16px;
  --radius-sm: 8px;

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-panel: 320ms;
  --dur-reveal: 800ms;
  --stagger: 70ms;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--accent);
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.nav-sentinel { position: absolute; top: 0; height: 24px; width: 1px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn .arrow { transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost:hover { border-color: var(--text); }
  .btn:hover .arrow { transform: translateX(3px); }
}

/* ---------- Barra ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--dur-panel) ease, border-color var(--dur-panel) ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgb(244 247 253 / .78);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: rgb(36 55 95 / .08);
}
.site-header.is-oscuro.is-scrolled { background: rgb(9 19 48 / .7); border-bottom-color: rgb(255 255 255 / .08); }
.site-header.is-oscuro .brand { color: #fff; }
.site-header.is-oscuro .nav-desktop a { color: var(--sobre-abismo-2); }
.site-header.is-oscuro .menu-btn span { background: #fff; }
@media (hover: hover) and (pointer: fine) { .site-header.is-oscuro .nav-desktop a:hover { color: #fff; } }
.site-header, .site-header .brand, .site-header .nav-desktop a { transition: background-color var(--dur-panel) ease, border-color var(--dur-panel) ease, color var(--dur-panel) ease; }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; }
/* El poste de barbero de Bills, el mismo de la app (public/assets/css/styles.css):
   tubo de vidrio entre dos remates de latón, franjas en hélice que suben sin saltos. */
.poste {
  --w: 26px; --h: 64px; --d: 26px; --t: 1.45s;
  --cap: calc(var(--w) * .4); --q: calc(var(--d) * .2165064);
  position: relative; display: inline-block; flex: none; width: var(--w); height: var(--h);
}
.poste::before, .poste::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--cap); z-index: 2;
  background: linear-gradient(90deg, #4d3d17 0%, #9c7d31 16%, #e8d08c 34%, #fff4cf 42%, #c9a64a 58%, #7a6124 82%, #3d3012 100%);
}
.poste::before { top: 0; border-radius: 50% 50% 2px 2px / 85% 85% 2px 2px; box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.poste::after { bottom: 0; border-radius: 2px 2px 50% 50% / 2px 2px 70% 70%; box-shadow: 0 -1px 2px rgba(0,0,0,.35), 0 5px 10px -3px rgba(0,0,0,.55); }
.poste i {
  position: absolute; left: 13%; right: 13%; top: calc(var(--cap) - 2px); bottom: calc(var(--cap) - 2px);
  overflow: hidden; z-index: 1; background: #f3eee4;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 10px 18px -8px rgba(0,0,0,.7);
}
.poste i::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + var(--d));
  background: repeating-linear-gradient(150deg,
    #b3262f 0 calc(var(--q) - .4px),
    #f3eee4 calc(var(--q) + .4px) calc(var(--q) * 2 - .4px),
    #1f4a94 calc(var(--q) * 2 + .4px) calc(var(--q) * 3 - .4px),
    #f3eee4 calc(var(--q) * 3 + .4px) calc(var(--q) * 4 - .4px),
    #b3262f calc(var(--q) * 4));
}
.poste i::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.4), transparent 14%, transparent 86%, rgba(0,0,0,.4)),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.14) 20%, rgba(255,255,255,0) 29%, rgba(255,255,255,.62) 35%, rgba(255,255,255,.1) 43%, rgba(255,255,255,0) 58%, rgba(0,0,0,.22) 80%, rgba(0,0,0,.6) 100%);
}
.poste--sm { --w: 16px; --h: 38px; --d: 16px; --t: .95s; }
.poste--xl { --w: 52px; --h: 156px; --d: 48px; --t: 2.6s; }
@media (prefers-reduced-motion: no-preference) {
  .poste i::before { animation: poste-sube var(--t) linear infinite; will-change: transform; }
}
@keyframes poste-sube { from { transform: translate3d(0,0,0); } to { transform: translate3d(0, calc(-1 * var(--d)), 0); } }
.nav-desktop { display: flex; gap: 32px; }
.nav-desktop a { text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--text-muted); transition: color var(--dur-ui) ease; }
@media (hover: hover) and (pointer: fine) { .nav-desktop a:hover { color: var(--text); } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform var(--dur-panel) var(--ease-drawer); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 16px);
  overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur-panel) var(--ease-drawer), transform var(--dur-panel) var(--ease-drawer);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-inner a:not(.btn) { font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; padding: 8px 0; }
.mobile-menu-inner .btn { margin-top: 24px; }
.mobile-menu-inner > * { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms + 60ms); }
.mobile-menu.is-open .mobile-menu-inner > * { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .nav-desktop, .hide-mobile { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Apariciones ---------- */
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
.js [data-reveal="fade"]:not(.is-in) { transform: none; }
.js [data-reveal="scale"]:not(.is-in) { transform: scale(.94); }
.js [data-reveal="blur"]:not(.is-in) { transform: translateY(10px); filter: blur(10px); }
.js [data-reveal="clip"]:not(.is-in) { opacity: 1; transform: none; }
.js [data-reveal="clip"]:not(.is-in) > * { clip-path: inset(0 0 100% 0); transform: translateY(24px); }
[data-reveal="clip"] > * { transition: clip-path 1000ms var(--ease-expo), transform 1000ms var(--ease-expo); transition-delay: calc(var(--i, 0) * var(--stagger)); }
[data-reveal] {
  transition: opacity var(--dur-reveal) var(--ease-expo), transform var(--dur-reveal) var(--ease-expo),
              filter var(--dur-reveal) var(--ease-expo), clip-path calc(var(--dur-reveal) * 1.25) var(--ease-expo);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 24px) 0 96px;
  overflow: clip;
}
.orbe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-halo {
  position: absolute; z-index: -2; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 55%, rgb(36 86 214 / .10), transparent 70%),
    radial-gradient(40% 30% at 50% 50%, rgb(175 195 224 / .25), transparent 70%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-size: clamp(3.25rem, 10.5vw, 6rem);
  line-height: .95; letter-spacing: -0.04em;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 28px; max-width: 34ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-muted); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-scroll { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; width: 44px; height: 56px; display: grid; place-items: center; }
.hero-scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--border-strong), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: subir 1100ms var(--ease-expo) both 150ms; }
  .hero-title .line:nth-child(2) > span { animation-delay: 260ms; }
  .hero-sub { animation: aparecer 900ms var(--ease-expo) 520ms both; }
  .hero-cta { animation: aparecer 900ms var(--ease-expo) 640ms both; }
  .orbe { animation: orbe-in 1800ms var(--ease-expo) both; }
  .hero-scroll-line::after { animation: bajar 2.2s var(--ease-in-out) 1.4s infinite; }
}
@keyframes subir { from { transform: translateY(108%); } }
@keyframes aparecer { from { opacity: 0; transform: translateY(12px); } }
@keyframes orbe-in { from { opacity: 0; transform: scale(.86); } }
@keyframes bajar { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Manifiesto ---------- */
.manifiesto { padding: clamp(96px, 18vh, 200px) 0; }
.manifiesto-texto {
  max-width: 24ch; margin-inline: auto;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.875rem, 4.6vw, 3.75rem); line-height: 1.08; letter-spacing: -0.03em;
  text-wrap: balance;
}
.manifiesto-texto .w { display: inline-block; }

/* ---------- Producto (escena firma) ---------- */
.producto {
  position: relative; isolation: isolate;
  color: var(--sobre-abismo);
  padding: clamp(96px, 16vh, 180px) 0 0;
}
.producto-fondo {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 40% at 75% 30%, rgb(36 86 214 / .55), transparent 70%),
    radial-gradient(40% 30% at 15% 80%, rgb(36 86 214 / .28), transparent 70%),
    linear-gradient(180deg, var(--abismo) 0%, var(--abismo-2) 55%, var(--abismo) 100%);
  border-radius: 32px 32px 0 0;
}
.producto-cabeza h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.04em; }
.producto-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.producto-telefono {
  grid-column: 2; grid-row: 1;
  position: sticky; top: calc(50vh - min(320px, 38vh));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding-top: 8vh;
}
.producto-pasos { grid-column: 1; grid-row: 1; }
.paso {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 30rem;
  opacity: .28; transition: opacity 500ms var(--ease-out);
}
.paso.is-activo { opacity: 1; }
.paso h3 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; letter-spacing: -0.035em; color: #fff; }
.paso p { margin-top: 20px; font-size: 1.125rem; color: var(--sobre-abismo-2); max-width: 38ch; }
.telefono-nota { font-size: .8125rem; color: var(--sobre-abismo-2); letter-spacing: .02em; }

.producto-progreso { position: sticky; bottom: 28px; z-index: 3; width: min(200px, 40vw); height: 2px; margin: 0 auto; background: rgb(255 255 255 / .14); border-radius: 2px; overflow: hidden; }
.producto-progreso span { display: block; height: 100%; background: var(--azul-claro); transform-origin: left; transform: scaleX(0); }
.no-gsap .producto-progreso { display: none; }
.producto::after { content: ""; display: block; height: clamp(64px, 10vh, 120px); }

/* Teléfono */
.telefono {
  --alto: min(640px, 76vh);
  position: relative;
  height: var(--alto); width: calc(var(--alto) * .49);
  border-radius: calc(var(--alto) * .075);
  background: #050A1A;
  padding: calc(var(--alto) * .016);
  box-shadow: 0 0 0 1px rgb(175 195 224 / .22), 0 40px 80px -24px rgb(4 10 30 / .8), 0 0 120px -20px rgb(36 86 214 / .55);
}
.telefono-isla { position: absolute; z-index: 3; top: calc(var(--alto) * .028); left: 50%; translate: -50% 0; width: 30%; height: calc(var(--alto) * .04); background: #050A1A; border-radius: 99px; }
.pantallas { position: relative; height: 100%; border-radius: calc(var(--alto) * .062); overflow: hidden; background: #F6F7FB; }
.pantalla {
  position: absolute; inset: 0;
  padding-top: calc(var(--alto) * .06);
  background: #F4F5F9;
  opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px);
  transition: opacity 600ms var(--ease-expo), transform 700ms var(--ease-expo), filter 600ms var(--ease-expo);
  pointer-events: none;
}
.pantalla.is-activa { opacity: 1; transform: none; filter: none; }
.pantalla img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.paso-movil { display: none; }
@media (max-width: 899px) {
  .producto-fondo { border-radius: 24px 24px 0 0; }
  .producto-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 16px; }
  /* En celular nada se queda fijo: cada paso trae su propio teléfono */
  .producto-telefono, .producto-progreso { display: none; }
  .producto-pasos { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 72px; padding-top: 40px; }
  .paso { min-height: 0; opacity: 1; max-width: none; gap: 28px; justify-content: flex-start; transition: none; }
  .paso h3 { font-size: 1.75rem; }
  .paso p { margin-top: 10px; font-size: 1rem; }
  .paso-movil { display: flex; justify-content: center; }
  .telefono--paso { --alto: min(520px, 118vw); }
  .telefono--paso .pantalla { transition: none; transform: none; filter: none; }
}

/* ---------- Escritorio ---------- */
.escritorio { padding: clamp(112px, 18vh, 200px) 0 clamp(48px, 8vh, 96px); overflow: clip; }
.escritorio-cabeza { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.escritorio-cabeza h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; }
.escritorio-cabeza p { color: var(--text-muted); max-width: 40ch; justify-self: end; }
.pestanas { display: inline-flex; gap: 4px; margin: clamp(32px, 5vh, 56px) 0 24px; padding: 4px; border-radius: 12px; background: var(--surface-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pestanas button { position: relative; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9375rem; color: var(--text-muted); white-space: nowrap; transition: color var(--dur-ui) ease, background-color var(--dur-ui) ease; overflow: hidden; }
.pestanas button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(12 22 48 / .08); }
.pestanas button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.pestanas.is-auto button[aria-selected="true"]::after { animation: avance 5s linear forwards; }
@keyframes avance { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .pestanas button:hover { color: var(--text); } }
.escena-3d { perspective: 1600px; }
.navegador {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 50px 100px -40px rgb(12 22 48 / .35), 0 0 0 1px rgb(36 86 214 / .04), 0 0 140px -30px rgb(36 86 214 / .35);
  transform-origin: center top;
}
.navegador-barra { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; height: 44px; padding: 0 16px; background: #EEF1F7; border-bottom: 1px solid var(--border); }
.navegador-puntos { display: flex; gap: 7px; }
.navegador-puntos i { width: 11px; height: 11px; border-radius: 50%; background: #CBD3E2; }
.navegador-url { justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 8px; background: #fff; font-size: .8125rem; color: var(--text-muted); }
.navegador-vistas { position: relative; aspect-ratio: 16 / 10; background: #F0F2F7; }
.vista { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.015); transition: opacity 700ms var(--ease-expo), transform 900ms var(--ease-expo); }
.vista.is-activa { opacity: 1; transform: none; }
.escritorio-nota { margin-top: 16px; font-size: .8125rem; color: var(--text-muted); text-align: center; }
@media (max-width: 899px) {
  .escritorio-cabeza { grid-template-columns: 1fr; }
  .escritorio-cabeza p { justify-self: start; }
  .navegador-barra { height: 34px; padding: 0 10px; }
  .navegador-url { font-size: .6875rem; padding: 3px 10px; }
  .navegador-puntos i { width: 8px; height: 8px; }
}

/* ---------- Servicios ---------- */
.servicios { padding: clamp(112px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.servicios-cabeza { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(48px, 8vh, 96px); }
.servicios-cabeza h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.04em; }
.servicios-cabeza p { color: var(--text-muted); max-width: 40ch; justify-self: end; }
.servicios-lista { border-bottom: 1px solid var(--border); }
.servicio { border-top: 1px solid var(--border); }
.servicio-link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 32px;
  padding: clamp(28px, 4vw, 44px) clamp(8px, 1.5vw, 20px);
  text-decoration: none; color: var(--text);
}
.servicio-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: var(--radius);
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path 520ms var(--ease-expo);
}
.servicio-nombre { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.25rem, 5.4vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; transition: transform 520ms var(--ease-expo), color 300ms ease; }
.servicio--completo .servicio-nombre { color: var(--accent); }
.servicio-texto { color: var(--text-muted); max-width: 46ch; transition: color 300ms ease; }
.servicio-flecha { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-size: 20px; transition: background-color 300ms ease, color 300ms ease, transform 520ms var(--ease-expo); }
@media (hover: hover) and (pointer: fine) {
  .servicio-link:hover::before { clip-path: inset(0 0 0 0 round var(--radius)); }
  .servicio-link:hover .servicio-nombre { color: #fff; transform: translateX(12px); }
  .servicio-link:hover .servicio-texto { color: rgb(255 255 255 / .86); }
  .servicio-link:hover .servicio-flecha { background: #fff; color: var(--accent); transform: rotate(45deg); }
}
.servicio-link:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.servicio-link:active .servicio-flecha { transform: scale(.94); }
@media (max-width: 899px) {
  .servicios-cabeza { grid-template-columns: 1fr; }
  .servicios-cabeza p { justify-self: start; }
  .servicio-link { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; padding-inline: 0; }
  .servicio-nombre { grid-column: 1; grid-row: 1; }
  .servicio-flecha { grid-column: 2; grid-row: 1; width: 44px; height: 44px; }
  .servicio-texto { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Cinta de texto gigante ---------- */
.cinta { padding: clamp(40px, 8vh, 96px) 0; overflow: clip; display: flex; flex-direction: column; gap: clamp(4px, 1vw, 12px); }
.cinta-pista {
  display: flex; align-items: center; gap: .35em; width: max-content;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3.5rem, 11vw, 10rem); line-height: 1; letter-spacing: -0.045em;
  white-space: nowrap; will-change: transform;
}
.cinta-pista i { font-size: .45em; color: var(--accent); }
.cinta-pista--b { color: transparent; -webkit-text-stroke: 1.5px var(--accent); transform: translateX(-20%); }
.cinta-pista--b i { -webkit-text-stroke: 0; }

/* ---------- Qué incluye (bento) ---------- */
.incluye { padding: clamp(80px, 12vh, 140px) 0 clamp(96px, 14vh, 160px); }
.incluye-titulo { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 18ch; margin-bottom: clamp(40px, 7vh, 80px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.celda { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.celda h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; }
.celda p { color: var(--text-muted); max-width: 44ch; }
.celda--offline { grid-column: span 4; background: var(--abismo); border-color: var(--abismo); color: var(--sobre-abismo); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 340px; }
.celda--offline p { color: var(--sobre-abismo-2); }
.celda--offline .celda-texto { display: flex; flex-direction: column; gap: 12px; }
.celda--logo { grid-column: span 2; background: var(--surface-2); border-color: var(--surface-2); }
.celda--permisos { grid-column: span 3; }
.celda--recibo { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 28px; align-content: center; }
.celda--recibo .recibo { grid-row: 1 / 3; }
.celda--recibo h3 { align-self: end; }
.celda--lista { grid-column: span 6; padding-block: 28px; }

/* Cola sin internet */
.cola { background: rgb(255 255 255 / .04); border: 1px solid rgb(175 195 224 / .16); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cola-wifi { position: relative; height: 28px; font-size: 24px; color: var(--azul-claro); }
.cola-wifi i { position: absolute; left: 0; top: 0; }
.cola-wifi i:last-child { opacity: 0; color: #7FA2FF; }
.cola ul { display: flex; flex-direction: column; gap: 8px; }
.cola li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: rgb(255 255 255 / .05); border-radius: 10px; padding: 10px 12px; font-size: .9375rem; }
.cola b { font-variant-numeric: tabular-nums; font-weight: 600; }
.cola-estado { position: relative; width: 74px; height: 22px; font-style: normal; font-size: .75rem; font-weight: 600; }
.cola-estado::before, .cola-estado::after { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 99px; }
.cola-estado::before { content: "En cola"; background: rgb(175 195 224 / .14); color: var(--azul-claro); }
.cola-estado::after { content: "Subido"; background: var(--accent); color: #fff; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cola-wifi i:first-child { animation: wifi-off 6s var(--ease-in-out) infinite; }
  .cola-wifi i:last-child { animation: wifi-on 6s var(--ease-in-out) infinite; }
  .cola-estado::after { animation: subido 6s var(--ease-out) infinite; }
  .cola li:nth-child(2) .cola-estado::after { animation-delay: .25s; }
  .cola li:nth-child(3) .cola-estado::after { animation-delay: .5s; }
}
@media (prefers-reduced-motion: reduce) {
  .cola-estado::after { opacity: 1; }
  .cola-wifi i:first-child { opacity: 0; }
  .cola-wifi i:last-child { opacity: 1; }
}
@keyframes wifi-off { 0%, 40% { opacity: 1; } 48%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wifi-on { 0%, 40% { opacity: 0; } 48%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes subido { 0%, 50% { opacity: 0; transform: scale(.9); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.icono-app {
  width: 76px; height: 76px; border-radius: 20px; margin-bottom: 8px;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #3A6BEA, var(--navy));
  color: #fff; font-family: var(--font-display); font-weight: 500; font-size: .875rem; line-height: 1;
  box-shadow: 0 12px 24px -10px rgb(36 86 214 / .55);
}
.niveles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.niveles span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border); font-size: .875rem; font-weight: 600; color: var(--text-muted); }
.niveles .is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.recibo {
  width: 168px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: .8125rem;
  font-variant-numeric: tabular-nums; rotate: -3deg;
}
.recibo b { font-family: var(--font-display); font-weight: 500; font-size: 1rem; padding-bottom: 6px; border-bottom: 1px dashed var(--border-strong); }
.recibo span { display: flex; justify-content: space-between; color: var(--text-muted); }
.recibo em { font-style: normal; }
.recibo-total { border-top: 1px dashed var(--border-strong); padding-top: 8px; color: var(--text) !important; font-weight: 700; }
.mini-lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; }
.mini-lista li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9375rem; }
.mini-lista i { font-size: 20px; color: var(--accent); flex: none; }

@media (max-width: 1023px) {
  .celda--offline { grid-column: span 6; }
  .celda--logo { grid-column: span 6; }
  .celda--permisos, .celda--recibo { grid-column: span 6; }
  .mini-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .celda--offline { grid-template-columns: 1fr; min-height: 0; }
  .celda--recibo { grid-template-columns: 1fr; }
  .celda--recibo .recibo { grid-row: auto; margin-bottom: 12px; }
  .mini-lista { grid-template-columns: 1fr; }
}

/* ---------- Cómo empezar ---------- */
.empezar { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--border); }
.empezar h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; }
.empezar-linea { margin: clamp(48px, 7vh, 72px) 0 32px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.empezar-linea span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.empezar-pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.empezar-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; margin-bottom: 24px; }
.empezar-pasos h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.03em; line-height: 1.1; }
.empezar-pasos p { margin-top: 12px; color: var(--text-muted); max-width: 34ch; }
@media (max-width: 767px) {
  .empezar-linea { display: none; }
  .empezar-pasos { grid-template-columns: 1fr; margin-top: 48px; gap: 40px; }
}

/* ---------- Tus datos ---------- */
.datos { padding: clamp(80px, 12vh, 140px) 0 clamp(112px, 16vh, 180px); }
.datos-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.datos h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.04em; position: sticky; top: calc(var(--header-h) + 48px); }
.datos-lista > div { padding: 32px 0; border-top: 1px solid var(--border); }
.datos-lista > div:last-child { border-bottom: 1px solid var(--border); }
.datos-lista dt { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.025em; color: var(--accent-text); }
.datos-lista dd { margin-top: 10px; color: var(--text-muted); max-width: 48ch; }
@media (max-width: 899px) {
  .datos-grid { grid-template-columns: 1fr; }
  .datos h2 { position: static; }
}

/* ---------- Contacto ---------- */
.contacto { position: relative; isolation: isolate; color: #fff; padding: clamp(112px, 18vh, 200px) 0 clamp(96px, 14vh, 160px); overflow: clip; }
.contacto-fondo {
  position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(-35deg, rgb(255 255 255 / .035) 0 28px, transparent 28px 64px),
    radial-gradient(60% 60% at 80% 0%, #4A7BF0, transparent 70%),
    var(--accent);
  border-radius: 32px 32px 0 0;
}
.contacto-titulo { font-size: clamp(4rem, 13vw, 6rem); line-height: .95; letter-spacing: -0.045em; }
/* El poste grande, en el espacio libre a la derecha de "Hablemos." */
.contacto-inner { position: relative; }
.contacto-poste {
  position: absolute; right: clamp(16px, 9vw, 140px); top: 50%; translate: 0 -50%;
  filter: drop-shadow(0 0 36px rgb(175 195 224 / .22)) drop-shadow(0 24px 30px rgb(0 0 0 / .45));
}
.contacto-poste .poste--xl { --w: 64px; --h: 196px; --d: 60px; --t: 3s; }
@media (max-width: 900px) {
  .contacto-poste { top: 0; translate: none; right: 16px; }
  .contacto-poste .poste--xl { --w: 30px; --h: 92px; --d: 28px; --t: 2s; }
  .contacto-titulo, .contacto-sub { padding-right: 56px; }
}
.contacto-sub { margin-top: 20px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgb(255 255 255 / .88); max-width: 36ch; }
.contacto-wa { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.wa {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 22px; min-height: 76px; border-radius: var(--radius);
  background: #fff; color: var(--text); text-decoration: none;
  transition: transform var(--dur-ui) var(--ease-out), background-color var(--dur-ui) ease;
}
.wa > i:first-child { font-size: 28px; color: var(--accent); }
.wa span { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wa small { display: block; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.wa-flecha { font-size: 20px; color: var(--accent); transition: transform var(--dur-ui) var(--ease-out); }
.wa:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .wa:hover { transform: translateY(-3px); }
  .wa:hover .wa-flecha { transform: translate(2px, -2px); }
}
.wa:focus-visible, .red:focus-visible { outline-color: #fff; }
.redes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.red {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid rgb(255 255 255 / .35);
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.red i { font-size: 18px; }
.red[aria-disabled="true"] { cursor: default; color: rgb(255 255 255 / .82); border-style: dashed; }
.pronto { font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: rgb(255 255 255 / .16); }
@media (max-width: 639px) {
  .contacto-wa { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--abismo); color: var(--sobre-abismo-2); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand--pie { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; font-size: .9375rem; color: var(--sobre-abismo); min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { text-decoration: underline; } }
.footer-copy { font-size: .875rem; width: 100%; }
@media (min-width: 900px) { .footer-copy { width: auto; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal]:not(.is-in) { transform: none; filter: none; clip-path: none; }
  [data-reveal] { transition: opacity 300ms ease; transition-delay: 0ms; }
  .pantalla { transform: none; filter: none; transition: opacity 300ms ease; }
  .paso { transition: opacity 300ms ease; }
  .vista { transition: opacity 300ms ease; }
  .cinta-pista { flex-wrap: wrap; width: auto; white-space: normal; padding-inline: var(--gutter); transform: none; }
}
