/* ============================================================================
   AUTOMIND PROJECT — styles.css
   Tecnológico-futurista oscuro · acentos teal
   Orden: 1 Tokens · 2 Reset · 3 Utils · 4 Tipografía · 5 Componentes
          6 Secciones · 7 Efectos · 8 Responsive · 9 Reduced-motion
   ============================================================================ */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Paleta */
  --bg:        #0A0A0F;
  --bg-2:      #0c0c14;
  --ink-1:     #1A1A2E;
  --ink-2:     #16213E;
  --teal:      #52cab7;
  --teal-dim:  #3a9488;
  --teal-glow: rgba(82, 202, 183, 0.55);
  --ice:       #E8F4F3;

  --text:      #cdd9d7;
  --muted:     #7e8c93;
  --line:      rgba(232, 244, 243, 0.10);
  --line-soft: rgba(232, 244, 243, 0.055);
  --card:      rgba(255, 255, 255, 0.022);
  --card-2:    rgba(255, 255, 255, 0.04);

  /* Tipografías */
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --sans:    "Inter", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* Métrica */
  --nav-h: 76px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 1320px;
  --radius: 18px;

  /* Easings */
  --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);
}

/* =============================================================
   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;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

/* Velo de profundidad de fondo (encima del canvas de partículas) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(82, 202, 183, 0.10), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(22, 33, 62, 0.55), transparent 60%),
    var(--bg);
  pointer-events: none;
}

/* Las secciones ancladas quedan justo debajo del nav fijo (funciona aun sin JS) */
section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

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; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; font-family: var(--display); font-weight: 700; }

::selection { background: var(--teal); color: #04221e; }

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

/* Cursor nativo oculto solo cuando el personalizado está activo */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button { cursor: none; }

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ice); color: var(--bg);
  z-index: 99999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.text-accent { color: var(--teal); }

.section-kicker {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--ice);
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.section-title-center { margin-inline: auto; text-align: center; max-width: 24ch; }

.section-watermark {
  position: absolute;
  top: clamp(-1rem, 1vw, 1.5rem);
  right: var(--gutter);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 18rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 244, 243, 0.05);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* DEFENSIVO: un .reveal que también es texto dividido NUNCA queda invisible */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. TIPOGRAFÍA AUXILIAR / split text
   ============================================================= */
.split-word { display: inline-block; will-change: transform; }
[data-split] { }

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

/* --- Botones ---
   --mx / --my: desplazamiento "magnético" hacia el cursor (lo setea el JS). */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.01em;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .4s var(--ease-out), background .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  white-space: nowrap;
}
.btn svg { transition: transform .4s var(--ease-out); }
.btn-primary {
  background: var(--teal);
  color: #04221e;
  box-shadow: 0 0 0 0 var(--teal-glow);
}
.btn-primary:hover {
  background: #62d8c4;
  box-shadow: 0 14px 40px -12px var(--teal-glow);
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px));
}
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); }
.btn-block { width: 100%; justify-content: center; margin-top: .4rem; }

/* =============================================================
   SPLASH  (doble red de seguridad)
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg);
  /* Red de seguridad CSS: se oculta sí o sí a los 4.5s aunque el JS falle */
  animation: splashSafety .01s 4.5s forwards;
}
/* El splash solo se muestra la primera vez por visita (lo marca el script del head) */
.no-splash .splash { display: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.splash-word { display: flex; gap: .06em; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 9vw, 4.4rem); color: var(--ice); letter-spacing: 0.04em; }
.splash-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: splashLetter .5s var(--ease-out) forwards;
}
.splash-word span:nth-child(1) { animation-delay: .05s; }
.splash-word span:nth-child(2) { animation-delay: .12s; }
.splash-word span:nth-child(3) { animation-delay: .19s; }
.splash-word span:nth-child(4) { animation-delay: .26s; }
.splash-word span:nth-child(5) { animation-delay: .33s; }
.splash-word span:nth-child(6) { animation-delay: .40s; }
.splash-word span:nth-child(7) { animation-delay: .47s; }
.splash-word span:nth-child(8) { animation-delay: .54s; }
.splash-bar { width: min(220px, 50vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-dim), var(--teal), var(--ice)); animation: splashLoad 1.8s var(--ease-soft) .2s forwards; }
.splash.is-out { opacity: 0; pointer-events: none; transform: scale(1.02); clip-path: inset(0 0 100% 0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), clip-path .8s var(--ease-out); }

