/* =============================================================
   OsacMec — styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* fondo: azul profundo, nunca negro puro */
  --bg:        #060E14;
  --bg-2:      #091620;
  --bg-3:      #0D2029;   /* tarjeta */
  --bg-4:      #112A33;

  /* verdes profundos */
  --deep:      #05231F;
  --green:     #157A63;
  --green-2:   #0E4F41;

  /* acento frío tipo hielo */
  --ice:       #7BE7F7;
  --ice-2:     #BDF3FA;
  --ice-dim:   rgba(123, 231, 247, .18);

  /* texto */
  --text:      #E8F3F7;
  --text-2:    #B7CBD4;
  --mute:      #7E97A2;
  --line:      rgba(232, 243, 247, .12);
  --line-2:    rgba(232, 243, 247, .06);

  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp:  "Archivo", "Inter", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --wrap: 1240px;
  --gut: clamp(1.1rem, 4vw, 3rem);
  --radius: 18px;
  --nav-h: 74px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.03; letter-spacing: -0.025em; font-weight: 700; font-family: var(--disp); }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--ice); color: var(--bg); }

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

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ice); color: var(--bg);
  border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker, .sec-kicker {
  font-family: var(--mono);
  font-size: clamp(.66rem, 1.4vw, .74rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ice);
  display: inline-flex; align-items: center; gap: .6rem;
}
.sec-kicker { color: var(--mute); }
.sec-kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--ice); opacity: .7;
}

.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 0 rgba(123,231,247,.6);
  animation: pulseDot 2.6s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(123,231,247,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(123,231,247,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,231,247,0); }
}

/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
em { font-style: normal; }
.hero-title em,
.sec-title em {
  color: var(--ice);
  font-style: normal;
  background: linear-gradient(100deg, var(--ice-2) 0%, var(--ice) 42%, #2FB49F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-title {
  font-size: clamp(2.05rem, 5.2vw, 3.7rem);
  font-variation-settings: "wdth" 100, "wght" 700;
  margin-top: 1rem;
}
.sec-lead {
  margin-top: 1.15rem;
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.09rem);
  max-width: 52ch;
  font-weight: 300;
}
.sec-head { max-width: 44rem; }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head-center .sec-lead { margin-inline: auto; }

/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: .01em;
  position: relative;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft),
              background-color .4s var(--ease-out), color .4s var(--ease-out),
              border-color .4s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(120deg, var(--ice-2), var(--ice) 45%, #35C4B0 100%);
  color: #04161B;
  box-shadow: 0 10px 30px -12px rgba(123,231,247,.55), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -18px rgba(123,231,247,.65), 0 0 0 1px rgba(123,231,247,.35);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(232,243,247,.03);
}
.btn-ghost:hover {
  border-color: rgba(123,231,247,.55);
  color: var(--ice-2);
  transform: translateY(-3px);
}
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .45s var(--ease-out), backdrop-filter .45s var(--ease-out),
              box-shadow .45s var(--ease-out), height .45s var(--ease-out);
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(6, 14, 20, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-2), 0 18px 40px -30px rgba(0,0,0,.9);
}
.nav-inner {
  width: min(100% - (var(--gut) * 2), var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 32px; height: 34px; display: block; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text {
  font-family: var(--disp);
  font-weight: 800; font-size: 1.16rem; letter-spacing: -.03em;
  font-variation-settings: "wdth" 92;
}
.brand-text span { color: var(--ice); }

.nav-links { display: none; gap: 2rem; }
.nav-link {
  position: relative; font-size: .92rem; color: var(--text-2);
  transition: color .35s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--ice); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-phone {
  display: none; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .82rem; color: var(--text-2);
  transition: color .35s var(--ease-out);
}
.nav-phone:hover { color: var(--ice); }
.nav-phone-ico { width: 15px; height: 15px; }
.nav-phone-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.nav-cta { display: none; padding: .68rem 1.2rem; font-size: .85rem; }

.nav-burger {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line);
  display: grid; place-content: center; gap: 5px;
  background: rgba(232,243,247,.03);
}
.nav-burger span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: linear-gradient(180deg, var(--bg-2), var(--deep));
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile nav { display: grid; gap: 1.1rem; text-align: center; }
.nav-mobile a {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 2.6rem); letter-spacing: -.03em;
}
.nav-mobile-wa { color: var(--ice) !important; font-size: 1.1rem !important; margin-top: .8rem; }

