/* ==========================================================================
   assets/css/home.css — Grupo Nexus · Landing principal
   Dirección visual: "midnight precision instrument" (Linear / Raycast vía Refero)
   + micro-interacciones inspiradas en React Bits (BlurText, ShinyText,
   RotatingText, SpotlightCard, LogoLoop, Magnet, CountUp, ScrollReveal).
   Paleta tomada del video de marca: azul → turquesa → verde sobre negro petróleo.
   ========================================================================== */

:root {
  --bg: #04080a;
  --bg-2: #071014;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #edf6f3;
  --muted: #8b9ea0;
  --dim: #5b6d70;

  --blue: #2a8bff;
  --teal: #17c3c4;
  --green: #4fe08a;
  --grad: linear-gradient(100deg, #2a8bff 0%, #17c3c4 48%, #4fe08a 100%);

  --f-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(79, 224, 138, 0.3); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.02em; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  background: #fff; color: #000; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Fondo global ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-aurora .blob {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.35;
  will-change: transform;
}
.bg-aurora .b1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #0e5bd8; animation: drift1 26s ease-in-out infinite alternate; }
.bg-aurora .b2 { width: 40vw; height: 40vw; right: -10vw; top: 6vh; background: #0f9c86; opacity: 0.28; animation: drift2 30s ease-in-out infinite alternate; }
.bg-aurora .b3 { width: 34vw; height: 34vw; left: 30vw; top: 70vh; background: #1f8a4c; opacity: 0.18; animation: drift3 34s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 16vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-18vw, -20vh) scale(1.2); } }

.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía utilitaria ---------- */
.gradient-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }

.shiny-text {
  background: linear-gradient(110deg, #9fb3b5 35%, #ffffff 50%, #9fb3b5 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 4.5s linear infinite;
}
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted);
}
.eyebrow.center { display: flex; justify-content: center; text-align: center; }
.eyebrow-line { display: inline-block; width: 28px; height: 1px; background: var(--grad); }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  height: 46px; padding: 0 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 0.93rem; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer; transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  will-change: transform;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn-sm { height: 38px; padding: 0 1rem; font-size: 0.85rem; }
.btn-lg { height: 54px; padding: 0 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  color: #03130c;
  background: linear-gradient(100deg, #5aa8ff 0%, #2fd3c9 50%, #6ef0a0 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 10px 30px -10px rgba(47, 211, 160, 0.55);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,0.35) inset, 0 16px 40px -10px rgba(47, 211, 160, 0.75); }

.btn-ghost {
  color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }

.btn-whatsapp { color: #fff; background: #128c4a; box-shadow: 0 10px 30px -12px rgba(37, 211, 102, 0.6); }
.btn-whatsapp:hover { background: #16a457; }

.btn:disabled { opacity: 0.6; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  transition: color 0.25s, border-color 0.25s, transform 0.5s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); transform: rotate(60deg); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 1rem 0;
  transition: padding 0.3s var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -16px 0;
  background: linear-gradient(180deg, rgba(4, 8, 10, 0.96) 0%, rgba(4, 8, 10, 0.72) 65%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}
.nav.scrolled::before {
  opacity: 1;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; height: 62px; padding: 0 0.6rem 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: 999px; border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled .nav-inner {
  background: rgba(6, 14, 18, 0.92); border-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.85);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  width: 38px; height: auto;
  filter: drop-shadow(0 4px 14px rgba(42, 139, 255, 0.5));
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  will-change: transform;
}
.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.1) rotateZ(6deg);
  filter: drop-shadow(0 8px 24px rgba(79, 224, 138, 0.85));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-text small { font-family: var(--f-mono); font-size: 0.66rem; color: var(--dim); }

/* ---------- 3D Levitating Hero Emblem con Parallax ---------- */
.hero-emblem-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  perspective: 900px;
  cursor: grab;
  user-select: none;
}
.hero-emblem-wrap:active { cursor: grabbing; }

.emblem-aura {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 195, 196, 0.4) 0%, rgba(42, 139, 255, 0.22) 40%, rgba(79, 224, 138, 0.16) 60%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  animation: auraPulse 6s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes auraPulse {
  0% { transform: scale(0.9) translate3d(0, 0, 0); opacity: 0.55; }
  50% { transform: scale(1.15) translate3d(0, -6px, 0); opacity: 0.85; filter: blur(34px); }
  100% { transform: scale(1) translate3d(0, 4px, 0); opacity: 0.65; }
}

.emblem-orbital {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.emblem-orbital span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(23, 195, 196, 0.28);
  animation: orbitSpin 18s linear infinite;
}
.emblem-orbital span:nth-child(2) {
  inset: 12px;
  border: 1px solid rgba(79, 224, 138, 0.15);
  border-top-color: rgba(79, 224, 138, 0.65);
  animation: orbitSpin 12s linear infinite reverse;
}
@keyframes orbitSpin { to { transform: rotate(1turn); } }

.emblem-box {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  animation: floatEmblem 5.5s ease-in-out infinite;
  transition: transform 0.15s ease-out;
}
@keyframes floatEmblem {
  0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  25% { transform: translateY(-9px) rotateX(4deg) rotateY(-5deg) rotateZ(1deg); }
  50% { transform: translateY(-4px) rotateX(-3deg) rotateY(4deg) rotateZ(-1deg); }
  75% { transform: translateY(-12px) rotateX(3deg) rotateY(-3deg) rotateZ(1.5deg); }
  100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
}

.hero-emblem-img {
  width: 130px;
  height: 88px;
  aspect-ratio: 130 / 88;
  max-width: 100%;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 35px rgba(23, 195, 196, 0.45));
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero-emblem-wrap:hover .hero-emblem-img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 55px rgba(79, 224, 138, 0.75));
}

.emblem-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 200% 200%;
  -webkit-mask-image: url('../img/nexus-symbol.webp');
  mask-image: url('../img/nexus-symbol.webp');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: emblemShine 4.8s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes emblemShine {
  0%, 15% { background-position: 180% 180%; }
  45%, 100% { background-position: -80% -80%; }
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.9rem; color: var(--muted); transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-mobile-only { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03); cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 60px; overflow: hidden; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem; color: var(--muted); transition: border-color 0.3s, background 0.3s;
}
.pill:hover { border-color: rgba(79,224,138,0.4); background: rgba(79,224,138,0.05); }
.pill svg { color: var(--muted); }
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(79,224,138,0.15), 0 0 14px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(79,224,138,0.05), 0 0 20px var(--green); } }