@keyframes splashLetter {
  0%   { opacity: 0; transform: translateY(0.5em); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  62%  { transform: translateY(-0.02em) translateX(0.04em); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes splashLoad { to { width: 100%; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; clip-path: inset(0 0 100% 0); } }

/* =============================================================
   CURSOR personalizado
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor-ring {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .3s var(--ease-out);
}
.cursor.is-hover .cursor-ring {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  background: rgba(82, 202, 183, 0.12);
}
.cursor-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ice);
  opacity: 0;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-hover .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* =============================================================
   MARCA LATERAL FIJA
   ============================================================= */
.side-brand {
  position: fixed;
  right: 18px; top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 60;
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .26em;
  color: var(--muted);
  pointer-events: none;
}
.side-brand-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 var(--teal-glow);
  animation: pulseDot 2.4s var(--ease-soft) infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
  50%      { box-shadow: 0 0 0 7px rgba(82, 202, 183, 0); }
}

/* =============================================================
   PARTÍCULAS (canvas global)
   ============================================================= */
.particles {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ice); }
.nav-logo-mark { width: 34px; height: 34px; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nlt-1 { font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em; color: var(--ice); }
.nlt-2 { font-family: var(--mono); font-weight: 400; font-size: .56rem; letter-spacing: 0.4em; color: var(--teal); margin-top: 3px; }

.nav-end { display: flex; align-items: center; gap: .7rem; }
.nav-theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--ice);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), background .3s var(--ease-out);
}
.nav-theme:hover { border-color: var(--teal); color: var(--teal); }
.nav-theme .ic-moon { display: none; }
.nav-theme .ic-sun { display: inline-flex; }
[data-theme="light"] .nav-theme .ic-sun { display: none; }
[data-theme="light"] .nav-theme .ic-moon { display: inline-flex; }

.nav-links { display: none; align-items: center; gap: clamp(.5rem, 2vw, 1.9rem); }
.nav-links a {
  position: relative;
  font-size: .9rem; font-weight: 500;
  color: var(--text);
  display: inline-flex; align-items: baseline; gap: .35rem;
  transition: color .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ice); }
.nav-num { font-family: var(--mono); font-size: .6rem; color: var(--teal); opacity: .8; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 1px; width: 0; background: var(--teal);
  transition: width .35s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
/* Scrollspy: link de la sección visible */
.nav-links a.is-active { color: var(--ice); }
.nav-links a.is-active::after { width: 100%; }
.nav-mobile a.is-active { color: var(--teal); }

.nav-cta {
  display: none;
  align-items: center; gap: .5rem;
  padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--teal); color: #04221e;
  font-family: var(--display); font-weight: 600; font-size: .88rem;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
}
.nav-cta:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); box-shadow: 0 12px 30px -12px var(--teal-glow); background: #62d8c4; }
.nav-cta svg { transition: transform .35s var(--ease-out); }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 11px;
}
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ice); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .25s var(--ease-out); }
.nav.is-menu-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-menu-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menú móvil desplegable */
.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem var(--gutter) 2rem;
  display: grid; gap: .35rem;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav.is-menu-open .nav-mobile { opacity: 1; transform: none; pointer-events: auto; }
.nav-mobile a {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .85rem .2rem; border-bottom: 1px solid var(--line-soft);
  font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--ice);
}
.nav-mobile a .nav-num { font-size: .7rem; }
.nav-mobile .nav-mobile-cta { margin-top: 1rem; border: 0; justify-content: center; }