/* --- Tarjetas base --- */
.card {
  position: relative;
  background:
    linear-gradient(158deg, rgba(255,255,255,.045), rgba(255,255,255,0) 52%),
    var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column;
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out),
              background-color .5s var(--ease-out), transform .55s var(--ease-soft);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%),
              rgba(123,231,247,.16), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.card:hover { border-color: rgba(123,231,247,.4); }
.card:hover::before { opacity: 1; }
.card-body { position: relative; z-index: 2; padding: clamp(1.3rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card-num {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em;
  color: var(--mute);
}
.card-title { font-size: clamp(1.16rem, 2.1vw, 1.44rem); font-variation-settings: "wght" 700; }
.card-text { color: var(--text-2); font-size: .955rem; font-weight: 300; }
.card-list { display: grid; gap: .4rem; margin-top: .35rem; }
.card-list li {
  position: relative; padding-left: 1.15rem;
  font-size: .89rem; color: var(--mute);
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--ice); opacity: .8; transform: rotate(45deg);
}
.card-ico {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(123,231,247,.14), rgba(21,122,99,.1));
  margin-bottom: .35rem;
}
.card-ico svg { width: 21px; height: 21px; fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-photo { position: relative; z-index: 1; overflow: hidden; }
.card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-soft), filter .6s var(--ease-out);
}
.card:hover .card-photo img { transform: scale(1.06); filter: saturate(1.12) brightness(1.06); }

/* --- Formulario --- */
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 1.5rem .95rem .58rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(6,14,20,.55);
  color: var(--text);
  font: inherit; font-size: .95rem;
  transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 92px; padding-top: 1.5rem; }
.field select { padding: 1.05rem .95rem; appearance: none; color: var(--text-2); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(123,231,247,.6);
  background: rgba(6,14,20,.85);
  box-shadow: 0 0 0 4px rgba(123,231,247,.09);
}
.field label {
  position: absolute; left: .98rem; top: .95rem;
  pointer-events: none; color: var(--mute); font-size: .95rem;
  transition: transform .28s var(--ease-out), font-size .28s var(--ease-out), color .28s;
  transform-origin: left top;
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-.62rem) scale(.74);
  color: var(--ice);
  letter-spacing: .1em; text-transform: uppercase;
}
.field-select { position: relative; }
.field-chevron { position: absolute; right: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }

/* =============================================================
   6. SECCIONES
   ============================================================= */