.hero-title {
  margin-top: 1.8rem; max-width: 980px;
  font-family: var(--f-display); font-weight: 650;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
}
.hero-title > span { display: block; }
.blur-text .w {
  display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.35em);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--wd, 0ms);
}
.blur-text.in .w { opacity: 1; filter: blur(0); transform: none; }

.rotating-wrap { display: block; height: 1.08em; overflow: hidden; padding-bottom: 0.08em; }
.rotating-text { display: inline-block; padding-right: 0.04em; }
.rotating-text .ch {
  display: inline-block; transform: translateY(105%); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  transition-delay: var(--cd, 0ms);
}
.rotating-text.show .ch { transform: none; opacity: 1; }
.rotating-text.hide .ch { transform: translateY(-110%); opacity: 0; }

.hero-sub {
  margin-top: 1.6rem; max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin-top: 3rem;
  border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,0.015);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-stats li { padding: 0.9rem 1.8rem; text-align: center; }
.hero-stats li + li { border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; }
.hero-stats span:not([data-count]) { font-size: 0.78rem; color: var(--dim); }

/* ---------- Showreel ---------- */
.showreel-wrap { position: relative; z-index: 2; margin-top: 4.5rem; perspective: 1400px; }
.showreel {
  --p: 0;
  position: relative; border-radius: calc(28px - var(--p) * 10px); padding: 1px;
  transform: rotateX(calc((1 - var(--p)) * 14deg)) scale(calc(0.9 + var(--p) * 0.1));
  transform-origin: 50% 0%; transition: transform 0.1s linear;
  box-shadow: 0 60px 120px -40px rgba(23, 195, 196, 0.35), 0 30px 60px -30px rgba(0,0,0,0.9);
}
.showreel-border {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
}
.showreel-border::before {
  content: ""; position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 55%, #2a8bff 68%, #17c3c4 76%, #4fe08a 84%, transparent 95%);
  animation: spin 6s linear infinite;
}
.showreel-border::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--line-2);
}
@keyframes spin { to { transform: rotate(1turn); } }

