/* ==========================================================================
   Carpintería y Diseño Interior's | Hoja de estilos
   Mobile first. Tema claro con secciones oscuras en teal profundo.
   Acento único: lima de marca. Sistema de radios documentado en :root.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca (tomada del banner): teal profundo + lima */
  --ink-950: #041418;
  --ink-900: #07222a;
  --ink-800: #0d3540;
  --ink-700: #144854;
  --ink-600: #1d5e6c;
  --lime: #a2da2f;
  --lime-300: #c4eb6e;
  --lime-ink: #4b7508;   /* lima legible sobre fondos claros (contraste 5:1) */

  /* Superficies claras (neutros fríos, sin crema) */
  --paper: #f3f6f4;
  --paper-2: #e8eeeb;
  --card: #fbfcfb;

  /* Texto */
  --text: #0a1e24;
  --muted: #486168;
  --text-d: #eaf1f0;
  --muted-d: #a8bdc2;
  --line: rgba(10, 30, 36, .12);
  --line-d: rgba(234, 241, 240, .14);
  --error: #b42318;

  /* Tipografía */
  --ff-display: 'Outfit', system-ui, sans-serif;
  --ff-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Sistema de radios (regla única):
     botones y chips = pill | tarjetas e imágenes = 22px | campos = 12px */
  --r-pill: 999px;
  --r-md: 22px;
  --r-sm: 12px;

  /* Movimiento */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  /* Layout */
  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;

  /* Escala de z-index (capas sistémicas) */
  --z-wa: 55;
  --z-menu: 60;
  --z-nav: 65;        /* por encima del menú móvil para que el botón de cerrar siga visible */
  --z-progress: 70;
  --z-lightbox: 80;
  --z-loader: 100;

  --focus: var(--ink-600);
}

/* Tema por sección: define variables de texto y foco */
[data-theme="dark"] { --fg: var(--text-d); --fg-muted: var(--muted-d); --fg-line: var(--line-d); --focus: var(--lime); }
[data-theme="light"] { --fg: var(--text); --fg-muted: var(--muted); --fg-line: var(--line); --focus: var(--ink-600); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1rem/1.62 var(--ff-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink-950); }

/* Requisitos de Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html.is-loading { overflow: hidden; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--lime); color: var(--ink-950); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* Títulos y texto */
.title {
  font: 700 clamp(2rem, 6.4vw, 3.6rem)/1.04 var(--ff-display);
  letter-spacing: -.028em; color: var(--fg); text-wrap: balance;
}
.title--xl { font-size: clamp(2.5rem, 8vw, 5.4rem); line-height: .98; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--fg-muted); max-width: 54ch; margin-top: 18px; }

/* ---------- 3. Revelado al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease) var(--rd, 0s), transform 1.1s var(--ease) var(--rd, 0s);
}
/* Palabras de títulos (las crea app.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > .wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(112%); }
.js [data-split].is-in .wi { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi, 0) * 45ms); }
/* Seguro si app.js falla */
.js-failed [data-reveal], .js-failed [data-split] .wi { opacity: 1 !important; transform: none !important; }

/* ---------- 4. Marca (wordmark) ---------- */
.brand { display: inline-grid; gap: 3px; line-height: 1; font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: 14px; }
.brand__top { font-size: .66em; letter-spacing: .03em; color: var(--text-d); }
.brand__main { display: flex; align-items: baseline; gap: .55em; font-size: 1.55em; letter-spacing: -.01em; color: var(--lime); }
.brand__main small {
  display: inline-flex; align-items: center; gap: .6em; font-size: .3em; letter-spacing: .34em; font-weight: 600; color: var(--text-d); opacity: .86;
}
.brand__main small::before { content: ""; width: 1.7em; height: 2px; background: var(--lime); }
.brand--lg { font-size: 20px; }