/* --- Splash --- */
.splash { display: none; }              /* sin JS no hay splash */
.js .splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease-out), clip-path 1s var(--ease-soft);
  animation: splashSafety .01s 4.5s forwards; /* red de seguridad si el JS falla */
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: grid; justify-items: center; gap: .9rem; }
.splash-mark { width: 56px; height: 59px; }
.splash-mark img { width: 100%; height: 100%; object-fit: contain; animation: markBreath 2.8s var(--ease-soft) infinite; }
@keyframes markBreath {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(123,231,247,0)); }
  50%      { transform: scale(1.07); filter: drop-shadow(0 0 18px rgba(123,231,247,.45)); }
}
.splash-word {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .5em;
  color: var(--mute); padding-left: .5em;
}
.splash-line { display: block; width: 130px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.splash-line i { display: block; height: 100%; width: 100%; background: var(--ice); transform: translateX(-100%); animation: loadBar 1.4s var(--ease-out) forwards; }
@keyframes loadBar { to { transform: translateX(0); } }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  /* móvil: anclado arriba. Con flex-end y contenido más alto que la
     pantalla, el navegador desborda por ARRIBA y se come el padding. */
  display: flex; align-items: flex-start;
  padding-top: calc(var(--nav-h) + 1.8rem);
  padding-bottom: 3.2rem;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg picture { display: contents; }
/* 38% conserva el hueco vacío de la izquierda (donde va el texto) al recortar */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; filter: saturate(.95) contrast(1.03); }
@media (max-width: 640px) { .hero-bg img { object-position: 50% 50%; } }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,14,20,.92) 0%, rgba(6,14,20,.6) 32%, rgba(6,14,20,.88) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5,35,31,.75) 0%, rgba(6,14,20,.25) 65%);
}
.hero-mesh {
  position: absolute; inset: -12%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 48% at var(--mesh-x) var(--mesh-y), rgba(123,231,247,.3), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(21,122,99,.24), rgba(123,231,247,.12), rgba(14,79,65,.28), rgba(21,122,99,.24));
  filter: blur(90px) saturate(125%);
  opacity: .62;
  mix-blend-mode: screen;
  animation: meshShift 26s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 26%; --mesh-y: 34%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 72%; --mesh-y: 62%; }
  100% { --mesh-angle: 360deg; --mesh-x: 26%; --mesh-y: 34%; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
.hero-inner {
  width: min(100% - (var(--gut) * 2), var(--wrap));
  margin-inline: auto;
  display: grid; gap: 2.2rem;
  align-items: end;
}
.hero-copy { max-width: 40rem; }
.hero-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 8.8vw, 3rem);
  font-variation-settings: "wdth" 95, "wght" 800;
  letter-spacing: -.035em;
  line-height: 1;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 1.1rem;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 300;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.hero-actions .btn { flex: 1 1 100%; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: .42rem; margin-top: 1.5rem;
}
.hero-badges li {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .04em;
  padding: .42rem .72rem; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6,14,20,.5);
  color: var(--text-2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 999px;
  display: none; place-items: start center; padding-top: 8px; z-index: 3;
}
.hero-scroll span { width: 3px; height: 7px; border-radius: 2px; background: var(--ice); animation: scrollDot 2.1s var(--ease-soft) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* --- Gauge (efecto firma) --- */
.gauge {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(160deg, rgba(13,32,41,.86), rgba(5,35,31,.72));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 40px 80px -50px #000, inset 0 1px 0 rgba(255,255,255,.06);
  width: 100%; max-width: 330px;
  justify-self: start;
}
.gauge-ring { position: relative; display: grid; place-items: center; }
.gauge-ring svg { width: 100%; max-width: 168px; height: auto; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(232,243,247,.09); stroke-width: 9; }
.gauge-fill {
  fill: none; stroke: url(#iceGrad); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 540.35; stroke-dashoffset: 540.35;
  transition: stroke-dashoffset 2.4s var(--ease-out);
  filter: drop-shadow(0 0 12px rgba(123,231,247,.45));
}
.gauge.is-live .gauge-fill { stroke-dashoffset: 118; }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; }
.gauge-value {
  font-family: var(--disp); font-weight: 800;
  font-size: 2.35rem; line-height: 1;
  font-variation-settings: "wdth" 88;
  letter-spacing: -.04em;
  display: inline-flex; align-items: flex-start;
  color: var(--text);
  transition: color .8s var(--ease-out);
}
.gauge.is-live .gauge-value { color: var(--ice-2); }
.gauge-value i { font-size: .45em; font-style: normal; margin-top: .25em; color: var(--ice); }
.gauge-label {
  font-family: var(--mono); font-size: .63rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mute); margin-top: .35rem;
}
.gauge-foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem;
  margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line-2);
  text-align: center;
}
.gauge-foot-k { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.gauge-foot-v { display: block; font-family: var(--disp); font-weight: 700; font-size: 1.22rem; margin-top: .2rem; }
.gauge-foot-v.is-ice { color: var(--ice); }
.gauge-arrow { width: 24px; color: var(--mute); }
.gauge-arrow svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --- Marquee marcas --- */
.marquee-band {
  border-block: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 1.05rem 0;
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: flex; width: max-content; will-change: transform;
  animation: marqueeCss 46s linear infinite;
}
.marquee-set {
  display: inline-flex; align-items: center; gap: 1.6rem; white-space: nowrap;
  padding-right: 1.6rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--mute);
}
.marquee-set b { font-weight: 400; }
.marquee-set i { color: var(--ice); font-style: normal; opacity: .55; }
@keyframes marqueeCss { to { transform: translateX(-50%); } }

