/* =========================================================
   Desatranques Jaén · styles v2 (20261016)
   Paleta: crema, verde profundo y rojo de marca
   ========================================================= */
:root {
  --ink: #0e2a1f;
  --ink-2: #143a2b;
  --ink-3: #1d4d3a;
  --green: #1e8a4c;
  --mint: #5fd0b4;
  --red: #e5372b;
  --red-d: #c52a1f;
  --paper: #ffffff;
  --cream: #f4f1ea;
  --cream-2: #ebe6da;
  --line: #e3ded2;
  --text: #17231d;
  --muted: #56655d;
  --on-dark: #eef4f0;
  --on-dark-muted: #9fb5a9;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.32,.72,0,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 16px; text-wrap: pretty; }
strong { font-weight: 700; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ee08a; animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62,224,138,.6); } 70% { box-shadow: 0 0 0 10px rgba(62,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,138,0); } }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Scroll progress (nivel de agua) ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 150; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 16px/24px var(--font); cursor: pointer;
  transition: transform .5s var(--ease), background .3s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translate(var(--mx, 0), calc(var(--my, 0px) - 2px)); }
.btn:active { transform: scale(.98); }
.btn--sm { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.btn--lg { padding: 16px 32px; }
.btn--red { --bg: var(--red); box-shadow: 0 12px 32px -12px rgba(229,55,43,.8), inset 0 -2px 0 rgba(0,0,0,.15); }
.btn--red:hover { --bg: var(--red-d); box-shadow: 0 16px 40px -12px rgba(229,55,43,.9), inset 0 -2px 0 rgba(0,0,0,.15); }
.btn--dark { --bg: var(--ink); }
.btn--dark:hover { --bg: var(--ink-3); }
.btn--block { width: 100%; }
.magnetic { transform: translate(var(--mx, 0), var(--my, 0)); }

.call-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(229,55,43,.55); animation: ring 2.2s var(--ease) infinite; pointer-events: none;
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(229,55,43,.55); } 80%, 100% { box-shadow: 0 0 0 16px rgba(229,55,43,0); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); font-weight: 600; text-decoration: none; padding: 8px 0; }
.link-arrow span { transition: transform .5s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { color: #fff; }

/* =========================================================
   Header: isla flotante
   ========================================================= */
.header { position: fixed; top: 16px; left: 0; right: 0; z-index: 120; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.island {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(14,42,31,.72); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .7s var(--ease);
}
.header.is-scrolled .island { background: rgba(14,42,31,.9); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.brand__mark { width: 32px; height: 32px; flex: none; transition: transform .7s var(--ease); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__text { display: flex; flex-direction: column; line-height: 16px; }
.brand__text strong { font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.brand__text span { font-size: 12px; color: var(--mint); font-weight: 600; }

.nav { display: flex; gap: 4px; }
.nav a { position: relative; text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: rgba(255,255,255,.8); transition: background .4s var(--ease), color .4s var(--ease); }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.is-current { color: #fff; background: rgba(255,255,255,.14); }

.burger { display: none; position: relative; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 96px 24px 120px;
  background: rgba(10,30,22,.86); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a { color: #fff; text-decoration: none; font-size: 30px; line-height: 36px; font-weight: 700; padding: 8px 0; opacity: 0; transform: translateY(48px); transition: transform .8s var(--ease), opacity .8s var(--ease); }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .1s; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: .15s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .2s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: .25s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .3s; }
.menu-open .menu__nav a:nth-child(6) { transition-delay: .35s; }
.menu__call { display: flex; flex-direction: column; text-decoration: none; color: #fff; padding: 16px 24px; border-radius: 24px; background: var(--red); }
.menu__call span { font-size: 14px; opacity: .85; }
.menu__call strong { font-size: 30px; line-height: 36px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: var(--on-dark);
  overflow: hidden; isolation: isolate;
  padding: 128px 0 96px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.has-3d .hero__canvas { opacity: 1; }
.hero.has-3d .tunnel { opacity: 0; }

/* Respaldo CSS: túnel de anillos */
.tunnel { position: absolute; z-index: 0; top: 50%; left: 70%; width: 0; height: 0; transition: opacity 1s var(--ease); perspective: 600px; }
.tunnel i {
  position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  border: 24px solid rgba(95,208,180,.14);
  box-shadow: inset 0 0 60px rgba(0,0,0,.6);
  animation: tunnel 6s linear infinite;
}
.tunnel i:nth-child(2) { animation-delay: -.75s; } .tunnel i:nth-child(3) { animation-delay: -1.5s; }
.tunnel i:nth-child(4) { animation-delay: -2.25s; } .tunnel i:nth-child(5) { animation-delay: -3s; }
.tunnel i:nth-child(6) { animation-delay: -3.75s; } .tunnel i:nth-child(7) { animation-delay: -4.5s; }
.tunnel i:nth-child(8) { animation-delay: -5.25s; }
@keyframes tunnel { 0% { transform: scale(.04); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* HUD */
.hud { position: absolute; inset: 96px 24px 24px; z-index: 2; pointer-events: none; font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: rgba(191,243,228,.75); font-variant-numeric: tabular-nums; }
.hud__corner { position: absolute; width: 32px; height: 32px; border: 2px solid rgba(191,243,228,.45); }
.hud__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud__top { position: absolute; top: 12px; right: 48px; display: flex; gap: 16px; align-items: center; }
.rec { display: inline-flex; align-items: center; gap: 8px; color: #ff8a80; font-weight: 700; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud__cross { position: absolute; left: 70%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1px solid rgba(191,243,228,.35); border-radius: 50%; }
.hud__cross::before, .hud__cross::after { content: ""; position: absolute; background: rgba(191,243,228,.5); }
.hud__cross::before { left: 50%; top: -16px; bottom: -16px; width: 1px; }
.hud__cross::after { top: 50%; left: -16px; right: -16px; height: 1px; }
.hud__readout { position: absolute; right: 48px; bottom: 16px; display: grid; gap: 8px; padding: 12px 16px; border-radius: 12px; background: rgba(6,20,14,.5); border: 1px solid rgba(191,243,228,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); min-width: 216px; }
.hud__readout div { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hud__readout b { color: #fff; font-weight: 600; }
.hud__readout .ok { color: #7cf0b4; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { width: 4px; background: rgba(255,255,255,.2); border-radius: 1px; height: 100%; transition: background .3s; }
.bars i.on { background: var(--mint); }

.hero__inner { position: relative; z-index: 3; }
.hero__copy { max-width: 680px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 24px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: rise 1s var(--ease) both; }

.hero__title { font-size: 48px; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; margin-bottom: 24px; perspective: 800px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span {
  display: inline-block;
  background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform-origin: 0 100%;
  animation: lineIn 1.1s var(--ease) both;
}
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__title .accent { background: none !important; color: var(--red) !important; -webkit-text-fill-color: var(--red); }
@keyframes lineIn { from { transform: translateY(105%) rotateX(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; filter: blur(8px); } to { transform: none; opacity: 1; filter: none; } }

.hero__lead { font-size: 18px; line-height: 28px; color: rgba(238,244,240,.82); max-width: 560px; margin-bottom: 32px; animation: rise 1s var(--ease) .35s both; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 32px; animation: rise 1s var(--ease) .45s both; }
.hero__proof { font-size: 14px; line-height: 20px; color: var(--on-dark-muted); margin: 0; animation: rise 1s var(--ease) .55s both; }
.hero__proof strong { color: #fff; font-weight: 600; }

.hero__copy-shift { transform: translateY(var(--hy, 0)); opacity: var(--ho, 1); }

.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 24px; width: 24px; height: 40px; margin-left: -12px; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   Reveal (solo si hay JS; red de seguridad incluida)
   ========================================================= */
.js .reveal { opacity: 0; transform: perspective(1000px) translateY(64px) rotateX(12deg); filter: blur(8px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .reveal[data-split] { opacity: 1; transform: none; filter: none; }
/* Si main.js no llega a arrancar, el contenido aparece igualmente a los 2,5 s */
.js:not(.js-ready) .reveal { animation: revealSafe .8s var(--ease) 2.5s forwards; }
@keyframes revealSafe { to { opacity: 1; transform: none; filter: none; } }
.reveal-safe .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }

/* =========================================================
   Secciones comunes
   ========================================================= */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--on-dark); }

.head { max-width: 680px; margin-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.title { font-size: 36px; line-height: 40px; }
.title--md { font-size: 30px; line-height: 36px; margin-bottom: 24px; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); margin: 24px 0 0; }
.head--light .eyebrow { color: #ff7a6f; }

/* ---------- Cifras ---------- */
.stats { background: var(--ink); color: #fff; padding: 0 0 80px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { padding: 24px; border-radius: 24px; background: #143a2b; border: 1px solid rgba(255,255,255,.08); }
.stat > strong { display: flex; align-items: baseline; gap: 4px; font-size: 48px; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.stat > strong small { font-size: 24px; color: var(--mint); }
.stat > span { font-size: 14px; line-height: 20px; color: var(--on-dark-muted); }

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: #fff; padding: 16px 0; overflow: hidden; transform: rotate(-1.5deg) scale(1.04); margin: -12px 0 0; position: relative; z-index: 3; box-shadow: 0 24px 48px -24px rgba(229,55,43,.6); }
.marquee__row { overflow: hidden; }
.marquee__row--rev { background: var(--ink); margin-top: 8px; padding: 8px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 48s; }
.marquee span { font-size: 24px; line-height: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; padding: 0 24px; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee__row--rev span { font-size: 18px; line-height: 28px; color: var(--mint); }
.marquee span::after { content: "●"; font-size: 12px; opacity: .6; margin-left: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas de servicio (tilt 3D) ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; perspective: 1400px; }
.card {
  position: relative; padding: 32px; border-radius: 24px; background: var(--cream); border: 1px solid var(--line);
  transform-style: preserve-3d; overflow: hidden;
  transition: box-shadow .7s var(--ease), background .7s var(--ease);
}
.card:hover { box-shadow: 0 32px 64px -32px rgba(14,42,31,.45); background: #fff; }
.card__num { position: absolute; top: 24px; right: 24px; font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--ink); margin-bottom: 24px; transform: translateZ(40px); transition: background .5s var(--ease), transform .7s var(--spring); }
.card__icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--red); transform: translateZ(56px) rotate(-6deg); }
.card h3 { font-size: 20px; line-height: 28px; margin-bottom: 12px; transform: translateZ(24px); }
.card p { color: var(--muted); margin: 0; transform: translateZ(12px); }
.card__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.7), transparent 50%); mix-blend-mode: soft-light; }
.card:hover .card__glare { opacity: 1; }
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease), box-shadow .7s var(--ease), background .7s var(--ease), opacity .9s var(--ease), filter .9s var(--ease); }
.js .tilt.reveal:not(.is-in) { transform: perspective(1000px) translateY(64px) rotateX(16deg); }
.js .tilt.reveal.is-in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--ease), box-shadow .7s var(--ease), background .7s var(--ease), opacity .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.tilt.is-tilting, .js .tilt.reveal.is-in.is-tilting { transition: transform .12s linear, box-shadow .7s var(--ease), background .7s var(--ease), opacity .9s var(--ease), filter .9s var(--ease); }

/* ---------- Tagline palabra a palabra ---------- */
.tagline { padding: 96px 0; background: var(--paper); }
.tagline__text { max-width: 880px; font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); margin: 0; text-wrap: balance; }
.tagline__text .w { color: rgba(14,42,31,.22); transition: color .8s var(--ease); }
.tagline__text .w.on { color: var(--ink); }
.tagline__text .w.hot.on { color: var(--red); }

/* ---------- Proceso (sticky) ---------- */
.process { background: var(--ink); color: var(--on-dark); position: relative; }
.process__sticky { padding: 96px 0; }
.flow { position: relative; }
.flow__pipe { position: absolute; left: 23px; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.flow__water { position: absolute; inset: 0; background: var(--mint); transform-origin: 50% 0; transform: scaleY(var(--fp, 0)); box-shadow: 0 0 24px var(--mint); }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.fstep { position: relative; padding-left: 80px; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .fstep { opacity: .35; }
.js .fstep.is-on { opacity: 1; }
.fstep__n { position: absolute; left: 0; top: -4px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #143a2b; border: 2px solid rgba(255,255,255,.18); font-weight: 700; font-size: 18px; transition: background .6s var(--ease), border-color .6s var(--ease), transform .7s var(--spring), box-shadow .6s var(--ease); }
.fstep.is-on .fstep__n { background: var(--red); border-color: var(--red); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(229,55,43,.18); }
.fstep h3 { font-size: 24px; line-height: 32px; margin-bottom: 8px; color: #fff; }
.fstep p { color: var(--on-dark-muted); margin: 0; max-width: 420px; }

/* ---------- Monitor de inspección ---------- */
.feature { display: grid; gap: 48px; align-items: center; }
.feature__copy p { color: var(--muted); }
.feature__copy strong { color: var(--text); }
.monitor { max-width: 520px; margin: 0 auto; transform-style: preserve-3d; }
.monitor__screen {
  position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  background: #06140e; border: 12px solid #1b1f1d;
  box-shadow: 0 48px 80px -40px rgba(14,42,31,.7), inset 0 0 80px rgba(0,0,0,.8);
}
.mtunnel { position: absolute; inset: 0; perspective: 400px; }
.mtunnel i { position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; transform: translate(-50%,-50%) scale(.05); border-radius: 50%; border: 18px solid rgba(95,208,180,.35); box-shadow: 0 0 40px rgba(95,208,180,.2), inset 0 0 40px rgba(0,0,0,.7); animation: mt 4.8s linear infinite; }
.mtunnel i:nth-child(2) { animation-delay: -.8s; } .mtunnel i:nth-child(3) { animation-delay: -1.6s; }
.mtunnel i:nth-child(4) { animation-delay: -2.4s; } .mtunnel i:nth-child(5) { animation-delay: -3.2s; } .mtunnel i:nth-child(6) { animation-delay: -4s; }
@keyframes mt { 0% { transform: translate(-50%,-50%) scale(.05); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.3); opacity: 0; } }
.monitor__target { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 2px solid var(--red); border-radius: 50%; animation: target 2s var(--ease) infinite; }
.monitor__target::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: var(--red); }
@keyframes target { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.monitor__tag { position: absolute; font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: #bff3e4; padding: 4px 8px; border-radius: 4px; background: rgba(0,0,0,.45); border: 1px solid rgba(191,243,228,.25); }
.monitor__tag--a { top: 16px; left: 16px; }
.monitor__tag--b { bottom: 16px; right: 16px; color: #ffb4ad; border-color: rgba(229,55,43,.5); }
.monitor__scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px); pointer-events: none; }
.monitor__scan::after { content: ""; position: absolute; left: 0; right: 0; height: 64px; background: linear-gradient(rgba(95,208,180,0), rgba(95,208,180,.12), rgba(95,208,180,0)); animation: scan 3.6s linear infinite; }
@keyframes scan { from { top: -64px; } to { top: 100%; } }
.monitor__base { width: 40%; height: 16px; margin: 0 auto; background: #1b1f1d; border-radius: 0 0 16px 16px; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--cream); font-size: 14px; line-height: 20px; font-weight: 600; }
.checks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8 2.5 2.5 4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- Flota ---------- */
.fleet { padding: 96px 0; background: var(--cream); overflow: hidden; }
.fleet__inner { display: grid; gap: 48px; align-items: center; }
.fleet__copy p { color: var(--muted); }
.fleet__photo { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 48px 80px -40px rgba(14,42,31,.5); }
.fleet__photo img { width: 100%; transform: scale(1.08) translateY(var(--py, 0)); transition: transform .2s linear; }

/* ---------- Clientes ---------- */
.clients { display: grid; gap: 40px; }
.clients__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.clients__list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; border-radius: 16px; border: 1px solid var(--line); transition: background .5s var(--ease), transform .5s var(--ease), border-color .5s var(--ease); }
.clients__list li:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateX(8px); }
.clients__list strong { font-size: 18px; line-height: 28px; }
.clients__list span { font-size: 14px; line-height: 20px; color: var(--muted); transition: color .5s var(--ease); }
.clients__list li:hover span { color: var(--on-dark-muted); }

/* ---------- Credenciales ---------- */
.creds { display: grid; gap: 48px; align-items: center; }
.creds__main p { color: var(--muted); margin-bottom: 32px; }
.creds__badges { display: grid; gap: 12px; perspective: 1200px; }
.badge { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.badge svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--green); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.badge strong { display: block; font-size: 18px; line-height: 28px; }
.badge span { color: var(--muted); font-size: 14px; line-height: 20px; }

/* ---------- Cobertura / buscador ---------- */
.coverage { display: grid; gap: 48px; }
.coverage__copy p { color: var(--muted); }
.bases { display: grid; gap: 12px; margin-top: 32px; }
.base { display: flex; gap: 16px; align-items: center; padding: 16px 24px; border-radius: 16px; background: var(--cream); }
.base strong { display: block; font-size: 18px; line-height: 28px; }
.base span { font-size: 14px; line-height: 20px; color: var(--muted); }
.base__pin { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--red); flex: none; }
.base__pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--red); animation: pin 2s var(--ease) infinite; }
@keyframes pin { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.finder { padding: 24px; border-radius: 24px; background: var(--ink); color: #fff; }
.finder__label { display: block; font-size: 24px; line-height: 32px; font-weight: 700; margin-bottom: 16px; }
.finder__field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: border-color .4s var(--ease), background .4s var(--ease); }
.finder__field:focus-within { border-color: var(--mint); background: rgba(255,255,255,.12); }
.finder__field svg { width: 20px; height: 20px; fill: none; stroke: var(--mint); stroke-width: 20; stroke-linecap: round; flex: none; }
.finder__field input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: 500 16px/24px var(--font); padding: 16px 0; outline: none; }
.finder__field input::placeholder { color: rgba(255,255,255,.5); }
.finder__msg { font-size: 14px; line-height: 20px; color: var(--on-dark-muted); margin: 16px 0; min-height: 40px; }
.finder__msg.yes { color: #7cf0b4; }
.finder__msg.yes a, .finder__msg.no a { color: #fff; font-weight: 700; }
.finder__msg.no { color: #ffd2cd; }
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; max-height: 280px; overflow: auto; scrollbar-width: thin; }
.towns li { font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--spring); }
.towns li.match { background: var(--mint); color: var(--ink); font-weight: 700; transform: scale(1.06); }
.towns li.dim { opacity: .25; }

/* ---------- Banda de urgencia ---------- */
.band { position: relative; background: var(--red); color: #fff; padding: 80px 0; overflow: hidden; }
.band__waves { position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none; }
.band__waves span { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q100 20 200 60 T400 60 T600 60 T800 60 V120 H0Z' fill='%23ffffff' fill-opacity='.08'/%3E%3C/svg%3E") repeat-x 0 0 / 50% 100%; animation: wave 9s linear infinite; }
.band__waves span:nth-child(2) { animation-duration: 13s; animation-direction: reverse; bottom: -16px; }
.band__waves span:nth-child(3) { animation-duration: 17s; bottom: -32px; }
@keyframes wave { to { transform: translateX(-50%); } }
.band__inner { position: relative; display: grid; gap: 40px; align-items: center; }
.band__kicker { font-weight: 600; opacity: .9; }
.band__title { font-size: 30px; line-height: 36px; }
.band__phone { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; padding: 24px 32px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 32px 64px -24px rgba(0,0,0,.4); transition: transform .5s var(--ease); }
.band__phone:hover { transform: translate(var(--mx, 0), calc(var(--my, 0px) - 4px)); }
.band__ring { position: absolute; inset: 0; border-radius: inherit; animation: ring2 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes ring2 { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 80%, 100% { box-shadow: 0 0 0 24px rgba(255,255,255,0); } }
.band__label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .12em; }
.band__num { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; }
.faq__head p { color: var(--muted); }
.faq__head a { color: var(--red); }
.faq__list { display: grid; gap: 8px; }
.faq details { background: #fff; border-radius: 16px; border: 1px solid var(--line); transition: box-shadow .5s var(--ease), border-color .5s var(--ease); }
.faq details[open] { border-color: var(--ink); box-shadow: 0 24px 48px -32px rgba(14,42,31,.5); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; font-weight: 700; font-size: 18px; line-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); font-size: 20px; transition: transform .6s var(--spring), background .4s var(--ease), color .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--red); color: #fff; }
.faq details p { padding: 0 24px 24px; margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact__inner { display: grid; gap: 48px; }
.contact__lead { color: var(--on-dark-muted); font-size: 18px; line-height: 28px; margin: 24px 0 32px; }
.contact .eyebrow { color: #ff7a6f; }
.contact__phone { display: inline-flex; flex-direction: column; text-decoration: none; padding: 24px 32px; border-radius: 24px; background: var(--red); color: #fff; margin-bottom: 16px; box-shadow: 0 32px 64px -24px rgba(229,55,43,.6); }
.contact__phone span { font-size: 14px; line-height: 20px; opacity: .9; }
.contact__phone strong { font-size: 36px; line-height: 40px; letter-spacing: -.02em; white-space: nowrap; }
.contact__mail { display: block; color: var(--on-dark); font-weight: 600; }

.form { display: grid; gap: 16px; padding: 24px; border-radius: 24px; background: #143a2b; border: 1px solid rgba(255,255,255,.08); }
.form__row { display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--on-dark-muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 16px/24px var(--font); color: #fff; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 16px; transition: border-color .4s var(--ease), background .4s var(--ease); }
.form select option { color: #000; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--mint); background: rgba(0,0,0,.35); }
.form .err { display: none; color: #ffb4ad; font-weight: 500; font-size: 12px; line-height: 16px; }
.form label.invalid input { border-color: #ff7a6f; }
.form label.invalid .err { display: block; }
.form__note { font-size: 14px; line-height: 20px; color: var(--on-dark-muted); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: #0a1f17; color: var(--on-dark-muted); padding: 64px 0 120px; }
.footer__inner { display: grid; gap: 32px; }
.footer__brand strong { color: #fff; font-size: 18px; line-height: 28px; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; transition: color .3s var(--ease); }
.footer a:hover { color: #fff; }
.footer__contact a:first-child { color: #fff; font-size: 24px; line-height: 32px; font-weight: 700; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; line-height: 20px; }

/* ---------- Callbar móvil ---------- */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 130;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-size: 16px; line-height: 24px;
  box-shadow: 0 16px 40px -12px rgba(229,55,43,.8), 0 0 0 4px rgba(255,255,255,.9);
}
.callbar strong { font-size: 18px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) { .hud__readout { display: none; } }
@media (max-width: 959px) {
  .nav { display: none; }
  .island { gap: 12px; width: 100%; max-width: 560px; justify-content: space-between; }
  .burger { display: block; }
  .island__call { margin-left: auto; }
  .hero.has-3d .hero__canvas { opacity: .5; }
  .hero__lead { color: #fff; }
  .hud__cross, .tunnel { left: 50%; }
  .hud__cross { top: 30%; }
  .tunnel { top: 30%; }
  .hud__readout { display: none; }
  .hud__top { right: 16px; top: 8px; }
  .hud { inset: 88px 12px 12px; }
}
@media (max-width: 420px) {
  .island__call span { display: none; }
  .island__call { padding: 8px 12px; }
  .brand__text strong { font-size: 12px; }
}
@media (min-width: 640px) {
  .hero__title { font-size: 72px; }
  .title { font-size: 48px; line-height: 1; }
  .title--md { font-size: 36px; line-height: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .tagline__text { font-size: 48px; line-height: 1.05; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .clients__list { grid-template-columns: 1fr 1fr; }
  .band__num { font-size: 48px; line-height: 1; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .callbar { display: none; }
  .footer { padding-bottom: 64px; }
  .hero__title { font-size: 96px; }
  .section { padding: 128px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .tagline { padding: 160px 0; }
  .tagline__text { font-size: 60px; line-height: 1.02; }
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .fleet__inner { grid-template-columns: 5fr 7fr; gap: 64px; }
  .clients { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .creds { grid-template-columns: 1fr 1fr; gap: 80px; }
  .coverage { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .finder { padding: 32px; }
  .towns { max-height: 320px; }
  .band__inner { grid-template-columns: 1fr auto; gap: 64px; }
  .band__title { font-size: 36px; line-height: 40px; }
  .faq { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .contact__inner { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .form { padding: 32px; }

  /* Proceso horizontal anclado */
  .js .process { height: 260vh; }
  .js .process__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0; }
  .flow { padding-top: 24px; }
  .flow__pipe { left: 0; right: 0; top: 47px; bottom: auto; width: auto; height: 4px; }
  .flow__water { transform-origin: 0 50%; transform: scaleX(var(--fp, 0)); }
  .flow__steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .fstep { padding-left: 0; padding-top: 72px; }
  .fstep__n { top: 0; }
  .js .fstep { transform: translateY(24px); }
  .js .fstep.is-on { transform: none; }
}