/* ---------- 5. Preloader: puertas que se abren ---------- */
#loader { position: fixed; inset: 0; z-index: var(--z-loader); display: grid; place-items: center; color: var(--text-d); overflow: hidden; }
html:not(.js) #loader { display: none; }
.js-failed #loader { display: none; }
.loader__door {
  position: absolute; top: 0; bottom: 0; width: 50.4%;
  background: linear-gradient(165deg, var(--ink-900), var(--ink-950));
  transition: transform 1.25s var(--ease-io) .2s; will-change: transform;
}
.loader__door--l { left: 0; }
.loader__door--r { right: 0; }
.loader__door::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); box-shadow: 0 0 22px rgba(162, 218, 47, .55); }
.loader__door--l::after { right: 0; }
.loader__door--r::after { left: 0; }
.loader__core { position: relative; display: grid; justify-items: center; gap: 26px; transition: opacity .5s ease, transform .8s var(--ease); }
.loader__ring { position: relative; width: 136px; height: 136px; }
.loader__svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { stroke: rgba(255, 255, 255, .09); }
.ring-prog { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.ring-orbit { stroke: rgba(162, 218, 47, .6); stroke-dasharray: 2 11; transform-origin: 60px 60px; animation: spin 10s linear infinite; }
.loader__pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; font: 500 1.7rem var(--ff-mono); letter-spacing: -.02em; }
.loader__pct small { font-size: .8rem; color: var(--lime); margin-top: 4px; }
.loader__line { font: 500 .78rem var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); text-align: center; padding-inline: 20px; }
#loader.is-done .loader__core { opacity: 0; transform: scale(.9); }
#loader.is-done .loader__door--l { transform: translateX(-101%); }
#loader.is-done .loader__door--r { transform: translateX(101%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. Barra de progreso ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- 7. Botones ---------- */
.btn {
  --fill: var(--ink-950); --fg-btn: var(--ink-950); --fg-hover: var(--lime); --bg-btn: var(--lime); --bd: var(--lime);
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font: 600 1rem/1 var(--ff-body); white-space: nowrap;
  color: var(--fg-btn); background: var(--bg-btn); border: 1.5px solid var(--bd);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease);
  cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: var(--x); top: var(--y);
  width: 280%; aspect-ratio: 1; border-radius: 50%; background: var(--fill);
  transform: translate(-50%, -50%) scale(0); transition: transform .65s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:hover, .btn:focus-visible { color: var(--fg-hover); }
.btn:active { transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + 1px), 0) scale(.98); }
.btn i { font-size: 1.15em; transition: transform .45s var(--ease); }
.btn:hover i.ph-arrow-up-right { transform: translate(3px, -3px); }
.btn:hover i.ph-arrow-down { transform: translateY(3px); }

