/* ==========================================================================
   Carlos Hurtado Estudio Digital
   Por defecto (sin JS o con reduced-motion) todo se ve en su estado final.
   html.anim activa los estados iniciales de las escenas animadas.
   ========================================================================== */

:root {
  color-scheme: dark;
  --night: #0F172A;
  --night-deep: #0B1120;
  --night-up: #111C33;
  --cyan: #22D3EE;
  --cyan-soft: #67E8F9;
  --white: #F8FAFC;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --line: rgba(148, 163, 184, .16);
  --glass: rgba(17, 28, 51, .55);
  --wa: #25D366;
  --wa-ink: #052E16;

  --f-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 64px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.rm { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grano fino */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .2;
  background-image: url("../img/grano.png");
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--white); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--cyan); color: var(--night-deep); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }

.h-display {
  font: 800 clamp(2.25rem, 1.2rem + 4.6vw, 5.4rem)/1.02 var(--f-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h-section {
  font: 800 clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem)/1.06 var(--f-display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.sec-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: 38rem; }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), border-color .25s, box-shadow .3s var(--ease-out);
  will-change: transform;
}
.btn .ico { width: 1.2em; height: 1.2em; flex: none; }
.btn--wa { --bg: var(--wa); --fg: var(--wa-ink); }
.btn--wa:hover { box-shadow: 0 0 0 6px rgba(37, 211, 102, .16), 0 10px 30px -8px rgba(37, 211, 102, .6); }
.btn--cyan { --bg: var(--cyan); --fg: var(--night-deep); }
.btn--cyan:hover { box-shadow: 0 0 0 6px rgba(34, 211, 238, .16), 0 10px 30px -8px rgba(34, 211, 238, .6); }
.btn--ghost { border-color: rgba(248, 250, 252, .28); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 1.6em; font-size: 1.0625rem; }
.btn--xl { min-height: 68px; padding: 0 2.2em; font-size: clamp(1.0625rem, 1rem + .6vw, 1.375rem); }
.btn--xl .ico { width: 1.5em; height: 1.5em; }
.ico { width: 1em; height: 1em; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(var(--gutter), calc((100% - 1200px) / 2));
  background: rgba(11, 17, 32, .86); /* sobre el video del Acto 3 el texto del menú debe seguir legible */
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(34, 211, 238, .1);
}
.nav__logo { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 3px; text-decoration: none; line-height: 1.1; }
.nav__name { font: 800 1.0625rem/1.1 var(--f-display); color: var(--white); letter-spacing: -.02em; }
.nav__caret { width: 3px; height: 1.05em; background: var(--cyan); border-radius: 1px; box-shadow: 0 0 10px var(--cyan); animation: blink 1.1s steps(1) infinite; display: inline-block; vertical-align: -.12em; }
.nav__sub { grid-column: 1 / -1; font-size: .75rem; color: #CBD5E1; letter-spacing: .02em; }
.nav__links { display: none; gap: 32px; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9375rem; padding: 10px 0; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
@media (min-width: 860px) { .nav__links { display: flex; } }

@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   ACTO 1 · La página en blanco
   Texto y dispositivo nunca se superponen: escritorio en dos columnas
   (texto ≤ 45 %), celular y tablet en una columna con el texto primero.
   ========================================================================== */
.a1__stage {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(34, 211, 238, .08), transparent 70%),
    var(--night-deep);
  overflow: hidden;
}
.a1__intro, .a1__hint, .code, .a1__build { display: none; }

.a1__copy { flex: none; max-width: 40rem; margin-inline: auto; text-align: center; position: relative; z-index: 2; }
.a1__sub { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); color: var(--cyan-soft); font-weight: 500; }
.a1__ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 420px) { .a1__ctas .btn { width: 100%; } }

/* Zona del dispositivo: mide su propio alto y el celular se ajusta a él */
.a1__device {
  position: relative; flex: 1 1 0; min-height: 200px; max-height: 560px; width: 100%; container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.a1__device > * { --ph: min(calc(94cqh - 46px), 600px); --pw: calc(var(--ph) * 9 / 19); }
.a1__device .l3 { display: none; }

@media (min-width: 1024px) {
  .a1__stage {
    display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); align-items: center;
    column-gap: clamp(20px, 2.5vw, 44px);
    padding-inline: max(var(--gutter) * 2, calc((100% - 1280px) / 2));
  }
  .a1__copy { max-width: none; margin: 0; text-align: left; }
  .a1__copy .h-display { font-size: clamp(3.2rem, 1.2rem + 4.4vw, 6rem); }
  .a1__ctas { justify-content: flex-start; }
  .a1__device { height: min(72svh, 640px); max-height: none; flex: none; display: block; }
}

