/* ============================================================
   MARSOFT — design tokens
   ============================================================ */
:root{
  --bg-0: #0a0714;
  --bg-1: #0e0a1c;
  --bg-2: #150e29;

  --violet: #7c5cf0;
  --violet-2: #b9a6ff;
  --lilac: #6a7bf0;
  --lilac-2: #a9b4ff;

  --violet-rgb: 124,92,240;
  --violet-2-rgb: 185,166,255;
  --lilac-rgb: 106,123,240;
  --lilac-2-rgb: 169,180,255;

  --ink: #f4f1fb;
  --ink-dim: #ada5c9;
  --ink-faint: #726c8c;

  --shadow-rgb: 4,2,14;
  --specular-edge: rgba(255,255,255,.08);

  --glass-bg: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  --glass-bg-strong: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.03));
  --glass-border: rgba(255,255,255,.14);
  --glass-border-hi: rgba(255,255,255,.32);
  --glass-shadow: 0 10px 40px rgba(var(--shadow-rgb),.5), inset 0 1px 0 rgba(255,255,255,.16);

  --ghost-bg: rgba(255,255,255,.04);
  --ghost-bg-hover: rgba(255,255,255,.09);
  --btn-ink: #f8f6ff;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --ease: cubic-bezier(.16,.84,.32,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);

  --container: 1180px;

  color-scheme: dark;
}

html[data-theme="light"]{
  --bg-0: #f3f0fb;
  --bg-1: #ece5fa;
  --bg-2: #e3d9f7;

  --violet: #6d4fd6;
  --violet-2: #8f74e8;
  --lilac: #4c5bd8;
  --lilac-2: #7382e8;

  --violet-rgb: 109,79,214;
  --violet-2-rgb: 143,116,232;
  --lilac-rgb: 76,91,216;
  --lilac-2-rgb: 115,130,232;

  --ink: #1c1430;
  --ink-dim: #4f4768;
  --ink-faint: #645e7a;

  --shadow-rgb: 76,60,140;
  --specular-edge: rgba(90,70,150,.14);

  --glass-bg: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  --glass-bg-strong: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.5));
  --glass-border: rgba(90,70,150,.16);
  --glass-border-hi: rgba(90,70,150,.34);
  --glass-shadow: 0 10px 34px rgba(var(--shadow-rgb),.16), inset 0 1px 0 rgba(255,255,255,.65);

  --ghost-bg: rgba(90,70,150,.06);
  --ghost-bg-hover: rgba(90,70,150,.12);

  color-scheme: light;
}

*,*::before,*::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body{
  margin:0;
  width: 100%;
  max-width: 100%;
  background: var(--bg-0);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

h1,h2,h3{
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  color: var(--ink);
}

p{ margin: 0 0 1em; color: var(--ink-dim); }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
svg{ display:block; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.text-accent{
  background: linear-gradient(100deg, var(--violet-2), var(--lilac-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow{
  display:inline-block;
  font-family:'Space Grotesk', sans-serif;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lilac-2);
  margin-bottom: 14px;
}
html[data-theme="light"] .eyebrow{ color: var(--violet); }

/* ============================================================
   Background field: Malla de Ingeniería + Luces Aurora + Grain
   ============================================================ */
.bg-field{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.grid-mesh{
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 95%);
  opacity: 0.75;
}
html[data-theme="light"] .grid-mesh{
  background-image: 
    linear-gradient(to right, rgba(124, 92, 240, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 92, 240, 0.06) 1px, transparent 1px);
  opacity: 0.85;
}

.bg-field .blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .30;
  will-change: transform, opacity;
  transition: opacity .5s ease;
}
/* Blob A — Violeta principal (top-left) */
.blob-a{
  width: 820px; height: 820px;
  top: -200px; left: -160px;
  background: radial-gradient(circle at 35% 35%,
    rgba(124, 58, 237, 0.32),
    rgba(167, 139, 250, 0.14) 45%,
    rgba(0, 212, 170, 0.05) 70%,
    transparent 85%);
  animation: auroraWave1 11s ease-in-out infinite alternate;
}
/* Blob B — Cyan/teal suave (top-right) */
.blob-b{
  width: 760px; height: 760px;
  top: 10%; right: -220px;
  background: radial-gradient(circle at 60% 40%,
    rgba(0, 212, 170, 0.24),
    rgba(0, 255, 220, 0.10) 45%,
    rgba(99, 102, 241, 0.06) 70%,
    transparent 85%);
  animation: auroraWave2 13s ease-in-out infinite alternate;
  opacity: .28;
}
/* Blob C — Violeta profundo (bottom-center) */
.blob-c{
  width: 680px; height: 680px;
  bottom: -170px; left: 20%;
  background: radial-gradient(circle at 50% 50%,
    rgba(99, 102, 241, 0.26),
    rgba(168, 85, 247, 0.11) 50%,
    rgba(0, 212, 170, 0.04) 75%,
    transparent 90%);
  opacity: .26;
  animation: auroraWave3 15s ease-in-out infinite alternate;
}
/* Blob D — Teal secundario (mid-left) */
.blob-d{
  width: 620px; height: 620px;
  top: 52%; left: -180px;
  background: radial-gradient(circle at 45% 45%,
    rgba(0, 212, 170, 0.18),
    rgba(0, 180, 200, 0.08) 50%,
    rgba(124, 58, 237, 0.05) 75%,
    transparent 90%);
  opacity: .24;
  animation: auroraWave4 12s ease-in-out infinite alternate;
}
/* Blob E — Magenta accent sutil (center-right) */
.blob-e{
  width: 500px; height: 500px;
  top: 38%; right: 5%;
  background: radial-gradient(circle at 50% 50%,
    rgba(192, 38, 211, 0.14),
    rgba(139, 92, 246, 0.07) 55%,
    transparent 80%);
  opacity: .20;
  animation: auroraWave5 18s ease-in-out infinite alternate;
  filter: blur(140px);
}

html[data-theme="light"] .blob-a{
  background: radial-gradient(circle at 35% 35%, rgba(124, 58, 237, 0.14), rgba(167, 139, 250, 0.05) 55%, transparent 70%);
  opacity: .35;
}
html[data-theme="light"] .blob-b{
  background: radial-gradient(circle at 60% 40%, rgba(0, 180, 150, 0.10), rgba(0, 212, 170, 0.04) 55%, transparent 70%);
  opacity: .28;
}
html[data-theme="light"] .blob-c{
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.10), rgba(168, 85, 247, 0.04) 60%, transparent 70%);
  opacity: .22;
}
html[data-theme="light"] .blob-d{
  background: radial-gradient(circle at 45% 45%, rgba(0, 180, 150, 0.08), rgba(124, 58, 237, 0.03) 60%, transparent 70%);
  opacity: .18;
}
html[data-theme="light"] .blob-e{
  opacity: .12;
}

@keyframes auroraWave1{
  0%{ transform: translate(0, 0) scale(1) rotate(0deg); }
  30%{ transform: translate(140px, 90px) scale(1.18) rotate(25deg); }
  65%{ transform: translate(60px, 180px) scale(0.92) rotate(-15deg); }
  100%{ transform: translate(190px, 110px) scale(1.14) rotate(40deg); }
}
@keyframes auroraWave2{
  0%{ transform: translate(0, 0) scale(1) rotate(0deg); }
  25%{ transform: translate(-170px, -80px) scale(1.24) rotate(-30deg); }
  60%{ transform: translate(-100px, 150px) scale(0.9) rotate(20deg); }
  100%{ transform: translate(-200px, 70px) scale(1.16) rotate(-45deg); }
}
@keyframes auroraWave3{
  0%{ transform: translate(0, 0) scale(1); }
  35%{ transform: translate(170px, -120px) scale(1.26); }
  70%{ transform: translate(-130px, -70px) scale(0.88); }
  100%{ transform: translate(100px, -150px) scale(1.18); }
}
@keyframes auroraWave4{
  0%{ transform: translate(0, 0) scale(1) rotate(0deg); }
  30%{ transform: translate(120px, -100px) scale(1.20) rotate(35deg); }
  70%{ transform: translate(190px, 60px) scale(0.95) rotate(-20deg); }
  100%{ transform: translate(80px, -130px) scale(1.14) rotate(45deg); }
}
@keyframes auroraWave5{
  0%{ transform: translate(0, 0) scale(1) rotate(0deg); }
  40%{ transform: translate(-80px, 120px) scale(1.20) rotate(-25deg); }
  80%{ transform: translate(60px, -90px) scale(0.90) rotate(30deg); }
  100%{ transform: translate(-100px, 60px) scale(1.12) rotate(-40deg); }
}
.grain{
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: .5;
}

/* Focos Spotlight Cenitales (Editorial Section Spotlights) */
.section-spotlight{
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 320px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(var(--violet-rgb), 0.16), rgba(var(--lilac-rgb), 0.05) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
html[data-theme="light"] .section-spotlight{
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(109, 79, 214, 0.12), rgba(143, 116, 232, 0.04) 50%, transparent 75%);
}

/* Haces de Luz Láser con Nodos de Separación */
.section-divider{
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--lilac-2-rgb), 0.25) 25%, rgba(var(--violet-2-rgb), 0.6) 50%, rgba(var(--lilac-2-rgb), 0.25) 75%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.divider-node{
  width: 8px;
  height: 8px;
  background: var(--bg-0);
  border: 1.5px solid var(--violet-2);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(var(--violet-rgb), 0.85);
  transition: transform .4s ease, border-color .3s ease, box-shadow .3s ease;
}
.section-divider:hover .divider-node{
  transform: rotate(225deg) scale(1.3);
  box-shadow: 0 0 18px rgba(var(--violet-rgb), 1);
}

/* Divisor Hero -> Servicios con badge interactivo integrado */
.hero-divider{
  position: relative;
  z-index: 10;
  overflow: visible;
  height: 1px;
  pointer-events: none;
}
.hero-divider .scroll-indicator{
  pointer-events: auto;
}

/* Polvo Estelar Interactivo (Cosmic Spark Canvas) */
.spark-canvas{
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.scroll-progress{
  position: fixed; top:0; left:0; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--lilac));
  width: 0%;
  z-index: 500;
  transition: width .1s linear;
}

/* ============================================================
   Glass surface
   ============================================================ */