/* =============================================================
   6. SECCIONES
   ============================================================= */
main { position: relative; z-index: 1; }

section { position: relative; }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem;
  overflow: hidden;
}
.hero-blueprint {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 30% 30%, #000 30%, transparent 80%);
  opacity: .7;
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -10vw; top: -10vw;
  background: radial-gradient(circle, var(--teal-glow), transparent 62%);
  filter: blur(90px); opacity: .35;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; }
.hero-kicker { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.8rem; }
.hero-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.hero-title {
  font-size: clamp(2.6rem, 8.5vw, 7rem);
  line-height: 0.98;
  color: var(--ice);
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero-title-offset { display: block; padding-left: clamp(0px, 8vw, 2.6em); color: var(--teal); }
.hero-slogan { margin-top: 2rem; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--text); max-width: 38ch; font-weight: 400; }
.hero-ctas { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 1.8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero-scroll svg { animation: bob 2s var(--ease-soft) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* --- MARQUEE --- */
.marquee { overflow: hidden; width: 100%; }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-tech {
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  background: rgba(255,255,255,0.012);
}
.marquee-tech .marquee-track span { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.8rem); color: var(--ice); padding-inline: 1.4rem; letter-spacing: -0.02em; }
.marquee-tech .marquee-track i { color: var(--teal); font-style: normal; font-size: 1rem; }

/* --- ABOUT (01) --- */
.about { padding: clamp(5rem, 12vw, 9rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.about-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.about-main { max-width: 60ch; }
.about-lead { font-size: clamp(1.15rem, 2.3vw, 1.5rem); color: var(--ice); margin: 1.8rem 0 1.4rem; line-height: 1.45; font-weight: 400; }
.about-text { color: var(--text); margin-bottom: 2rem; }
.about-text strong { color: var(--ice); }
.about-signature { display: inline-flex; align-items: center; gap: 1rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.about-sign-line { width: 52px; height: 1px; background: var(--teal); }

.about-aside {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--bg); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.fact-value { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--teal); line-height: 1; letter-spacing: -0.03em; }
.fact-label { font-size: .82rem; color: var(--muted); }

/* --- SERVICIOS (02) --- */
.services { padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 6rem); position: relative; z-index: 3; background: var(--bg); }
.services-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem;
  padding-inline: var(--gutter); max-width: var(--maxw); margin: 0 auto clamp(2.2rem, 5vw, 3.4rem);
}
.services-title { font-size: clamp(1.8rem, 4.5vw, 3rem); color: var(--ice); }
.services-progress { font-family: var(--mono); font-size: .9rem; color: var(--muted); letter-spacing: .1em; }
.services-progress span[data-progress] { color: var(--teal); font-size: 1.2rem; }
.services-progress i { font-style: normal; opacity: .5; margin-inline: .2rem; }
.services-side { display: flex; align-items: center; gap: 1.4rem; }
.services-nav { display: none; gap: .6rem; }
.svc-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ice);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.svc-arrow:hover { border-color: var(--teal); color: var(--teal); }
@media (min-width: 960px) { .services-nav { display: flex; } }