/* Etiqueta: la pantalla muestra la web de un cliente, no mi página */
.dev-tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; color: var(--white); line-height: 1.25;
  background: rgba(17, 28, 51, .72); border: 1px solid rgba(34, 211, 238, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  white-space: nowrap;
}
.dev-tag__dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.dev-tag__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--cyan); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }
/* Escritorio: laptop con el celular al frente (≈ 45 % del ancho), etiqueta sobre la esquina de la laptop */
@media (min-width: 1024px) {
  .a1__device > * { --lw: min(78cqw, 96cqh); --ph: min(72cqh, 460px); --pw: calc(var(--ph) * 9 / 19); }
  .a1__device .l3 { display: block; position: absolute; right: 0; top: 13%; }
  .a1__device .p3 { position: absolute; z-index: 2; bottom: 3%; left: max(0px, calc(100% - var(--lw) - var(--pw) * .32)); }
  .a1__device .dev-tag { position: absolute; z-index: 3; top: calc(13% - 44px); left: calc(100% - var(--lw)); }
}

/* Lienzo donde se arma la web (solo en la escena animada) */
.frame {
  position: relative; height: 60svh; aspect-ratio: 390 / 844;
  border-radius: 28px; padding: 6px; background: #0A0F1C;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .08), 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(34, 211, 238, .35);
}
.frame__bar { display: none; }
.frame__screen { position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: var(--night-deep); }
.frame__shot, .frame__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wf { display: none; position: absolute; inset: 0; }
.wf b { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: 1px dashed rgba(34, 211, 238, .7); border-radius: 3px; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--cyan); box-shadow: 0 0 18px 3px rgba(34, 211, 238, .7); opacity: 0; }
@media (min-width: 768px) {
  .frame { width: 100%; height: auto; aspect-ratio: auto; border-radius: 14px; padding: 0; }
  .frame__bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-bottom: 1px solid rgba(148, 163, 184, .14); }
  .frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, .35); }
  .frame__bar span { margin-left: 14px; font: 500 .75rem/1 var(--f-body); color: var(--muted); background: rgba(148, 163, 184, .1); padding: 5px 14px; border-radius: 999px; }
  .frame__screen { height: auto; aspect-ratio: 1440 / 900; border-radius: 0 0 14px 14px; }
}

/* Celulares de poca altura (p. ej. 360×640) */
@media (max-width: 767px) and (max-height: 740px) {
  .a1__stage { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 14px; gap: 12px; }
  .a1 .h-display { font-size: clamp(1.8rem, 5svh, 2.3rem); }
  .a1__sub { margin-top: 8px; font-size: .9375rem; }
  .a1__ctas { margin-top: 14px; gap: 8px; }
  .a1__ctas .btn--lg { min-height: 48px; }
  .a1__device { min-height: 170px; gap: 8px; }
  .a2__stage { padding-top: calc(var(--nav-h) + 12px); gap: 10px; }
  .a2__head p { display: none; }
}