.glass{
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  position: relative;
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.glass::before{
  content:'';
  position:absolute; inset:0;
  border-radius: inherit;
  padding:1px;
  background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 40%, transparent 70%, var(--specular-edge));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   Nav (Morphing & Luminescent Border Beam)
   ============================================================ */
.nav{
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 400;
  padding: 0 20px;
  transition: top .4s var(--ease);
  pointer-events: none;
}
.nav-inner{
  pointer-events: auto;
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 12px 8px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 25px rgba(var(--shadow-rgb), 0.25);
  transition: all .45s var(--ease);
  overflow: hidden;
}

/* Morphing Navbar: se compacta sutilmente y densifica el cristal al hacer scroll */
.nav.scrolled .nav-inner{
  padding: 6px 10px 6px 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 45px rgba(var(--shadow-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
html[data-theme="light"] .nav.scrolled .nav-inner{
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(90, 70, 150, 0.22);
  box-shadow: 0 12px 35px rgba(var(--shadow-rgb), 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ============================================================
   Luminescent Border Beam (Haz de luz orbitando el contorno)
   ============================================================ */
.nav-beam{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
  z-index: 0;
}
.nav-beam::before{
  content: '';
  position: absolute;
  top: -120%; left: -60%;
  width: 220%; height: 340%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 74%,
    rgba(var(--violet-rgb), 0.35) 84%,
    rgba(var(--violet-2-rgb), 0.95) 92%,
    #ffffff 96%,
    rgba(var(--lilac-2-rgb), 0.9) 98%,
    transparent 100%
  );
  animation: navBeamSpin 7.5s linear infinite;
}
@keyframes navBeamSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* Brand centrado + Typewriter Animation */
.brand,
.brand-center{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin: 0 14px;
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 999px;
  transition: transform .3s var(--ease);
}
.brand:hover{
  transform: scale(1.03);
}

.brand-mark{
  position: relative;
  width: 28px; height: 28px;
  flex: none;
  animation: brandMarkPop 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes brandMarkPop {
  0% { transform: scale(0.6) rotate(-30deg); opacity: 0; }
  50% { transform: scale(1.18) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.brand-mark.small{ width:24px; height:24px; }
.brand-core{
  position:absolute; inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, var(--violet-2), var(--violet) 70%);
  box-shadow: 0 0 14px rgba(var(--violet-rgb),.7);
  animation: brandCoreSpin 20s linear infinite;
  transition: box-shadow .3s ease, transform .3s ease;
}
.brand-mark.small .brand-core{ inset:6px; }
.brand-ring{
  position:absolute; inset:0;
  border: 1.5px solid var(--lilac-2);
  border-radius: 50%;
  opacity: .85;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: brandRingSpin 14s linear infinite;
  transition: border-color .4s ease;
}
@keyframes brandRingSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
@keyframes brandCoreSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
.brand:hover .brand-core{
  box-shadow: 0 0 22px rgba(var(--violet-rgb),.95);
  transform: scale(1.12);
}
.brand:hover .brand-ring{
  animation-duration: 5s;
  border-color: var(--violet-2);
  border-top-color: transparent;
  border-right-color: transparent;
}

.brand-word{
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  animation: brandWordExpand 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
@keyframes brandWordExpand {
  0% { max-width: 0; opacity: 0; }
  15% { opacity: 1; }
  100% { max-width: 165px; opacity: 1; }
}

.brand-char{
  display: inline-block;
  opacity: 0;
  transform: translateX(4px) scale(0.85);
  filter: blur(3px);
  animation: charType 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.6s + (var(--i) * 0.16s));
}
@keyframes charType {
  0% { opacity: 0; transform: translateX(4px) scale(0.85); filter: blur(3px); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

.brand-cursor{
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--violet-2);
  margin-left: 3px;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(var(--violet-rgb), 0.8);
  opacity: 0;
  animation:
    cursorIntro 0.3s ease 0.5s forwards,
    cursorBlink 1.1s ease-in-out infinite 1.8s;
}
@keyframes cursorIntro {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(var(--violet-rgb), 0.9); }
  50% { opacity: 0.15; box-shadow: none; }
}

/* Nav links izquierda y derecha con espaciado compacto y armónico */
.nav-links{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-left{
  justify-content: flex-start;
}
.nav-right{
  justify-content: flex-end;
}

.nav-right-wrap{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.nav-divider{
  width: 1px;
  height: 14px;
  background: var(--glass-border);
  opacity: .7;
}

.nav-link{
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 11px;
  border-radius: 999px;
  transition: color .25s ease, background-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
  white-space: nowrap;
}
.nav-link:hover{
  color: var(--ink);
  background: rgba(255,255,255,.07);
  transform: translateY(-1px);
}
html[data-theme="light"] .nav-link:hover{
  background: rgba(109,79,214,.08);
  color: var(--violet);
}

.nav-pill-badge{
  display: inline-flex;
  align-items: center;
  font-size: .62rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .02em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(var(--violet-rgb), 0.16);
  border: 1px solid rgba(var(--violet-rgb), 0.32);
  color: var(--violet-2);
  margin-left: 4px;
  vertical-align: middle;
  transition: all .25s ease;
}
html[data-theme="light"] .nav-pill-badge{
  background: rgba(109, 79, 214, 0.12);
  border-color: rgba(109, 79, 214, 0.28);
  color: var(--violet);
}
.nav-link:hover .nav-pill-badge{
  background: rgba(var(--violet-rgb), 0.28);
  border-color: var(--violet-2);
  box-shadow: 0 0 10px rgba(var(--violet-rgb), 0.35);
}

/* ScrollSpy Active State con píldora iluminada */
.nav-link.is-active{
  color: var(--ink);
  background: rgba(var(--violet-rgb),.18);
  border: 1px solid rgba(var(--violet-rgb),.32);
  box-shadow: 0 0 12px rgba(var(--violet-rgb),.25);
  font-weight: 600;
}
.nav-link.is-active::after{
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 6px var(--violet-2);
}
html[data-theme="light"] .nav-link.is-active{
  color: var(--violet);
  background: rgba(109,79,214,.12);
  border-color: rgba(109,79,214,.28);
  box-shadow: 0 0 10px rgba(109,79,214,.2);
}
html[data-theme="light"] .nav-link.is-active::after{
  background: var(--violet);
  box-shadow: 0 0 6px var(--violet);
}

.nav-controls{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   Vector Sun/Moon Morphing Theme Toggle (Linear/Vercel Aesthetic)
   ============================================================ */
.theme-toggle{
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 3px 12px rgba(var(--shadow-rgb), 0.25);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease, background .3s ease;
  color: var(--ink);
  flex: none;
}
.theme-toggle:hover{
  transform: scale(1.08);
  border-color: rgba(var(--violet-rgb), 0.45);
  box-shadow: 0 0 16px rgba(var(--violet-rgb), 0.35);
}
.theme-toggle:active{
  transform: scale(0.94);
}

html[data-theme="light"] .theme-toggle{
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(109, 79, 214, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 0 14px rgba(109, 79, 214, 0.12), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] .theme-toggle:hover{
  border-color: rgba(109, 79, 214, 0.5);
  box-shadow: 0 4px 18px rgba(109, 79, 214, 0.24), inset 0 1px 0 #ffffff;
}

.theme-icon-wrap{
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-sun,
.theme-icon-moon{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(0.16, 1, 0.3, 1), opacity .35s ease;
}

/* Modo oscuro (default) -> Luna violeta luminosa, Sol rotado y oculto */
.theme-icon-moon{
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--violet-2);
  filter: drop-shadow(0 0 6px rgba(var(--violet-rgb), 0.65));
}
.theme-icon-moon path{
  fill: rgba(var(--violet-rgb), 0.2);
}

.theme-icon-sun{
  opacity: 0;
  transform: rotate(90deg) scale(0.3);
  color: var(--violet);
  pointer-events: none;
}
.theme-icon-sun circle{
  fill: rgba(109, 79, 214, 0.12);
}
.theme-icon-sun .ray{
  transform-origin: center;
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease;
  transform: scale(0.3);
  opacity: 0;
}

/* Modo claro -> Sol violeta refinado y nítido, Luna rotada y oculta */
html[data-theme="light"] .theme-icon-sun{
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #6d4fd6;
  filter: drop-shadow(0 0 5px rgba(109, 79, 214, 0.3));
}
html[data-theme="light"] .theme-icon-sun circle{
  fill: rgba(109, 79, 214, 0.15);
  stroke: #6d4fd6;
}
html[data-theme="light"] .theme-icon-sun .ray{
  stroke: #6d4fd6;
  transform: scale(1);
  opacity: 1;
}

html[data-theme="light"] .theme-icon-moon{
  opacity: 0;
  transform: rotate(-90deg) scale(0.3);
  pointer-events: none;
}

/* Resplandor pulsante al hacer clic */
.theme-glow-aura{
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--violet-rgb), 0.45), transparent 70%);
  transform: scale(0.6);
}
.theme-toggle.burst .theme-glow-aura{
  animation: themeAuraBurst .55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes themeAuraBurst{
  0%{ opacity: 0; transform: scale(0.6); }
  40%{ opacity: 1; transform: scale(1.4); }
  100%{ opacity: 0; transform: scale(1.8); }
}

.nav-toggle{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px;
  background: transparent; border: none; cursor: pointer;
  flex: none;
  padding: 6px;
  border-radius: 8px;
  transition: background-color .3s ease;
}
.nav-toggle:hover{
  background: rgba(255,255,255,.08);
}
.nav-toggle span{
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  --btn-pad-y: 14px;
  --btn-pad-x: 26px;
  display: inline-flex;
  align-items:center; justify-content:center;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family:'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .4s ease, border-color .4s ease;
}
.btn span{ position:relative; z-index:2; }
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: linear-gradient(120deg, var(--violet), #4b3aa0);
  color: var(--btn-ink);
  box-shadow: 0 10px 30px rgba(var(--violet-rgb),.35);
}
.btn-primary::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(120deg, var(--violet-2), var(--lilac));
  opacity:0;
  transition: opacity .35s ease;
  z-index: 1;
}
.btn-primary:hover::before{ opacity: 1; }
.btn-primary:hover{ box-shadow: 0 14px 36px rgba(var(--violet-rgb),.5); }

.btn-ghost{
  background: var(--ghost-bg);
  border-color: var(--glass-border);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover{
  background: var(--ghost-bg-hover);
  border-color: var(--glass-border-hi);
}

.btn-small{ --btn-pad-y: 10px; --btn-pad-x: 20px; font-size: .86rem; }
.btn-full{ width: 100%; }

/* ============================================================
   Celestial Orbit Companion (Compacto + Micro-Satélites Orbitando)
   ============================================================ */
.celestial-companion{
  position: fixed;
  top: 50%;
  right: 6%;
  width: 90px;
  height: 90px;
  margin-top: -45px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Modo oscuro: mezcla screen luminosa pura */
  mix-blend-mode: screen;
}

html[data-theme="light"] .celestial-companion{
  /* Modo claro: mezcla multiply para integración limpia */
  mix-blend-mode: multiply;
}

.celestial-img{
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(185, 166, 255, 0.5));
  animation: planetAmbientSpin 75s linear infinite;
}
@keyframes planetAmbientSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

html[data-theme="light"] .celestial-img{
  filter: drop-shadow(0 0 10px rgba(124, 92, 240, 0.3));
}

/* Micro-Satélites Luminosos en Órbita */
.orbit-satellite{
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.orbit-satellite.sat-1{
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background: #c1b0ff;
  box-shadow: 0 0 7px #b9a6ff, 0 0 12px #7c5cf0;
  animation: satOrbit1 8s linear infinite;
}
.orbit-satellite.sat-2{
  width: 3px; height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: #ffd68a;
  box-shadow: 0 0 6px #fcd68a, 0 0 9px #e6a845;
  animation: satOrbit2 12s linear infinite reverse;
}
.orbit-satellite.sat-3{
  width: 3.5px; height: 3.5px;
  margin: -1.75px 0 0 -1.75px;
  background: #80eec0;
  box-shadow: 0 0 7px #80eec0;
  animation: satOrbit3 16s linear infinite;
}

@keyframes satOrbit1{
  0%{ transform: rotate(0deg) translateX(54px) rotate(0deg); }
  100%{ transform: rotate(360deg) translateX(54px) rotate(-360deg); }
}
@keyframes satOrbit2{
  0%{ transform: rotate(70deg) translateX(46px) rotate(-70deg); }
  100%{ transform: rotate(430deg) translateX(46px) rotate(-430deg); }
}
@keyframes satOrbit3{
  0%{ transform: rotate(200deg) translateX(62px) rotate(-200deg); }
  100%{ transform: rotate(560deg) translateX(62px) rotate(-560deg); }
}

.ripple{
  position:absolute;
  border-radius:50%;
  background: rgba(255,255,255,.5);
  transform: scale(0);
  animation: ripple .6s ease-out;
  pointer-events:none;
  z-index: 1;
}
@keyframes ripple{ to{ transform: scale(3); opacity:0; } }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }
.js .reveal{ transition-delay: var(--delay, 0s); }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position: relative;
  z-index: 2;
  padding: clamp(75px, 9vh, 105px) 0 clamp(20px, 3vh, 40px);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.hero .container{
  max-width: 1520px;
  width: 100%;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.32fr 500px;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}

/* ============================================================
   Smooth Scroll Indicator (Integrated Navigation Beacon)
   ============================================================ */
.scroll-indicator{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 14px;
  border-radius: 999px;
  background: var(--bg-0);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-hi);
  box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.25), 0 0 14px rgba(var(--violet-rgb), 0.2);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  animation: scrollIndicatorFadeIn 0.8s var(--ease) 1.2s forwards;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
  text-decoration: none;
  color: inherit;
}
html[data-theme="light"] .scroll-indicator{
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 4px 16px rgba(100, 80, 160, 0.12), 0 0 14px rgba(124, 58, 237, 0.16);
}
.scroll-indicator:hover{
  transform: translateY(-2px) scale(1.05);
  border-color: var(--violet-2);
  box-shadow: 0 8px 24px rgba(var(--shadow-rgb), 0.35), 0 0 20px rgba(var(--violet-rgb), 0.45);
}
html[data-theme="light"] .scroll-indicator:hover{
  border-color: var(--violet);
  box-shadow: 0 8px 24px rgba(100, 80, 160, 0.2), 0 0 20px rgba(124, 58, 237, 0.3);
}
.scroll-beacon-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 8px var(--violet-2);
  animation: dotPulse 2s ease-in-out infinite;
  flex: none;
}
html[data-theme="light"] .scroll-beacon-dot{
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}
.scroll-indicator-label{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .3s ease;
}
.scroll-indicator:hover .scroll-indicator-label{
  color: var(--ink);
}
.scroll-indicator-arrow{
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-2);
  transition: color .3s ease;
}
html[data-theme="light"] .scroll-indicator-arrow{
  color: var(--violet);
}
.scroll-indicator-arrow svg{
  animation: scrollChevronBounce 1.8s ease-in-out infinite;
}
@keyframes scrollIndicatorFadeIn{
  0%{ opacity: 0; transform: scale(0.9); }
  100%{ opacity: 1; transform: scale(1); }
}
@keyframes scrollChevronBounce{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(3px); }
}

/* Badge de Disponibilidad Activa (Status Radar Pill) */
.hero-badge-pill{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-hi);
  box-shadow: 0 4px 15px rgba(var(--shadow-rgb), 0.15);
  margin-bottom: 1.4em;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.hero-badge-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(var(--violet-rgb), 0.4);
}
.status-radar{
  position: relative;
  width: 9px; height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-core{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.radar-ping{
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.45);
  animation: radarPulse 2s ease-out infinite;
}
@keyframes radarPulse{
  0%{ transform: scale(0.6); opacity: 0.9; }
  100%{ transform: scale(2.4); opacity: 0; }
}
.badge-text{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.badge-short{
  display: none;
}
.hero-mobile-console{
  display: none;
}

.hero-title{
  font-size: clamp(2.15rem, 3.3vw, 3.25rem);
  margin-bottom: .45em;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-title-lead{
  display: block;
}
.hero-title-dynamic{
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28em;
  max-width: 100%;
}

/* Efecto de Rueda de Desplazamiento Hacia Arriba (Upward Scroll-Wheel / Slot Reel) */
.rotator-wrapper{
  display: inline-grid;
  grid-template-areas: "word";
  vertical-align: baseline;
  height: 1.3em;
  overflow: hidden;
  position: relative;
  line-height: 1.22;
}
.rotator-word{
  grid-area: word;
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(115%);
  filter: blur(4px);
  transition: transform .62s cubic-bezier(0.16, 1, 0.3, 1), opacity .5s ease, filter .5s ease;
  pointer-events: none;
  background: linear-gradient(135deg, #ffffff 0%, var(--lilac-2) 40%, var(--violet-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  will-change: transform, opacity, filter;
  padding-bottom: 2px;
}
html[data-theme="light"] .rotator-word{
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rotator-word.active{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.rotator-word.exit{
  opacity: 0;
  transform: translateY(-115%);
  filter: blur(4px);
}

.hero-sub{
  font-size: 1.06rem;
  max-width: 780px;
  margin-bottom: 2.3em;
  line-height: 1.68;
  color: var(--ink-dim);
}

.hero-actions{
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 2.8em;
}

/* Botón con Destello Láser Shimmer */
.btn-shimmer{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-shimmer::after{
  content: '';
  position: absolute;
  top: -50%; left: -100%;
  width: 60%; height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(25deg);
  animation: btnLaserShimmer 4s ease-in-out infinite;
}
@keyframes btnLaserShimmer{
  0%, 65%{ left: -100%; }
  100%{ left: 200%; }
}
.btn-arrow{
  transition: transform .25s var(--ease);
}
.btn:hover .btn-arrow{
  transform: translateX(4px);
}

/* Estadísticas en Tarjetas de Cristal */
.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 780px;
}
.stat-card{
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.stat-card:hover{
  transform: translateY(-3px);
  border-color: rgba(var(--violet-rgb), 0.45);
  box-shadow: 0 10px 25px rgba(var(--shadow-rgb), 0.2);
}
.stat-num-wrap{
  display: flex;
  align-items: baseline;
}
.stat-card .stat-num{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-card .stat-label{
  font-size: .75rem;
  color: var(--ink-faint);
  line-height: 1.3;
}

/* ============================================================
   Hero Visual Orbit Scene & Floating System Chips
   ============================================================ */
.hero-visual{
  position: relative;
  height: 440px;
  perspective: 1000px;
}
.orbit-scene{
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
}

/* Floating System Chips (Métricas en Vivo con Trayectoria Dinámica) */
.system-chip{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-hi);
  box-shadow: 0 6px 20px rgba(var(--shadow-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  z-index: 25;
  pointer-events: auto;
  transition: transform .3s var(--ease), border-color .3s ease;
  will-change: transform;
}
.system-chip:hover{
  transform: scale(1.08) !important;
  border-color: rgba(var(--violet-rgb), 0.55);
}

.chip-latency{
  top: 10%;
  left: -15px;
  animation: chipDrift1 10s ease-in-out infinite alternate;
}
.chip-security{
  bottom: 10%;
  right: -15px;
  animation: chipDrift2 12s ease-in-out infinite alternate;
}

@keyframes chipDrift1{
  0%{ transform: translate(0, 0) rotate(-1.5deg); }
  25%{ transform: translate(18px, -14px) rotate(1.2deg); }
  50%{ transform: translate(28px, 8px) rotate(-0.5deg); }
  75%{ transform: translate(10px, 16px) rotate(1.8deg); }
  100%{ transform: translate(-12px, -8px) rotate(-1.2deg); }
}
@keyframes chipDrift2{
  0%{ transform: translate(0, 0) rotate(1deg); }
  25%{ transform: translate(-20px, 12px) rotate(-1.8deg); }
  50%{ transform: translate(-30px, -8px) rotate(0.8deg); }
  75%{ transform: translate(-12px, -18px) rotate(-1.2deg); }
  100%{ transform: translate(15px, 9px) rotate(1.5deg); }
}

.chip-beacon{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  position: relative;
}
.chip-beacon.pulse-green{
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: beaconPulse 2s ease-in-out infinite;
}
.chip-beacon.pulse-violet{
  background: var(--lilac-2);
  box-shadow: 0 0 8px var(--lilac-2);
  animation: beaconPulse 2.4s ease-in-out infinite;
}
@keyframes beaconPulse{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 0.5; transform: scale(1.3); }
}

.chip-text-group{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.chip-label{
  font-size: .52rem;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.chip-val{
  font-size: .66rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.chip-tag{
  display: inline-block;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: .55rem;
  font-weight: 700;
  margin-left: 2px;
}
html[data-theme="light"] .chip-tag{
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
}
.orbit-glow{
  position: absolute; top: 50%; left: 50%;
  width: 200px; height: 200px;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(var(--violet-rgb),.35), transparent 70%);
  filter: blur(26px);
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%,100%{ opacity: .7; transform: translate(-50%,-50%) scale(1); }
  50%{ opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
}
.planet-photo,
.planet-svg{
  position: absolute; top: 50%; left: 50%;
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(var(--violet-rgb),.55)) drop-shadow(0 0 36px rgba(var(--violet-rgb),.3));
  animation: planetSpin 90s linear infinite;
  will-change: opacity, transform;
}
.planet-photo{
  object-fit: cover;
}
.planet-svg{ display: none; }
.orbit-scene.planet-fallback .planet-photo{ display: none; }
.orbit-scene.planet-fallback .planet-svg{ display: block; }
@keyframes planetSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.orbit-ring{
  position: absolute; top: 50%; left: 50%;
  border: 1px solid var(--glass-border-hi);
  border-radius: 50%;
  transform: translate(-50%,-50%) rotate(-25deg);
  will-change: opacity, transform;
}
.ring-1{ width: 170px; height: 170px; animation: spin 24s linear infinite; }
.ring-2{ width: 260px; height: 260px; border-color: rgba(var(--lilac-2-rgb),.22); animation: spin 36s linear infinite reverse; }
.ring-3{ width: 350px; height: 350px; animation: spin 48s linear infinite; }
@keyframes spin{ to{ transform: translate(-50%,-50%) rotate(335deg); } }

.tech-orbit{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.tech-badge{
  position: absolute;
  top: 50%; left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .64rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation-name: techOrbit;
  animation-duration: var(--dur);
  animation-delay: var(--delay);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  will-change: opacity, transform;
  cursor: default;
}
.tech-badge.rev{ animation-direction: reverse; }
.tech-icon{
  width: 11px;
  height: 11px;
  flex: none;
  display: block;
}

@keyframes techOrbit{
  from{ transform: translate(-50%,-50%) rotate(-25deg) translateX(var(--radius)) rotate(25deg); }
  to{ transform: translate(-50%,-50%) rotate(335deg) translateX(var(--radius)) rotate(-335deg); }
}

.tech-badge:hover{
  animation-play-state: paused;
  z-index: 50;
  border-color: rgba(255, 255, 255, 0.8);
}
.tech-badge.badge-react:hover{ box-shadow: 0 0 20px rgba(97, 218, 251, 0.6); }
.tech-badge.badge-node:hover{ box-shadow: 0 0 20px rgba(104, 160, 99, 0.6); }
.tech-badge.badge-ts:hover{ box-shadow: 0 0 20px rgba(49, 120, 198, 0.6); }
.tech-badge.badge-postgres:hover{ box-shadow: 0 0 20px rgba(51, 103, 145, 0.6); }
.tech-badge.badge-docker:hover{ box-shadow: 0 0 20px rgba(36, 150, 237, 0.6); }
.tech-badge.badge-graphql:hover{ box-shadow: 0 0 20px rgba(229, 53, 171, 0.6); }
.tech-badge.badge-aws:hover{ box-shadow: 0 0 20px rgba(255, 153, 0, 0.6); }
.tech-badge.badge-python:hover{ box-shadow: 0 0 20px rgba(56, 126, 184, 0.6); }
.tech-badge.badge-three:hover{ box-shadow: 0 0 20px rgba(4, 158, 244, 0.6); }

.dot{ width:8px; height:8px; border-radius:50%; flex: none; display:inline-block; }
.dot-violet{ background: var(--violet-2); box-shadow: 0 0 8px var(--violet-2); }
.dot-lilac{ background: var(--lilac-2); box-shadow: 0 0 8px var(--lilac-2); }
.dot.pulse{ animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse{
  0%,100%{ opacity:1; transform: scale(1); }
  50%{ opacity:.5; transform: scale(1.3); }
}

/* ============================================================
   Sections generic
   ============================================================ */
section{ position:relative; z-index:2; padding: 120px 0; }
.section-head{ max-width: 640px; margin: 0 auto 64px; text-align:center; }
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-sub{ font-size: 1.02rem; }
.section-head .section-sub{ margin: 0 auto; }

/* ============================================================
   Services (Full 100vh Viewport on Desktop / Adaptive Mobile)
   ============================================================ */
.services{
  position: relative;
  z-index: 20;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(74px, 8.5vh, 92px) 0 clamp(16px, 2.5vh, 28px);
  box-sizing: border-box;
  scroll-margin-top: 0;
}
.services .container{
  position: relative;
  z-index: 20;
  max-width: 1420px;
  width: 100%;
  padding: 0 clamp(16px, 2.4vw, 36px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}

.services .section-head{
  max-width: 760px;
  margin: 0 auto clamp(12px, 1.8vh, 20px);
  text-align: center;
  position: relative;
  z-index: 20;
}
.services .section-head .eyebrow{
  margin-bottom: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--violet-2);
}
html[data-theme="light"] .services .section-head .eyebrow{
  color: var(--violet);
}
.services .section-head h2{
  font-size: clamp(1.6rem, 2.1vw, 2.25rem);
  margin: 0 0 5px;
  line-height: 1.18;
  font-weight: 700;
}
.services .section-head .section-sub{
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  line-height: 1.4;
  color: var(--ink-dim);
  margin: 0 auto;
  max-width: 620px;
}

.services-toolbar{
  display: none;
}

.services-grid{
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.1vw, 15px);
  width: 100%;
}

.service-card{
  position: relative;
  z-index: 25;
  padding: clamp(14px, 1.6vh, 20px) clamp(14px, 1.3vw, 20px);
  border-radius: var(--radius-md, 18px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  outline: none;
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.service-card::after{
  content:'';
  position:absolute; top:0; left:-60%;
  width: 50%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
  pointer-events: none;
}
.service-card:hover::after{ left: 130%; }
.service-card:hover,
.service-card:focus-visible{
  transform: translateY(-5px);
  border-color: var(--glass-border-hi);
  box-shadow: 0 16px 40px rgba(var(--shadow-rgb),.45), 0 0 24px rgba(var(--violet-rgb),.2), inset 0 1px 0 rgba(255,255,255,.3);
}

html[data-theme="light"] .service-card{
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(90, 70, 150, 0.14);
  box-shadow: 0 8px 24px rgba(76, 60, 140, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme="light"] .service-card:hover{
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(109, 79, 214, 0.35);
  box-shadow: 0 14px 34px rgba(76, 60, 140, 0.14), 0 0 22px rgba(109, 79, 214, 0.15);
}

.service-head{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.service-icon{
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  margin-bottom: 0;
  flex: none;
  color: var(--violet-2);
  background: linear-gradient(135deg, rgba(var(--violet-rgb),.18), rgba(var(--lilac-rgb),.08));
  border: 1px solid var(--glass-border);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
html[data-theme="light"] .service-icon{
  color: var(--violet);
  background: linear-gradient(135deg, rgba(109,79,214,.14), rgba(76,91,216,.08));
  border-color: rgba(109,79,214,.2);
}
.service-icon svg{
  width: 20px;
  height: 20px;
}
.service-card:hover .service-icon{
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(var(--violet-rgb), 0.3);
}
.service-card:nth-child(even) .service-icon{
  color: var(--lilac-2);
}
html[data-theme="light"] .service-card:nth-child(even) .service-icon{
  color: #4c5bd8;
}

.service-info{
  display: block;
  flex: 1;
  min-width: 0;
}
.service-info h3{
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.22;
}
.service-summary{
  font-size: clamp(0.79rem, 0.86vw, 0.85rem);
  line-height: 1.4;
  color: var(--ink-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-theme="light"] .service-summary{
  color: #4f4768;
}

.service-action{
  display: none;
}
.service-toggle-btn{
  display: none;
}

/* En Desktop, el drawer siempre está visible y compacto */
.service-drawer{
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.service-drawer-content{
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.service-divider-line{
  display: none;
}

.card-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-tags li{
  font-size: 0.65rem;
  font-weight: 600;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(var(--violet-rgb),.1);
  border: 1px solid var(--glass-border);
  color: var(--violet-2);
  white-space: nowrap;
  transition: all .25s ease;
}
html[data-theme="light"] .card-tags li{
  background: rgba(109, 79, 214, 0.07);
  border-color: rgba(109, 79, 214, 0.16);
  color: #553bb3;
}
.service-card:hover .card-tags li{
  border-color: rgba(var(--violet-2-rgb), 0.35);
  background: rgba(var(--violet-rgb), 0.18);
}
html[data-theme="light"] .service-card:hover .card-tags li{
  border-color: rgba(109, 79, 214, 0.3);
  background: rgba(109, 79, 214, 0.14);
}

@media (min-width: 981px){
  .mini-preview{
    display: none;
  }
}

/* ============================================================
   Projects page
   ============================================================ */
.nav-link.is-active{ color: var(--ink); }
.nav-link.is-active::after{ width: 100%; }

.projects-hero{
  min-height: auto;
  padding: 190px 0 60px;
  display: block;
}
.projects-intro{ max-width: 680px; }
.projects-intro .hero-sub{ max-width: 100%; }

.projects-section{ padding-top: 40px; }
.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card{
  overflow: hidden;
  padding: 14px;
  cursor: pointer;
  outline: none;
  transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
}
/* Fallback for touch / reduced-motion / no-JS: the JS tilt effect (see
   js/main.js) takes over with inline transforms on capable pointers and
   overrides this; this rule keeps a sensible lift on everything else. */
.project-card:hover,
.project-card:focus-visible{
  transform: translateY(-6px);
  border-color: var(--glass-border-hi);
  box-shadow: 0 20px 50px rgba(var(--shadow-rgb),.5), inset 0 1px 0 rgba(255,255,255,.2);
}
.project-card::after{
  content:'';
  position:absolute; top:0; left:-60%;
  width: 50%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
  pointer-events: none;
}
.project-card:hover::after{ left: 130%; }

.project-shot{
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--violet-rgb),.16), rgba(var(--lilac-rgb),.08));
  border: 1px solid var(--glass-border);
  display:flex; align-items:center; justify-content:center;
}
.shot-mesh{
  position:absolute; inset: -30%;
  background:
    radial-gradient(circle at 28% 32%, rgba(var(--violet-rgb),.4), transparent 60%),
    radial-gradient(circle at 72% 68%, rgba(var(--lilac-rgb),.32), transparent 60%);
  filter: blur(30px);
  animation: shotDrift 12s ease-in-out infinite;
}
@keyframes shotDrift{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(4%,-3%) scale(1.08); }
}
.shot-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .6;
}
.shot-icon{
  position: relative; z-index: 1;
  width: 25%; height:25%;
  color: var(--violet-2);
  filter: drop-shadow(0 0 20px rgba(var(--violet-rgb),.5));
  transition: transform .4s var(--ease);
}
.project-card:hover .shot-icon{ transform: scale(1.08); }
.shot-badge{
  position:absolute; top:12px; right:12px; z-index:1;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .64rem;
  font-family: 'Space Grotesk', sans-serif;
  background: rgba(var(--shadow-rgb),.4);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--ink-dim);
}

.project-body{ padding: 20px 12px 10px; }
.project-tag{
  font-family:'Space Grotesk', sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lilac-2);
  margin-bottom: 8px;
}
html[data-theme="light"] .project-tag{ color: var(--violet); }
.project-body h3{ font-size: 1.15rem; margin-bottom: .4em; }
.project-body p:not(.project-tag){ font-size: .9rem; margin-bottom: 14px; }
.project-more{
  display:inline-flex; align-items:center; gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  color: var(--lilac-2);
}
.project-more svg{ width: 15px; height:15px; transition: transform .3s var(--ease); }
.project-card:hover .project-more svg{ transform: translateX(4px); }

.custom-dev{ padding-top: 20px; }
.custom-dev-panel{
  display:flex; align-items:center; gap: 32px;
  padding: 42px 44px;
  flex-wrap: wrap;
}
.custom-dev-icon{
  flex: none;
  width: 68px; height:68px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 18px;
  color: var(--violet-2);
  background: linear-gradient(135deg, rgba(var(--violet-rgb),.2), rgba(var(--lilac-rgb),.1));
  border: 1px solid var(--glass-border);
}
.custom-dev-icon svg{ width: 34px; height:34px; }
.custom-dev-copy{ flex: 1 1 320px; }
.custom-dev-copy h2{ font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .3em; }
.custom-dev-copy p{ margin-bottom: 0; }
.custom-dev-panel .btn{ flex: none; }

.tech-showcase{ padding-top: 20px; }
.tech-wall{
  display:flex; flex-wrap:wrap; justify-content:center; gap: 12px;
  max-width: 840px; margin: 0 auto;
}
.tech-chip{
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.tech-chip:hover{
  transform: translateY(-4px) scale(1.05);
  border-color: var(--glass-border-hi);
  box-shadow: 0 12px 26px rgba(var(--violet-rgb),.3);
}

/* ============================================================
   Project detail modal
   ============================================================ */
.project-modal{
  position: fixed; inset: 0;
  z-index: 600;
  display: flex; align-items:center; justify-content:center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.project-modal.open{ opacity: 1; pointer-events: auto; }
.project-modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(var(--shadow-rgb),.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.project-modal-panel{
  position: relative; z-index: 1;
  width: min(920px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-lg);
  transform: scale(.94) translateY(16px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .3s ease;
}
.project-modal.open .project-modal-panel{ transform: scale(1) translateY(0); opacity: 1; }

.project-modal-close{
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height:36px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(var(--shadow-rgb),.45);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.project-modal-close:hover{ transform: rotate(90deg); border-color: var(--glass-border-hi); }
.project-modal-close svg{ width: 16px; height:16px; }

.modal-media{ position: relative; min-height: 280px; }
.modal-shot{
  position: relative;
  height: 100%; min-height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--violet-rgb),.18), rgba(var(--lilac-rgb),.09));
  display:flex; align-items:center; justify-content:center;
}
.modal-shot .shot-icon{ width: 30%; height:30%; transition: opacity .3s ease; }
.modal-img{
  display:none;
  position: absolute; inset: 0;
  width: 100%; height:100%;
  object-fit: cover;
}
.modal-shot.has-image .shot-mesh,
.modal-shot.has-image .shot-grid,
.modal-shot.has-image .shot-icon{ opacity: 0; }
.modal-shot.has-image .modal-img{ display:block; }

.modal-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height:38px; border-radius: 50%;
  display: none; align-items:center; justify-content:center;
  background: rgba(var(--shadow-rgb),.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  cursor: pointer;
  z-index: 1;
  transition: border-color .3s ease, transform .3s ease;
}
.modal-nav:hover{ border-color: var(--glass-border-hi); }
.modal-nav svg{ width:18px; height:18px; }
.modal-prev{ left: 14px; }
.modal-next{ right: 14px; }
.modal-nav.show{ display:flex; }

.modal-dots{
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: none; gap: 6px;
  z-index: 1;
}
.modal-dots.show{ display:flex; }
.modal-dot{
  width: 6px; height:6px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.modal-dot.active{ background: var(--lilac-2); transform: scale(1.3); }

.modal-info{
  padding: 40px 38px;
  display:flex; flex-direction:column;
}
.modal-info h3{ font-size: 1.55rem; margin-bottom: .35em; }
.modal-actions{ margin-top: auto; padding-top: 22px; display:flex; flex-direction:column; gap: 10px; align-items:flex-start; }
.modal-actions .btn{ display:none; }
.modal-actions .btn.show{ display:inline-flex; }
.modal-empty-note{
  font-size: .82rem;
  color: var(--ink-faint);
  margin: 0;
  display: none;
}
.modal-empty-note.show{ display:block; }

/* ============================================================
   About
   ============================================================ */
.about{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(75px, 8.5vh, 95px) 0 clamp(20px, 3vh, 40px);
  box-sizing: border-box;
  scroll-margin-top: 0;
}
.about .container{
  max-width: 1320px;
  width: 100%;
  padding: 0 clamp(16px, 2.4vw, 36px);
  box-sizing: border-box;
}
.about-grid{
  display:grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}
.values-list{ margin-top: 24px; display:flex; flex-direction:column; gap:12px; }
.value-item{
  display:flex; gap:16px; align-items:flex-start;
  padding: clamp(14px, 1.8vh, 18px) clamp(16px, 1.5vw, 20px);
  border-radius: var(--radius-md, 16px);
  transition: transform .35s var(--ease), border-color .35s ease;
}
.value-item:hover{ transform: translateX(6px); border-color: var(--glass-border-hi); }
.value-num{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size: 1rem;
  color: var(--violet-2);
  padding-top: 2px;
}
.value-item h3{ font-size: 1rem; margin-bottom:.25em; }
.value-item p{ font-size: .88rem; margin-bottom:0; }

.panel-glass{
  padding: clamp(24px, 3.5vh, 36px) clamp(22px, 2.5vw, 32px);
  border-radius: var(--radius-lg, 24px);
  overflow:hidden;
}
.panel-shine{
  position:absolute; top:-40%; left:-20%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 55%);
  animation: shineMove 9s ease-in-out infinite;
}
@keyframes shineMove{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(6%, 5%); }
}
.panel-row{ display:flex; align-items:center; gap:14px; margin-bottom: 18px; position:relative; }
.panel-row:last-child{ margin-bottom:0; }
.panel-bar{
  flex:1; height:8px; border-radius:999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
}
.panel-bar span{
  display:block; height:100%; border-radius:999px;
  background: linear-gradient(90deg, var(--violet), var(--lilac));
  animation: barGrow 1.6s var(--ease-soft) both;
}
@keyframes barGrow{ from{ width:0 !important; } }

/* ============================================================
   Coverage
   ============================================================ */
.coverage{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(75px, 8.5vh, 95px) 0 clamp(20px, 3vh, 40px);
  box-sizing: border-box;
  scroll-margin-top: 0;
}
.coverage .container{
  max-width: 1320px;
  width: 100%;
  padding: 0 clamp(16px, 2.4vw, 36px);
  box-sizing: border-box;
}
.coverage-grid{
  display:grid;
  grid-template-columns: 1fr .88fr;
  gap: clamp(30px, 4vw, 56px);
  align-items:center;
}

/* Telemetry Cloud Ping in Cobertura */
.cloud-telemetry{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 14px);
  margin: 16px 0;
  border: 1px solid var(--glass-border-hi);
  background: var(--glass-bg);
}
html[data-theme="light"] .cloud-telemetry{
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(90, 70, 150, 0.18);
  box-shadow: 0 4px 14px rgba(76, 60, 140, 0.08);
}
.telemetry-beacon{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: beaconPulse 2s infinite ease-in-out;
  flex: none;
}
@keyframes beaconPulse{
  0%, 100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.4); opacity: 0.6; }
}
.telemetry-info{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.telemetry-title{
  font-size: .78rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
}
.telemetry-ping{
  font-size: .74rem;
  color: var(--ink-dim);
}
.telemetry-ping strong{
  color: var(--violet-2);
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
}
html[data-theme="light"] .telemetry-ping strong{
  color: var(--violet);
}
.telemetry-tag{
  font-size: .62rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-weight: 700;
  margin-left: 4px;
}

/* Coverage Stats Grid */
.coverage-stats-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.cstat-item{
  padding: 11px 14px;
  border-radius: var(--radius-sm, 14px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: transform .25s var(--ease), border-color .25s ease;
}
html[data-theme="light"] .cstat-item{
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(90, 70, 150, 0.14);
  box-shadow: 0 4px 12px rgba(76, 60, 140, 0.06);
}
.cstat-item:hover{
  transform: translateY(-2px);
  border-color: var(--glass-border-hi);
}
.cstat-num{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--violet-2);
  letter-spacing: -.02em;
}
html[data-theme="light"] .cstat-num{
  color: var(--violet);
}
.cstat-lbl{
  font-size: .72rem;
  color: var(--ink-dim);
  line-height: 1.3;
}

/* Offline-First Guarantee Card */
.offline-guarantee-card{
  padding: 13px 16px;
  border-radius: var(--radius-md, 16px);
  border: 1px solid rgba(var(--violet-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.12), rgba(var(--lilac-rgb), 0.04));
  box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.2);
  margin-top: 14px;
}
html[data-theme="light"] .offline-guarantee-card{
  background: linear-gradient(135deg, rgba(109, 79, 214, 0.08), rgba(255, 255, 255, 0.9));
  border-color: rgba(109, 79, 214, 0.25);
  box-shadow: 0 4px 16px rgba(76, 60, 140, 0.08);
}
.offline-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
html[data-theme="light"] .offline-badge{
  color: var(--violet);
}
.offline-desc{
  font-size: .76rem;
  line-height: 1.42;
  color: var(--ink-dim);
  margin: 0;
}
.offline-desc strong{
  color: var(--ink);
}

.coverage-visual{ display:flex; flex-direction:column; align-items:center; }

/* ============================================================
   Process (Remote Deployment Protocol 2.0)
   ============================================================ */
.process{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(72px, 8.5vh, 90px) 0 clamp(16px, 2.5vh, 28px);
  box-sizing: border-box;
  scroll-margin-top: 0;
}
.process .container{
  max-width: 1380px;
  width: 100%;
  padding: 0 clamp(16px, 2.4vw, 36px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.process .section-head{
  margin-bottom: clamp(14px, 2vh, 22px);
  text-align: center;
}

.process-track-wrap{
  position: relative;
  width: 100%;
}
/* Laser line connecting the 4 steps in desktop */
.process-track-wrap::before{
  content: '';
  position: absolute;
  top: 36px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(var(--violet-rgb), 0.25) 15%, 
    var(--violet-2) 50%, 
    rgba(var(--violet-rgb), 0.25) 85%, 
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}
html[data-theme="light"] .process-track-wrap::before{
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(109, 79, 214, 0.2) 15%, 
    var(--violet) 50%, 
    rgba(109, 79, 214, 0.2) 85%, 
    transparent 100%
  );
}

/* Traveling Laser Wave Node that physically flows across the 4 cards */
.process-track-wrap::after{
  content: '';
  position: absolute;
  top: 35px;
  left: 6%;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffffff, var(--violet-2), #ffffff, transparent);
  box-shadow: 0 0 14px var(--violet-2), 0 0 24px #fff;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  animation: laserTravelWave 6.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes laserTravelWave{
  0%{ left: 6%; opacity: 0; transform: scaleX(0.7); }
  4%{ opacity: 1; }
  25%{ left: 31%; opacity: 1; transform: scaleX(1.2); }
  50%{ left: 56%; opacity: 1; transform: scaleX(1.2); }
  75%{ left: 81%; opacity: 1; transform: scaleX(0.9); }
  92%{ left: 86%; opacity: 1; }
  98%{ opacity: 0; }
  100%{ left: 6%; opacity: 0; }
}

.process-track{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.3vw, 18px);
  position: relative;
  z-index: 1;
}

.process-step{
  padding: clamp(16px, 1.9vh, 22px) clamp(14px, 1.3vw, 18px);
  border-radius: var(--radius-md, 18px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease, background .35s ease;
  animation: cardWaveElevate 6.4s infinite ease-in-out;
  animation-delay: calc(var(--step-idx, 0) * 1.6s);
}
html[data-theme="light"] .process-step{
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(90, 70, 150, 0.16);
  box-shadow: 0 8px 24px rgba(76, 60, 140, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Sequential Wave Elevation on the Card */
@keyframes cardWaveElevate{
  0%, 28%{
    transform: translateY(0);
    border-color: var(--glass-border);
  }
  6%, 20%{
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(var(--shadow-rgb), 0.35), 0 0 20px rgba(var(--violet-rgb), 0.25);
    border-color: rgba(var(--violet-2-rgb), 0.55);
  }
  26%, 100%{
    transform: translateY(0);
    border-color: var(--glass-border);
  }
}
html[data-theme="light"] .process-step{
  animation-name: cardWaveElevateLight;
}
@keyframes cardWaveElevateLight{
  0%, 28%{
    transform: translateY(0);
    border-color: rgba(90, 70, 150, 0.16);
  }
  6%, 20%{
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(76, 60, 140, 0.14), 0 0 18px rgba(109, 79, 214, 0.16);
    border-color: rgba(109, 79, 214, 0.45);
  }
  26%, 100%{
    transform: translateY(0);
    border-color: rgba(90, 70, 150, 0.16);
  }
}

/* Sequential Glowing Wave on the Border of each Card */
.step-glow-border{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity .35s ease;
  animation: stepWaveGlow 6.4s infinite ease-in-out;
  animation-delay: calc(var(--step-idx, 0) * 1.6s);
}
.step-glow-border::before{
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(var(--violet-rgb), 0.8) 18%, var(--violet-2) 28%, #ffffff 35%, var(--violet-2) 42%, transparent 60%);
  animation: stepBorderSpin 3.5s linear infinite;
}
@keyframes stepBorderSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
@keyframes stepWaveGlow{
  0%, 28%{
    opacity: 0;
  }
  4%, 22%{
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(var(--violet-rgb), 0.75));
  }
  26%, 100%{
    opacity: 0;
  }
}

.process-step:hover{
  transform: translateY(-7px) !important;
  border-color: var(--violet-2) !important;
  box-shadow: 0 18px 45px rgba(var(--shadow-rgb),.5), 0 0 30px rgba(var(--violet-rgb),.35) !important;
}
html[data-theme="light"] .process-step:hover{
  background: #ffffff;
  border-color: var(--violet) !important;
  box-shadow: 0 16px 40px rgba(76, 60, 140, 0.16), 0 0 24px rgba(109, 79, 214, 0.22) !important;
}
.process-step:hover .step-glow-border{
  opacity: 1 !important;
}

.step-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.step-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--lilac));
  color: var(--btn-ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .84rem;
  box-shadow: 0 2px 10px rgba(var(--violet-rgb), 0.35);
  margin-bottom: 0;
  flex: none;
  animation: stepNumWave 6.4s infinite ease-in-out;
  animation-delay: calc(var(--step-idx, 0) * 1.6s);
}
@keyframes stepNumWave{
  0%, 28%{
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(var(--violet-rgb), 0.35);
  }
  6%, 20%{
    transform: scale(1.16);
    box-shadow: 0 0 16px rgba(var(--violet-2-rgb), 0.9), 0 0 28px rgba(var(--violet-rgb), 0.6);
  }
  26%, 100%{
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(var(--violet-rgb), 0.35);
  }
}
.step-badge{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .64rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--violet-rgb), 0.14);
  border: 1px solid rgba(var(--violet-rgb), 0.28);
  color: var(--violet-2);
}
html[data-theme="light"] .step-badge{
  background: rgba(109, 79, 214, 0.1);
  border-color: rgba(109, 79, 214, 0.22);
  color: var(--violet);
}

.step-icon-wrap{
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.18), rgba(var(--lilac-rgb), 0.08));
  border: 1px solid var(--glass-border);
  color: var(--violet-2);
  margin-bottom: 10px;
  transition: transform .3s ease;
}
html[data-theme="light"] .step-icon-wrap{
  color: var(--violet);
  background: linear-gradient(135deg, rgba(109, 79, 214, 0.12), rgba(76, 91, 216, 0.06));
  border-color: rgba(109, 79, 214, 0.18);
}
.process-step:hover .step-icon-wrap{
  transform: scale(1.1);
}

.process-step h3{
  font-size: clamp(0.95rem, 1.02vw, 1.06rem);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.22;
}
.step-desc{
  font-size: clamp(0.76rem, 0.82vw, 0.82rem);
  line-height: 1.38;
  color: var(--ink-dim);
  margin: 0 0 10px;
}
html[data-theme="light"] .step-desc{
  color: #4f4768;
}

/* Deliverables list */
.step-deliverables{
  list-style: none;
  padding: 8px 10px;
  margin: auto 0 0;
  border-radius: var(--radius-sm, 12px);
  background: rgba(var(--shadow-rgb), 0.2);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[data-theme="light"] .step-deliverables{
  background: rgba(109, 79, 214, 0.05);
  border-color: rgba(109, 79, 214, 0.12);
}
.step-deliverables li{
  font-size: .7rem;
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.24;
}
html[data-theme="light"] .step-deliverables li{
  color: #2e234a;
}
.deliv-check{
  color: #10b981;
  font-weight: 800;
  font-size: .76rem;
  flex: none;
}

/* Guarantee bar at bottom */
.process-guarantee{
  margin: clamp(12px, 1.8vh, 18px) auto 0;
  max-width: 820px;
  width: 100%;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(var(--shadow-rgb), 0.2);
  text-align: center;
}
html[data-theme="light"] .process-guarantee{
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(90, 70, 150, 0.22);
  box-shadow: 0 4px 16px rgba(76, 60, 140, 0.08);
}
.guarantee-icon-glow{
  font-size: .95rem;
  flex: none;
}
.guarantee-text{
  font-size: clamp(0.74rem, 0.82vw, 0.82rem);
  color: var(--ink-dim);
}
.guarantee-text strong{
  color: var(--ink);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(75px, 8.5vh, 95px) 0 clamp(20px, 3vh, 40px);
  box-sizing: border-box;
  scroll-margin-top: 0;
}
.faq .container{
  max-width: 860px;
  width: 100%;
  padding: 0 clamp(16px, 2.4vw, 36px);
  box-sizing: border-box;
}
.faq .section-head{
  margin-bottom: clamp(16px, 2.5vh, 32px);
}
.faq-list{
  display:flex; flex-direction:column; gap: 10px;
  max-width: 760px; margin: 0 auto;
}
.faq-item{ overflow:hidden; border-radius: var(--radius-sm, 14px); }
.faq-question{
  width: 100%;
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: clamp(14px, 1.8vh, 18px) clamp(18px, 1.6vw, 22px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-icon{
  width: 18px; height:18px; flex: none;
  color: var(--lilac-2);
  transition: transform .35s var(--ease);
}
.faq-question[aria-expanded="true"] .faq-icon{ transform: rotate(180deg); }
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-answer p{
  padding: 0 clamp(18px, 1.6vw, 22px) clamp(14px, 1.8vh, 18px);
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
}

/* ============================================================
   Contact
   ============================================================ */
.contact{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(75px, 8.5vh, 95px) 0 clamp(20px, 3vh, 40px);
  box-sizing: border-box;
  scroll-margin-top: 0;
}
.contact .container{
  max-width: 1320px;
  width: 100%;
  padding: 0 clamp(16px, 2.4vw, 36px);
  box-sizing: border-box;
}
.contact-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}
.contact-info{ margin-top: 28px; display:flex; flex-direction:column; gap: 14px; }
.contact-info li{
  display:flex; align-items:center; gap: 14px;
  padding: 16px 20px;
  font-size: .92rem;
}
.contact-info svg{ width:20px; height:20px; color: var(--lilac-2); flex:none; }

.contact-form{ padding: 34px; }
.form-row{ margin-bottom: 20px; }
.form-row label{
  display:block;
  font-size: .85rem;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.form-row .opt{ color: var(--ink-faint); font-size: .78rem; }
.form-row input,
.form-row textarea{
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: .95rem;
  resize: vertical;
  transition: border-color .3s ease, background .3s ease;
}
html[data-theme="light"] .form-row input,
html[data-theme="light"] .form-row textarea{
  background: rgba(255,255,255,.5);
}
.form-row input:focus,
.form-row textarea:focus{
  outline:none;
  border-color: var(--lilac-2);
  background: rgba(255,255,255,.08);
}
.form-note{
  margin: 14px 0 0;
  font-size: .85rem;
  color: var(--lilac-2);
  min-height: 1.2em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  position: relative;
  z-index: 2;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.footer-grid{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.footer-brand .brand-word{ font-size: .92rem; max-width: none; opacity: 1; animation: none; }
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a{
  font-size: .88rem;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .25s ease;
  white-space: nowrap;
}
.footer-links a:hover{ color: var(--ink); }
.footer-copy{
  font-size: .8rem;
  color: var(--ink-faint);
  margin: 0;
}

/* ============================================================
   Service mini-previews
   ============================================================ */
.card-tags{
  display:flex; flex-wrap:wrap; gap:6px;
  margin: 14px 0 16px;
}
.card-tags li{
  font-size: .7rem;
  font-family: 'Space Grotesk', sans-serif;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--violet-rgb),.12);
  border: 1px solid var(--glass-border);
  color: var(--ink-dim);
}
.mini-preview{
  margin-top: auto;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(var(--shadow-rgb),.18);
  border: 1px solid var(--glass-border);
  min-height: 64px;
}
html[data-theme="light"] .mini-preview{ background: rgba(var(--violet-rgb),.05); }
.service-card{ display:flex; flex-direction:column; }

.mp-dots{ display:flex; gap:5px; margin-bottom: 12px; }
.mp-dots span{ width:6px; height:6px; border-radius:50%; background: var(--glass-border-hi); }
.mp-bars{ display:flex; align-items:flex-end; gap:6px; height: 34px; }
.mp-bars span{
  flex:1; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--violet-2), var(--lilac));
  opacity: .8;
}

.mp-ledger{ display:flex; flex-direction:column; gap:10px; }
.mp-row{ display:flex; align-items:center; gap:10px; }
.mp-line{ height:6px; border-radius:3px; background: var(--glass-border-hi); flex:none; }
.mp-amount{ height:6px; border-radius:3px; background: linear-gradient(90deg, var(--violet), var(--lilac)); margin-left:auto; }

.mp-api{ display:flex; flex-direction:column; gap:8px; font-family:'Space Grotesk',sans-serif; font-size:.68rem; }
.mp-api-line{ display:flex; align-items:center; gap:8px; }
.mp-method{
  padding:2px 7px; border-radius:5px; font-weight:700;
  background: rgba(var(--violet-rgb),.25); color: var(--violet-2);
}
.mp-method.post{ background: rgba(var(--lilac-rgb),.25); color: var(--lilac-2); }
.mp-path{ color: var(--ink-dim); }
.mp-status{
  margin-left:auto; padding:2px 7px; border-radius:5px;
  background: rgba(var(--lilac-rgb),.2); color: var(--lilac-2); font-weight:700;
}

.mp-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:8px; width: 84px; margin:0 auto; }
.mp-grid span{ aspect-ratio:1; border-radius:4px; background: var(--glass-border-hi); }
.mp-grid span.on{ background: linear-gradient(135deg, var(--violet-2), var(--lilac)); }

.mp-cube-wrap{ display:flex; align-items:center; justify-content:center; height: 70px; }
.mp-cube{ position:relative; width:36px; height:36px; }
.mp-cube .face{ position:absolute; }
.mp-cube .top{
  width:36px; height:20px; top:-14px; left:0;
  background: linear-gradient(135deg, var(--violet-2), var(--lilac-2));
  clip-path: polygon(50% 0, 100% 30%, 50% 60%, 0 30%);
  opacity: .9;
}
.mp-cube .left{
  width:18px; height:30px; top:6px; left:0;
  background: var(--violet); opacity:.7;
  clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
}
.mp-cube .right{
  width:18px; height:30px; top:6px; left:18px;
  background: var(--lilac); opacity:.55;
  clip-path: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
}

.mp-checklist{ display:flex; flex-direction:column; gap:8px; font-size:.76rem; color: var(--ink-dim); }
.mp-check{ display:flex; align-items:center; gap:8px; }
.mp-check span{
  width:14px; height:14px; border-radius:50%; flex:none;
  border: 1.5px solid var(--glass-border-hi);
}
.mp-check.done span{
  background: linear-gradient(135deg, var(--violet-2), var(--lilac));
  border-color: transparent;
}
.mp-check.done{ color: var(--ink); }

.mp-roadmap{ display:flex; align-items:center; height: 40px; }
.mp-node{
  width:10px; height:10px; border-radius:50%; flex:none;
  background: var(--glass-border-hi);
}
.mp-node.done{ background: var(--violet-2); }
.mp-node.active{
  background: var(--lilac-2); box-shadow: 0 0 10px var(--lilac-2);
  animation: dotPulse 2s ease-in-out infinite;
}
.mp-track{ flex:1; height:2px; background: var(--glass-border-hi); }
.mp-track.done{ background: linear-gradient(90deg, var(--violet-2), var(--lilac-2)); }

.mp-shield{ position:relative; display:flex; align-items:center; justify-content:center; height: 70px; color: var(--violet-2); }
.mp-shield svg{ width:36px; height:40px; overflow:hidden; }
.mp-scan{
  position:absolute; left:50%; top:6px;
  width: 30px; height:2px; margin-left:-15px;
  background: linear-gradient(90deg, transparent, var(--lilac-2), transparent);
  animation: scanMove 2.6s ease-in-out infinite;
}
@keyframes scanMove{
  0%,100%{ transform: translateY(0); opacity:.9; }
  50%{ transform: translateY(28px); opacity:.4; }
}

/* ============================================================
   Interactive Chile regions map
   ============================================================ */
/* ============================================================
   Coverage Map (Interactive Radar Layout & Frosted Chips)
   ============================================================ */
.map-hint{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: .84rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-hi);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.2);
  transition: all .3s ease;
}
html[data-theme="light"] .map-hint{
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(90, 70, 150, 0.2);
  box-shadow: 0 4px 16px rgba(76, 60, 140, 0.1);
  color: var(--ink);
}

.chile-map{
  position: relative;
  width: 140px;
  height: 560px;
  margin: 0 auto;
}
.map-frame{
  position: absolute;
  inset: 0;
}
.map-photo{
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(var(--violet-rgb),.4));
  transition: filter .3s ease, opacity .3s ease;
}
html[data-theme="light"] .map-photo{
  filter: drop-shadow(0 6px 20px rgba(109, 79, 214, 0.25)) brightness(0.85);
  opacity: 0.9;
}

/* Region glow that appears at the active region's latitude on hover/tap */
.map-highlight{
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 80px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(var(--violet-rgb),.95), rgba(var(--lilac-rgb),.3) 60%, transparent 80%);
  -webkit-mask-image: url('../assets/img/mapa-cutout.png');
  mask-image: url('../assets/img/mapa-cutout.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  opacity: 0;
  transition: opacity .35s ease, top .35s var(--ease);
  pointer-events: none;
}
.map-highlight.active{ opacity: 1; }

.region-node{
  position: absolute;
  top: var(--y);
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 5;
  transition: all .25s var(--ease);
}

/* Right labels: Dot is at 50% centerline, label floats outside on the right */
.region-node.label-r{
  left: 50%;
  flex-direction: row;
}
.region-node.label-r .region-label{
  margin-left: 10px;
}

/* Left labels: Dot is at 50% centerline, label floats outside on the left WITHOUT touching the map */
.region-node.label-l{
  right: 50%;
  flex-direction: row-reverse;
}
.region-node.label-l .region-label{
  margin-right: 10px;
}

.region-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--violet-2);
  box-shadow: 0 0 8px var(--violet-2);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
html[data-theme="light"] .region-dot{
  background: var(--violet);
  box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(109, 79, 214, 0.5);
}

.region-label{
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .67rem;
  font-weight: 500;
  color: var(--ink-dim);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--violet-rgb), 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(var(--shadow-rgb), 0.2);
  transition: all .25s var(--ease);
}

html[data-theme="light"] .region-label{
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(90, 70, 150, 0.16);
  color: #3b2c58;
  box-shadow: 0 2px 8px rgba(76, 60, 140, 0.08);
}

/* Hover & Active States */
.region-node:hover,
.region-node:focus-visible,
.region-node.active{
  z-index: 10;
  outline: none;
}
.region-node:hover .region-dot,
.region-node:focus-visible .region-dot,
.region-node.active .region-dot{
  background: var(--lilac-2);
  box-shadow: 0 0 12px var(--lilac-2), 0 0 0 3px rgba(var(--lilac-rgb), 0.35);
  transform: scale(1.6);
}
html[data-theme="light"] .region-node:hover .region-dot,
html[data-theme="light"] .region-node:focus-visible .region-dot,
html[data-theme="light"] .region-node.active .region-dot{
  background: var(--violet);
  box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(109, 79, 214, 0.8);
  transform: scale(1.6);
}

.region-node:hover .region-label,
.region-node:focus-visible .region-label,
.region-node.active .region-label{
  color: var(--ink);
  font-weight: 700;
  background: rgba(var(--violet-rgb), 0.22);
  border-color: var(--violet-2);
  box-shadow: 0 4px 16px rgba(var(--violet-rgb), 0.35);
  transform: scale(1.08);
}
html[data-theme="light"] .region-node:hover .region-label,
html[data-theme="light"] .region-node:focus-visible .region-label,
html[data-theme="light"] .region-node.active .region-label{
  background: #ffffff;
  color: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 4px 16px rgba(109, 79, 214, 0.22);
  transform: scale(1.08);
}

/* ============================================================
   Mobile Navigation Drawer (Glassmorphic Dropdown)
   ============================================================ */
.nav-mobile-menu{
  display: none;
}

/* ============================================================
   Responsive (Tablet & Mobile Optimized)
   ============================================================ */
@media (max-width: 980px){
  /* Grid de secciones estándar */
  .about-grid, .coverage-grid, .contact-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-track{ grid-template-columns: repeat(2, 1fr); }
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .coverage-visual{ margin-top: 20px; }
  .chile-map{ width: 130px; height: 604px; }
  .region-node{ font-size: .62rem; }
  .project-modal-panel{ grid-template-columns: 1fr; }
  .modal-media{ min-height: 220px; }
  .modal-shot{ min-height: 220px; }

  /* Footer tablet */
  .footer-grid{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-brand{ justify-content: center; }
  .footer-links{ justify-content: center; gap: 14px 20px; }
  .footer-copy{ text-align: center; }

  /* Navbar móvil */
  .nav{
    padding: 0 14px;
    top: 12px;
  }
  .nav-inner{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    max-width: 100%;
    overflow: visible;
  }
  .nav-links,
  .nav-divider{
    display: none !important;
  }
  .brand-center{
    margin: 0;
  }
  .nav-right-wrap{
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Hamburger Animado */
  .nav-toggle{
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    padding: 0;
    border-radius: 9px;
    transition: background-color .25s ease, border-color .25s ease;
  }
  html[data-theme="light"] .nav-toggle{
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(109, 79, 214, 0.15);
  }
  .nav-toggle:hover{
    background: rgba(var(--violet-rgb), 0.15);
    border-color: rgba(var(--violet-rgb), 0.35);
  }
  .nav-toggle span{
    display: block;
    height: 2px;
    width: 18px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease, width .25s ease;
    transform-origin: center;
  }
  .nav-toggle.open span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2){
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.open span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menú desplegable móvil unificado */
  .nav-mobile-menu{
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 8px auto 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid var(--glass-border-hi);
    box-shadow: 0 16px 45px rgba(var(--shadow-rgb), 0.55);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    z-index: 450;
  }
  html[data-theme="light"] .nav-mobile-menu{
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(100, 80, 160, 0.18);
    border-color: rgba(109, 79, 214, 0.22);
  }
  .nav-mobile-menu.open{
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav-mobile-links{
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .nav-mobile-link{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-dim);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
  }
  .nav-mobile-link:hover,
  .nav-mobile-link.is-active{
    color: var(--ink);
    background: rgba(var(--violet-rgb), 0.14);
  }
  html[data-theme="light"] .nav-mobile-link:hover,
  html[data-theme="light"] .nav-mobile-link.is-active{
    color: var(--violet);
    background: rgba(109, 79, 214, 0.08);
  }
  .nav-mobile-link .link-bullet{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lilac-2);
    box-shadow: 0 0 6px var(--lilac-2);
    opacity: .6;
    flex: none;
  }
  .nav-mobile-link.is-active .link-bullet{
    opacity: 1;
    background: var(--violet-2);
    box-shadow: 0 0 8px var(--violet-2);
    transform: scale(1.3);
  }
  .nav-badge-pill{
    margin-left: auto;
    font-size: .64rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(var(--violet-rgb), 0.2);
    color: var(--violet-2);
    letter-spacing: .02em;
  }
  .nav-mobile-footer{
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
  }

  .celestial-companion{ display: none; }

  /* HERO COMPACTO Y COMPLETO EN LA PANTALLA PRINCIPAL */
  .hero{
    padding: 90px 0 35px;
    min-height: calc(100svh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }
  .hero-copy{
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }
  .hero-visual{
    display: none !important;
  }
  .badge-full{
    display: none;
  }
  .badge-short{
    display: inline;
  }
  .hero-badge-pill{
    font-size: .68rem;
    padding: 4px 12px;
    margin-bottom: .8em;
    max-width: 100%;
    white-space: nowrap;
  }
  .hero-title{
    font-size: clamp(1.7rem, 5.5vw, 2.25rem);
    margin-bottom: .35em;
    line-height: 1.2;
  }
  .hero-sub{
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: 1.2em;
  }
  .hero-actions{
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 1.2em;
  }
  .hero-actions .btn{
    padding: 10px 16px;
    font-size: .84rem;
  }
  .hero-stats{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
    margin-bottom: 0;
  }
  .stat-card{
    padding: 8px 6px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .stat-card .stat-num{
    font-size: 1.25rem;
  }
  .stat-card .stat-label{
    font-size: .6rem;
    line-height: 1.22;
  }

  /* Consola de Software / Telemetría en Móvil */
  .hero-mobile-console{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    margin: 14px auto 0;
    border-radius: var(--radius-sm, 14px);
    background: rgba(13, 9, 28, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--violet-rgb), 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    text-align: left;
    font-family: 'Space Grotesk', monospace, system-ui;
  }
  html[data-theme="light"] .hero-mobile-console{
    background: rgba(25, 18, 50, 0.94);
    border-color: rgba(109, 79, 214, 0.35);
    box-shadow: 0 10px 28px rgba(76, 60, 140, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  .console-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .console-dots{
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .console-dots span{
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }
  .dot-red{ background: #ff5f56; }
  .dot-yellow{ background: #ffbd2e; }
  .dot-green{ background: #27c93f; }

  .console-title{
    font-size: .66rem;
    color: rgba(255, 255, 255, 0.65);
    font-family: monospace;
    letter-spacing: .02em;
  }
  .console-tag{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .6rem;
    color: #10b981;
    font-weight: 700;
  }
  .console-beacon{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: beaconPulse 2s infinite;
  }

  .console-body{
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: .7rem;
    line-height: 1.38;
  }
  .console-line{
    color: #e2d9f3;
  }
  .c-prompt{
    color: var(--lilac-2);
    font-weight: 700;
  }
  .c-cmd{
    color: #61dafb;
    font-weight: 600;
  }
  .c-flag{
    color: #ffd166;
  }
  .c-out{
    color: rgba(255, 255, 255, 0.85);
  }
  .c-ok{
    color: #10b981;
    font-weight: 700;
    margin-right: 2px;
  }
  .c-hl{
    color: #c4b5fd;
    font-weight: 600;
  }
  .c-ready{
    color: #4ade80;
    font-weight: 700;
  }
  .c-cursor{
    display: inline-block;
    color: var(--violet-2);
    animation: blinkCursor 1s infinite step-start;
    font-weight: 700;
  }
  @keyframes blinkCursor{
    50%{ opacity: 0; }
  }

  /* Services Accordion en Tablet / Móvil */
  .services-toolbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px auto 24px;
    max-width: 580px;
    position: relative;
    z-index: 10;
  }
  .services-count-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-dim);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(var(--violet-rgb), 0.08);
    border: 1px solid var(--glass-border);
    user-select: none;
  }
  .services-beacon-dot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    animation: dotPulse 2s ease-in-out infinite;
  }
  .services-expand-all-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    color: var(--violet-2);
    background: rgba(var(--violet-rgb), 0.14);
    border: 1px solid var(--glass-border-hi);
    padding: 8px 18px;
    min-height: 40px;
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 10;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .services-expand-all-btn *{
    pointer-events: none;
  }
  .services-expand-all-btn:hover{
    background: rgba(var(--violet-rgb), 0.22);
    border-color: var(--violet-2);
    transform: translateY(-1px);
  }
  .services-expand-all-btn:active{
    transform: scale(0.95);
    background: rgba(var(--violet-rgb), 0.3);
  }
  html[data-theme="light"] .services-expand-all-btn{
    color: var(--violet);
    background: rgba(109, 79, 214, 0.1);
    border-color: rgba(109, 79, 214, 0.25);
    box-shadow: 0 2px 8px rgba(76, 60, 140, 0.08);
  }
  html[data-theme="light"] .services-expand-all-btn:hover{
    background: rgba(109, 79, 214, 0.18);
    border-color: rgba(109, 79, 214, 0.4);
  }
  html[data-theme="light"] .services-expand-all-btn:active{
    background: rgba(109, 79, 214, 0.25);
    transform: scale(0.95);
  }
  .services-expand-all-btn .expand-icon{
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
    flex: none;
  }
  .services-expand-all-btn.all-expanded .expand-icon{
    transform: rotate(180deg);
  }

  .services-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .service-card{
    padding: 16px 16px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .service-card:hover{
    transform: translateY(-2px);
  }
  .service-card.is-expanded{
    border-color: rgba(var(--violet-rgb), 0.55);
    box-shadow: 0 14px 35px rgba(var(--shadow-rgb), 0.4);
  }
  .service-head{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }
  .service-icon{
    width: 38px;
    height: 38px;
    margin-bottom: 0;
    border-radius: 10px;
    flex: none;
    pointer-events: none;
  }
  .service-icon svg{
    width: 20px;
    height: 20px;
    pointer-events: none;
  }
  .service-info{
    flex: 1;
    min-width: 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    pointer-events: none;
  }
  .service-info h3{
    font-size: .98rem;
    margin-bottom: 2px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    pointer-events: none;
  }
  .service-summary{
    font-size: .82rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    pointer-events: none;
  }
  .service-card.is-expanded .service-summary{
    -webkit-line-clamp: unset;
  }
  .service-action{
    display: flex;
    flex: none;
    align-items: center;
    margin-top: 2px;
    pointer-events: none;
  }
  .service-toggle-btn{
    display: flex;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: rgba(var(--violet-rgb), 0.08);
    border: 1px solid var(--glass-border);
    color: var(--violet-2);
    pointer-events: none;
    transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), background .25s ease, color .25s ease;
  }
  html[data-theme="light"] .service-toggle-btn{
    color: var(--violet);
    background: rgba(109, 79, 214, 0.06);
  }
  .service-card.is-expanded .service-toggle-btn{
    transform: rotate(180deg);
    background: var(--violet-2);
    color: #fff;
    border-color: var(--violet-2);
  }
  html[data-theme="light"] .service-card.is-expanded .service-toggle-btn{
    background: var(--violet);
    color: #fff;
    border-color: var(--violet);
  }

  /* Drawer colapsado/expandido en Móvil */
  .service-drawer{
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
  }
  .service-card.is-expanded .service-drawer{
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 8px;
  }
  .service-drawer-content{
    min-height: 0;
    overflow: hidden;
  }
  .service-divider-line{
    display: block;
    height: 1px;
    background: var(--glass-border);
    margin: 10px 0 10px;
  }
  .card-tags{
    margin: 0 0 10px;
  }
}

@media (max-width: 640px){
  .container{ padding: 0 16px; width: 100%; box-sizing: border-box; }

  /* Navbar móvil extra compacto */
  .nav{ padding: 0 10px; top: 10px; width: 100%; box-sizing: border-box; }
  .nav-inner{ padding: 6px 12px; width: 100%; box-sizing: border-box; }
  .brand{ gap: 8px; }
  .brand-word{ font-size: .86rem; letter-spacing: .06em; }
  .nav-right-wrap{ gap: 6px; }
  .nav-controls{ gap: 6px; }
  .theme-toggle{ width: 34px; height: 34px; }
  .nav-toggle{ width: 34px; height: 34px; }

  /* HERO ULTRA-OPTIMIZADO PARA CABER AL 100% EN PANTALLA PRINCIPAL */
  .hero{
    padding: 78px 0 24px;
    min-height: calc(100svh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-badge-pill{
    font-size: .68rem;
    padding: 4px 10px;
    margin-bottom: .7em;
    max-width: 100%;
  }
  .hero-title{
    font-size: clamp(1.42rem, 6.2vw, 1.95rem);
    line-height: 1.22;
    margin-bottom: .35em;
  }
  .hero-title-lead{ display: block; }
  .hero-title-dynamic{
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25em;
    max-width: 100%;
  }
  .rotator-wrapper{ height: 1.28em; }
  .hero-sub{
    font-size: .86rem;
    line-height: 1.52;
    margin-bottom: 1.2em;
  }
  .hero-actions{
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 1.25em;
    width: 100%;
  }
  .hero-actions .btn{
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    font-size: clamp(.74rem, 3.4vw, .82rem);
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
  .hero-actions .btn-arrow{
    display: none;
  }
  .hero-stats{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }
  .stat-card{
    padding: 9px 4px;
    min-width: 0;
  }
  .stat-card .stat-num{
    font-size: clamp(1.1rem, 4.8vw, 1.25rem);
  }
  .stat-card .stat-label{
    font-size: .58rem;
    line-height: 1.2;
    word-break: normal;
  }

  /* Secciones estándar */
  .services-grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .service-card{
    padding: 13px 14px;
  }
  .service-info h3{
    font-size: .92rem;
  }
  .service-summary{
    font-size: .78rem;
  }
  .process-track{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
  .custom-dev-panel{ padding: 26px 20px; }
  .modal-info{ padding: 24px 18px; }
  .tech-chip{ padding: 8px 14px; font-size: .78rem; }
  section{ padding: 60px 0; }
  .tech-badge{ font-size: .55rem; padding: 3px 8px; }
  .chile-map{ width: 100px; height: 464px; }
  .region-node .region-label{ display: none; }
  .mini-preview{ padding: 10px; }

  .projects-hero{
    padding: 80px 0 25px;
  }
  .projects-intro .hero-title{
    font-size: 1.75rem;
  }

  /* Contacto móvil */
  .contact-form{
    padding: 22px 18px;
  }

  /* Footer móvil */
  .site-footer{
    padding: 32px 0 24px;
    width: 100%;
    overflow: hidden;
  }
  .footer-grid{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    width: 100%;
  }
  .footer-brand{
    justify-content: center;
  }
  .footer-links{
    justify-content: center;
    gap: 10px 16px;
    width: 100%;
  }
  .footer-links a{
    font-size: .82rem;
    padding: 2px 4px;
  }
  .footer-copy{
    font-size: .74rem;
    line-height: 1.48;
    text-align: center;
    padding: 0 6px;
  }
}

/* Optimización Quirúrgica para Dispositivos Ultracompactos (Samsung Galaxy S20 @360px, iPhone SE @375px) */
@media (max-width: 400px){
  .container{ padding: 0 12px; width: 100%; box-sizing: border-box; }

  /* Navbar super compacto */
  .nav{ padding: 0 8px; top: 8px; width: 100%; }
  .nav-inner{ padding: 5px 10px; width: 100%; }
  .brand{ gap: 6px; padding: 2px 4px; margin: 0; }
  .brand-mark{ width: 24px; height: 24px; }
  .brand-mark .brand-core{ inset: 5px; }
  .brand-word{ font-size: .78rem; letter-spacing: .03em; }
  .nav-right-wrap{ gap: 5px; }
  .nav-controls{ gap: 5px; }
  .theme-toggle{ width: 32px; height: 32px; }
  .nav-toggle{ width: 32px; height: 32px; border-radius: 7px; }
  .nav-toggle span{ width: 15px; }

  /* Hero específico para Samsung Galaxy S20 (360px) */
  .hero{ padding: 68px 0 18px; min-height: calc(100svh - 35px); }
  .hero-badge-pill{ font-size: .62rem; padding: 3px 8px; margin-bottom: .55em; }
  .hero-title{
    font-size: clamp(1.26rem, 5.8vw, 1.48rem);
    line-height: 1.22;
    margin-bottom: .3em;
  }
  .rotator-wrapper{ height: 1.28em; }
  .hero-sub{ font-size: .78rem; line-height: 1.45; margin-bottom: 1.05em; }
  .hero-actions{ gap: 6px; margin-bottom: 1.1em; }
  .hero-actions .btn{ padding: 9px 5px; font-size: .73rem; }
  .hero-stats{ gap: 4px; }
  .stat-card{ padding: 7px 2px; }
  .stat-card .stat-num{ font-size: 1.05rem; }
  .stat-card .stat-label{ font-size: .52rem; line-height: 1.15; }

  /* Contacto y footer en 360px */
  .contact-form{ padding: 18px 12px; }
  .site-footer{ padding: 26px 0 20px; }
  .footer-grid{ gap: 12px; }
  .footer-links{ gap: 8px 12px; }
  .footer-links a{ font-size: .76rem; }
  .footer-copy{ font-size: .68rem; line-height: 1.4; }
  .wsp-float-wrap{ bottom: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html{ scroll-behavior: auto; }
}

/* ============================================================
   PROJECTS EXPLORER MODAL (pex)
   ============================================================ */

/* Overlay backdrop */
.pex-overlay{
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 2, 14, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.pex-overlay.open{
  opacity: 1;
  pointer-events: all;
}

/* Window */
.pex-window{
  width: 100%;
  max-width: 1240px;
  height: min(92vh, 800px);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform .4s var(--ease);
  border-color: var(--glass-border-hi);
}
.pex-overlay.open .pex-window{
  transform: scale(1) translateY(0);
}

/* ---- Titlebar ---- */
.pex-titlebar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 46px;
  flex: none;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
  user-select: none;
}
html[data-theme="light"] .pex-titlebar{
  background: rgba(255,255,255,.55);
}
.pex-traffic-lights{
  display: flex;
  align-items: center;
  gap: 7px;
}
.pex-tl{
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: filter .2s ease, transform .2s ease;
  flex: none;
}
.pex-tl:hover{ filter: brightness(1.25); transform: scale(1.1); }
.tl-close{
  background: #ff5f57;
  color: #7a1200;
}
.tl-close svg{ opacity: 0; transition: opacity .15s ease; }
.tl-close:hover svg{ opacity: 1; }
.tl-min{ background: #febc2e; cursor: default; }
.tl-max{ background: #28c840; cursor: default; }

.pex-titlebar-label{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: .02em;
}
.pex-titlebar-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 55px;
}
/* Botón X derecho */
.pex-close-right{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--ink-faint);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  padding: 0;
}
.pex-close-right:hover{
  background: rgba(255, 95, 87, 0.15);
  border-color: rgba(255, 95, 87, 0.35);
  color: #ff5f57;
}
html[data-theme="light"] .pex-close-right:hover{
  background: rgba(220, 50, 40, 0.1);
  border-color: rgba(220, 50, 40, 0.25);
  color: #dc3228;
}

/* ---- Toolbar ---- */
.pex-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  flex: none;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,.02);
  gap: 12px;
}
html[data-theme="light"] .pex-toolbar{
  background: rgba(255,255,255,.4);
}
.pex-breadcrumb{
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
}
.pex-bc-item{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-faint);
  cursor: default;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}
.pex-bc-item.active{
  color: var(--ink);
  background: rgba(var(--violet-rgb), .12);
}
.pex-view-toggle{
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3px;
}
.pex-view-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border-radius: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  transition: background .2s ease, color .2s ease;
}
.pex-view-btn.active, .pex-view-btn:hover{
  background: rgba(var(--violet-rgb), .2);
  color: var(--violet-2);
}

/* ---- Body layout ---- */
.pex-body{
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ---- Sidebar ---- */
.pex-sidebar{
  width: 224px;
  flex: none;
  border-right: 1px solid var(--glass-border);
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255,255,255,.02);
  box-sizing: border-box;
}
html[data-theme="light"] .pex-sidebar{
  background: rgba(255,255,255,.35);
}
.pex-sidebar-section{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pex-sidebar-label{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 8px;
  margin: 0 0 4px;
}
.pex-sidebar-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  box-sizing: border-box;
}
.pex-sidebar-item:hover{
  background: rgba(var(--violet-rgb), .09);
  border-color: rgba(var(--violet-rgb), .15);
  color: var(--ink);
}
.pex-sidebar-item.active{
  background: rgba(var(--violet-rgb), .18);
  border-color: rgba(var(--violet-rgb), .35);
  color: var(--violet-2);
  font-weight: 600;
}
html[data-theme="light"] .pex-sidebar-item.active{
  background: rgba(var(--violet-rgb), .12);
  border-color: rgba(var(--violet-rgb), .25);
  color: var(--violet);
}
.pex-item-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: none;
  background: rgba(255, 255, 255, 0.05);
}
.icon-folder{ color: var(--lilac-2); }
.icon-tech{ color: #00d4aa; }
.icon-contact{ color: #c084fc; }
.pex-item-text{ flex: 1; }
.pex-item-count{
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-faint);
}
.pex-sidebar-item.active .pex-item-count{
  background: rgba(var(--violet-rgb), 0.35);
  color: var(--violet-2);
}
.pex-item-beacon{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 8px #00d4aa;
  animation: dotPulse 2s ease-in-out infinite;
}

/* Tarjeta de Telemetría del Sistema (Sleek Health Widget) */
.pex-telemetry-card{
  margin: 4px 0 0;
  padding: 10px 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(var(--violet-rgb), 0.08), rgba(0, 212, 170, 0.04));
  border: 1px solid var(--glass-border-hi);
  box-shadow: 0 4px 14px rgba(var(--shadow-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  overflow: hidden;
}
html[data-theme="light"] .pex-telemetry-card{
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(240, 235, 255, 0.7));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), inset 0 1px 0 #fff;
  border-color: rgba(124, 58, 237, 0.18);
}
.telemetry-header{
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .telemetry-header{
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.telemetry-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 8px #00d4aa;
  flex: none;
}
.telemetry-status{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.telemetry-rows{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.telemetry-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.t-label{
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-dim);
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.t-badge{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: .01em;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.t-badge.t-green{
  background: rgba(0, 212, 170, 0.12);
  color: #00d4aa;
  border: 1px solid rgba(0, 212, 170, 0.25);
}
.t-badge.t-neutral{
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--glass-border);
}
.t-badge.t-violet{
  background: rgba(var(--violet-rgb), 0.14);
  color: var(--violet-2);
  border: 1px solid rgba(var(--violet-rgb), 0.25);
}

html[data-theme="light"] .t-badge.t-green{
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}
html[data-theme="light"] .t-badge.t-neutral{
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .t-badge.t-violet{
  background: rgba(var(--violet-rgb), 0.10);
  color: var(--violet);
  border-color: rgba(var(--violet-rgb), 0.20);
}

/* ---- Content area ---- */
.pex-content{
  flex: 1;
  overflow-y: auto;
  padding: 18px 28px 24px;
}
.pex-section{
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  z-index: 1;
}
.pex-section-header{
  margin-bottom: 18px;
}
.pex-section-header .eyebrow{
  margin-bottom: 6px;
}
.pex-section-header h2{
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-bottom: .35em;
  line-height: 1.25;
}
.pex-section-sub{
  color: var(--ink-dim);
  font-size: .88rem;
  max-width: 680px;
  line-height: 1.5;
  margin: 0;
}

/* Grid de proyectos dentro del modal */
.pex-projects-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  transition: grid-template-columns .3s ease;
}
.pex-projects-grid.list-view{
  grid-template-columns: 1fr;
}
.pex-projects-grid.list-view .project-card{
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.pex-projects-grid.list-view .project-shot{
  width: 100px;
  min-height: 80px;
  flex: none;
}
.project-top-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.project-stack-mini{
  font-size: .64rem;
  font-weight: 600;
  color: var(--violet-2);
  background: rgba(var(--violet-rgb), 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.shot-beacon{
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00d4aa;
  box-shadow: 0 0 6px #00d4aa;
  margin-right: 4px;
  vertical-align: middle;
}

/* ---- SECCIÓN TECNOLOGÍAS (Matriz Interactiva) ---- */
.pex-tech-matrix{
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pex-tech-group{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pex-group-title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  margin: 0;
}
.group-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.dot-cyan{ background: #00d4aa; box-shadow: 0 0 6px #00d4aa; }
.dot-green{ background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-violet{ background: var(--violet-2); box-shadow: 0 0 6px var(--violet-2); }

.pex-tech-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.pex-tech-card{
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
  cursor: default;
}
.pex-tech-card:hover{
  transform: translateY(-2px);
  border-color: var(--glass-border-hi);
  box-shadow: 0 8px 20px rgba(var(--shadow-rgb), 0.25);
}
.tech-icon-wrap{
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
html[data-theme="light"] .tech-icon-wrap{
  background: rgba(255, 255, 255, 0.85);
}
.tech-info{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tech-info strong{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink);
}
.tech-info span{
  font-size: .72rem;
  color: var(--ink-faint);
  line-height: 1.35;
  white-space: normal;
}

/* ---- SECCIÓN CONTACTO (Canales & Banner) ---- */
.pex-contact-hub{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pex-contact-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px){
  .pex-contact-cards{ grid-template-columns: 1fr; }
}
.pex-channel-card{
  padding: 16px 18px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s var(--ease), border-color .25s ease;
}
.pex-channel-card:hover{
  transform: translateY(-3px);
  border-color: rgba(var(--violet-rgb), 0.45);
}
.channel-icon{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-email{ background: rgba(124, 58, 237, 0.15); color: var(--violet-2); }
.icon-chat{ background: rgba(0, 212, 170, 0.15); color: #00d4aa; }
.icon-map{ background: rgba(192, 132, 252, 0.15); color: #c084fc; }

.channel-body{
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.channel-tag{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.channel-body strong{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
}
.channel-body p{
  font-size: .78rem;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.4;
}

.pex-cta-banner{
  padding: 20px 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.15), rgba(var(--lilac-rgb), 0.06));
  border: 1px solid rgba(var(--violet-rgb), 0.3);
}
@media (max-width: 760px){
  .pex-cta-banner{ flex-direction: column; text-align: center; }
}
.cta-banner-text h3{
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--ink);
}
.cta-banner-text p{
  font-size: .84rem;
  color: var(--ink-dim);
  margin: 0;
}

/* ---- Statusbar ---- */
.pex-statusbar{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 30px;
  flex: none;
  border-top: 1px solid var(--glass-border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem;
  color: var(--ink-faint);
  background: rgba(255,255,255,.02);
  user-select: none;
}
html[data-theme="light"] .pex-statusbar{
  background: rgba(255,255,255,.4);
}
.pex-statusbar-dot{
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: .5;
}

/* Light mode overlay backdrop */
html[data-theme="light"] .pex-overlay{
  background: rgba(200, 190, 230, 0.5);
}

/* Responsive */
@media (max-width: 680px){
  .pex-overlay{ padding: 0; }
  .pex-window{ height: 100dvh; max-width: 100%; border-radius: 0; }
  .pex-sidebar{ display: none; }
  .pex-content{ padding: 20px 18px; }
  .pex-projects-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   Floating WhatsApp Button (Premium Glassmorphic + Radar Ping)
   ============================================================ */
.wsp-float-wrap{
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 500;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.wsp-float-btn{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  outline: none;
  border-radius: 999px;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wsp-icon-box{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.38), 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 2;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .35s ease;
}

.wsp-icon{
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.wsp-pulse-ring{
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wspPulse 2.6s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes wspPulse{
  0%{
    transform: scale(0.9);
    opacity: 0.9;
  }
  70%{
    transform: scale(1.45);
    opacity: 0;
  }
  100%{
    transform: scale(1.45);
    opacity: 0;
  }
}

.wsp-float-btn:hover .wsp-icon-box,
.wsp-float-btn:focus-visible .wsp-icon-box{
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 0 25px rgba(37, 211, 102, 0.35);
}

/* Tooltip lateral flotante */
.wsp-tooltip{
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-hi);
  box-shadow: 0 10px 30px rgba(var(--shadow-rgb), 0.35);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html[data-theme="light"] .wsp-tooltip{
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(100, 80, 160, 0.15);
}

.wsp-tooltip-status{
  display: flex;
  align-items: center;
  gap: 6px;
}
.wsp-status-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 6px #25D366;
}
.wsp-status-text{
  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #25D366;
}
.wsp-tooltip-msg{
  font-family: 'Manrope', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
}

.wsp-float-btn:hover .wsp-tooltip,
.wsp-float-btn:focus-visible .wsp-tooltip{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px){
  .wsp-float-wrap{
    bottom: 18px;
    right: 18px;
  }
  .wsp-icon-box{
    width: 48px;
    height: 48px;
  }
  .wsp-icon{
    width: 26px;
    height: 26px;
  }
  .wsp-tooltip{
    display: none;
  }
}