.showreel-inner {
  position: relative; border-radius: calc(27px - var(--p) * 10px); overflow: hidden;
  background: #03070a;
}
.showreel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 42px; padding: 0 1rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  color: var(--dim);
}
.showreel-brand-tag { display: inline-flex; align-items: center; gap: 0.55rem; }
.showreel-mini-logo {
  width: 18px; height: auto;
  filter: drop-shadow(0 0 8px rgba(79, 224, 138, 0.7));
  animation: miniLogoPulse 4s ease-in-out infinite;
}
@keyframes miniLogoPulse {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 6px rgba(23, 195, 196, 0.5)); }
  50% { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 12px rgba(79, 224, 138, 0.85)); }
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--green); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.showreel-media { position: relative; aspect-ratio: 16 / 9; background: #03070a url("../video/nexus-poster.webp") center / cover; }
.showreel-video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.showreel-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}
.showreel-controls { position: absolute; left: 1rem; bottom: 1.1rem; display: flex; gap: 0.5rem; z-index: 2; }
.ctrl-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 40px; padding: 0 1rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(5, 10, 12, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.ctrl-btn:hover { background: rgba(5, 10, 12, 0.8); border-color: rgba(255,255,255,0.35); }
.ctrl-btn:active { transform: scale(0.96); }
.ctrl-icon { width: 40px; padding: 0; justify-content: center; }
.ctrl-btn .ic-sound { display: none; }
.ctrl-btn[aria-pressed="true"] .ic-sound { display: block; }
.ctrl-btn[aria-pressed="true"] .ic-muted { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.08); }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); }

/* ---------- Clientes / Carrusel Logo Loop ---------- */
.clients { padding: 70px 0 40px; position: relative; }
.clients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.clients-head .eyebrow { margin-bottom: 0; }
.clients-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  padding: 0.35rem 0.6rem;
  backdrop-filter: blur(12px);
}
.clients-badge {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.5rem;
  user-select: none;
}
.clients-badge .status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--green);
}
.carousel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.carousel-arrow:hover {
  background: var(--grad);
  color: #03070a;
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(23, 195, 196, 0.45);
}
.carousel-arrow:active { transform: scale(0.95); }

.logo-loop {
  position: relative;
  overflow: hidden;
  user-select: none;
  padding: 1.6rem 0 1.2rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: marquee var(--loop-dur, 35s) linear infinite;
  animation-iteration-count: infinite !important;
  animation-play-state: running !important;
  padding: 0.5rem 0;
}
.logo-group {
  display: flex;
  gap: 1.25rem;
  padding: 0 1.25rem 0 0;
  margin: 0;
  list-style: none;
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 172px;
  flex-shrink: 0;
  --wave-y: 0px;
  --wave-scale: 1;
  --wave-rot: 0deg;
  --wave-glow: 0;
}
.logo-tile {
  display: grid;
  place-items: center;
  width: 172px;
  height: 96px;
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-md);
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.5),
              0 0 calc(var(--wave-glow, 0) * 22px) rgba(23, 195, 196, calc(var(--wave-glow, 0) * 0.45));
  filter: grayscale(calc(0.7 - var(--wave-glow, 0) * 0.5)) contrast(1.02);
  opacity: calc(0.88 + var(--wave-glow, 0) * 0.12);
  transform: translateY(var(--wave-y, 0px)) scale(var(--wave-scale, 1)) rotate(var(--wave-rot, 0deg));
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.4, 1.1),
              box-shadow 0.25s var(--ease),
              filter 0.3s var(--ease),
              opacity 0.3s;
}
.logo-tile img {
  width: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  pointer-events: none;
}
.logo-item:hover .logo-tile {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  border-color: rgba(23, 195, 196, 0.65);
  box-shadow: 0 18px 38px -10px rgba(23, 195, 196, 0.55),
              0 0 24px rgba(79, 224, 138, 0.35);
}
.logo-name {
  font-size: 0.72rem;
  color: var(--dim);
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(calc(var(--wave-y, 0px) * 0.45));
  transition: color 0.3s, transform 0.22s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.logo-item:hover .logo-name { color: var(--text); }

/* ---------- Secciones ---------- */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; }
.section-title {
  margin-top: 1.1rem; font-family: var(--f-display); font-weight: 620;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em;
}
.muted-title { color: var(--dim); }
.section-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 520px; }