/* Escena animada */
.anim .a1__stage { height: 100svh; min-height: 0; }
.anim .a1__intro {
  display: flex; align-items: center; gap: 6px;
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3;
  margin: 0; white-space: nowrap;
  font: 800 clamp(1.5rem, 1rem + 2.6vw, 3rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--white);
}
.caret { display: inline-block; width: .09em; min-width: 3px; height: 1.1em; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: blink 1s steps(1) infinite; }
/* Se "escribe" con una máscara: el texto cuenta como pintado desde el inicio (LCP) */
.anim .a1__intro-txt {
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 50%); mask-image: linear-gradient(90deg, #000 50%, transparent 50%);
  -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: type 1.4s steps(24, end) .35s forwards;
}
@keyframes type { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.anim .a1__hint {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 3;
  font-size: .8125rem; color: var(--muted); letter-spacing: .04em;
  opacity: 0; animation: fade .6s 1.9s forwards;
}
.anim .a1__hint i { width: 1px; height: 40px; background: linear-gradient(var(--cyan), transparent); transform-origin: top; animation: drip 1.8s var(--ease-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes fade { to { opacity: 1; } }

.anim .a1__build { display: block; position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; }
@media (min-width: 768px) { .anim .a1__build { width: min(74vw, 980px, calc(62svh * 1.6)); } }
.anim .a1__copy, .anim .nav, .anim .a1__device .p3, .anim .a1__device .l3, .anim .a1__device .dev-tag { opacity: 0; }
.anim .wf { display: block; }
.anim .frame__shot { opacity: 0; }
.anim .code {
  display: block; position: absolute; z-index: 4;
  left: 16px; right: 16px; bottom: 7svh;
  margin: 0; padding: 16px 18px;
  font: 400 11.5px/1.75 var(--f-mono); color: var(--text);
  background: rgba(15, 23, 42, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 211, 238, .2); border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  white-space: pre; overflow: hidden;
}
.code em, .code i, .code u, .code s { font-style: normal; text-decoration: none; }
.code em { color: var(--cyan); }
.code u { color: var(--white); }
.code s { color: var(--cyan-soft); }
.code i { color: var(--muted); }
.code .ln { display: inline-block; clip-path: inset(0 100% 0 0); }
@media (min-width: 768px) {
  .anim .code { left: max(24px, 5vw); right: auto; bottom: 10svh; width: max-content; font-size: 13px; padding: 20px 24px; }
}

/* ==========================================================================
   Dispositivos 3D. Una sola variable controla cada giro (--ry celular,
   --ly laptop, --lid tapa): rotación, reflejo del vidrio y sombra del piso.
   ========================================================================== */
.dev-screen { background: var(--night-deep); }
.dev-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(.8) saturate(.9); }

/* Celular estilo iPhone Pro actual: marco de titanio oscuro en 9 capas, frente de vidrio con bisel fino */
.p3 {
  --pd: calc(var(--pw) * .05);
  --pr: calc(var(--pw) * .17);
  --bz: calc(var(--pw) * .034);
  position: relative; width: var(--pw); height: var(--ph);
  perspective: 1400px;
}
.p3__rot { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(5deg) rotateY(calc(var(--ry, 0) * 1deg)); }
.p3__slice {
  position: absolute; inset: 0; border-radius: var(--pr);
  background: linear-gradient(90deg, hsl(222 5% calc(var(--l) * .86)), hsl(222 5% calc(var(--l) * .5)) 50%, hsl(222 5% calc(var(--l) * .86)));
  transform: translateZ(calc((var(--i) / 8 - .5) * var(--pd)));
}
.p3__front, .p3__back { position: absolute; inset: 0; border-radius: var(--pr); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.p3__front {
  transform: translateZ(calc(var(--pd) / 2 + .6px));
  padding: var(--bz); background: #020203;
  box-shadow: inset 0 0 0 1.2px #8C929C, inset 0 0 0 2.6px #0A0B0D, 0 0 0 .6px rgba(200, 208, 220, .5), 0 0 26px -10px rgba(34, 211, 238, .4);
}
.p3__screen { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: calc(var(--pr) - var(--bz)); overflow: hidden; background: #0E0D11; }
.p3__screen img { flex: 1 1 0; min-height: 0; height: auto; }
.p3__status {
  flex: none; height: calc(var(--pw) * .14); padding: calc(var(--pw) * .012) calc(var(--pw) * .085) 0;
  display: flex; align-items: center; justify-content: space-between;
  font: 600 calc(var(--pw) * .052)/1 -apple-system, "SF Pro Text", var(--f-body); color: #fff; letter-spacing: -.01em;
}
.p3__icons { display: flex; align-items: center; gap: calc(var(--pw) * .02); }
.p3__icons svg { height: calc(var(--pw) * .04); width: calc(var(--pw) * .06); }
.p3__icons .p3__bat { width: calc(var(--pw) * .085); }
.p3__island { position: absolute; top: calc(var(--bz) + var(--pw) * .03); left: 50%; translate: -50% 0; width: 30%; height: calc(var(--pw) * .085); border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px #1A1F2B; }
.p3__glass {
  position: absolute; inset: var(--bz); border-radius: calc(var(--pr) - var(--bz)); pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .15) 47%, rgba(255, 255, 255, .04) 53%, rgba(255, 255, 255, 0) 62%);
  background-size: 320% 100%;
  background-position: calc(50% - var(--ry, 0) * 2.4%) 0;
}
.p3__back { transform: rotateY(180deg) translateZ(calc(var(--pd) / 2 + .6px)); background: linear-gradient(160deg, #50545D, #2D3037 52%, #3C4048); box-shadow: inset 0 0 0 1.2px #8C929C; }
.p3__back span { position: absolute; top: 3%; left: 7%; width: 42%; aspect-ratio: 1; border-radius: 28%; background: linear-gradient(150deg, #3A3E46, #24272D); box-shadow: inset 0 0 0 1px rgba(200, 208, 220, .3); }
.p3__btn { position: absolute; width: calc(var(--pd) * .7); border-radius: 2px; background: linear-gradient(90deg, #5D626B, #AEB4BD, #5D626B); }
.p3__btn--v1, .p3__btn--v2 { left: 0; transform-origin: 0 50%; transform: translateX(-1.4px) translateZ(calc(var(--pd) * .35)) rotateY(90deg); height: 6.5%; }
.p3__btn--v1 { top: 20%; }
.p3__btn--v2 { top: 28.5%; }
.p3__btn--pw { right: 0; top: 25%; height: 10%; transform-origin: 100% 50%; transform: translateX(1.4px) translateZ(calc(var(--pd) * .35)) rotateY(-90deg); }
.p3__floor {
  position: absolute; left: 4%; right: 4%; top: 100.5%; height: calc(var(--ph) * .07);
  border-radius: 50%; pointer-events: none; filter: blur(2px);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, .28) 50%, rgba(34, 211, 238, .05) 78%, transparent);
  transform: translateX(calc(var(--ry, 0) * var(--pw) * -.006)) scaleX(calc(1 - var(--ry, 0) * var(--ry, 0) / 2600));
}

/* Laptop estilo MacBook Pro 14": pantalla 16:10 con biseles finos y notch, tapa delgada de aluminio
   gris espacial, bisagra casi invisible y base plana apenas más ancha que la tapa */
.l3 {
  --r: calc(var(--lw) * .022);      /* radio de las esquinas superiores de la tapa */
  --rb: calc(var(--lw) * .006);     /* radio inferior de la tapa */
  position: relative; width: var(--lw); height: calc(var(--lw) * .644); perspective: 1800px;
}
.l3__rot { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-16deg) rotateY(calc(var(--ly, 0) * 1deg)); }
.l3__lid { position: absolute; inset: 0; transform-origin: 50% 100%; transform-style: preserve-3d; transform: rotateX(calc(var(--lid, 12) * 1deg)); }
.l3__lslice { position: absolute; inset: 0; border-radius: var(--r) var(--r) var(--rb) var(--rb); background: hsl(222 6% calc(36% - var(--i) * 3%)); transform: translateZ(calc(var(--i) * -1.4px)); }
.l3__front {
  position: absolute; inset: 0; padding: 1.4% 1.4% 2.2%;
  border-radius: var(--r) var(--r) var(--rb) var(--rb); background: #040405;
  box-shadow: inset 0 0 0 1px #7D838D, 0 0 0 .8px rgba(205, 212, 224, .45), 0 0 44px -14px rgba(34, 211, 238, .38);
  transform: translateZ(.5px); -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.l3__front::after { content: ""; position: absolute; left: 50%; top: 1.4%; width: 8.5%; height: 2.2%; translate: -50% 0; background: #040405; border-radius: 0 0 var(--rb) var(--rb); }
.l3__screen { width: 100%; height: 100%; border-radius: calc(var(--r) * .55) calc(var(--r) * .55) 2px 2px; overflow: hidden; }
.l3__glass { position: absolute; inset: 1.4% 1.4% 2.2%; pointer-events: none; background: linear-gradient(110deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .08) 48%, rgba(255, 255, 255, 0) 58%); background-size: 300% 100%; background-position: calc(50% - var(--ly, 0) * 2%) 0; }
.l3__lback { position: absolute; inset: 0; border-radius: var(--r) var(--r) var(--rb) var(--rb); background: linear-gradient(165deg, #50545D, #2D3037 50%, #3C4048); box-shadow: inset 0 0 0 1px rgba(205, 212, 224, .28); transform: translateZ(-4.8px) rotateY(180deg); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.l3__lback span { display: none; }
.l3__deck { position: absolute; left: -1.8%; width: 103.6%; top: 100%; height: calc(var(--lw) * .69); transform-origin: 50% 0; transform: rotateX(90deg); transform-style: preserve-3d; }
.l3__deck::before { content: ""; position: absolute; left: 13%; right: 13%; top: 0; height: 1.4%; border-radius: 0 0 3px 3px; background: linear-gradient(#08090B, #1F2126); transform: translateZ(.8px); }
.l3__top, .l3__dslice { position: absolute; inset: 0; border-radius: calc(var(--lw) * .008) calc(var(--lw) * .008) calc(var(--lw) * .028) calc(var(--lw) * .028); }
.l3__dslice { background: hsl(222 6% calc(40% - var(--i) * 4%)); transform: translateZ(calc(var(--i) * -1.1px)); }
.l3__top {
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(34, 211, 238, .09), transparent 70%),
    linear-gradient(180deg, #5C6069, #4A4D55 55%, #3F4249);
  box-shadow: inset 0 0 0 1px rgba(215, 222, 234, .4), inset 0 2px 0 rgba(255, 255, 255, .1), inset 0 -2px 0 rgba(215, 222, 234, .3);
}
.l3__top::before, .l3__top::after { content: ""; position: absolute; top: 5%; height: 47%; width: 6.5%; opacity: .75; background: radial-gradient(circle, rgba(0, 0, 0, .6) 32%, transparent 38%) 0 0 / 5px 5px; }
.l3__top::before { left: 3.6%; }
.l3__top::after { right: 3.6%; }
.l3__keys {
  position: absolute; left: 12.5%; right: 12.5%; top: 5%; height: 47%; border-radius: calc(var(--lw) * .006);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / calc(100% / 15) 100%,
    linear-gradient(0deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% calc(100% / 6),
    #0C0D10;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5);
}
.l3__pad { position: absolute; left: 27%; right: 27%; top: 57%; bottom: 6%; border-radius: calc(var(--lw) * .009); background: linear-gradient(#545860, #4B4F57); box-shadow: inset 0 0 0 1px rgba(220, 226, 236, .34), 0 1px 0 rgba(0, 0, 0, .25); }
.l3__floor {
  position: absolute; left: -7%; right: -7%; top: 120%; height: calc(var(--lw) * .1);
  border-radius: 50%; pointer-events: none; filter: blur(3px);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, .28) 45%, rgba(34, 211, 238, .05) 75%, transparent);
  transform: translateX(calc(var(--ly, 0) * var(--lw) * -.004)) scaleX(calc(1 - var(--ly, 0) * var(--ly, 0) / 3000));
}

/* ==========================================================================
   ACTO 2 · Cobra vida
   ========================================================================== */
.a2__stage {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(var(--night-deep), var(--night) 60%);
  overflow: hidden;
}
.a2__head { flex: none; text-align: center; max-width: 40rem; margin-inline: auto; position: relative; z-index: 2; }
.a2__head p { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.devices { flex: 1 1 0; min-height: 260px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.devices__set { position: relative; flex: 1 1 0; min-height: 0; width: min(1000px, 100%); container-type: size; }
.devices .l3 { --lw: min(66cqw, 96cqh); position: absolute; left: 50%; top: 2%; margin-left: calc(var(--lw) * -.42); }
.devices .p3 { --ph: min(84cqh, 470px); --pw: calc(var(--ph) * 9 / 19); position: absolute; bottom: 4%; left: calc(50% - min(66cqw, 96cqh) * .42 - var(--pw) * .3); z-index: 2; }
@media (max-width: 767px) {
  .devices .l3 { --lw: min(76cqw, 112cqh); margin-left: calc(var(--lw) * -.38); }
  .devices .p3 { --ph: min(78cqh, 420px); left: 1%; }
}

.stats { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(820px, 100%); margin-inline: auto; text-align: center; }
.stats strong { display: block; font: 800 clamp(1.75rem, 1rem + 3.4vw, 3.4rem)/1 var(--f-display); color: var(--white); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span:not(.count) { display: block; margin-top: 8px; font-size: .875rem; color: var(--muted); }
.stats li { padding-top: 14px; border-top: 1px solid var(--line); position: relative; }
.stats li::before { content: ""; position: absolute; top: -1px; left: 50%; width: 36px; translate: -50% 0; height: 1px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@media (max-width: 767px) { .a2__stage { padding-bottom: 88px; } }
.anim .a2__stage { height: 100svh; min-height: 0; }

/* Etiquetas "Caso real" / "Concepto" */
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--cyan-soft); border: 1px solid rgba(34, 211, 238, .35); padding: 5px 12px; border-radius: 999px; background: rgba(34, 211, 238, .06); }
.tag--real::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 8px var(--wa); }

/* ==========================================================================
   ACTO 3 · La órbita: una pantalla de alto, sin scroll fijado.
   El JS calcula la posición de cada pantalla (anillo en escritorio, coverflow en celular).
   ========================================================================== */
.orbita {
  position: relative; height: 100svh; min-height: 560px; max-height: 1000px;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 20px) 0 18px;
  background: radial-gradient(48% 42% at 50% 58%, rgba(34, 211, 238, .13), transparent 72%), var(--night-deep);
  overflow: hidden;
}
.orbita__head { flex: none; text-align: center; position: relative; z-index: 2; }
.orbita__head p { margin-top: 8px; color: var(--cyan-soft); font-weight: 500; }
.orbita__escena {
  position: relative; flex: 1 1 0; min-height: 0; margin-top: 8px;
  perspective: 1200px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.orbita__escena:active { cursor: grabbing; }
.orbita__escena:focus-visible { outline: 2px solid var(--cyan); outline-offset: -6px; border-radius: 20px; }
.orbita__polvo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbita__nucleo {
  position: absolute; left: 50%; top: 50%; width: min(26vmin, 240px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(207, 250, 254, .95) 0%, rgba(34, 211, 238, .6) 14%, rgba(34, 211, 238, .18) 42%, transparent 70%);
  filter: blur(1px);
  animation: nucleo 4.5s ease-in-out infinite;
}
@keyframes nucleo { 50% { transform: scale(1.12); opacity: .82; } }
.orbita__anillo { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; }
.orbita__ayuda { flex: none; text-align: center; font-size: .8125rem; color: var(--muted); }
.orbita__ayuda .solo-celular { display: none; }
@media (max-width: 767px) {
  .orbita { padding-bottom: 84px; }   /* la ayuda queda por encima del botón flotante */
  .orbita__ayuda .solo-celular { display: inline; }
  .orbita__ayuda .solo-escritorio { display: none; }
}

/* Cada pantalla: siempre de frente a la cámara, con reflejo y sombra suave */
.orb {
  --ow: 300px;
  position: absolute; left: 50%; top: 50%;
  width: var(--ow); aspect-ratio: 16 / 10;
  margin: calc(var(--ow) * -.3125) 0 0 calc(var(--ow) * -.5);
  will-change: transform, filter, opacity;
}
.orb__btn {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden;
  border: 0; border-radius: 14px; background: #000; color: #fff; font: inherit; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .32), 0 34px 60px -26px rgba(0, 0, 0, .95), 0 0 46px -16px rgba(34, 211, 238, .5);
  -webkit-box-reflect: below 10px linear-gradient(transparent 74%, rgba(255, 255, 255, .13));
}
.orb__btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 38%); }
.orb__btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.orb video, .orb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.orb__nombre {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 34px 14px 12px; text-align: left;
  background: linear-gradient(rgba(5, 8, 16, 0), rgba(5, 8, 16, .9) 55%, rgba(5, 8, 16, .96));
  font: 700 1rem/1.15 var(--f-display); letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  opacity: clamp(0, calc((var(--f, 1) - .45) * 3), 1);
}
.orb__nombre .tag { font-size: .6875rem; padding: 3px 9px; background: rgba(5, 8, 16, .7); }
/* "Tu negocio aquí": borde cian que late */
.orb--cta .orb__btn {
  display: grid; place-items: center; align-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 40%, #16294B, #0B1120 70%);
  box-shadow: 0 0 0 1.5px var(--cyan), 0 34px 60px -26px rgba(0, 0, 0, .95);
  animation: late 2.4s ease-in-out infinite;
}
@keyframes late {
  0%, 100% { box-shadow: 0 0 0 1.5px var(--cyan), 0 0 18px -4px rgba(34, 211, 238, .45), 0 34px 60px -26px rgba(0, 0, 0, .95); }
  50% { box-shadow: 0 0 0 1.5px var(--cyan-soft), 0 0 42px 2px rgba(34, 211, 238, .6), 0 34px 60px -26px rgba(0, 0, 0, .95); }
}
.orb__mas { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--cyan); color: var(--cyan); }
.orb__mas svg { width: 26px; height: 26px; }
.orb__cta-txt { font: 800 1.15rem/1.2 var(--f-display); color: var(--white); }
.orb__cta-sub { font-size: .8125rem; color: var(--cyan-soft); }

/* Sin JS no hay órbita: queda la lista de abajo */
html:not(.js) .orbita__escena, html:not(.js) .orbita__ayuda { display: none; }
html:not(.js) .orbita { height: auto; min-height: 0; padding-bottom: 0; }

/* ---------- Vista ampliada ---------- */
.vista { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.vista__fondo { position: absolute; inset: 0; background: rgba(5, 8, 16, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vista__caja { position: relative; width: min(1100px, 100%); display: grid; gap: 16px; align-items: center; }
.vista__media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; transform-origin: 0 0; box-shadow: 0 0 0 1px rgba(34, 211, 238, .35), 0 40px 90px -30px rgba(0, 0, 0, .9); }
.vista__media video { width: 100%; height: 100%; object-fit: cover; }
.vista__panel { position: relative; padding: 22px 22px 24px; border-radius: 20px; background: var(--night-up); border: 1px solid rgba(34, 211, 238, .25); }
.vista__cerrar { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(148, 163, 184, .12); color: var(--white); cursor: pointer; }
.vista__cerrar:hover { background: rgba(148, 163, 184, .24); }
.vista__cerrar svg { width: 22px; height: 22px; }
.vista__titulo { margin-top: 12px; padding-right: 44px; font: 800 clamp(1.4rem, 1rem + 1.6vw, 2rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.vista__tipo { margin-top: 6px; color: var(--cyan-soft); font-weight: 500; }
.vista__desc { margin-top: 12px; color: var(--muted); }
.vista__btn { margin-top: 18px; }
@media (min-width: 768px) {
  .vista__caja { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
  .vista__panel { padding: 30px 28px; }
}

/* ---------- Lista simple de trabajos (compacta) ---------- */
.obras { padding-block: 40px 64px; }
.obras__t { font: 700 1.125rem/1.3 var(--f-display); color: var(--muted); margin-bottom: 16px; }
.obras__grid { display: grid; gap: 10px; }
.obra { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 14px; background: var(--night-up); border: 1px solid var(--line); }
.obra img { width: 112px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
.obra__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.obra__txt .tag { font-size: .6875rem; padding: 2px 8px; }
.obra h3 { font: 700 .9375rem/1.25 var(--f-display); }
.obra__link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--cyan-soft); font-weight: 600; font-size: .875rem; text-decoration: none; }
.obra__link:hover { color: var(--white); }
@media (min-width: 900px) { .obras__grid { grid-template-columns: repeat(3, 1fr); } }
.rm .orb--cta .orb__btn, .rm .orbita__nucleo { animation: none; }

/* ==========================================================================
   ACTO 4 · La oferta (calma, legible)
   ========================================================================== */
.oferta { position: relative; background: var(--night); }
.oferta > section { padding-block: clamp(80px, 11vw, 150px); }
.oferta > section + section { border-top: 1px solid var(--line); }

/* Garantía */
.garantia { text-align: left; position: relative; }
.garantia::before { content: ""; display: block; width: min(320px, 60%); height: 1px; margin-bottom: 32px; background: linear-gradient(90deg, var(--cyan), transparent); box-shadow: 0 0 14px var(--cyan); }
.garantia__kicker { color: var(--cyan-soft); font-weight: 600; margin-bottom: 18px; }
.garantia__txt { font: 800 clamp(2rem, 1rem + 4.4vw, 4.75rem)/1.04 var(--f-display); letter-spacing: -.035em; max-width: 20ch; text-wrap: balance; }

/* Qué incluye */
.incluye__grid { display: grid; gap: 0 48px; }
.incluye__grid li { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; }
.incluye__grid svg { width: 32px; height: 32px; grid-row: span 2; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .45)); }
.incluye__grid h3 { font: 700 1.1875rem/1.3 var(--f-display); letter-spacing: -.01em; }
.incluye__grid p { margin-top: 6px; color: var(--muted); }
@media (min-width: 700px) { .incluye__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .incluye__grid { grid-template-columns: repeat(3, 1fr); } }

/* Servicios */
.oferta > .servicios { padding-top: clamp(56px, 8vw, 110px); }
.marquee { overflow: hidden; padding-block: 8px 40px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: flex; align-items: center;
  font: 800 clamp(2.4rem, 1.2rem + 5vw, 5.75rem)/1.1 var(--f-display); letter-spacing: -.035em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(248, 250, 252, .55);
  white-space: nowrap;
}
.marquee span:nth-child(odd) { color: var(--white); -webkit-text-stroke: 0; }
.marquee span::after { content: ""; width: .22em; height: .22em; margin-inline: .55em; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }
.rm .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
.rm .marquee span:nth-child(n+6) { display: none; }

.cards { display: grid; gap: 16px; margin-top: 16px; perspective: 1000px; }
.card {
  position: relative; padding: 28px 26px 30px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(34, 211, 238, .07), rgba(17, 28, 51, .5) 45%);
  border: 1px solid rgba(148, 163, 184, .14);
  transform-style: preserve-3d; transition: border-color .3s;
}
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .35; transition: opacity .3s; }
.card:hover { border-color: rgba(34, 211, 238, .35); }
.card:hover::before { opacity: 1; }
.card h3 { font: 700 1.25rem/1.25 var(--f-display); }
.card p { margin-top: 10px; color: var(--muted); }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(5, 1fr); } .card { padding: 28px 22px; } }

/* Quién está detrás */
.quien { display: grid; gap: 40px; align-items: center; }
.quien__video { position: relative; width: 340px; max-width: 100%; aspect-ratio: 9 / 16; justify-self: center; border-radius: 26px; overflow: hidden; border: 1px solid rgba(34, 211, 238, .25); box-shadow: 0 0 80px -30px rgba(34, 211, 238, .6); }
.quien__player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.quien__play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; color: var(--white);
  display: grid; place-items: center; align-content: center; gap: 20px;
  background:
    radial-gradient(80% 50% at 50% 30%, rgba(34, 211, 238, .22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, .06) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #13223F, var(--night-deep));
  font: inherit;
}
.quien__mono { font: 800 7rem/1 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(103, 232, 249, .7); }
.quien__btn { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--night-deep); box-shadow: 0 0 0 10px rgba(34, 211, 238, .14); transition: transform .3s var(--ease-out); }
.quien__btn .ico { width: 28px; height: 28px; margin-left: 4px; }
.quien__play:hover .quien__btn { transform: scale(1.08); }
.quien__label { font-weight: 600; font-size: .9375rem; }
.quien__note { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 10px 14px; font-size: .875rem; text-align: center; border-radius: 12px; background: rgba(11, 17, 32, .8); color: var(--text); }
.quien__lead { margin-top: 20px; font: 700 clamp(1.3rem, 1rem + 1.2vw, 1.85rem)/1.35 var(--f-display); color: var(--white); letter-spacing: -.015em; max-width: 30ch; }
.quien__txt > p:last-child { margin-top: 18px; color: var(--muted); max-width: 34rem; font-size: 1.0625rem; }
@media (min-width: 860px) { .quien { grid-template-columns: auto 1fr; gap: 80px; } }

/* Testimonio */
.testimonio__card { margin: 0 auto; max-width: 52rem; text-align: center; }
.testimonio__card blockquote { margin: 0; font: 700 clamp(1.4rem, 1rem + 1.8vw, 2.25rem)/1.3 var(--f-display); color: var(--white); letter-spacing: -.02em; text-wrap: balance; }
.testimonio__card figcaption { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; text-align: left; color: var(--muted); font-size: .9375rem; }
.testimonio__card strong { color: var(--white); }
.testimonio__foto { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed rgba(34, 211, 238, .5); color: var(--muted); font-size: .75rem; overflow: hidden; }
.testimonio__foto img { width: 100%; height: 100%; object-fit: cover; }

/* Paquetes */
.planes { display: grid; gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: 24px;
  background: var(--night-up); border: 1px solid var(--line);
}
.plan h3 { font: 700 1.25rem/1.2 var(--f-display); }
.plan__precio { margin-top: 18px; }
.plan__desde { display: block; font: 500 .875rem/1 var(--f-body); color: var(--muted); }
.plan__monto { margin-top: 8px; font: 800 clamp(2rem, 1.5rem + 1.6vw, 2.6rem)/1 var(--f-display); color: var(--white); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__per { font: 500 1rem/1 var(--f-body); color: var(--muted); letter-spacing: 0; }
.plan__otro { margin-top: 6px; font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Selector de moneda */
.moneda { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 36px; padding: 4px; border-radius: 999px; background: var(--night-up); border: 1px solid var(--line); isolation: isolate; }
.moneda button { position: relative; z-index: 1; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 .9375rem/1 var(--f-body); cursor: pointer; transition: color .3s; }
.moneda button span { font-weight: 800; }
.moneda button[aria-checked="true"] { color: var(--night-deep); }
.moneda button:not([aria-checked="true"]):hover { color: var(--white); }
.moneda__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--cyan); box-shadow: 0 0 20px -4px rgba(34, 211, 238, .7); transition: transform .45s var(--ease-out); }
.moneda[data-actual="usd"] .moneda__pill { transform: translateX(100%); }
.plan__para { margin-top: 14px; color: var(--muted); }
.plan ul { margin: 24px 0 28px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { color: var(--cyan); width: 20px; height: 20px; flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.plan--top {
  z-index: 1;
  background: linear-gradient(170deg, rgba(34, 211, 238, .18), #172748 45%);
  border-color: rgba(34, 211, 238, .75);
  animation: brillo-plan 3.4s ease-in-out infinite;
}
@keyframes brillo-plan {
  0%, 100% { box-shadow: 0 0 0 1px rgba(34, 211, 238, .25), 0 0 26px -6px rgba(34, 211, 238, .35), 0 30px 80px -30px rgba(34, 211, 238, .45); }
  50% { box-shadow: 0 0 0 1px rgba(34, 211, 238, .6), 0 0 48px -4px rgba(34, 211, 238, .6), 0 30px 80px -30px rgba(34, 211, 238, .6); }
}
.planes__nota { margin: 32px auto 0; max-width: 46rem; text-align: center; color: var(--text); font-size: 1rem; }
.plan__badge { position: absolute; top: -13px; left: 28px; background: var(--cyan); color: var(--night-deep); font-weight: 700; font-size: .8125rem; padding: 5px 12px; border-radius: 999px; }
@media (min-width: 960px) { .planes { grid-template-columns: repeat(3, 1fr); } .plan--top { transform: scale(1.04); } .planes__nota { margin-top: 48px; } }

/* Cómo funciona */
.pasos { position: relative; display: grid; gap: 36px; padding-left: 64px; counter-reset: none; }
.pasos::before, .pasos::after { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.pasos::before { background: var(--line); }
.pasos::after { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform-origin: top; transform: scaleY(var(--p, 1)); }
.pasos li { position: relative; }
.pasos__n {
  position: absolute; left: -64px; top: -4px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.0625rem/1 var(--f-display); color: var(--cyan);
  background: var(--night); border: 1.5px solid rgba(34, 211, 238, .5);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.pasos li.on .pasos__n { background: var(--cyan); color: var(--night-deep); box-shadow: 0 0 22px rgba(34, 211, 238, .6); }
.pasos h3 { font: 700 1.25rem/1.25 var(--f-display); }
.pasos p { margin-top: 8px; color: var(--muted); max-width: 30rem; }
@media (min-width: 960px) {
  .pasos { grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 72px 0 0; }
  .pasos::before, .pasos::after { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; transform: scaleX(var(--p, 1)); transform-origin: left; }
  .pasos__n { left: 0; top: -72px; }
}

/* Preguntas frecuentes */
.faq { display: grid; gap: 40px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; min-height: 44px;
  font: 700 clamp(1.0625rem, 1rem + .4vw, 1.25rem)/1.3 var(--f-display); color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--cyan), var(--cyan)) center / 100% 2px no-repeat, linear-gradient(var(--cyan), var(--cyan)) center / 2px 100% no-repeat; transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--cyan-soft); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 24px; color: var(--muted); max-width: 46rem; }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 80px; } }

/* CTA final */
.cta-final { text-align: center; position: relative; overflow: hidden; background: radial-gradient(50% 60% at 50% 100%, rgba(34, 211, 238, .14), transparent 70%); }
.cta-final::before, .cta-final::after { content: ""; position: absolute; left: 50%; width: min(900px, 90%); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .5; }
.cta-final::before { top: 0; }
.cta-final::after { bottom: 0; opacity: .25; }
.cta-final__t { font: 800 clamp(2.1rem, 1rem + 4.6vw, 5rem)/1.04 var(--f-display); letter-spacing: -.035em; max-width: 16ch; margin: 0 auto 40px; text-wrap: balance; }
.cta-final__n { margin-top: 20px; color: var(--muted); }

/* Footer */
.foot { background: var(--night-deep); border-top: 1px solid var(--line); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot__grid { display: grid; gap: 36px; }
.foot__logo { font: 800 1.375rem/1.15 var(--f-display); color: var(--white); }
.foot__logo span:not(.nav__caret) { font: 500 .9375rem var(--f-body); color: var(--muted); }
.foot__zonas { margin-top: 14px; color: var(--muted); }
.foot__links { display: grid; gap: 4px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text); overflow-wrap: anywhere; }
.foot__links a:hover { color: var(--cyan-soft); }
.foot__legal { margin-top: 40px; font-size: .875rem; color: var(--muted); }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1fr auto; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; z-index: 85;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease-out), opacity .45s ease, visibility .45s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.6s var(--ease-out) infinite; }
.wa-float:hover { transform: scale(1.06); }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-oculto .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

.anim .nav:focus-within, .anim .a1__copy:focus-within { opacity: 1 !important; }

/* Brillo cian que sigue al cursor (solo escritorio) */
.glow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .anim .glow {
    display: block; position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none;
    width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .11), transparent 62%);
    opacity: 0; transition: opacity .5s;
  }
  .anim .glow.on { opacity: 1; }
}

/* Movimiento reducido: sin animaciones decorativas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .nav__caret, .caret { animation: none; }
}
.rm .reveal { opacity: 0; transition: opacity .8s ease; }
.rm .reveal.in { opacity: 1; }

/* Menú en celular: solo el ícono de WhatsApp */
@media (max-width: 767px) {
  .nav__wa { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; }
  .nav__wa span { display: none; }
  .nav__wa .ico { width: 24px; height: 24px; }
}

/* Subtítulo del hero: cada idea entera; en pantallas angostas, una por línea */
.a1__sub > span:not(.a1__sep) { white-space: nowrap; }
@media (max-width: 560px) {
  .a1__sub > span:not(.a1__sep) { display: block; }
  .a1__sep { display: none; }
}