.btn--ghost { --bg-btn: transparent; --bd: rgba(255, 255, 255, .3); --fg-btn: var(--text-d); --fill: var(--text-d); --fg-hover: var(--ink-950); }
.btn--dark { --bg-btn: var(--ink-900); --bd: var(--ink-900); --fg-btn: var(--text-d); --fill: var(--lime); --fg-hover: var(--ink-950); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.02rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; padding-block: 14px; }
/* Los hijos de grillas no deben imponer un ancho mínimo mayor al contenedor (evita desbordes en móvil) */
.statement__grid > *, .process__grid > *, .faq__grid > *, .cta__grid > *, .contact__grid > *, .footer__top > * { min-width: 0; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading i { animation: spin 1s linear infinite; }

/* ---------- 8. Navegación ---------- */
.nav { position: fixed; inset: 10px 0 auto; z-index: var(--z-nav); padding-inline: 10px; pointer-events: none; }
.js .nav { opacity: 0; transform: translateY(-24px); }
.is-ready .nav { opacity: 1; transform: none; transition: opacity 1s var(--ease) 1.5s, transform 1.2s var(--ease) 1.5s; }
.js-failed .nav { opacity: 1; transform: none; }
.nav__bar {
  pointer-events: auto; max-width: calc(var(--maxw) + 40px); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 10px 0 20px;
  border-radius: var(--r-pill); color: var(--text-d);
  background: rgba(7, 34, 42, .66); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 40px -24px rgba(4, 20, 24, .7);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.nav[data-theme="light"] .nav__bar {
  color: var(--text); background: rgba(251, 252, 251, .82); border-color: rgba(10, 30, 36, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 22px 40px -26px rgba(7, 34, 42, .45);
}
.nav[data-theme="light"] .brand__top, .nav[data-theme="light"] .brand__main { color: var(--ink-900); }
.nav[data-theme="light"] .brand__main small { color: var(--ink-700); }
.nav[data-theme="light"] .brand__main small::before { background: var(--lime-ink); }
.nav__links { display: none; }
.nav__link { position: relative; padding: 10px 14px; font: 500 .93rem var(--ff-body); opacity: .8; white-space: nowrap; transition: opacity .3s; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.nav[data-theme="light"] .nav__link::after { background: var(--ink-700); }
.nav__link:hover, .nav__link.is-current { opacity: 1; }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cta { display: none; }
.burger { position: relative; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.nav[data-theme="light"] .burger { background: rgba(10, 30, 36, .06); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); display: grid; grid-template-rows: 1fr auto; padding: 110px var(--gutter) 34px;
  background: var(--ink-950); color: var(--text-d);
  clip-path: circle(0% at calc(100% - 44px) 40px); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__nav { display: grid; align-content: center; }
.menu__link {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-d);
  font: 600 clamp(1.7rem, 7vw, 2.4rem)/1.1 var(--ff-display); letter-spacing: -.02em;
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu__link i { color: var(--lime); font-size: .8em; }
.menu.is-open .menu__link { opacity: 1; transform: none; transition-delay: calc(.25s + var(--k, 0) * 70ms); }
.menu__foot { display: grid; gap: 18px; justify-items: stretch; }
.menu__tel { display: flex; gap: 22px; justify-content: center; font: 500 .95rem var(--ff-mono); color: var(--muted-d); }
.menu__tel a:hover { color: var(--lime); }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip; min-height: 100dvh; display: grid; align-items: end;
  background: var(--ink-950); color: var(--text-d);
}
.hero__media { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.hero__scroll { position: absolute; inset: 0; }
.hero__shift { position: absolute; inset: -3%; transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); transition: transform .9s var(--ease); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; animation: kenburns 26s ease-in-out infinite alternate; }
.js .hero__media { opacity: 0; transform: scale(1.08); }
.is-ready .hero__media { opacity: 1; transform: none; transition: opacity 1.6s ease .1s, transform 2.4s var(--ease) .1s; }
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.hero__shade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, rgba(4, 20, 24, .55) 0%, rgba(4, 20, 24, .5) 28%, rgba(4, 20, 24, .86) 68%, var(--ink-950) 100%); }
.hero__panel, .hero__edge { display: none; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; padding: calc(var(--nav-h) + 56px) var(--gutter) 84px; display: grid; gap: 22px; max-width: 760px; }
.hero__eyebrow {
  justify-self: start; display: inline-flex; align-items: center; gap: 12px; font: 500 .7rem var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime);
}
.hero__eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--lime); }
@media (min-width: 700px) {
  .hero__eyebrow { gap: 14px; font-size: .78rem; letter-spacing: .14em; }
  .hero__eyebrow::before { width: 38px; }
}
.hero__heading { display: grid; gap: 22px; margin: 0; font-size: 1rem; }
.hero__title { display: block; font: 700 clamp(2.4rem, 10.2vw, 4rem)/1.02 var(--ff-display); letter-spacing: -.03em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(115%); }
.is-ready .hero__title .line > span { transform: none; transition: transform 1.4s var(--ease) calc(var(--d, 0s) + .55s); }
.measure { position: relative; display: inline-block; color: var(--lime); }
.measure::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: .2em; transform-origin: 0 50%;
  background:
    linear-gradient(var(--lime), var(--lime)) top / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--lime) 0 2px, transparent 2px 11px) bottom / 100% 55% no-repeat;
}
.js .measure::after { transform: scaleX(0); }
.is-ready .measure::after { transform: scaleX(1); transition: transform 1.6s var(--ease-io) 1.7s; }
.hero__sub { font-size: clamp(1.02rem, 2.4vw, 1.22rem); color: #cfdcdf; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.js [data-hero] { opacity: 0; transform: translateY(26px); }
.is-ready [data-hero] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.is-ready [data-hero="1"] { transition-delay: .5s; }
.is-ready [data-hero="2"] { transition-delay: 1.05s; }
.is-ready [data-hero="3"] { transition-delay: 1.25s; }

/* Hero escritorio: panel diagonal como el banner de la marca */
@media (min-width: 1000px) {
  .hero { align-items: center; }
  .hero__media { left: 48%; }
  .hero__shade { display: none; }
  /* Estado final por defecto (sin JS). Con JS arranca recogido y se abre al terminar el preloader */
  .hero__panel {
    display: block; position: absolute; inset: 0; z-index: -3;
    background: radial-gradient(60% 70% at 18% 30%, rgba(162, 218, 47, .08), transparent 60%), linear-gradient(115deg, var(--ink-950), var(--ink-900) 55%, var(--ink-800));
    clip-path: polygon(0 0, 64% 0, 48% 100%, 0 100%);
  }
  .js .hero__panel { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  .is-ready .hero__panel { clip-path: polygon(0 0, 64% 0, 48% 100%, 0 100%); transition: clip-path 1.7s var(--ease-io) .25s; }
  .js-failed .hero__panel { clip-path: polygon(0 0, 64% 0, 48% 100%, 0 100%); }
  .hero__edge { display: block; position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; overflow: visible; }
  .edge { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: butt; stroke-dasharray: 100; stroke-dashoffset: 0; }
  .js .edge { stroke-dashoffset: 100; }
  .edge--thick { stroke: var(--lime); stroke-width: 7; }
  .edge--thin { stroke: var(--lime); stroke-width: 2; opacity: .75; }
  .edge--led { stroke: #fff; stroke-width: 3; stroke-dasharray: 9 91; stroke-dashoffset: 9; opacity: 0; }
  .is-ready .edge--thick { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s var(--ease-io) .45s; }
  .is-ready .edge--thin { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s var(--ease-io) .7s; }
  .is-ready .edge--led { opacity: .9; animation: led 4.6s linear 2.4s infinite; }
  .js-failed .edge--thick, .js-failed .edge--thin { stroke-dashoffset: 0; }
  .hero__inner { max-width: 54vw; padding: calc(var(--nav-h) + 64px) 0 84px var(--gutter); }
  .hero__title { font-size: clamp(3.4rem, 4.6vw, 5.6rem); }
  .hero__sub { max-width: 44ch; }
}
@keyframes led { from { stroke-dashoffset: 9; } to { stroke-dashoffset: -100; } }

/* ---------- 10. Banda lima (único marquee) ---------- */
.band {
  position: relative; z-index: 3; margin-top: -26px; transform: rotate(-1.4deg) scale(1.03);
  background: var(--lime); color: var(--ink-950); overflow: hidden; white-space: nowrap;
  box-shadow: 0 20px 40px -24px rgba(4, 20, 24, .6);
}
.band__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.band__group { display: flex; flex: none; align-items: center; gap: 2.2rem; padding: 1rem 2.2rem 1rem 0; }
.band span { font: 800 clamp(1.1rem, 3vw, 1.9rem)/1 var(--ff-display); text-transform: uppercase; letter-spacing: -.01em; }
.band span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink-950); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 11. Manifiesto ---------- */
.statement { background: var(--paper); padding: clamp(96px, 14vw, 190px) 0 clamp(72px, 10vw, 150px); }
.statement__grid { display: grid; gap: 56px; }
.statement__text { font: 600 clamp(1.75rem, 5vw, 3.7rem)/1.16 var(--ff-display); letter-spacing: -.022em; color: var(--text); max-width: 29ch; }
.statement__text .w { padding-bottom: .1em; margin-bottom: -.1em; }
.has-gsap .statement__text .wi { opacity: .14; transform: none; }
.statement__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.statement__fig { overflow: hidden; border-radius: var(--r-md); background: var(--paper-2); box-shadow: 0 40px 70px -40px rgba(7, 34, 42, .5); }
.statement__fig img { width: 100%; height: 100%; object-fit: cover; }
.statement__fig--a { aspect-ratio: 3 / 4.4; }
.statement__fig--b { aspect-ratio: 3 / 4; margin-top: 44px; }
.js .statement__fig[data-reveal] { transform: translateY(34px) scale(.97); }
.js .statement__fig[data-reveal].is-in { transform: none; }
@media (min-width: 1000px) {
  .statement__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
  .statement__media { display: block; position: relative; }
  .statement__fig--a { width: 72%; aspect-ratio: 3 / 4.2; }
  .statement__fig--b { width: 64%; aspect-ratio: 3 / 4; margin: -22% 0 0 auto; }
}

/* ---------- 12. Imagen que se abre ---------- */
.expand { background: var(--paper); }
.expand__stage { position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; padding: 96px var(--gutter); }
.expand__title { position: absolute; top: clamp(70px, 11dvh, 120px); left: 0; right: 0; text-align: center; padding-inline: var(--gutter); font: 700 clamp(2rem, 6.4vw, 4rem)/1.04 var(--ff-display); letter-spacing: -.03em; color: var(--text); z-index: 2; text-wrap: balance; }
.expand__title em { font-style: normal; color: var(--lime-ink); }
.expand__frame { position: relative; width: 100%; max-width: 980px; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; margin-top: 70px; box-shadow: 0 50px 90px -50px rgba(7, 34, 42, .6); }
.expand__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
@media (min-width: 700px) { .expand__frame img { object-position: 50% 50%; } }
.expand__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 20, 24, .85) 100%); opacity: 0; }
.expand__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 var(--gutter) clamp(28px, 6dvh, 64px); color: var(--text-d); opacity: 0; max-width: 640px; }
.expand__caption h3 { font: 700 clamp(1.5rem, 4vw, 2.6rem)/1.08 var(--ff-display); letter-spacing: -.025em; }
.expand__caption p { margin-top: 10px; color: #d3e0e2; max-width: 46ch; }
/* Sin JS/GSAP: la imagen se ve completa en un bloque normal */
html:not(.has-gsap) .expand__caption { position: static; opacity: 1; color: var(--text); padding: 20px var(--gutter) 0; max-width: none; }
html:not(.has-gsap) .expand__caption p { color: var(--muted); }
html:not(.has-gsap) .expand__stage { min-height: 0; display: block; padding-block: 88px; }
html:not(.has-gsap) .expand__title { position: static; margin-bottom: 28px; }
html:not(.has-gsap) .expand__frame { margin: 0 auto; }
/* Con GSAP: el marco ocupa todo el escenario y se recorta con clip-path */
.has-gsap .expand__stage { padding: 0; }
.has-gsap .expand__frame { position: absolute; inset: 0; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; }

/* ---------- 13. Servicios (tarjetas apiladas) ---------- */
.services { background: var(--ink-900); color: var(--text-d); padding: clamp(96px, 13vw, 180px) 0; }
.services__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 84px); }
.stack { display: grid; gap: 22px; }
.svc__inner {
  --dim: 0;
  position: relative; display: grid; border-radius: var(--r-md); overflow: hidden; transform-origin: 50% 0;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900) 70%); border: 1px solid var(--line-d);
  box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .55);
}
.svc__inner::after { content: ""; position: absolute; inset: 0; background: var(--ink-950); opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.svc__media { aspect-ratio: 5 / 4; order: -1; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.svc__inner:hover .svc__media img { transform: scale(1.04); }
.svc__body { display: grid; gap: 16px; align-content: center; justify-items: start; padding: 28px 22px 32px; }
.svc__icon { font-size: 2rem; color: var(--lime); }
.svc__title { font: 700 clamp(1.7rem, 4.4vw, 2.7rem)/1.05 var(--ff-display); letter-spacing: -.03em; }
.svc__text { color: var(--muted-d); max-width: 46ch; }
.svc__list { display: grid; gap: 10px; margin: 4px 0 10px; }
.svc__list li { display: flex; align-items: flex-start; gap: 12px; font-size: .98rem; }
.svc__list i { color: var(--lime); margin-top: .22em; flex: none; }

@media (min-width: 1000px) {
  .stack { display: block; }
  .svc { position: sticky; top: calc(var(--nav-h) + 40px + var(--i) * 18px); height: min(74dvh, 640px); margin-bottom: 7dvh; }
  .svc:last-child { margin-bottom: 0; }
  .svc__inner { height: 100%; grid-template-columns: 1.05fr .95fr; }
  .svc__media { order: 0; aspect-ratio: auto; height: 100%; }
  .svc__body { padding: clamp(32px, 4vw, 64px); }
}

/* ---------- 14. Galería horizontal ---------- */
.hgal { background: var(--paper); padding: clamp(96px, 13vw, 170px) 0 clamp(72px, 9vw, 120px); }
.hgal__intro { padding-inline: var(--gutter); margin-bottom: 40px; max-width: 760px; }
.hgal__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 28px; scrollbar-width: thin; scrollbar-color: var(--ink-600) transparent; }
.pcard { flex: 0 0 min(74vw, 330px); scroll-snap-align: center; display: grid; gap: 14px; align-content: start; }
/* position:relative es necesario: el .sr-only interno es absolute y, sin contenedor posicionado,
   su caja queda fuera del carrusel y ensancha el documento en móvil */
.pcard__btn { position: relative; display: block; width: 100%; text-align: left; }
.pcard__img { position: relative; display: block; aspect-ratio: var(--ar); border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); box-shadow: 0 34px 60px -38px rgba(7, 34, 42, .55); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard__img--wide { object-position: 50% 78%; }
.pcard__btn:hover .pcard__img img { transform: scale(1.05); }
.pcard figcaption { display: grid; gap: 2px; padding-inline: 4px; }
.pcard figcaption strong { font: 600 1.08rem var(--ff-display); letter-spacing: -.01em; }
.pcard figcaption span { font-size: .9rem; color: var(--muted); }
.pcard--cta {
  align-content: center; justify-items: start; gap: 16px; padding: 28px 24px; border-radius: var(--r-md);
  background: var(--ink-900); color: var(--text-d); aspect-ratio: .75; min-height: 340px;
}
.pcard--cta h3 { font: 700 1.7rem/1.08 var(--ff-display); letter-spacing: -.025em; text-wrap: balance; }
.pcard--cta p { color: var(--muted-d); }
.pcard--cta .btn { white-space: normal; text-align: left; padding-block: 12px; }
.hgal__bar { display: none; }

/* Modo fijado (escritorio + GSAP): el scroll vertical mueve la galería en horizontal */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .has-gsap .hgal { padding: 0; height: 100dvh; overflow: hidden; }
  .has-gsap .hgal__stage { position: relative; height: 100dvh; display: flex; align-items: center; }
  .has-gsap .hgal__rail { display: flex; align-items: center; width: max-content; padding-left: var(--gutter); padding-right: 12vw; will-change: transform; }
  .has-gsap .hgal__intro { flex: none; width: min(30vw, 440px); margin: 0 4vw 0 0; padding: 0; }
  .has-gsap .hgal__track { display: flex; overflow: visible; scroll-snap-type: none; gap: 2.6vw; padding: 0; align-items: center; }
  .has-gsap .pcard { flex: none; scroll-snap-align: none; }
  .has-gsap .pcard__img { --ih: min(60dvh, 560px); height: var(--ih); width: calc(var(--ih) * var(--ar)); aspect-ratio: auto; }
  .has-gsap .pcard__img img { width: 118%; max-width: none; height: 100%; margin-left: -9%; }
  .has-gsap .pcard__img img.pcard__img--wide { width: 100%; margin-left: 0; }
  .has-gsap .pcard:nth-child(even) { transform: translateY(5dvh); }
  .has-gsap .pcard:nth-child(odd) { transform: translateY(-3dvh); }
  .has-gsap .pcard--cta { width: min(30vw, 420px); height: min(60dvh, 560px); aspect-ratio: auto; }
  .has-gsap .hgal__bar { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 38px; height: 3px; background: rgba(10, 30, 36, .12); border-radius: 3px; overflow: hidden; }
  .has-gsap .hgal__bar span { display: block; height: 100%; background: var(--ink-700); transform: scaleX(0); transform-origin: 0 50%; }
}

