/* =========================================================
   Nordeux — estilos
   Paleta: Ink · Niebla · Eléctrico (único acento) · Piedra
   ========================================================= */

:root {
  --ink: #0A0E1A;
  --ink-2: #121829;
  --ink-3: #1B2336;
  --niebla: #EFF1F0;
  --niebla-2: #E4E8E6;
  --paper: #F7F8F7;
  --electrico: #2AA7FF;
  --piedra: #5B5E63;

  --line: rgba(10, 14, 26, .12);
  --line-dark: rgba(239, 241, 240, .12);
  --soft: rgba(239, 241, 240, .7);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --nav-h: 64px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--niebla);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(16px, .95rem + .15vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }

::selection { background: var(--electrico); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--electrico);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--electrico); color: var(--ink);
  padding: 10px 16px; font-weight: 600; border-radius: 6px;
  transition: top .3s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Tipografía ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .75em;
  margin: 0 0 1.6rem;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--piedra);
}
.kicker::before {
  content: ""; width: 7px; height: 7px; flex: none;
  background: var(--electrico);
}
.kicker--dark { color: rgba(239, 241, 240, .62); }

.h2 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(2.1rem, 1.05rem + 3.3vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  max-width: 22ch;
  text-wrap: balance;
}

/* ---------- Botones ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.35em;
  border: 0; border-radius: 6px;
  font-family: var(--f-body); font-weight: 500; font-size: 1rem; line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .3s;
}
.btn .ico { transition: transform .4s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary { background: var(--electrico); color: var(--ink); }
.btn--primary:hover { background: #4DB6FF; box-shadow: 0 10px 30px -10px rgba(42, 167, 255, .7); }
.btn--ghost { color: var(--niebla); box-shadow: inset 0 0 0 1px rgba(239, 241, 240, .3); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--niebla); }
.btn--ghost::after { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .12) 50%, transparent 80%); }
.btn--dark { background: var(--ink); color: var(--niebla); }
.btn--dark:hover { background: var(--ink-3); }
.btn--dark::after { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .14) 50%, transparent 80%); }
.btn--lg { padding: 1.1em 1.6em; font-size: 1.04rem; }
.btn--block { width: 100%; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 500;
  padding-bottom: 3px;
  background: linear-gradient(var(--electrico), var(--electrico)) 0 100% / 100% 2px no-repeat;
  transition: gap .4s var(--ease-out);
}
.arrow-link:hover { gap: .75em; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  padding-inline: clamp(12px, 2.4vw, 28px);
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.nav.is-hidden { transform: translateY(calc(-100% - 80px)); }
.nav__bar {
  pointer-events: auto;
  max-width: 1400px; margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 10px 0 8px;
  background: rgba(239, 241, 240, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(10, 14, 26, .07);
  border-radius: 12px;
  box-shadow: 0 18px 50px -24px rgba(10, 14, 26, .55);
}
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 52px; width: auto; filter: brightness(.62) saturate(1.9); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.nav__links a {
  position: relative; padding: 6px 0;
  color: rgba(10, 14, 26, .78);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--electrico);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .85em 1.15em; font-size: .94rem; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 0; border-radius: 8px;
  background: var(--ink);
  position: relative; cursor: pointer;
}
.nav__toggle i {
  position: absolute; left: 14px; right: 14px; height: 1.5px;
  background: var(--niebla);
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.nav__toggle i:nth-of-type(1) { top: 19px; }
.nav__toggle i:nth-of-type(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] i:nth-of-type(1) { top: 22.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-of-type(2) { top: 22.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink); color: var(--niebla);
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0;
  transition: opacity .4s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.15;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms + 80ms);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__logo img { height: 46px; }
  :root { --nav-h: 60px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--niebla);
}
.hero__pin {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.terrain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__pin::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10, 14, 26, .92) 0%, rgba(10, 14, 26, .7) 30%, rgba(10, 14, 26, 0) 58%);
  pointer-events: none;
}
.hero__halo {
  position: absolute; right: -15vw; top: -25vw;
  width: 75vw; height: 75vw;
  background: radial-gradient(closest-side, rgba(42, 167, 255, .17), rgba(42, 167, 255, .05) 55%, transparent 75%);
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 48px;
  transform-origin: 50% 30%;
  will-change: transform;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 360;
  font-size: clamp(2.7rem, 1.3rem + 4.4vw, 5.7rem);
  line-height: 1.01;
  letter-spacing: -.028em;
  margin: 0 0 .42em;
  text-wrap: balance;
}
.hero__sub {
  max-width: 35rem;
  font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem);
  line-height: 1.6;
  color: rgba(239, 241, 240, .72);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.1rem; }

.hero__stage {
  position: relative;
  height: clamp(300px, 54vh, 580px);
  container-type: inline-size;
}

.hero__hint {
  position: absolute; right: var(--gutter); bottom: 28px;
  display: none; align-items: center; gap: 12px;
  margin: 0;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(239, 241, 240, .5);
}
.hero__hint span {
  width: 1px; height: 38px; background: rgba(239, 241, 240, .2);
  position: relative; overflow: hidden;
}
.hero__hint span::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--niebla);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { to { top: 110%; } }

.hero__shade {
  position: absolute; inset: 0; z-index: 4;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 4vw; }
  .hero__hint { display: flex; }
}

/* Entrada del hero */
.js .hero__in { opacity: 0; transform: translateY(28px); }
.is-loaded .hero__in {
  opacity: 1; transform: none;
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 150ms);
}

/* ---------- Stack 3D: la web montándose por capas ---------- */
.stack {
  position: absolute; inset: 0;
  perspective: 1900px;
  perspective-origin: 50% 35%;
}
.stack__rig {
  --e: 0;
  --spread: 70;
  --call: 0;
  position: absolute; left: 50%; top: 50%;
  width: min(100cqw, 600px);
  aspect-ratio: 16 / 11;
  translate: -50% -50%;
  transform-style: preserve-3d;
  font-size: calc(min(100cqw, 600px) / 60);
  transform: rotateX(56deg) rotateZ(-34deg) scale(.8);
  will-change: transform;
}
.layer {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--z) * var(--spread) * 1px));
}
.layer__tag {
  position: absolute;
  left: 100%; top: 0;
  margin-left: 1.6em;
  padding: .45em .8em;
  font-family: var(--f-body);
  font-size: max(10px, 1.1em); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--niebla);
  background: rgba(10, 14, 26, .82);
  border: 1px solid rgba(42, 167, 255, .45);
  border-radius: 4px;
  opacity: clamp(0, calc(1 - var(--e) * 2.4), 1);
  transform: rotateZ(calc(var(--rz, 0deg) * -1)) rotateY(calc(var(--ry, 0deg) * -1)) rotateX(calc(var(--rx, 0deg) * -1));
  transform-origin: 0 50%;
}
.layer__tag::before {
  content: ""; position: absolute; right: 100%; top: 50%;
  width: 1.4em; height: 1px; background: rgba(42, 167, 255, .6);
}
.layer__tag--base { top: 84%; left: auto; right: 97%; margin: 0 1.6em 0 0; transform-origin: 100% 50%; }
.layer__tag--base::before { right: auto; left: 100%; }
.layer__tag--nav { display: none; }
.layer__tag--img { top: 50%; left: 95%; }
.layer__tag--text { top: 20%; left: auto; right: 97%; margin: 0 1.6em 0 0; transform-origin: 100% 50%; }
.layer__tag--text::before { right: auto; left: 100%; }
.layer__tag--cta { top: 64%; left: auto; right: 97%; margin: 0 1.6em 0 0; transform-origin: 100% 50%; }
.layer__tag--cta::before { right: auto; left: 100%; }
.layer__tag--phone { top: 104%; left: auto; right: 12%; margin: 0 1.6em 0 0; transform-origin: 100% 50%; }
.layer__tag--phone::before { right: auto; left: 100%; }