/* Carrusel horizontal nativo con snap (todos los tamaños; flechas en desktop) */
.services-pin {
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.services-pin::-webkit-scrollbar { display: none; }
.services-track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  width: max-content;
  padding-inline: var(--gutter);
  padding-block: 1rem 1.4rem;
}
.svc-card {
  --accent: var(--teal);
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(82vw, 420px);
  min-height: 420px;
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  position: relative;
  overflow: hidden;
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.svc-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-4px); }
.svc-card:hover::before { opacity: 1; }
/* Acento por tarjeta, adaptable al tema (en claro, "ice" pasa a tinta oscura legible) */
.svc-card[data-accent="teal"] { --accent: var(--teal); }
.svc-card[data-accent="ice"]  { --accent: var(--ice); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.svc-badge { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; color: var(--muted); padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; }
.svc-icon { color: var(--accent); width: 56px; height: 56px; }
.svc-icon svg { width: 100%; height: 100%; }
.svc-path { transition: stroke-dashoffset 1.2s var(--ease-out); }
.svc-name { font-size: clamp(1.3rem, 3vw, 1.65rem); color: var(--ice); margin-bottom: .5rem; }
.svc-subtitle { font-family: var(--mono); font-size: .82rem; color: var(--accent); margin-bottom: 1.3rem; letter-spacing: .01em; }
.svc-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
.svc-list li { position: relative; padding-left: 1.2rem; font-size: .92rem; color: var(--text); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.svc-desc { margin-top: auto; font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* --- PROCESO (03) --- */
.process { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; position: relative; }
.process-head { margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.process-steps { display: grid; gap: 2.4rem; position: relative; list-style: none; padding: 0; }
.process-step { position: relative; padding-left: 2.1rem; }
/* Punto teal de cada paso */
.process-step::after {
  content: ""; position: absolute; left: 0; top: .4rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal);
  transform: scale(0);
  transition: transform .5s var(--ease-bounce);
}
.process-step.is-visible::after { transform: scale(1); }
/* Línea que conecta los pasos (vertical en móvil) y se "dibuja" al entrar */
.process-step::before {
  content: ""; position: absolute; left: 4px; top: 1.3rem; bottom: -2rem;
  width: 1px; background: var(--line);
  transform: scaleY(0); transform-origin: top;
  transition: transform .9s var(--ease-out) .25s;
}
.process-step.is-visible::before { transform: none; }
.process-step:last-child::before { display: none; }
/* Reveal escalonado */
.process-step:nth-child(2) { transition-delay: .12s; }
.process-step:nth-child(3) { transition-delay: .24s; }
.process-step:nth-child(4) { transition-delay: .36s; }
.ps-num { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; color: var(--teal); display: block; margin-bottom: .55rem; }
.ps-title { font-size: clamp(1.2rem, 2.6vw, 1.45rem); color: var(--ice); margin-bottom: .55rem; }
.ps-text { font-size: .93rem; color: var(--text); max-width: 34ch; }

/* --- CLIENTES + TECNOLOGÍAS (franja sin número) --- */
.clients { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.clients-head { padding-inline: var(--gutter); max-width: var(--maxw); margin: 0 auto clamp(2.5rem, 5vw, 3.6rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.clients-lead { color: var(--text); max-width: 56ch; margin-top: 1.3rem; }
.marquee-clients {
  border-block: 1px solid var(--line);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  background: rgba(255,255,255,0.014);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-clients .marquee-track { gap: clamp(2.5rem, 6vw, 5rem); }
/* Logos de clientes en "chip" claro: se leen en modo claro y oscuro */
.client-logo {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: 16px; min-height: 92px;
  background: #ffffff; border: 1px solid rgba(11, 33, 30, 0.08);
  box-shadow: 0 12px 34px -20px rgba(0, 0, 0, 0.7);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.client-logo:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.75); }
.client-logo img { height: 48px; width: auto; display: block; }
.client-logo-text { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #16213E; letter-spacing: -0.02em; white-space: nowrap; }

/* Pocos clientes: centrado, sin scroll infinito */
.marquee-clients.is-static { -webkit-mask-image: none; mask-image: none; }
.marquee-clients.is-static .marquee-track { width: auto; justify-content: center; gap: 1.4rem; padding-inline: var(--gutter); flex-wrap: wrap; }

/* Franja de tecnologías (debajo de clientes) */
.tools { margin-top: clamp(2rem, 5vw, 3.2rem); }
.tools-label { text-align: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.marquee-tools {
  padding-block: .9rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-tools .marquee-track span { font-family: var(--mono); font-size: .92rem; color: var(--text); padding-inline: 1.3rem; white-space: nowrap; }
.marquee-tools .marquee-track i { color: var(--teal); font-style: normal; font-size: .65rem; opacity: .7; }

/* --- TESTIMONIOS (04) --- */
.testimonials { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; position: relative; }
.testimonials-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.testi-stage { position: relative; min-height: 340px; display: grid; }
.testi-card {
  grid-area: 1 / 1;
  max-width: 760px; margin-inline: auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  opacity: 0; visibility: hidden;
  transform: translateY(18px) scale(.99);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility .6s;
  pointer-events: none;
}
@supports (backdrop-filter: blur(10px)) {
  .testi-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.testi-card.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; position: relative; }
.testi-stars { display: flex; gap: .25rem; color: var(--teal); margin-bottom: 1.4rem; }
.testi-quote { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2.5vw, 1.6rem); color: var(--ice); line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 1.8rem; }
.testi-person { display: flex; align-items: center; gap: .85rem; }
.testi-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-meta { text-align: left; }
.testi-name { font-family: var(--display); font-weight: 600; color: var(--ice); font-size: .98rem; }
.testi-company { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .05em; }

.testi-controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2.2rem; }
.testi-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ice); transition: border-color .3s var(--ease-out), color .3s var(--ease-out), background .3s var(--ease-out); }
.testi-arrow:hover { border-color: var(--teal); color: var(--teal); }
.testi-dots { display: flex; gap: .5rem; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s var(--ease-out), width .3s var(--ease-out); }
.testi-dot.is-active { background: var(--teal); width: 22px; border-radius: 4px; }

/* --- CASOS (05) --- */
.cases { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; position: relative; }
.cases-head { margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.cases-grid { display: grid; gap: 1.4rem; perspective: 1200px; }
.case-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out);
  will-change: transform;
}
.case-card-bg { position: absolute; inset: 0; z-index: 0; }
.case-card-bg img { width: 100%; height: 100%; object-fit: cover; }
.case-card-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,15,0.25) 0%, rgba(10,10,15,0.55) 45%, rgba(10,10,15,0.92) 100%); }
.case-card > * { position: relative; z-index: 2; transform: translateZ(28px); }
.case-card:hover { border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.case-cat { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .8rem; }
.case-title { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ice); margin-bottom: .9rem; }
.case-problem { font-size: .9rem; color: var(--text); margin-bottom: .7rem; }
.case-result { font-size: .92rem; color: var(--ice); }
.case-result strong, .case-problem strong { color: var(--teal); }
.case-result-label, .case-problem-label { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .25rem; }
.cases-more { margin-top: 2.4rem; }

/* --- FAQ (05) --- */
.faq { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; position: relative; }
.faq-head { margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.faq-list { max-width: 820px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: .85rem;
  overflow: hidden;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.faq-item[open] { border-color: color-mix(in srgb, var(--teal) 45%, transparent); background: var(--card-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ice); }
.faq-icon { font-family: var(--mono); font-size: 1.35rem; line-height: 1; color: var(--teal); flex: 0 0 auto; transition: transform .35s var(--ease-out); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.35rem 1.3rem; color: var(--text); font-size: .95rem; max-width: 68ch; }
.faq-item[open] .faq-a { animation: faqIn .45s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- CONSULTA (06) --- */
.consult { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; position: relative; }
.consult-grid { display: grid; gap: clamp(2.2rem, 5vw, 4rem); }
.consult-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ice); max-width: 18ch; margin-bottom: 2.4rem; }
.consult-form { display: grid; gap: 1.5rem; max-width: 560px; }
.field { position: relative; display: grid; gap: .5rem; padding-left: 2.6rem; }
.field-num { position: absolute; left: 0; top: .1rem; font-family: var(--mono); font-size: .8rem; color: var(--teal); }
.field label { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--ice); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  color: var(--ice);
  font-family: var(--sans); font-size: .98rem;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal);
  background: rgba(82,202,183,0.05);
  box-shadow: 0 0 0 3px rgba(82,202,183,0.12);
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #e06a6a; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem; }
.select-caret { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--teal); pointer-events: none; }
.consult-alt { display: inline-block; margin-top: .4rem; font-family: var(--mono); font-size: .82rem; color: var(--teal); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease-out); width: fit-content; }
.consult-alt:hover { border-bottom-color: var(--teal); }