/* ---------- Spotlight cards ---------- */
.spotlight { --mx: 50%; --my: 50%; position: relative; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(23, 195, 196, 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.spotlight::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(79, 224, 138, 0.6), rgba(42,139,255,0.25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  padding: 1.8rem; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.025em; margin: 1.2rem 0 0.55rem; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  color: var(--green); background: rgba(79,224,138,0.07); border: 1px solid rgba(79,224,138,0.18);
  box-shadow: 0 0 30px -8px rgba(79,224,138,0.35) inset;
}
.bento-lg { grid-row: span 2; display: flex; flex-direction: column; }
.bento-wide { grid-column: span 2; display: flex; gap: 1.4rem; align-items: flex-start; }
.bento-wide h3 { margin-top: 0; }

.checks { margin-top: 1.2rem; display: grid; gap: 0.55rem; }
.checks li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text); }
.checks svg { color: var(--green); flex-shrink: 0; }

.mock-dash {
  margin-top: auto; padding: 1.1rem; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(0,0,0,0.35); transform: translateY(0); position: relative; top: 1.6rem;
}
.bento-lg .mock-dash { margin-top: 2rem; top: 0; }
.mock-row { display: flex; align-items: baseline; gap: 0.7rem; font-size: 0.78rem; color: var(--dim); }
.mock-row b { font-family: var(--f-display); font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; }
.mock-row .up { font-style: normal; font-family: var(--f-mono); color: var(--green); font-size: 0.72rem; margin-left: auto; }
.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 1rem; }
.mock-bars i {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, rgba(42,139,255,0.25), rgba(79,224,138,0.85));
  transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease);
}
.mock-bars i:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }
.in .mock-bars i, .mock-dash.in .mock-bars i { transform: scaleY(1); }

/* ---------- Manifiesto (scroll reveal) ---------- */
.manifesto { padding: 80px 0 40px; }
.scroll-reveal-text {
  max-width: 1050px; font-family: var(--f-display); font-weight: 560;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.18; letter-spacing: -0.035em;
}
.scroll-reveal-text .sw { color: rgba(237, 246, 243, 0.14); transition: color 0.35s; }
.scroll-reveal-text .sw.on { color: var(--text); }

/* ---------- Rediseño: Tech Console & Scroll-Stream ---------- */
.tech-section {
  position: relative;
  overflow: hidden;
}
.tech-section::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 195, 196, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Distintivo de Marca Nexus en Tech */
.tech-brand-strip {
  display: flex;
  margin-bottom: 1.6rem;
}
.tech-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: var(--muted);
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s, background 0.3s;
}
.tech-brand-badge:hover {
  border-color: rgba(79, 224, 138, 0.35);
  background: rgba(79, 224, 138, 0.04);
}
.tech-badge-symbol {
  width: 24px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(42, 139, 255, 0.5));
  animation: techBadgeSpin 7s ease-in-out infinite;
}
@keyframes techBadgeSpin {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(4deg) scale(1.06); }
}
.tech-badge-text strong {
  color: var(--text);
  font-weight: 600;
}
.tech-badge-pill {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(23, 195, 196, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(23, 195, 196, 0.28);
}

/* Filtros Interactivos de Categorías */
.tech-filters {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2.8rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tech-filters::-webkit-scrollbar { display: none; }

.tech-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
}
.tech-tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}
.tech-tab.active {
  color: #fff;
  border-color: rgba(79, 224, 138, 0.45);
  background: linear-gradient(135deg, rgba(42, 139, 255, 0.15), rgba(79, 224, 138, 0.15));
  box-shadow: 0 0 20px -5px rgba(79, 224, 138, 0.3);
}
.tech-tab .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.tech-tab .tab-count {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* Grilla de Tecnologías */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

/* Tarjeta individual con Scroll-Stagger */
.tech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  overflow: hidden;
  will-change: transform, opacity;
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s, filter 0.4s;
}