/* Navegador */
.mk-browser {
  position: absolute; inset: 0;
  border-radius: 1em;
  overflow: hidden;
  background: #F4F2EE;
  box-shadow:
    0 0 0 1px rgba(239, 241, 240, .1),
    0 4em 8em -2em rgba(0, 0, 0, .65);
}
.mk-browser__bar {
  height: 7%;
  display: flex; align-items: center; gap: .6em;
  padding: 0 1.2em;
  background: #1A2033;
}
.mk-browser__bar i { width: .8em; height: .8em; border-radius: 50%; background: rgba(239, 241, 240, .25); }
.mk-browser__bar span {
  margin-left: 1.4em;
  padding: .25em 1.6em;
  border-radius: 1em;
  background: rgba(239, 241, 240, .08);
  color: rgba(239, 241, 240, .6);
  font-size: 1em; letter-spacing: .02em;
}
.mk-browser__page { position: absolute; inset: 7% 0 0; }
.mk-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42, 167, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 167, 255, .22) 1px, transparent 1px);
  background-size: 5% 7.14%;
  opacity: clamp(0, calc(1 - var(--e) * 1.4), 1);
}
.mk-foot {
  position: absolute; left: 5%; right: 5%; bottom: 7%; height: 15%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%;
}
.mk-foot span { border-radius: .5em; background: #E6E2DA; }

.mk-nav {
  position: absolute; top: 10.5%; left: 5%; right: 5%; height: 7%;
  display: flex; align-items: center; gap: 4%;
}
.mk-nav b {
  font-family: var(--f-display); font-weight: 500;
  font-size: 2em; color: #1E1B16; margin-right: auto; letter-spacing: -.01em;
}
.mk-nav span { width: 8%; height: .5em; border-radius: 1em; background: #C9C3B8; }
.mk-nav em {
  font-style: normal; font-size: 1.1em; font-weight: 600;
  padding: .55em 1.1em; border-radius: .4em;
  background: #1E1B16; color: #F4F2EE;
}

.mk-img {
  position: absolute; top: 23%; right: 5%; width: 47%; height: 50%;
  border-radius: .8em; overflow: hidden;
  box-shadow: 0 1.5em 3em -1em rgba(0, 0, 0, .35);
}
.mk-img img { width: 100%; height: 100%; object-fit: cover; }

.mk-text {
  position: absolute; top: 27%; left: 5%; width: 40%;
  display: grid; gap: .9em;
}
.mk-text strong {
  font-family: var(--f-display); font-weight: 400;
  font-size: 3.6em; line-height: 1; color: #1E1B16;
  letter-spacing: -.02em;
  margin-bottom: .1em;
}
.mk-text span { height: .6em; border-radius: 1em; background: #D4CFC5; }
.mk-text span.s { width: 65%; }

.mk-cta {
  position: absolute; top: 61%; left: 5%;
  display: flex; gap: 1em;
}
.mk-cta em, .mk-cta span {
  display: inline-flex; align-items: center; gap: .5em;
  font-style: normal; font-weight: 600; font-size: 1.25em;
  padding: .8em 1.2em; border-radius: .45em;
}
.mk-cta em { background: var(--electrico); color: var(--ink); box-shadow: 0 1em 2em -.8em rgba(42, 167, 255, .9); }
.mk-cta span { background: #fff; color: #1E1B16; box-shadow: inset 0 0 0 1px #DDD8CF; }

.layer--phone .mk-phone {
  position: absolute; right: -9%; bottom: -16%;
  width: 23%; aspect-ratio: 9 / 18.5;
  padding: .55em;
  border-radius: 2em;
  background: #0E1220;
  box-shadow: 0 0 0 1px rgba(239, 241, 240, .12), 0 3em 5em -1.5em rgba(0, 0, 0, .75);
}
.mk-phone__screen {
  height: 100%;
  border-radius: 1.5em;
  background: #F4F2EE;
  padding: 1.6em .9em .9em;
  display: flex; flex-direction: column; gap: .6em;
  overflow: hidden;
}
.mk-phone__screen b { font-family: var(--f-display); font-weight: 500; font-size: 1.2em; color: #1E1B16; }
.mk-phone__img { height: 34%; border-radius: .6em; background: url("../img/hero-layer.webp") 30% 50% / cover; }
.mk-phone__screen strong { font-family: var(--f-display); font-weight: 400; font-size: 1.6em; line-height: 1.02; color: #1E1B16; }
.mk-phone__screen span { height: .45em; border-radius: 1em; background: #D4CFC5; }
.mk-phone__screen span.s { width: 60%; }
.mk-phone__screen em {
  margin-top: auto;
  font-style: normal; font-weight: 600; font-size: .95em; text-align: center;
  padding: .7em; border-radius: .4em;
  background: var(--electrico); color: var(--ink);
}

.call {
  position: absolute; right: -10%; top: -11%;
  display: flex; align-items: center; gap: 1em;
  padding: .9em 1.5em .9em .9em;
  border-radius: 1.2em;
  background: rgba(18, 24, 41, .92);
  border: 1px solid rgba(239, 241, 240, .12);
  box-shadow: 0 2em 4em -1em rgba(0, 0, 0, .7);
  color: var(--niebla);
  opacity: var(--call);
  transform: translateY(calc((1 - var(--call)) * 3em)) scale(calc(.8 + var(--call) * .2)) rotateZ(calc(var(--rz, 0deg) * -1)) rotateY(calc(var(--ry, 0deg) * -1)) rotateX(calc(var(--rx, 0deg) * -1));
  transform-origin: 100% 100%;
}
.call__icon {
  position: relative;
  width: 3.8em; height: 3.8em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--electrico); color: var(--ink);
  font-size: 1em;
}
.call__icon .ico { width: 1.9em; height: 1.9em; }
.call__icon::before, .call__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--electrico);
  opacity: 0;
}
.call.is-ringing .call__icon::before { animation: ring 1.6s var(--ease) infinite; }
.call.is-ringing .call__icon::after { animation: ring 1.6s var(--ease) .5s infinite; }
.call.is-ringing .call__icon .ico { animation: wiggle 1.6s ease-in-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes wiggle {
  0%, 40%, 100% { transform: rotate(0); }
  5%, 15%, 25% { transform: rotate(-14deg); }
  10%, 20%, 30% { transform: rotate(14deg); }
}
.call__txt { display: grid; line-height: 1.2; }
.call__txt small { font-size: 1.05em; color: rgba(239, 241, 240, .6); }
.call__txt b { font-size: 1.5em; font-weight: 500; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line-dark);
  background: rgba(10, 14, 26, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 20px 0 22px;
  overflow: hidden;
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 70s linear infinite;
  transform: skewX(var(--skew, 0deg));
}
.marquee ul { display: flex; }
.marquee li {
  display: flex; align-items: center;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.35rem, 1rem + 1.1vw, 2.1rem);
  font-weight: 350;
  white-space: nowrap;
  color: rgba(239, 241, 240, .92);
}
.marquee li::after {
  content: "";
  width: 6px; height: 6px; margin: 0 1.1em;
  border-radius: 50%;
  background: rgba(239, 241, 240, .3);
}
@keyframes marquee { to { translate: -50% 0; } }

/* =========================================================
   PARA QUIÉN
   ========================================================= */
.fit {
  position: relative; z-index: 5;
  background: var(--niebla);
  padding: clamp(96px, 13vw, 190px) 0 clamp(72px, 9vw, 140px);
  box-shadow: 0 -50px 90px -30px rgba(0, 0, 0, .55);
}
.fit__title { max-width: 21ch; }
.fit__grid {
  display: grid; gap: 64px;
  margin-top: clamp(48px, 7vw, 110px);
}
.fit__lead {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48;
  font-weight: 350;
  font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2.25rem);
  line-height: 1.28;
  letter-spacing: -.01em;
  margin: 0;
}
.js [data-scrub] .sw { opacity: .16; transition: opacity .45s ease; }
.js [data-scrub] .sw.is-on { opacity: 1; }

.fit__lists { display: grid; gap: 48px; align-content: start; }
.fit__h {
  font-family: var(--f-body);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--piedra);
  padding-top: 18px;
  border-top: 1.5px solid var(--ink);
  margin-bottom: 8px;
}
.ticks li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.06rem; line-height: 1.5;
}
.ticks .ico { width: 22px; height: 22px; margin-top: 1px; color: var(--electrico); }
.ticks--no .ico { color: var(--piedra); }
.fit__col--no .fit__h { border-top-color: var(--piedra); }

@media (min-width: 900px) {
  .fit__grid { grid-template-columns: 1.3fr 1fr; gap: 8vw; }
}

/* =========================================================
   EL PROBLEMA
   ========================================================= */
.problem {
  position: relative; z-index: 5;
  background: var(--niebla);
  padding-top: clamp(40px, 6vw, 90px);
}
.problem > .wrap { border-top: 1px solid var(--line); padding-top: clamp(72px, 9vw, 130px); }
.problem__head { max-width: 44rem; }
.problem__grid { display: grid; gap: 0 6vw; }

.pstep { min-height: 80vh; display: flex; align-items: center; }
.pstep p {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48;
  font-weight: 350;
  font-size: clamp(1.35rem, 1rem + 1.15vw, 2rem);
  line-height: 1.32;
  max-width: 24ch;
  margin: 0;
  color: var(--ink);
  opacity: .2;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .9s var(--ease-out);
}
.pstep--big p {
  font-variation-settings: "opsz" 144;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.022em;
  max-width: 14ch;
}
.pstep.is-active p { opacity: 1; transform: none; }
.problem__steps { padding-bottom: 12vh; }

.problem__visual {
  position: sticky; top: 0;
  height: 100vh;
  align-self: start;
  display: grid; place-items: center;
}

@media (min-width: 900px) {
  .problem__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .problem__grid > * { grid-area: 1 / 1; }
  .problem__visual {
    z-index: 2;
    top: calc(var(--nav-h) + 14px);
    height: 50svh;
    background: linear-gradient(var(--niebla) 90%, rgba(239, 241, 240, 0));
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .pv .phone { --pw: min(19svh, 42vw); }
  .pv .scale__plot { height: 19svh; }
  .pv .scale__labels { font-size: .8rem; padding-top: 10px; }
  .pv .scale__lab--mid img { width: 100px; }
  .stack .layer__tag { display: none; }
  .problem__steps { padding-top: 52svh; }
  .pstep { min-height: 44svh; align-items: flex-start; padding-top: 3svh; }
  .problem__steps { padding-bottom: 30svh; }
}

/* ---------- Escena: teléfono ---------- */
.pv {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  perspective: 1500px;
  perspective-origin: 50% 40%;
}
.pv::after {
  content: ""; position: absolute; left: 50%; bottom: 13%;
  width: 42%; height: 26px;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(10, 14, 26, .28), transparent);
  filter: blur(4px);
  transition: opacity .8s;
}
.pv[data-state="4"]::after, .pv[data-state="5"]::after { opacity: 0; }

.phone {
  --pw: clamp(200px, 30vh, 300px);
  grid-area: 1 / 1;
  position: relative;
  width: var(--pw); height: calc(var(--pw) * 2.04);
  font-size: calc(var(--pw) / 22);
  transform-style: preserve-3d;
  transform: rotateX(var(--prx, 6deg)) rotateY(var(--pry, -18deg)) rotateZ(var(--prz, 2deg));
  transition: translate 1.1s var(--ease-out), rotate 1.1s var(--ease-out), opacity .7s ease;
}
.phone__edge, .phone__body { position: absolute; inset: 0; border-radius: 2.5em; }
.phone__edge { background: #232A3B; }
.phone__edge:nth-child(1) { transform: translateZ(-2px); }
.phone__edge:nth-child(2) { transform: translateZ(-4px); }
.phone__edge:nth-child(3) { transform: translateZ(-6px); }
.phone__edge:nth-child(4) { transform: translateZ(-8px); background: #111624; box-shadow: 0 2em 4em -1em rgba(10, 14, 26, .5); }
.phone__body {
  background: #0D111C;
  padding: .55em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.phone__notch {
  position: absolute; top: 1.05em; left: 50%; z-index: 4;
  width: 30%; height: 1.55em;
  translate: -50% 0;
  border-radius: 1em;
  background: #0D111C;
}
.phone__screen {
  position: absolute; inset: .55em;
  border-radius: 2em;
  background: #fff;
  overflow: hidden;
  color: #1F2328;
}
.ps-status {
  height: 3.2em;
  display: flex; justify-content: space-between; align-items: center;
  padding: .4em 1.9em 0;
  font-size: .82em; font-weight: 600;
}
.ps-status__r { display: flex; gap: .25em; align-items: flex-end; }
.ps-status__r i { width: .28em; background: #1F2328; border-radius: 1px; }
.ps-status__r i:nth-child(1) { height: .45em; }
.ps-status__r i:nth-child(2) { height: .7em; }
.ps-status__r i:nth-child(3) { height: .95em; }

.ps {
  position: absolute; inset: 3.2em 0 0;
  padding: .6em 1.05em;
  transition: transform .8s var(--ease-out), opacity .6s ease;
}
.ps-g { font-size: .8em; font-weight: 600; color: #8A8F98; margin: 0 0 .5em .2em; letter-spacing: .02em; }
.ps-bar {
  display: flex; align-items: center; gap: .6em;
  height: 3em; padding: 0 1em;
  border-radius: 2em;
  background: #F1F3F4;
  font-size: .92em;
  margin-bottom: .8em;
}
.ps-bar .ico { width: 1.1em; height: 1.1em; color: #6B7079; }
.ps-bar__q { white-space: nowrap; overflow: hidden; }
.ps-bar__q.is-typing::after {
  content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px;
  background: #1F2328; vertical-align: -.15em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.res {
  position: relative;
  padding: .95em .25em;
  border-bottom: 1px solid #ECEEF0;
  transition: opacity .6s ease, filter .6s ease;
}
.res__top { display: flex; gap: .65em; align-items: center; }
.res__top i {
  width: 2em; height: 2em; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #E8EAED;
  font-style: normal; font-weight: 600; font-size: .85em;
}
.res__top span { display: grid; line-height: 1.2; }
.res__top b { font-size: 1.05em; font-weight: 600; }
.res__top small { font-size: .75em; color: #6B7079; }
.res__line { height: .5em; margin: .65em 0 0; border-radius: .3em; background: #E6E8EB; width: 94%; }
.res__line.s { width: 58%; }
.res__flags { display: flex; flex-wrap: wrap; gap: .35em; margin-top: .7em; }
.res__flags span {
  display: inline-flex; align-items: center; gap: .3em;
  font-size: .7em; padding: .3em .6em;
  border: 1px solid #D5D8DD; border-radius: .4em;
  color: #4B4F56;
}
.res__flags .ico { width: 1em; height: 1em; }
.res__acts { display: flex; gap: .4em; margin-top: .75em; }
.res__acts span {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .78em; font-weight: 500;
  padding: .45em .85em; border-radius: 2em;
  background: #EEF0F2;
}
.res__acts .res__call { background: #1F2328; color: #fff; }
.res__acts .ico { width: 1em; height: 1em; }
.res--ghost { border: 0; }

.tap {
  position: absolute; right: 18%; top: 22%;
  width: 2.8em; height: 2.8em;
  border-radius: 50%;
  background: rgba(31, 35, 40, .16);
  border: 2px solid rgba(31, 35, 40, .35);
  opacity: 0; scale: .4;
  pointer-events: none;
}
.tap--call { right: auto; left: 1.2em; top: auto; bottom: .3em; }

/* Web antigua */
.ps--old {
  inset: 3.2em 0 0;
  padding: 0;
  background: #fff;
  transform: translateX(105%);
  font-family: "Times New Roman", Times, serif;
  box-shadow: -1em 0 2em rgba(0, 0, 0, .12);
}
.old__url {
  margin: .4em .8em .5em; padding: .5em .9em;
  border-radius: 2em; background: #F1F3F4;
  font-family: var(--f-body); font-size: .78em; color: #6B7079;
}
.old__page { padding: .4em .6em; filter: grayscale(1) contrast(.9); opacity: .9; }
.old__head {
  background: #7D8590; color: #fff;
  font-size: .72em; font-weight: 700; text-align: center; letter-spacing: .02em;
  padding: .5em .3em;
}
.old__menu { font-size: .55em; color: #555; text-align: center; padding: .6em 0; }
.old__cols { display: grid; grid-template-columns: 38% 1fr; gap: .5em; }
.old__img {
  aspect-ratio: 1; border: 1px solid #BFC3C9;
  display: grid; place-items: center; color: #9AA0A8;
}
.old__img .ico { width: 1.4em; height: 1.4em; }
.old__txt { display: grid; gap: .32em; align-content: start; }
.old__txt span { height: .32em; background: #CDD1D6; }
.old__txt span:nth-child(3n) { width: 70%; }
.old__txt--wide { margin-top: .6em; }
.old__load {
  position: absolute; left: 50%; bottom: 14%;
  translate: -50% 0;
  width: 72%;
  display: grid; justify-items: center; gap: .55em;
  padding: 1em;
  border-radius: .8em;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 .8em 2.4em rgba(0, 0, 0, .18);
  font-family: var(--f-body); font-size: .85em; color: #4B4F56;
}
.old__load i { width: 100%; height: .3em; border-radius: 1em; background: #E6E8EB; overflow: hidden; }
.old__load b { display: block; height: 100%; width: 12%; background: #8A8F98; transition: width 3s cubic-bezier(.1, .8, .2, 1); }
.spin {
  width: 1.6em; height: 1.6em; border-radius: 50%;
  border: 2px solid #D5D8DD; border-top-color: #4B4F56;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ps-sheet {
  position: absolute; left: .6em; right: .6em; bottom: .6em;
  display: flex; align-items: center; gap: .9em;
  padding: 1em;
  border-radius: 1.3em;
  background: #0A0E1A; color: var(--niebla);
  transform: translateY(130%);
  transition: transform .8s var(--ease-out);
}
.ps-sheet__ico {
  width: 2.8em; height: 2.8em; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(239, 241, 240, .12);
}
.ps-sheet .ico { width: 1.3em; height: 1.3em; }
.ps-sheet span:last-child { display: grid; line-height: 1.25; }
.ps-sheet small { font-size: .78em; color: rgba(239, 241, 240, .6); }
.ps-sheet b { font-weight: 500; }

/* Estados del teléfono */
.pv[data-state="2"] .res--you .tap { animation: tap .7s var(--ease-out) forwards; }
.pv[data-state="2"] .ps--old { transform: none; transition-delay: .35s; }
.pv[data-state="2"] .old__load b { width: 34%; }

.pv[data-state="3"] .res--you { opacity: .32; filter: grayscale(1); }
.pv[data-state="3"] .res--them .tap { animation: tap .7s var(--ease-out) .2s forwards; }
.pv[data-state="3"] .ps-sheet { transform: none; transition-delay: .55s; }
.pv[data-state="3"] .ps-sheet__ico { animation: pulse 1.4s ease-in-out 1.2s infinite; }
@keyframes tap {
  0% { opacity: 0; scale: .4; }
  35% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.5; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 .6em rgba(239, 241, 240, .06); } }

.pv[data-state="4"] .phone,
.pv[data-state="5"] .phone {
  translate: -30% 0 -700px;
  rotate: y -75deg;
  opacity: 0;
}

/* ---------- Escena: el punto intermedio ---------- */
.scale {
  grid-area: 1 / 1;
  position: relative;
  width: min(100%, 520px);
  transform-style: preserve-3d;
  opacity: 0;
  translate: 0 0 -500px;
  rotate: x 50deg;
  transition: opacity .8s ease, translate 1.2s var(--ease-out), rotate 1.2s var(--ease-out);
}
.pv[data-state="4"] .scale { opacity: 1; translate: 0 0 0; rotate: x 16deg; transition-delay: .2s; }
.pv[data-state="5"] .scale { opacity: 1; translate: 0 0 0; rotate: x 0deg; }

.scale__plot {
  height: clamp(160px, 30vh, 300px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  align-items: end;
  transform-style: preserve-3d;
}
.scale__col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.scale__bar {
  display: block; width: 44%;
  border-radius: 4px 4px 0 0;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform 1.2s var(--ease-out);
}
.scale__col--a .scale__bar { height: 100%; background: linear-gradient(var(--ink), #2A3146); }
.scale__col--b .scale__bar { height: 14%; background: linear-gradient(#8A8D92, var(--piedra)); }
.scale__col--mid .scale__bar {
  height: 50%;
  background: linear-gradient(#5BBCFF, var(--electrico));
  box-shadow: 0 0 40px rgba(42, 167, 255, .45);
}
.scale__dot {
  position: absolute; left: 50%; bottom: calc(50% + 14px);
  width: 14px; height: 14px; border-radius: 50%;
  translate: -50% 0;
  background: var(--electrico);
  box-shadow: 0 0 0 6px rgba(42, 167, 255, .18);
  opacity: 0; scale: 0;
  transition: opacity .5s ease, scale .8s cubic-bezier(.3, 1.6, .5, 1);
}
.scale__base { height: 1.5px; background: var(--ink); }
.scale__labels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding-top: 18px;
  font-size: .9rem; line-height: 1.35;
}
.scale__lab { display: grid; gap: 2px; align-content: start; justify-items: center; text-align: center; transition: opacity .6s ease; }
.scale__lab b { font-weight: 600; margin-bottom: 4px; }
.scale__lab span { color: var(--piedra); }
.scale__lab--mid { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .8s var(--ease-out); }
.scale__lab--mid img { width: 124px; height: auto; margin: -16px 0 -6px; filter: brightness(.62) saturate(1.9); }
.scale__lab--mid span { color: var(--ink); font-weight: 500; }

.pv[data-state="4"] .scale__col--a .scale__bar,
.pv[data-state="4"] .scale__col--b .scale__bar,
.pv[data-state="5"] .scale__col--a .scale__bar,
.pv[data-state="5"] .scale__col--b .scale__bar { transform: scaleY(1); transition-delay: .5s; }
.pv[data-state="4"] .scale__col--b .scale__bar { transition-delay: .65s; }
.pv[data-state="5"] .scale__col--mid .scale__bar { transform: scaleY(1); transition-delay: .15s; }
.pv[data-state="5"] .scale__dot { opacity: 1; scale: 1; transition-delay: .9s; }
.pv[data-state="5"] .scale__lab--a,
.pv[data-state="5"] .scale__lab--b { opacity: .5; }
.pv[data-state="5"] .scale__lab--mid { opacity: 1; transform: none; transition-delay: .5s; }

/* =========================================================
   CÓMO TRABAJAMOS
   ========================================================= */
.process {
  position: relative; z-index: 5;
  background: var(--niebla);
  padding: clamp(80px, 10vw, 150px) 0;
}
.process__title { margin-bottom: clamp(40px, 6vw, 72px); }
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: calc(1.9rem - 1px); top: 1.2rem; bottom: 1.2rem;
  width: 2px; background: var(--line);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  gap: clamp(16px, 2vw, 28px);
  padding-block: 0 clamp(32px, 4vw, 56px);
}
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 3.8rem; height: 3.8rem;
  border-radius: 50%;
  background: var(--niebla);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-variant-numeric: lining-nums;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.step__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0.55rem 0 0.6rem;
  text-wrap: balance;
}
.step p { max-width: 42ch; color: var(--piedra); margin: 0; }
@media (min-width: 900px) { .step { min-height: 40vh; } }

html.js .step { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
html.js .step.is-in { opacity: 1; transform: none; }
html.js .step.is-in .step__n { background: var(--ink); color: var(--niebla); box-shadow: none; }
html.js .step.is-active .step__n { background: var(--electrico); color: var(--ink); }

.process__stage {
  position: sticky;
  top: calc(var(--nav-h) + 4vh);
  height: calc(100svh - var(--nav-h) - 8vh);
  min-height: 460px;
  display: grid; place-items: center;
  perspective: 1800px;
}
.build {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 4 / 3.1;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(9deg);
}
.build__win {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 50px 80px -30px rgba(10, 14, 26, .35), 0 12px 24px -12px rgba(10, 14, 26, .18), 0 0 0 1px var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
}
.build__bar {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: var(--niebla);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.build__lock { color: var(--ink); opacity: 0; }
.build__url { color: var(--piedra); }
.build__status { margin-left: auto; display: grid; }
.build__status > span { grid-area: 1 / 1; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-align: center; }
.build__status-draft { background: var(--niebla-2); color: var(--piedra); }
.build__status-live { background: var(--electrico); color: var(--ink); opacity: 0; }
.build__page { position: absolute; inset: 38px 0 0; padding: 18px 22px; }
.build__grid {
  position: absolute; inset: 0 22px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  opacity: 0;
}
.build__grid i { background: rgba(42, 167, 255, .10); border-inline: 1px solid rgba(42, 167, 255, .4); }
.build__nav { position: relative; display: flex; align-items: center; gap: 12px; height: 22px; margin-bottom: 22px; opacity: 0; }
.build__nav span { width: 44px; height: 6px; border-radius: 3px; background: var(--niebla-2); }
.build__nav .build__logo { width: 64px; height: 12px; margin-right: auto; background: var(--ink); border-radius: 3px; }
.build__hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: 52%; }
.build__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.build__h { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 32px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 6px; opacity: 0; }
.build .bar { display: block; width: 90%; height: 7px; border-radius: 4px; background: var(--niebla-2); opacity: 0; }
.build .bar--s { width: 60%; }
.build__btn {
  margin-top: auto;
  padding: 9px 14px; border-radius: 4px;
  background: var(--electrico); color: var(--ink);
  font-size: 12px; font-weight: 600;
  box-shadow: 0 14px 24px -12px rgba(42, 167, 255, .8);
  opacity: 0;
}
.build__img { position: relative; border-radius: 8px; overflow: hidden; background: linear-gradient(165deg, #1B2336 0%, #3A3F4A 60%, var(--piedra) 100%); opacity: 0; }
.build__cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; height: 18%; }
.build__cards span { border-radius: 6px; background: var(--niebla-2); opacity: 0; }
.xp__sun { position: absolute; width: 34%; aspect-ratio: 1; right: 18%; top: 18%; border-radius: 50%; background: var(--niebla); opacity: .85; }
.xp__hill { position: absolute; inset: auto -10% -30% -10%; height: 70%; background: var(--niebla-2); border-radius: 50% 50% 0 0 / 70% 70% 0 0; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .build__grid, .build__status-draft { display: none; }
  .build__lock, .build__status-live, .build__nav, .build__h, .build .bar, .build__btn, .build__img, .build__cards span {
    opacity: 1 !important;
  }
}
html:not(.js) .build__grid, html:not(.js) .build__status-draft { display: none; }
html:not(.js) .build__lock, html:not(.js) .build__status-live, html:not(.js) .build__nav,
html:not(.js) .build__h, html:not(.js) .build .bar, html:not(.js) .build__btn,
html:not(.js) .build__img, html:not(.js) .build__cards span { opacity: 1; }

/* La opacidad y el desplazamiento de estos 5 elementos los controla
   el scroll real (ver "CÓMO TRABAJAMOS" en main.js) para que avancen
   exactamente al ritmo de lo que el visitante va leyendo. */
.build__call, .build__doc, .build__note, .build__phone, .build__support { position: absolute; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .build__call, .build__doc, .build__note { display: none; }
  .build__phone, .build__support { opacity: 1 !important; transform: none !important; }
}
.build__call {
  left: -9%; top: 14%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink); color: var(--niebla);
  box-shadow: 0 50px 80px -30px rgba(10, 14, 26, .35), 0 12px 24px -12px rgba(10, 14, 26, .18);
  transform: translateZ(140px);
}
.build__call strong { display: block; font-size: 14px; }
.build__call small { display: block; font-size: 12px; opacity: .7; }
.build__call-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--electrico); color: var(--ink); }
.build__wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.build__wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--electrico); animation: buildWave 1.1s ease-in-out infinite; }
.build__wave i:nth-child(2) { animation-delay: .12s; }
.build__wave i:nth-child(3) { animation-delay: .24s; }
.build__wave i:nth-child(4) { animation-delay: .36s; }
.build__wave i:nth-child(5) { animation-delay: .48s; }
@keyframes buildWave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.build__doc {
  right: -8%; top: 10%;
  display: grid; gap: 8px;
  width: 190px; padding: 16px 18px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 50px 80px -30px rgba(10, 14, 26, .35), 0 12px 24px -12px rgba(10, 14, 26, .18), 0 0 0 1px var(--line);
  font-size: 13px;
  transform: translateZ(170px) rotateZ(3deg);
}
.build__doc strong { font-family: var(--f-display); font-weight: 500; font-size: 20px; margin-bottom: 4px; }
.build__doc span { display: flex; align-items: center; gap: 8px; }
.build__doc svg { flex: none; padding: 2px; border-radius: 50%; background: var(--electrico); color: var(--ink); width: 18px; height: 18px; }
.build__note {
  left: 6%; top: 76%;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 10px 10px 10px 2px;
  background: var(--ink); color: var(--niebla);
  font-size: 13px; line-height: 1.35;
  box-shadow: 0 50px 80px -30px rgba(10, 14, 26, .35), 0 12px 24px -12px rgba(10, 14, 26, .18);
  transform: translateZ(120px);
}
.build__phone {
  right: -6%; bottom: -12%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 132px; height: 232px;
  padding: 26px 12px 16px;
  border-radius: 24px;
  background: var(--ink); color: var(--niebla);
  box-shadow: 0 50px 80px -30px rgba(10, 14, 26, .35), 0 12px 24px -12px rgba(10, 14, 26, .18), inset 0 0 0 1.5px #2A3246;
  transform: translateZ(190px);
}
.build__phone small { font-size: 11px; opacity: .7; }
.build__phone strong { font-family: var(--f-display); font-weight: 400; font-size: 18px; }
.build__phone-ring { position: relative; width: 54px; height: 54px; margin-bottom: 12px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 2px var(--electrico); }
.build__phone-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--electrico); animation: buildPulse 1.8s ease-out infinite; }
@keyframes buildPulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
.build__phone-btn { display: grid; place-items: center; width: 42px; height: 42px; margin-top: auto; border-radius: 50%; background: var(--electrico); color: var(--ink); }
.build__support {
  left: -4%; bottom: -7%;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 50px 80px -30px rgba(10, 14, 26, .35), 0 12px 24px -12px rgba(10, 14, 26, .18), 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 600;
  transform: translateZ(110px);
}

@media (max-width: 899px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__stage {
    order: -1;
    top: var(--nav-h);
    z-index: 2;
    height: auto; min-height: 0;
    padding-block: 16px 28px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: calc(var(--gutter) + 6%);
    background: linear-gradient(var(--niebla) 88%, rgba(239, 241, 240, 0));
  }
  .build { width: min(100%, 440px); }
  .build__call, .build__doc { transform: translateZ(80px) scale(.8); }
  .build__phone { width: 96px; height: 170px; padding: 16px 8px 10px; right: -5%; }
  .build__phone strong { font-size: 13px; }
  .build__phone-ring { width: 36px; height: 36px; margin-bottom: 6px; }
  .build__phone-btn { width: 30px; height: 30px; }
  .build__support { font-size: 11px; padding: 7px 10px; }
  .step { min-height: 38svh; }
}
@media (max-width: 560px) {
  .build__doc { width: 150px; padding: 12px; font-size: 11px; }
  .build__doc strong { font-size: 16px; }
  .build__call { padding: 8px 10px; gap: 8px; }
  .build__wave { display: none; }
}

/* =========================================================
   ESTILOS — túnel 3D
   ========================================================= */
.styles {
  position: relative; z-index: 5;
  background: var(--ink);
  color: var(--niebla);
  padding: clamp(96px, 12vw, 170px) 0;
}
.styles__pin { position: relative; }
.styles__glow, .styles__stars, .hud { display: none; }
.styles__lede { max-width: 40ch; margin-top: 1.6rem; font-size: 1.12rem; color: rgba(239, 241, 240, .7); }

.tunnel {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 56px auto 0;
  padding-inline: var(--gutter);
  display: grid; gap: 40px 28px;
}
.tile { margin: 0; }
.tile__btn {
  display: block; width: 100%;
  padding: 0; border: 0; background: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.tile__btn img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.tile__btn:hover img { transform: scale(1.03); }
.tile figcaption { display: grid; gap: 2px; padding-top: 14px; }
.tile figcaption b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.tile figcaption span { color: rgba(239, 241, 240, .62); font-size: .98rem; }
/* Enlace a la web de demostración: mismo lenguaje que .arrow-link */
.tile__link {
  justify-self: start;
  display: inline-flex; align-items: center; gap: .4em;
  margin-top: 10px;
  padding-bottom: 3px;
  font-family: var(--f-body); font-size: .95rem; font-weight: 500; line-height: 1.2;
  color: var(--niebla);
  background: linear-gradient(var(--electrico), var(--electrico)) 0 100% / 100% 2px no-repeat;
  transition: gap .4s var(--ease-out);
}
.tile__link .ico { width: 1em; height: 1em; transition: transform .4s var(--ease-out); }
.tile__link:hover { gap: .6em; }
.tile__link:hover .ico { transform: translate(2px, -2px); }

@media (min-width: 700px) { .tunnel { grid-template-columns: 1fr 1fr; } }

/* El túnel 3D solo en escritorio. En móvil las tarjetas van en lista, una detrás de otra. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js .styles { padding: 0; height: 760vh; }
  html.js .styles__pin {
    position: sticky; top: 0;
    height: 100vh;
    overflow: hidden;
  }
  html.js .styles__glow {
    display: block;
    position: absolute; left: 50%; top: 50%;
    width: 110vmax; height: 110vmax;
    translate: -50% -50%;
    background: radial-gradient(closest-side, rgba(42, 167, 255, .13), rgba(42, 167, 255, .03) 50%, transparent 70%);
  }
  html.js .styles__stars {
    display: block;
    position: absolute; inset: 0;
    perspective: 900px;
    transform-style: preserve-3d;
  }
  .star {
    position: absolute; left: 50%; top: 50%;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--niebla);
    will-change: transform, opacity;
  }
  html.js .styles__intro {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center;
    pointer-events: none;
    will-change: transform, opacity;
  }
  html.js .tunnel {
    position: absolute; inset: 0;
    margin: 0; padding: 0; max-width: none;
    display: block;
    perspective: 1000px;
    perspective-origin: 50% 45%;
  }
  html.js .tile {
    position: absolute; left: 50%; top: 50%;
    width: min(46vw, 700px);
    translate: -50% -50%;
    will-change: transform, opacity;
    opacity: 0;
  }
  html.js .tile figcaption {
    position: absolute; left: 0; top: 100%;
    display: flex; gap: 10px; align-items: center;
    padding-top: 14px;
  }
  html.js .tile figcaption b { font-size: 1.05rem; font-family: var(--f-body); font-weight: 500; letter-spacing: .02em; }
  html.js .tile figcaption span { display: none; }
  html.js .tile figcaption { right: 0; }
  html.js .tile__link { margin: 0 0 0 auto; }

  html.js .hud {
    display: block;
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    padding-bottom: clamp(22px, 4vh, 40px);
    background: linear-gradient(transparent, rgba(10, 14, 26, .85));
    opacity: var(--hud, 0);
    pointer-events: none;
  }
  .hud__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .hud__txt { transition: opacity .35s ease, transform .5s var(--ease-out); }
  .hud__txt.is-swap { opacity: 0; transform: translateY(10px); }
  .hud__sector {
    margin: 0;
    font-family: var(--f-display);
    font-variation-settings: "opsz" 144;
    font-size: clamp(1.7rem, 1.1rem + 2vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.02em;
  }
  .hud__note { margin: .35em 0 0; color: rgba(239, 241, 240, .65); font-size: 1rem; }
  .hud__bar { width: clamp(90px, 16vw, 220px); height: 2px; background: rgba(239, 241, 240, .15); margin-bottom: .6em; flex: none; }
  .hud__bar span { display: block; height: 100%; background: var(--electrico); transform-origin: left; transform: scaleX(var(--hp, 0)); }
}
/* Móvil: la sección se fija y muestra una sola imagen cada vez. El scroll hace
   el relevo: la actual sube, se encoge y se difumina; la siguiente llega desde
   abajo, crece y gana nitidez. Las transformaciones las pone main.js. */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  html.js .styles { padding: 0; height: 760svh; }
  html.js .styles__pin {
    position: sticky; top: 0;
    height: 100svh;
    overflow: hidden;
  }
  html.js .styles__glow {
    display: block;
    position: absolute; left: 50%; top: 52%;
    width: 150vmax; height: 150vmax;
    translate: -50% -50%;
    background: radial-gradient(closest-side, rgba(42, 167, 255, .14), rgba(42, 167, 255, .03) 50%, transparent 70%);
  }
  html.js .styles__intro {
    position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 44px); z-index: 3;
    pointer-events: none;
    will-change: transform, opacity;
  }
  html.js .tunnel {
    position: absolute; inset: 0;
    margin: 0; padding: 0; max-width: none;
    display: block;
  }
  html.js .tile {
    position: absolute; left: 50%; top: 50%;
    width: calc(100vw - var(--gutter) * 2);
    translate: -50% -42%;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity, filter;
  }
  html.js .tile figcaption { padding-top: 16px; }
  html.js .tile figcaption b { font-size: 1.6rem; line-height: 1.1; }
  html.js .hud {
    display: block;
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    opacity: var(--hud, 0);
    pointer-events: none;
  }
  .hud__txt { display: none; }
  .hud__bar { height: 2px; background: rgba(239, 241, 240, .15); }
  .hud__bar span { display: block; height: 100%; background: var(--electrico); transform-origin: left; transform: scaleX(var(--hp, 0)); }
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.plans {
  position: relative; z-index: 5;
  background: var(--niebla);
  padding: clamp(96px, 12vw, 180px) 0 clamp(72px, 9vw, 130px);
}
.plans__intro { max-width: 46ch; margin-top: 1.6rem; color: var(--piedra); font-size: 1.12rem; }
.plans__grid {
  display: grid; gap: 24px;
  margin-top: clamp(48px, 6vw, 80px);
  perspective: 1600px;
}
/* Con preserve-3d, la mitad de .plan__in que la inclinación empuja hacia atrás
   queda detrás del plano de .plan, y .plan se quedaba el clic. .plan no recibe
   eventos; su contenido sí. */
.plan { transform-style: preserve-3d; pointer-events: none; }
.plan__in {
  --rx: 0deg; --ry: 0deg;
  pointer-events: auto;
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.2vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease-out), box-shadow .5s;
}
.plan:hover .plan__in { box-shadow: 0 40px 80px -40px rgba(10, 14, 26, .35); }
.plan__glare {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .8), transparent 45%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.plan:hover .plan__glare { opacity: .7; }
.plan__name {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.015em;
}
.plan__for { margin: .5em 0 0; color: var(--piedra); }
.plan__price {
  display: flex; align-items: baseline; gap: .3em;
  margin: 32px 0 26px;
  font-family: var(--f-display);
}
.plan__price small {
  font-family: var(--f-body); font-size: .8rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--piedra);
  margin-right: .4em;
}
.plan__price span {
  font-variation-settings: "opsz" 144;
  font-size: clamp(3.8rem, 2.6rem + 3.4vw, 6rem);
  font-weight: 330;
  line-height: .85;
  letter-spacing: -.04em;
}
.plan__price em { font-style: normal; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.4rem); font-weight: 350; }
.plan__facts {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 0 0 28px;
  border-block: 1px solid var(--line);
}
.plan__facts div { padding: 14px 0; }
.plan__facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.plan__facts dt { font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--piedra); }
.plan__facts dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 500; }
.plan__list { display: grid; gap: 12px; margin-bottom: 36px; flex: 1; align-content: start; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: .99rem; line-height: 1.45; }
.plan__list .ico { width: 20px; height: 20px; color: var(--electrico); margin-top: 1px; }

.plan--pro .plan__in { background: var(--ink); color: var(--niebla); border-color: var(--ink); }
.plan--pro .plan__glare { background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(42, 167, 255, .28), transparent 45%); }
.plan--pro:hover .plan__glare { opacity: 1; }
.plan--pro .plan__for, .plan--pro .plan__price small, .plan--pro .plan__facts dt { color: rgba(239, 241, 240, .6); }
.plan--pro .plan__facts, .plan--pro .plan__facts div + div { border-color: var(--line-dark); }
.plan--pro .plan__list li { color: rgba(239, 241, 240, .78); }
.plan--pro .plan__list li.is-plus { color: var(--niebla); font-weight: 500; }

.js .plan[data-reveal] { transform: translateY(90px) rotateX(16deg); transform-origin: 50% 100%; }
.js .plan[data-reveal].is-in { transform: none; }
.js .plan[data-reveal] + .plan[data-reveal] { transition-delay: .12s; }

.plans__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin: 56px 0 0;
  font-size: 1.12rem;
}

@media (min-width: 900px) {
  .plans__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* =========================================================
   PREGUNTAS
   ========================================================= */
.faq {
  position: relative; z-index: 5;
  background: var(--niebla);
  padding: 0 0 clamp(96px, 12vw, 170px);
}
.faq > .wrap > * { min-width: 0; }
.faq__grid { display: grid; gap: 40px; border-top: 1px solid var(--line); padding-top: clamp(72px, 9vw, 130px); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem);
  line-height: 1.25;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico {
  width: 30px; height: 30px; padding: 5px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease-out), color .3s, box-shadow .3s;
}
.qa summary:hover .ico { box-shadow: inset 0 0 0 1px var(--ink); }
.qa.is-open summary .ico { transform: rotate(135deg); color: var(--electrico); box-shadow: inset 0 0 0 1px var(--electrico); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 0 28px; max-width: 58ch; color: var(--piedra); font-size: 1.06rem; }

@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 1fr 1.45fr; gap: 6vw; }
  .faq__head { position: sticky; top: 130px; align-self: start; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  position: relative; z-index: 5;
  overflow: hidden;
  background: var(--ink);
  color: var(--niebla);
  padding: clamp(96px, 12vw, 180px) 0 clamp(110px, 13vw, 190px);
}
.terrain--contact { top: auto; height: 58%; opacity: .9; }
.contact__grid { position: relative; z-index: 2; display: grid; gap: 56px; }
.contact__lede { max-width: 40ch; margin-top: 1.6rem; font-size: 1.16rem; color: rgba(239, 241, 240, .72); }
.contact__alt { display: grid; justify-items: start; gap: 28px; margin-top: 40px; }
.contact__direct { display: grid; gap: 4px; }
.contact__direct li { display: flex; align-items: center; gap: .75em; padding: 6px 0; }
.contact__direct .ico { color: var(--electrico); }
.contact__direct a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact__direct a:hover { border-color: var(--niebla); }

.form {
  display: grid; gap: 20px;
  padding: clamp(24px, 3.2vw, 46px);
  background: rgba(18, 24, 41, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}
.form__row { display: grid; gap: 20px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 26px 0 10px;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(239, 241, 240, .25);
  border-radius: 0;
  color: var(--niebla);
  font: inherit; font-size: 1.05rem;
  outline: none;
  transition: border-color .3s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23EFF1F0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 2px bottom 12px / 18px no-repeat;
}
.field select option { color: var(--ink); background: var(--niebla); }
.field label {
  position: absolute; left: 0; top: 27px;
  color: rgba(239, 241, 240, .55);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .4s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--electrico); }
.field input:focus + label, .field textarea:focus + label { color: var(--electrico); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-22px) scale(.78); }
.field.is-error input, .field.is-error textarea { border-bottom: 2px solid var(--niebla); }
.field__err {
  display: flex; align-items: center; gap: .4em;
  margin: 8px 0 0;
  font-size: .85rem; color: var(--niebla);
}
.field__err .ico { width: 1em; height: 1em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  position: relative;
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  font-size: .94rem; line-height: 1.5;
  cursor: pointer;
  margin-top: 6px;
}
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent__box {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px rgba(239, 241, 240, .45);
  color: var(--ink);
  transition: background-color .25s, box-shadow .25s;
}
.consent__box .ico { width: 16px; height: 16px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .35s var(--ease-out); }
.consent input:checked + .consent__box { background: var(--electrico); box-shadow: none; }
.consent input:checked + .consent__box .ico { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--electrico); outline-offset: 3px; }
.consent a { text-decoration: underline; text-decoration-color: var(--electrico); text-underline-offset: 3px; }
.consent.is-error .consent__box { box-shadow: inset 0 0 0 2px var(--niebla); }

.form__info { margin: 0; font-size: .78rem; line-height: 1.55; color: rgba(239, 241, 240, .5); }
.form__status { margin: 0; min-height: 1.5em; font-size: .98rem; }
.form__status.is-ok { color: var(--electrico); }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.05fr; gap: 7vw; align-items: start; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative; z-index: 5;
  background: var(--ink);
  color: rgba(239, 241, 240, .66);
  border-top: 1px solid var(--line-dark);
  padding: 72px 0 32px;
  font-size: .96rem;
}
.footer__top { display: grid; gap: 44px; }
.footer__logo img { height: 72px; width: auto; margin-left: -20px; }
.footer__brand p { margin: 8px 0 0; max-width: 30ch; }
.footer__nav, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__contact a, .footer__legal a { transition: color .3s; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover, .footer__legal a:hover { color: var(--niebla); }
.footer__contact a { display: inline-flex; align-items: center; gap: .7em; }
.footer__contact .ico { color: var(--electrico); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px;
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: .86rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal button {
  padding: 0; border: 0; background: none;
  font: inherit; color: inherit;
  cursor: pointer;
  transition: color .3s;
}
.footer__legal button:hover { color: var(--niebla); }

@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1.3fr; }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  padding: 0; border: 0;
  background: transparent;
  width: min(92vw, 1200px);
  max-width: none;
  overflow: visible;
  color: var(--niebla);
}
.lightbox::backdrop { background: rgba(10, 14, 26, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb .6s var(--ease-out); }
@keyframes lb { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox__cap { margin: 14px 0 0; font-size: 1rem; color: rgba(239, 241, 240, .75); }
.lightbox__cap b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--niebla); margin-right: .5em; }
.lightbox__close {
  position: absolute; right: 0; top: -54px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(239, 241, 240, .1);
  color: var(--niebla);
  cursor: pointer;
}
.lightbox__close .ico { width: 22px; height: 22px; }