/* ---------- 15. Proceso ---------- */
.process { background: var(--ink-900); color: var(--text-d); padding: clamp(96px, 13vw, 180px) 0; }
.process__grid { display: grid; gap: 56px; }
.process__side { display: grid; justify-items: start; align-content: start; gap: 0; }
.process__cta { margin-top: 30px; }
.tl { position: relative; display: grid; gap: clamp(34px, 5vw, 60px); padding-left: 64px; }
.tl::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: var(--line-d); }
.tl__fill { position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: var(--lime); box-shadow: 0 0 18px rgba(162, 218, 47, .6); transform-origin: 50% 0; transform: scaleY(1); }
.has-gsap .tl__fill { transform: scaleY(0); }
.tl__step { position: relative; }
.tl__icon {
  position: absolute; left: -64px; top: -2px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem;
  background: var(--lime); color: var(--ink-950); border: 1px solid var(--lime); box-shadow: 0 0 0 8px rgba(162, 218, 47, .14);
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.has-gsap .tl__step:not(.is-active) .tl__icon { background: var(--ink-800); color: var(--muted-d); border-color: var(--line-d); box-shadow: none; }
.tl__step h3 { font: 700 clamp(1.4rem, 3.4vw, 2rem)/1.1 var(--ff-display); letter-spacing: -.025em; }
.tl__step p { margin-top: 10px; color: var(--muted-d); max-width: 48ch; }
@media (min-width: 1000px) {
  .process__grid { grid-template-columns: .85fr 1.15fr; gap: clamp(56px, 8vw, 120px); align-items: start; }
  .process__side { position: sticky; top: 120px; }
  .tl { gap: clamp(70px, 11dvh, 130px); padding-top: 8px; }
}

/* ---------- 16. Por qué nosotros (bento) ---------- */
.why { background: var(--paper); padding: clamp(96px, 13vw, 180px) 0 clamp(60px, 8vw, 100px); }
.bento { display: grid; gap: 14px; margin-top: clamp(36px, 5vw, 64px); }
.cell {
  --sx: 50%; --sy: 50%;
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-md); padding: 28px 26px; display: grid; align-content: end; gap: 10px;
  min-height: 250px; border: 1px solid var(--line);
}
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(162, 218, 47, .22), transparent 62%); }
.cell:hover::before { opacity: 1; }
.cell h3 { font: 700 clamp(1.3rem, 2.6vw, 1.7rem)/1.1 var(--ff-display); letter-spacing: -.025em; }
.cell p { font-size: .98rem; max-width: 40ch; }
.cell__icon { font-size: 2rem; margin-bottom: auto; }
.cell--img { padding: 0; min-height: 420px; border: 0; align-content: stretch; }
.cell--img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cell--img:hover img { transform: scale(1.05); }
.cell--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(4, 20, 24, .88)); }
.cell--img::before { z-index: 0; }
.cell__over { position: relative; z-index: 1; align-self: end; padding: 26px; color: var(--text-d); display: grid; gap: 8px; }
.cell__over p { color: #d3e0e2; }
.cell--light { background: var(--card); color: var(--text); }
.cell--light .cell__icon { color: var(--ink-700); }
.cell--light p { color: var(--muted); }
.cell--lime { background: var(--lime); color: var(--ink-950); border-color: var(--lime); }
.cell--lime p { color: rgba(4, 20, 24, .8); }
.cell--dark { background: radial-gradient(90% 80% at 100% 0%, rgba(162, 218, 47, .22), transparent 55%), linear-gradient(160deg, var(--ink-800), var(--ink-900)); color: var(--text-d); border-color: var(--line-d); }
.cell--dark .cell__icon { color: var(--lime); }
.cell--dark p { color: var(--muted-d); }
.cell--chat .cell__icon { color: var(--ink-700); }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell--img { grid-column: 1 / -1; min-height: 380px; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(260px, auto)); }
  .cell--img { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
  .cell--measure { grid-column: 2 / span 2; grid-row: 1; }
  .cell--lime { grid-column: 4; grid-row: 1; }
  .cell--dark { grid-column: 2; grid-row: 2; }
  .cell--chat { grid-column: 3 / span 2; grid-row: 2; }
}