/* --- Secciones genéricas --- */
.section { padding: clamp(4.5rem, 11vw, 8.5rem) 0; position: relative; }
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

/* --- Bento servicios --- */
.bento { display: grid; gap: clamp(.8rem, 1.4vw, 1.1rem); margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.card-xl .card-photo { aspect-ratio: 16 / 9; }
.card-lg .card-photo { aspect-ratio: 16 / 9; }

/* --- Proceso --- */
.process { background: var(--bg-2); }
.process-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.process-figure {
  margin-top: 2.4rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); position: relative;
}
.process-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.process-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.1rem .9rem;
  background: linear-gradient(0deg, rgba(6,14,20,.95), transparent);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--text-2);
}
.steps { position: relative; padding-left: 2.6rem; display: grid; gap: clamp(2rem, 4vw, 3.2rem); }
.steps-line {
  position: absolute; left: 13px; top: .5rem; bottom: .5rem; width: 3px;
  background: var(--line); border-radius: 3px; overflow: hidden;
}
.steps-line i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--ice), #2FB49F);
  box-shadow: 0 0 14px rgba(123,231,247,.6);
  transform: scaleY(var(--p, 0)); transform-origin: top;
  transition: transform .9s var(--ease-soft);
}
.steps.is-drawn .steps-line i { --p: 1; }
.steps.is-scrubbed .steps-line i { transition: none; }
.step { position: relative; }
.step-num {
  position: absolute; left: -2.6rem; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .04em;
  color: var(--bg); background: var(--ice);
  box-shadow: 0 0 0 5px var(--bg-2), 0 0 22px rgba(123,231,247,.45);
}
.step-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.step-body p { margin-top: .7rem; color: var(--text-2); font-weight: 300; max-width: 46ch; }
.step-tag {
  display: inline-block; margin-top: .9rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  color: var(--ice); border: 1px dashed rgba(123,231,247,.35);
  padding: .32rem .7rem; border-radius: 999px;
}

/* --- Cifras --- */
.stats-band {
  border-block: 1px solid var(--line-2);
  background:
    radial-gradient(70% 140% at 50% 0%, rgba(21,122,99,.22), transparent 70%),
    var(--deep);
  padding: clamp(2.6rem, 6vw, 4rem) 0;
}
.stats { display: grid; gap: 2rem 1.5rem; text-align: center; }
.stat-num {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-variation-settings: "wdth" 88;
  letter-spacing: -.04em;
  color: var(--ice-2);
  display: inline-flex; align-items: baseline;
}
.stat-num i { font-style: normal; font-size: .5em; color: var(--ice); margin-left: .12em; }
.stat-lbl { display: block; margin-top: .5rem; color: var(--mute); font-size: .87rem; }

/* --- Reseñas --- */
.reviews { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.review-grid { display: grid; gap: clamp(1rem, 1.8vw, 1.3rem); margin-top: clamp(2.5rem, 5vw, 3.6rem); }
.review {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,0) 55%), var(--bg-3);
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .5s var(--ease-out), transform .55s var(--ease-soft);
}
.review:hover { border-color: rgba(123,231,247,.32); transform: translateY(-4px); }
.review::after {
  content: "”"; position: absolute; right: 1.1rem; top: .1rem;
  font-family: var(--disp); font-size: 5rem; line-height: 1; color: var(--ice); opacity: .12;
}
.review-stars { color: var(--ice); letter-spacing: .16em; font-size: .84rem; }
.review blockquote p { color: var(--text-2); font-weight: 300; font-size: .97rem; }
.review figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: .4rem; }
.review-avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--ice);
  background: linear-gradient(150deg, rgba(123,231,247,.16), rgba(21,122,99,.14));
  border: 1px solid rgba(123,231,247,.28);
}
.review figcaption strong { display: block; font-size: .92rem; }
.review figcaption small { color: var(--mute); font-size: .78rem; }