.consult-side { align-self: start; }
.consult-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--card);
  position: relative; overflow: hidden;
}
@supports (backdrop-filter: blur(12px)) {
  .consult-card { background: rgba(255,255,255,0.035); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.consult-card::after { content: ""; position: absolute; right: -30%; top: -40%; width: 80%; height: 80%; background: radial-gradient(circle, var(--teal-glow), transparent 65%); filter: blur(60px); opacity: .3; pointer-events: none; }
.consult-card-title { font-size: 1.25rem; color: var(--ice); margin-bottom: 1.3rem; }
.consult-perks { display: grid; gap: .85rem; }
.consult-perks li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--text); }
.consult-perks strong { color: var(--ice); }
.perk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); flex: 0 0 auto; }
.consult-sep { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.consult-contact { display: grid; gap: .2rem; }
.consult-contact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); transition: padding-left .3s var(--ease-out); }
.consult-contact-row:hover { padding-left: .4rem; }
.cc-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cc-value { color: var(--ice); font-size: .95rem; text-align: right; }
.consult-loc { margin-top: 1.4rem; font-size: .82rem; color: var(--muted); }

/* Honeypot anti-spam (oculto a la vista) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Mensaje de éxito del formulario */
.consult-success { display: none; flex-direction: column; align-items: flex-start; gap: .9rem; max-width: 560px; padding: 2rem; border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.consult-success.is-shown { display: flex; }
.consult-success-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #04221e; }
.consult-success h3 { font-size: 1.4rem; color: var(--ice); }
.consult-success p { color: var(--text); }
.consult-success a { color: var(--teal); border-bottom: 1px solid transparent; }
.consult-success a:hover { border-bottom-color: var(--teal); }
.consult-form.is-hidden { display: none; }

/* Estado del botón mientras se envía el correo */
.btn.is-loading { opacity: .65; cursor: progress; pointer-events: none; }

/* Mensaje de error si el envío falla */
.consult-error { margin: -.4rem 0 0; font-size: .95rem; color: #fca5a5; }
.consult-error a { color: var(--teal); border-bottom: 1px solid transparent; }
.consult-error a:hover { border-bottom-color: var(--teal); }

/* Botón flotante de WhatsApp */
.wa-fab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #ffffff;
  box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.6);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .35s var(--ease-out);
}
/* Se esconde en la sección de consulta / footer (ahí ya todo es WhatsApp) */
.wa-fab.is-hidden { opacity: 0; transform: scale(.4); pointer-events: none; }
.wa-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 46px -10px rgba(37, 211, 102, 0.78); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: waPulse 2.4s var(--ease-soft) infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* --- FOOTER --- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vw, 6rem); padding-bottom: 2rem; background: linear-gradient(180deg, transparent, rgba(22,33,62,0.25)); }
.footer-marquee { overflow: hidden; padding-block: clamp(1.5rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.footer-marquee-track { display: flex; align-items: center; width: max-content; }
.footer-marquee-track span { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 9rem); color: transparent; -webkit-text-stroke: 1px rgba(232,244,243,0.12); letter-spacing: -0.03em; padding-inline: 1.5rem; }
.footer-marquee-track i { color: var(--teal); font-style: normal; font-size: clamp(2rem, 6vw, 4rem); }
.footer-grid { display: grid; gap: 2.4rem; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(2rem, 4vw, 3rem); max-width: var(--maxw); margin-inline: auto; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin-top: 1rem; font-size: .92rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--ice); }
.footer-logo img { width: 40px; height: 40px; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1; }
.footer-logo-text .nlt-1 { font-size: 1.4rem; }
.footer-logo-text .nlt-2 { font-size: .72rem; letter-spacing: 0.34em; margin-top: 4px; }
.footer-col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; font-weight: 700; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col ul a { color: var(--text); font-size: .94rem; transition: color .3s var(--ease-out); }
.footer-col ul a:hover { color: var(--teal); }
.footer-cta { margin-top: .2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.6rem var(--gutter) 0; max-width: var(--maxw); margin-inline: auto; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer-top { color: var(--text); transition: color .3s var(--ease-out); }
.footer-top:hover { color: var(--teal); }

/* =============================================================
   7. EFECTOS  (carrusel "pegado" de servicios en desktop)
   =============================================================
   La sección mide 100vh + recorrido (lo setea el JS) y el escenario queda
   sticky mientras las tarjetas se deslizan. Sin pin de librerías: lo sostiene
   el navegador, no puede dejar huecos en blanco. */
.services.is-sticky { padding-block: 0; }
.services.is-sticky .services-stage {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.services.is-sticky .services-pin { overflow: hidden; scroll-snap-type: none; }
.services.is-sticky .services-track { will-change: transform; }
.services.is-sticky .services-nav { display: none; }

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
@media (min-width: 720px) {
  .about-aside { max-width: 520px; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.4rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .footer-bottom { font-size: .85rem; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }

  .about-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .about-aside { max-width: none; }

  .cases-grid { grid-template-columns: repeat(3, 1fr); }

  /* Proceso: 4 columnas con línea horizontal que conecta los puntos */
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .process-step { padding-left: 0; padding-top: 2rem; }
  .process-step::after { top: 0; left: 0; }
  .process-step::before {
    left: 1.3rem; right: -2rem; top: 4px; bottom: auto;
    width: auto; height: 1px;
    transform: scaleX(0); transform-origin: left;
  }
  .process-step.is-visible::before { transform: none; }
  .process-step:last-child::before { display: none; }

  .consult-grid { grid-template-columns: 1.25fr 0.9fr; align-items: start; }
}

@media (min-width: 1280px) {
  .svc-card { width: 400px; }
}

/* Punto de quiebre del menú móvil: mostrar burger sólo bajo 960 */
@media (max-width: 959px) {
  .nav-links { display: none; }
}

/* =============================================================
   9. REDUCED-MOTION  (solo lo verdaderamente intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .particles { display: none; }
  .side-brand-dot { animation: none; }
  .wa-fab::before { animation: none; }
  .hero-scroll svg { animation: none; }
  .marquee-track,
  .footer-marquee-track { animation: none !important; }
  /* NO se desactivan: hovers, tilt, fades, reveals, trazado de íconos */
}

/* =============================================================
   10. MODO CLARO  ([data-theme="light"])
   ============================================================= */
[data-theme="light"] {
  --bg:        #eef2f1;
  --bg-2:      #e6ecea;
  --ink-1:     #dde6e4;
  --ink-2:     #cfdbd8;
  --teal:      #0aa392;          /* teal vivo y legible para textos/acentos */
  --teal-dim:  #07786b;
  --teal-glow: rgba(18, 200, 178, 0.32);
  --ice:       #0b211e;          /* texto de mayor contraste / títulos */

  --text:      #344441;
  --muted:     #586966;
  --line:      rgba(11, 33, 30, 0.16);
  --line-soft: rgba(11, 33, 30, 0.08);
  --card:      rgba(11, 33, 30, 0.035);
  --card-2:    rgba(11, 33, 30, 0.05);
}

/* Botones y CTA: teal bien vibrante en claro (el texto es oscuro, mantiene contraste) */
[data-theme="light"] .btn-primary,
[data-theme="light"] .nav-cta { background: #1ec9b0; color: #04221e; box-shadow: none; }
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .nav-cta:hover { background: #34dcc4; }
[data-theme="light"] .btn-primary:hover { box-shadow: 0 14px 40px -14px rgba(18, 200, 178, 0.5); }


[data-theme="light"] body::before {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(13, 148, 136, 0.06), transparent 60%),
    var(--bg);
}
[data-theme="light"] ::selection { background: var(--teal); color: #ffffff; }

[data-theme="light"] .nav.is-scrolled { background: rgba(238, 242, 241, 0.78); }
[data-theme="light"] .nav-mobile { background: rgba(238, 242, 241, 0.97); }

[data-theme="light"] .marquee-tech,
[data-theme="light"] .marquee-clients { background: rgba(11, 33, 30, 0.02); }

[data-theme="light"] .svc-card {
  background: linear-gradient(180deg, rgba(11, 33, 30, 0.04), rgba(11, 33, 30, 0.015));
}
[data-theme="light"] .testi-card { background: rgba(255, 255, 255, 0.55); }
[data-theme="light"] .consult-card { background: rgba(255, 255, 255, 0.6); }
[data-theme="light"] .faq-item { background: rgba(255, 255, 255, 0.5); }
[data-theme="light"] .faq-item[open] { background: rgba(255, 255, 255, 0.72); }

[data-theme="light"] .section-watermark { -webkit-text-stroke: 1px rgba(11, 33, 30, 0.07); }
[data-theme="light"] .footer-marquee-track span { -webkit-text-stroke: 1px rgba(11, 33, 30, 0.16); }
[data-theme="light"] .footer { background: linear-gradient(180deg, transparent, rgba(13, 148, 136, 0.06)); }

/* La grilla blueprint del hero un poco más marcada sobre fondo claro */
[data-theme="light"] .hero-blueprint { opacity: 1; }

/* Las tarjetas de casos conservan su imagen oscura: texto claro sobre velo. OK en ambos temas. */

/* =============================================================
   11. SERVICIOS EN MÓVIL — tarjetas apiladas (deck con sticky)
   =============================================================
   Bajo 960px el carrusel horizontal se convierte en una pila vertical:
   cada tarjeta queda pegada debajo del nav y la siguiente sube y se apila
   encima, dejando ver el borde superior de las anteriores (efecto mazo).
   Va al FINAL del archivo para ganarle al fondo translúcido del modo claro. */
@media (max-width: 959px) {
  .services-pin { overflow: visible; scroll-snap-type: none; }
  .services-track {
    flex-direction: column;
    width: auto;
    gap: 1.2rem;
    padding-inline: var(--gutter);
  }
  .svc-card {
    width: 100%;
    min-height: 480px;
    position: sticky;
    /* Fondo OPACO: al apilarse no se debe transparentar la tarjeta de abajo */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--bg);
    box-shadow: 0 -16px 38px -24px rgba(0, 0, 0, 0.7);
  }
  /* Escalonado: cada tarjeta se frena un poquito más abajo que la anterior,
     así se ven los bordes de las ya apiladas */
  .svc-card:nth-child(1) { top: calc(var(--nav-h) + 12px); }
  .svc-card:nth-child(2) { top: calc(var(--nav-h) + 24px); }
  .svc-card:nth-child(3) { top: calc(var(--nav-h) + 36px); }
  .svc-card:nth-child(4) { top: calc(var(--nav-h) + 48px); }
  .svc-card:nth-child(5) { top: calc(var(--nav-h) + 60px); }
  .svc-card:nth-child(6) { top: calc(var(--nav-h) + 72px); }

  [data-theme="light"] .svc-card {
    background: linear-gradient(180deg, rgba(11, 33, 30, 0.05), rgba(11, 33, 30, 0.02)), var(--bg);
    box-shadow: 0 -16px 38px -26px rgba(11, 33, 30, 0.4);
  }
}