/* ---------- 17. Preguntas frecuentes ---------- */
.faq { background: var(--paper-2); padding: clamp(80px, 11vw, 150px) 0; }
.faq__grid { display: grid; gap: 40px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none;
  font: 600 clamp(1.05rem, 2.4vw, 1.3rem)/1.25 var(--ff-display); letter-spacing: -.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 1.1rem; transition: transform .5s var(--ease), background .4s, color .4s; }
.faq__item summary:hover i { background: var(--lime); }
.faq__item[open] summary i { transform: rotate(135deg); background: var(--ink-900); color: var(--lime); border-color: var(--ink-900); }
.faq__a { padding: 0 4px 24px; color: var(--muted); max-width: 62ch; }
.faq__item[open] .faq__a { animation: faqIn .6s var(--ease); }
.faq__a a { color: var(--ink-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 1000px) {
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
  .faq__side { position: sticky; top: 120px; }
}

/* ---------- 18. CTA final ---------- */
.cta {
  position: relative; overflow: hidden; color: var(--text-d); padding: clamp(100px, 16vw, 220px) 0;
  background: radial-gradient(70% 90% at 85% 0%, rgba(162, 218, 47, .17), transparent 60%), linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta__ghost {
  position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none; white-space: nowrap; text-transform: uppercase;
  font: 800 clamp(9rem, 30vw, 28rem)/.8 var(--ff-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
}
.cta__grid { position: relative; display: grid; gap: 56px; justify-items: start; align-items: center; }
.cta__copy { display: grid; justify-items: start; gap: 0; }
.cta__copy .btn { margin-top: 28px; }
.cta .title { max-width: 14ch; }

.orb {
  position: relative; width: clamp(170px, 46vw, 230px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--text-d);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform .3s var(--ease);
}
.orb__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.orb__text text { font: 600 15px var(--ff-mono); letter-spacing: .02em; fill: var(--text-d); }
.orb__core { position: relative; width: 52%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink-950); font-size: clamp(2rem, 9vw, 3rem); transition: transform .6s var(--ease), box-shadow .6s var(--ease); box-shadow: 0 0 0 0 rgba(162, 218, 47, .45); animation: pulse 2.8s ease-out infinite; }
.orb:hover .orb__core { transform: scale(1.1); }
.orb:hover .orb__text { animation-duration: 8s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(162, 218, 47, .45); } 80%, 100% { box-shadow: 0 0 0 26px rgba(162, 218, 47, 0); } }
@media (min-width: 1000px) {
  .cta__grid { grid-template-columns: 1.4fr .6fr; justify-items: stretch; }
  .orb { justify-self: center; width: clamp(220px, 20vw, 280px); }
}

/* ---------- 19. Contacto y formulario ---------- */
.contact { background: var(--paper); padding: clamp(88px, 12vw, 170px) 0; }
.contact__grid { display: grid; gap: 48px; }
.contact__list { display: grid; gap: 16px; margin-top: 36px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__ico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); color: var(--lime); font-size: 1.4rem; }
.contact__list strong { display: block; font: 600 .82rem var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact__list a { font: 600 1.35rem var(--ff-display); letter-spacing: -.01em; transition: color .3s; }
.contact__list a:hover { color: var(--lime-ink); }
.contact__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 4vw, 44px); box-shadow: 0 50px 90px -50px rgba(7, 34, 42, .5); }
.form__title { font: 700 1.6rem/1.1 var(--ff-display); letter-spacing: -.025em; margin-bottom: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font: 600 .92rem var(--ff-body); color: var(--text); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid rgba(10, 30, 36, .28); background: #fff; color: var(--text);
  font: 400 1rem var(--ff-body); transition: border-color .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 112px; }