/* Scroll reveal con cascada progresiva */
.tech-card.reveal-step {
  opacity: 0;
  transform: translateY(35px) scale(0.96);
  filter: blur(8px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s var(--ease);
  transition-delay: calc(var(--step-i, 0) * 75ms);
}
.tech-card.reveal-step.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Cuando se filtra una categoría */
.tech-card.is-hidden {
  opacity: 0.12 !important;
  transform: scale(0.95) !important;
  filter: blur(4px) grayscale(0.8) !important;
  pointer-events: none;
}

.tech-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(79, 224, 138, 0.45);
  box-shadow: 0 20px 45px -15px rgba(23, 195, 196, 0.35);
}

.tech-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s;
}
.tech-card:hover .tech-card-glow { opacity: 1; }

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.tech-icon-pod {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--teal);
  background: rgba(23, 195, 196, 0.08);
  border: 1px solid rgba(23, 195, 196, 0.22);
  box-shadow: 0 0 24px -6px rgba(23, 195, 196, 0.35) inset;
  transition: transform 0.4s var(--ease), color 0.3s, border-color 0.3s;
}
.tech-card:hover .tech-icon-pod {
  transform: scale(1.1) rotate(4deg);
  color: var(--green);
  border-color: rgba(79, 224, 138, 0.5);
}

.tech-header-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tech-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--green);
}
.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s steps(2) infinite;
}

.tech-badge {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.tech-cat {
  color: var(--dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  display: block;
}

.tech-title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.tech-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Micro-etiquetas / Chips */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.2rem;
}
.tech-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #9cb5b8;
  transition: all 0.25s;
}
.tech-card:hover .tech-tag {
  background: rgba(23, 195, 196, 0.08);
  border-color: rgba(23, 195, 196, 0.25);
  color: var(--text);
}

/* Telemetría / Barra de medición */
.tech-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.tech-metric-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.tech-meter {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.tech-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 1.2s var(--ease);
}
.tech-card.in .tech-meter i {
  width: var(--meter-w, 90%);
}

/* Banner de Garantía Nexus */
.tech-guarantee {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
  padding: 1.6rem 2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(7, 16, 20, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.guarantee-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--green);
  background: rgba(79, 224, 138, 0.08);
  border: 1px solid rgba(79, 224, 138, 0.2);
  flex-shrink: 0;
}
.guarantee-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}
.guarantee-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 2.6rem; }
.timeline-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
.timeline-line i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px rgba(79,224,138,0.6); transition: width 0.15s linear; }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -2.6rem; left: 0; width: 11px; height: 11px; border-radius: 50%;
  transform: translateY(-5px); background: var(--bg); border: 1px solid var(--line-2);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step.lit::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px rgba(79,224,138,0.12), 0 0 16px var(--green); }
.step-num { font-family: var(--f-mono); font-size: 0.78rem; color: var(--green); }
.step h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; margin: 0.7rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

/* ---------- Contacto ---------- */
.contact-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem;
  padding: clamp(1.6rem, 4vw, 3.5rem); border-radius: 32px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.contact-glow {
  position: absolute; width: 620px; height: 620px; left: -200px; bottom: -320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(23,195,196,0.22), transparent 65%);
}
.contact-info, .form-wrap { position: relative; }
.contact-info .section-lead { margin: 1.2rem 0 2rem; }
.contact-list { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; }
.ci { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--teal); border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); flex-shrink: 0; }
.contact-list small { display: block; font-size: 0.74rem; color: var(--dim); }
.contact-list strong { font-weight: 550; font-size: 0.95rem; word-break: break-word; }
.contact-list a:hover strong { color: var(--green); }

.form-wrap { padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--r-lg); background: rgba(3, 7, 9, 0.6); border: 1px solid var(--line); }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.45rem; }
.field > span { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.025); color: var(--text); font-size: 0.93rem; outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b9ea0' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.field select option { background: #0a1215; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #4a5a5d; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(79,224,138,0.55); background: rgba(79,224,138,0.03);
  box-shadow: 0 0 0 4px rgba(79,224,138,0.09);
}
.form-note { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.76rem; color: var(--dim); }