/* =========================================================
   Revelados al hacer scroll
   ========================================================= */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .12em .02em .14em;
  margin: -.12em -.02em -.14em;
}
.js [data-split] .wi {
  display: inline-block;
  transform: perspective(700px) translateY(108%) rotateX(-62deg);
  transform-origin: 50% 100%;
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity .9s ease;
  transition-delay: calc(var(--i) * 42ms);
}
.js [data-split].is-in .wi { transform: none; opacity: 1; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal] .ticks li {
  opacity: 0; transform: translateX(-18px);
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i) * 110ms + 200ms);
}
.js [data-reveal].is-in .ticks li { opacity: 1; transform: none; }

/* =========================================================
   Hero anclado (escritorio con movimiento)
   ========================================================= */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.js .hero { height: 300vh; }
  html.js .hero__pin { position: sticky; top: 0; height: 100vh; min-height: 0; }
  html.js .fit { margin-top: -100vh; }
}

/* =========================================================
   Movimiento reducido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul:nth-child(2) { display: none; }
  .marquee ul { flex-wrap: wrap; padding-inline: var(--gutter); row-gap: 6px; }
}

/* =========================================================
   Páginas legales
   ========================================================= */
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(239, 241, 240, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.legal-nav img { height: 50px; width: auto; margin-left: -12px; }
.legal {
  padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
}
.legal .wrap { max-width: calc(52rem + var(--gutter) * 2); }
.legal h1 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144;
  font-weight: 380;
  font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1.2em;
}
.legal h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 2em 0 .5em;
}
.legal p { color: #33363B; }
.legal a { text-decoration: underline; text-decoration-color: var(--electrico); text-underline-offset: 3px; }
.legal__meta { color: var(--piedra); font-size: .95rem; padding: 18px 0; border-block: 1px solid var(--line); }

/* =========================================================
   Banner de cookies
   ========================================================= */
.cookies {
  position: fixed; z-index: 60;
  left: clamp(12px, 2.4vw, 28px);
  bottom: calc(clamp(12px, 2.4vw, 28px) + env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 24px));
  padding: 22px;
  background: var(--ink-2);
  color: var(--niebla);
  border: 1px solid rgba(239, 241, 240, .18);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .4s ease, transform .6s var(--ease-out);
}
.cookies.is-open { opacity: 1; transform: none; }
.cookies p { margin: 0; font-size: .93rem; line-height: 1.5; color: rgba(239, 241, 240, .78); }
.cookies .cookies__t {
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-size: 1.3rem; line-height: 1.2;
  color: var(--niebla);
}
.cookies a { color: var(--niebla); text-decoration: underline; text-decoration-color: var(--electrico); text-underline-offset: 3px; }
.cookies__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
/* Aceptar y Rechazar comparten exactamente el mismo estilo. */
.cookies__btn {
  padding: .9em 1em;
  border: 0; border-radius: 6px;
  background: var(--niebla); color: var(--ink);
  font: inherit; font-weight: 500; line-height: 1;
  cursor: pointer;
  transition: background-color .3s;
}
.cookies__btn:hover { background: #fff; }

/* Tabla y botón de la política de cookies */
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }
.legal__tablewrap { overflow-x: auto; }
.legal .btn { margin-top: .4em; text-decoration: none; }
/* En escritorio va a la derecha para no tapar los botones del hero. */
@media (min-width: 900px) {
  .cookies { left: auto; right: clamp(12px, 2.4vw, 28px); }
}