.field ::placeholder { color: #5a6f76; opacity: 1; }
.field select:invalid { color: #5a6f76; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(10, 30, 36, .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-600); box-shadow: 0 0 0 4px rgba(29, 94, 108, .2); }
.field.has-error input, .field.has-error select { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.field__error { min-height: 0; font-size: .86rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { padding-right: 46px; cursor: pointer; }
.select i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-700); }
.form__status { margin-top: 16px; font-weight: 600; color: var(--ink-700); display: none; align-items: center; gap: 10px; }
.form__status.is-visible { display: flex; }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }
.form__note { margin-top: 14px; font-size: .84rem; color: var(--muted); text-align: center; }
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
  .contact__info { position: sticky; top: 120px; }
}

/* ---------- 20. Footer ---------- */
.footer { background: var(--ink-950); color: var(--text-d); padding: clamp(64px, 9vw, 110px) 0 28px; }
.footer__top { display: grid; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-d); }
.footer__brand { display: grid; gap: 22px; justify-items: start; }
.footer__brand p { color: var(--muted-d); max-width: 36ch; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__h { font: 500 .78rem var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.footer__col a { color: var(--muted-d); transition: color .3s, transform .3s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--text-d); transform: translateX(4px); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 84px 0 0; font-size: .9rem; color: var(--muted-d); }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-d); }
.footer__top-link:hover { color: var(--lime); }
@media (min-width: 700px) { .footer__top { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }

/* ---------- 21. WhatsApp flotante ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-wa); display: flex; align-items: center; gap: 10px; }
.js .wa-float { opacity: 0; transform: translateY(30px) scale(.8); }
.is-ready .wa-float { opacity: 1; transform: none; transition: opacity .8s var(--ease) 2.6s, transform 1s var(--ease) 2.6s; }
.wa-float__btn {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink-950); font-size: 2rem;
  box-shadow: 0 16px 34px -10px rgba(4, 20, 24, .6), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .4s var(--ease);
}
.wa-float__btn::before, .wa-float__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); animation: ring 2.6s ease-out infinite; }
.wa-float__btn::after { animation-delay: 1.3s; }
.wa-float:hover .wa-float__btn { transform: scale(1.08) rotate(-6deg); }
.wa-float__tip {
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink-950); color: var(--text-d); font: 500 .9rem var(--ff-body); white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(4, 20, 24, .6); opacity: 0; transform: translateX(14px); pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.wa-float.show-tip .wa-float__tip, .wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- 22. Visor de imágenes ---------- */
.lb { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--text-d); }
.lb::backdrop { background: rgba(4, 20, 24, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb[open] { animation: lbIn .5s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb__inner { position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 64px 16px 20px; gap: 16px; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.lb__cap { text-align: center; color: #d3e0e2; max-width: 60ch; font-size: .98rem; }
.lb__close, .lb__nav { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 1.3rem; transition: background .3s, color .3s; z-index: 2; }
.lb__close:hover, .lb__nav:hover { background: var(--lime); color: var(--ink-950); }
.lb__close { top: 14px; right: 14px; }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: 10px; }
.lb__nav--next { right: 10px; }

/* ---------- 23. Seguros y accesibilidad ---------- */
/* Si app.js no corre, todo el contenido del hero queda visible */
.js-failed [data-hero], .js-failed .hero__title .line > span, .js-failed .hero__media, .js-failed .wa-float { opacity: 1 !important; transform: none !important; }
.js-failed .measure::after { transform: none !important; }

/* Si el JS no termina, el preloader no debe bloquear el scroll */
@keyframes unlock { to { overflow: auto; } }
html.is-loading { animation: unlock .01s linear 9s forwards; }

@media (min-width: 1100px) {
  .nav__links { display: flex; align-items: center; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
  .nav__bar { padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .wi, .js [data-hero], .js .hero__title .line > span, .js .hero__media, .js .nav, .js .wa-float { opacity: 1; transform: none; }
  .js .measure::after { transform: none; }
  .band__track { animation: none; }
  .hero__panel { clip-path: polygon(0 0, 64% 0, 48% 100%, 0 100%); }
  .edge { stroke-dashoffset: 0; }
  .edge--led { display: none; }
  .has-gsap .statement__text .wi { opacity: 1; }
  .tl__fill { transform: scaleY(1) !important; }
}