/* --- Contacto --- */
/* ⚠️ clip, no hidden: 'hidden' rompería el position:sticky del formulario */
.contact { background: var(--bg); overflow: clip; }
.contact-halo {
  position: absolute; inset: -40% -10% 10% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 34% at 30% 40%, rgba(123,231,247,.16), transparent 72%),
              radial-gradient(38% 30% at 78% 66%, rgba(21,122,99,.2), transparent 72%);
  filter: blur(110px);
}
.contact-grid { position: relative; z-index: 1; display: grid; gap: clamp(2.4rem, 5vw, 4rem); align-items: start; }
.wa-block {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2rem; padding: 1.05rem 1.2rem;
  border-radius: 16px; border: 1px solid rgba(123,231,247,.28);
  background: linear-gradient(120deg, rgba(21,122,99,.22), rgba(123,231,247,.08));
  transition: transform .45s var(--ease-soft), border-color .4s, box-shadow .45s;
}
.wa-block:hover { transform: translateY(-3px); border-color: rgba(123,231,247,.6); box-shadow: 0 22px 46px -26px rgba(123,231,247,.5); }
.wa-ico { width: 38px; height: 38px; color: var(--ice); flex: none; }
.wa-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.wa-txt strong { display: block; font-size: .98rem; }
.wa-txt small { color: var(--text-2); font-family: var(--mono); font-size: .8rem; }
.wa-go { margin-left: auto; color: var(--ice); font-size: 1.2rem; }

.info { display: grid; gap: 1.4rem; margin-top: 2rem; }
.info dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.info dd { margin: .35rem 0 0; color: var(--text-2); font-weight: 300; }
.contact-photo { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.contact-form-wrap { position: relative; }
.cta-form {
  display: grid; gap: .8rem;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(13,32,41,.9), rgba(5,35,31,.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 50px 100px -60px #000;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft);
}
.cta-form.is-sent { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.form-head { font-family: var(--disp); font-weight: 700; font-size: 1.25rem; margin-bottom: .3rem; }
.form-note { font-size: .78rem; color: var(--mute); text-align: center; }
.btn-submit { width: 100%; margin-top: .4rem; position: relative; }
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(4,22,27,.3); border-top-color: #04161B;
  border-radius: 50%; animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check { width: 24px; margin: auto; }
.cta-form-check path {
  stroke: #04161B; stroke-width: 2.4; fill: none; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .6s var(--ease-out);
}
.cta-form.is-done .cta-form-check { opacity: 1; }
.cta-form.is-done .cta-form-check path { stroke-dashoffset: 0; }

.cta-success {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-40%);
  text-align: center;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 22px;
  border: 1px solid rgba(123,231,247,.3);
  background: linear-gradient(165deg, rgba(13,32,41,.96), rgba(5,35,31,.92));
  opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease-out) .2s, transform .8s var(--ease-soft) .2s;
}
.cta-success.is-visible { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.cta-success-ico { width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(123,231,247,.4); }
.cta-success-ico svg { width: 24px; fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linecap: round; }
.cta-success h3 { font-size: 1.7rem; }
.cta-success p { color: var(--text-2); margin-top: .5rem; margin-bottom: 1.3rem; font-weight: 300; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--line-2); background: var(--bg-2); padding-top: clamp(2.6rem, 6vw, 4rem); }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand { display: flex; align-items: flex-start; gap: .85rem; }
.footer-brand p { color: var(--mute); font-size: .87rem; line-height: 1.7; }
.footer-brand strong { color: var(--text); font-family: var(--disp); font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; }
.footer-links a, .footer-contact a { color: var(--text-2); font-size: .88rem; transition: color .35s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--ice); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--mono); font-size: .82rem; }
.footer-bottom {
  margin-top: clamp(2rem, 5vw, 3rem); padding: 1.2rem 0;
  border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .77rem; color: var(--mute);
}
.footer-made { color: var(--ice); opacity: .75; }