.form-alert { display: none; padding: 0.85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: 0.9rem; }
.form-alert.success { display: block; color: #a7f3c8; background: rgba(79,224,138,0.08); border: 1px solid rgba(79,224,138,0.3); }
.form-alert.error { display: block; color: #fecaca; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  color: #fff; background: #1fae5b; box-shadow: 0 14px 34px -10px rgba(31,174,91,0.7);
  transition: transform 0.4s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1fae5b; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 60px; padding: 80px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 3rem; }
.footer-brand p { margin-top: 1.1rem; color: var(--muted); font-size: 0.92rem; max-width: 340px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-cols h4 { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 1rem; }
.footer-cols ul { display: grid; gap: 0.6rem; }
.footer-cols a { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.92rem; color: var(--muted); transition: color 0.25s; }
.footer-cols a:hover { color: var(--text); }
.footer-emblem-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3.5rem;
  margin-bottom: -1.5rem;
  perspective: 800px;
  z-index: 2;
}
.footer-emblem-aura {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 195, 196, 0.3) 0%, rgba(79, 224, 138, 0.12) 50%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  animation: auraPulse 7s ease-in-out infinite alternate;
}
.footer-emblem-img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 35px rgba(23, 195, 196, 0.4));
  animation: floatEmblem 6.5s ease-in-out infinite reverse;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  will-change: transform;
}
.footer-emblem-wrap:hover .footer-emblem-img {
  transform: scale(1.12) translateY(-6px) rotate(3deg);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 50px rgba(79, 224, 138, 0.7));
}
.footer-word {
  margin: 3rem 0 1rem; text-align: center; user-select: none;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8;
  font-size: clamp(5rem, 22vw, 19rem);
  background: linear-gradient(to bottom, rgba(237,246,243,0.13), rgba(237,246,243,0));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
.footer-bottom .mono { display: inline-flex; align-items: center; gap: 0.5rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.no-js .reveal, .no-js .blur-text .w { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-guarantee { grid-template-columns: 1fr; gap: 1.2rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-row: span 1; grid-column: span 2; }
  .bento-wide { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 3.5rem; }
  .timeline-line { display: none; }
  .step::before { top: -1.6rem; }
  .step.lit::before, .step::before { background: var(--green); border-color: var(--green); }
  .contact-card { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-admin { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 1rem; right: 1rem;
    flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.8rem;
    border-radius: 22px; border: 1px solid var(--line-2); background: #070e12;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.95);
    opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 0.85rem 1rem; font-size: 1rem; }
  .nav-mobile-only { display: block; }
  .nav-inner { background: rgba(6, 14, 18, 0.92); border-color: var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .section-head.split { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(3) { border-left: 0; }
  .hero-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .container { padding: 0 1.1rem; }
  .nav { top: 0; padding: 8px 0.6rem 0; transition: background 0.3s, border-color 0.3s, padding 0.3s; }
  .nav.scrolled {
    background: rgba(4, 8, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 6px 0.6rem;
  }
  .nav.scrolled::before { display: none; }
  .nav.scrolled .nav-inner {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  .nav-inner { height: 56px; padding: 0 0.45rem 0 0.8rem; }
  .brand-text small { display: none; }
  .nav-actions .btn-sm span { display: none; }
  .nav-actions .btn-sm { width: 38px; padding: 0; }
  .nav-actions .btn-sm svg { margin: 0; }
  .hero { padding: 110px 0 36px; }
  .hero-emblem-wrap { margin-bottom: 1.1rem; }
  .hero-emblem-img { width: 92px; height: 62px; aspect-ratio: 130 / 88; }
  .emblem-aura { width: 160px; height: 160px; filter: blur(20px); }
  .emblem-orbital { width: 130px; height: 130px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { width: 100%; }
  .hero-stats li { padding: 0.8rem 0.6rem; }
  .showreel-wrap { margin-top: 2.6rem; padding: 0 0.4rem; }
  .showreel-bar .mono { display: none; }
  .ctrl-label { display: none; }
  .ctrl-btn { width: 40px; padding: 0; justify-content: center; }
  .section { padding: 72px 0; }
  .bento, .tech-grid, .timeline { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: span 1; }
  .bento-wide { flex-direction: column; }
  .tech-card { padding: 1.35rem; }
  .tech-filters { gap: 0.4rem; padding-bottom: 0.6rem; }
  .tech-tab { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
  .tech-guarantee { padding: 1.3rem 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .logo-item, .logo-tile { width: 136px; }
  .logo-tile { height: 80px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .blur-text .w, .rotating-text .ch { opacity: 1 !important; transform: none !important; filter: none !important; }
  .logo-track {
    animation-name: marquee !important;
    animation-duration: 45s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
  }
  .showreel { transform: none !important; }
}