/* --- WhatsApp flotante --- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #25D366, #128C7E);
  color: #04161B;
  box-shadow: 0 16px 34px -14px rgba(37,211,102,.6), 0 0 0 6px rgba(37,211,102,.09);
  transition: transform .45s var(--ease-bounce), box-shadow .45s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* =============================================================
   7. EFECTOS
   ============================================================= */

/* Reveal on scroll — solo se oculta si hay JS para volver a mostrarlo */
.js [data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* defensa: si algo lleva reveal + split, que nunca quede invisible */
.js [data-reveal][data-split] { opacity: 1; transform: none; }

/* Split text (hero) */
.split-word { display: inline-block; will-change: transform, opacity; }

/* Tilt 3D */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .18s; }

/* Escarcha (frost) al pasar el cursor */
.card-frost {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .55s var(--ease-out);
  border-radius: inherit;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(189,243,250,.75), transparent),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(189,243,250,.6), transparent),
    radial-gradient(2px 2px at 34% 82%, rgba(189,243,250,.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 68%, rgba(189,243,250,.65), transparent),
    radial-gradient(1.5px 1.5px at 56% 44%, rgba(189,243,250,.45), transparent),
    radial-gradient(2px 2px at 20% 60%, rgba(189,243,250,.4), transparent),
    linear-gradient(160deg, rgba(123,231,247,.1), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(123,231,247,.28), inset 0 0 34px rgba(123,231,247,.12);
}
.card:hover .card-frost { opacity: 1; }

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
@media (min-width: 540px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-title { font-size: clamp(2.4rem, 7vw, 3.4rem); }
}

@media (min-width: 720px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-xl { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
  .wa-float { right: 1.5rem; bottom: 1.5rem; width: 58px; height: 58px; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .hero-scroll { display: grid; }
  .hero {
    align-items: flex-end;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: clamp(3rem, 8vh, 6rem);
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    align-items: end; gap: clamp(2.5rem, 5vw, 4rem);
  }
  .hero-title { font-size: clamp(2.8rem, 5.6vw, 4.6rem); margin-top: 1.2rem; }
  .hero-sub { font-size: 1.12rem; margin-top: 1.5rem; }
  .hero-actions { gap: .8rem; margin-top: 2.1rem; }
  .hero-badges { gap: .5rem .55rem; margin-top: 2rem; }
  .gauge { justify-self: end; padding: 1.5rem 1.6rem; }
  .gauge-ring svg { max-width: 220px; }
  .gauge-value { font-size: 3.2rem; }
  .gauge-foot { margin-top: 1.1rem; padding-top: 1.1rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .contact-form-wrap { position: sticky; top: 100px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr auto; }

  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(210px, auto); }
  .card-xl { grid-column: span 7; grid-row: span 2; }
  .card-md:nth-of-type(2) { grid-column: span 5; }
  .card-md:nth-of-type(3) { grid-column: span 5; }
  .card-md:nth-of-type(4) { grid-column: span 4; }
  .card-md:nth-of-type(5) { grid-column: span 4; }
  .card-lg { grid-column: span 4; }
  .card-xl .card-photo { aspect-ratio: auto; flex: 1 1 auto; min-height: 190px; }
}

@media (min-width: 1280px) {
  .nav-phone { display: inline-flex; }
  .hero-title { font-size: clamp(3rem, 5.6vw, 5.2rem); }
}

/* =============================================================
   9. REDUCED MOTION — solo lo intrusivo
   (los micro-efectos siguen vivos: hover, tilt, fades, mesh)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kicker-dot { animation: none; }
  .hero-scroll span { animation: none; }
  .splash-mark svg { animation: none; }
  .marquee-track { animation: none; }
}
