/* Geist autoalojado (fuente variable: un solo archivo, todos los pesos) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;   /* con preload la fuente ya está lista -> sin FOUT ni reflow (CLS 0) */
  src: url('/assets/fonts/geist-var.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Foco visible accesible (teclado) */
:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root {
  --c: #5EEAD4;
  --c2: #2DD4BF;
  --bg: #14161B;
  --bg2: #1C1F25;
  --txt: #FFFFFF;
  --muted: #9AA1B0;
  --border: rgba(255,255,255,0.1);
  --pad-x: clamp(20px, 5vw, 40px);
  --pad-section: clamp(72px, 11vw, 120px);
}

body {
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


#spotlight {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(94,234,212,0.06), transparent 40%);
}

/* Grano sutil global (textura tipo Linear/Raycast) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.text-gradient {
  background: linear-gradient(120deg, #85F4E6 0%, #2FD8C2 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ NAVBAR ============ */
nav#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500;
  height: 60px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20,22,27,0.72);   /* mismo color que el fondo (#14161B) + transparencia */
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, border-color 0.3s;
}

nav#navbar.scrolled { background: rgba(20,22,27,0.82); border-bottom-color: rgba(255,255,255,0.08); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-logo-img { height: 26px; width: auto; display: block; }

.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #5EEAD4, #2DD4BF);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: 0.2s;
}

.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-tel {
  color: #9AA1B0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.2s;
}

.nav-tel:hover { color: #fff; }

.btn-primary {
  background: linear-gradient(180deg, #6BEFDB, #34D3BE);
  color: #04211D;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 7px 15px;
  border-radius: 7px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: filter 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: clamp(120px, 16vh, 156px) var(--pad-x) clamp(48px, 6vh, 64px);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, #000 15%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, #000 15%, transparent 68%);
}
/* Halo ambiental suave detrás del hero (profundidad sin glow chillón) */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: min(900px, 120%); height: 620px;
  background: radial-gradient(ellipse at center, rgba(94,234,212,0.08), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  color: #C6CAD1;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5EEAD4;
  box-shadow: 0 0 10px #5EEAD4;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(2.7rem, 5.8vw, 4.8rem);
  font-weight: 760;
  letter-spacing: -0.042em;
  line-height: 1.02;
  margin: 0 auto 22px;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-title .text-gradient {
  font-weight: 780;
  filter: drop-shadow(0 0 24px rgba(94,234,212,0.25));
}

.hero-sub {
  color: #A2A9B5;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 36px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-btn-main {
  background: linear-gradient(180deg, #6BEFDB, #34D3BE);
  color: #04211D;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: filter 0.16s ease, transform 0.16s ease;
}

.hero-btn-main:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hero-btn-main:active { transform: translateY(0); }

.hero-btn-ghost {
  color: #EAECEF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.hero-btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); }

.hero-mini-stats {
  display: flex;
  gap: clamp(28px, 6vw, 48px);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-mini-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-mini-stats strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.hero-mini-stats span { color: #9AA1B0; font-size: 0.8rem; }

/* ============ MARQUEE ============ */
.marquee-wrap {
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 24px 0;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
  position: relative;
  z-index: 1;
}

.marquee-label {
  text-align: center;
  color: #9AA1B0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.marquee-track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.client-logo {
  height: 104px;
  width: 150px;               /* caja reservada -> sin reflow al cargar (CLS 0) */
  object-fit: contain;
  opacity: 0.4;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.client-logo:hover { opacity: 0.8; }

/* Logos de color/oscuros -> se blanquean para unificar con el resto */
.client-logo--mono {
  filter: brightness(0) invert(1);
  opacity: 0.45;
}
.client-logo--mono:hover { opacity: 0.85; }

/* Logos que ocupan de mas -> se achican para equilibrar la fila */
.client-logo--sm { height: 74px; width: 130px; }

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ ESTADÍSTICAS ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 80px) var(--pad-x);
  gap: 0;
  position: relative;
  z-index: 1;
}

.stat { text-align: center; padding: 4px clamp(10px, 2.5vw, 28px); position: relative; }
/* Divisor vertical con degradé (se desvanece arriba/abajo) — detalle tipo Linear */
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 48px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.13) 50%, rgba(255,255,255,0));
}

.stat-num {
  display: block;
  font-size: clamp(2.3rem, 3.9vw, 3.2rem);
  font-weight: 720;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;   /* ancho de dígito estable durante el conteo -> sin CLS */
  min-height: 1.1em;
}

.stat-label {
  display: block;
  color: #9AA1B0;
  font-size: 0.82rem;
  margin-top: 10px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* ============ SECTIONS GENÉRICAS ============ */
.section { padding: var(--pad-section) var(--pad-x); position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9AA1B0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: rgba(94,234,212,0.55);
  display: block;
}

.section-sub { color: #9AA1B0; font-size: 0.95rem; line-height: 1.75; max-width: 380px; }

/* ============ SERVICIOS: lista a la izquierda + panel de imagen a la derecha ============ */
.services-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  border-top: 1px solid var(--border);
}

.svc-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.svc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 20px 22px 20px 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.svc-list-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.svc-list-item.is-active::before { transform: scaleY(1); }

.svc-list-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 3px;
  flex-shrink: 0;
  transition: color 0.25s ease;
}
.svc-list-item.is-active .svc-list-num { color: var(--c); }

.svc-list-text { display: flex; flex-direction: column; gap: 5px; }
.svc-list-title { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); transition: color 0.25s ease; }
.svc-list-item.is-active .svc-list-title { color: #fff; }
.svc-list-brief { font-size: 0.8rem; color: var(--muted); line-height: 1.5; opacity: 0.7; }

/* Panel de la derecha: todas las tarjetas apiladas, solo la activa visible (crossfade) */
.svc-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.svc-panel-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}
.svc-panel-item.is-active { opacity: 1; visibility: visible; z-index: 1; }

.svc-panel-media { position: absolute; inset: 0; z-index: 0; }
.svc-panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Prevalece sobre .proy-rotate (position:relative) para que la galería rotativa quede full-bleed */
.svc-panel-media.proy-rotate { position: absolute; inset: 0; background: transparent; }

.svc-panel-media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1b1e26;
  background-image:
    radial-gradient(circle at 30% 24%, rgba(94,234,212,0.18), transparent 60%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}
.svc-panel-media--icon svg { width: 32%; max-width: 180px; color: var(--c); opacity: 0.55; }

.svc-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8,9,12,0.95) 0%, rgba(8,9,12,0.8) 32%, rgba(8,9,12,0.35) 60%, rgba(8,9,12,0) 100%);
}
/* 08 (In-Company): mismo formato, con un tinte de acento en vez de negro puro */
.svc-panel-item--accent .svc-panel-overlay { background: linear-gradient(to top, rgba(6,18,16,0.95) 0%, rgba(6,18,16,0.8) 32%, rgba(6,18,16,0.35) 60%, rgba(6,18,16,0) 100%); }

.svc-panel-body { position: relative; z-index: 2; padding: 36px 40px; max-width: 560px; }
.svc-panel-body .svc-card-num { display: block; margin-bottom: 10px; }
.svc-panel-body h3 { font-size: 1.55rem; font-weight: 750; letter-spacing: -0.025em; color: #fff; margin-bottom: 12px; }
.svc-panel-body p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.65; margin-bottom: 18px; }

.svc-pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #8EE7DA;
}

.svc-pill-hot {
  background: rgba(94,234,212,0.18);
  border-color: rgba(94,234,212,0.35);
  color: #B6F5EA;
}

/* ============ TÓTEMS (página /totems y bloques reel+texto) ============ */
.totem-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 54px);
  align-items: center;
}
.totem-feature-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 740; letter-spacing: -0.03em; line-height: 1.1; margin: 14px 0 14px; }
.totem-feature .hero-btn-ghost { margin-top: 28px; display: inline-block; }
.totem-feature-lead { color: #9AA1B0; font-size: 1rem; line-height: 1.75; max-width: 46ch; }
.totem-feature .case-feature-list { margin-top: 24px; }
.totem-feature-screen {
  justify-self: center;
  width: 100%; max-width: 320px;
  border-radius: 18px; overflow: hidden; background: #000;
  aspect-ratio: 478 / 850;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -30px rgba(94,234,212,0.4);
}
.totem-feature-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 768px) {
  .totem-feature { grid-template-columns: 1fr; }
  .totem-feature-screen { order: -1; max-width: 300px; }
}

/* ============ CASOS ============ */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 56px; }

.case-card,
.case-card:visited {
  background: #1C1E25;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.case-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 32px -12px rgba(0,0,0,0.5); }

.case-media {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Foto real: cubre todo el recuadro */
.case-photo { width: 100%; height: 100%; object-fit: cover; }
/* Gráfico / ilustración / screenshot: centrado sobre el gradiente */
.case-graphic { max-width: 82%; max-height: 86%; width: auto; object-fit: contain; position: relative; z-index: 1; }

.case-link { margin-top: 16px; color: #5EEAD4; font-size: 0.8rem; font-weight: 600; transition: 0.2s; }
.case-card:hover .case-link { color: #fff; }

.case-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6));
}

.case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.case-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A93A3;
  margin-bottom: 10px;
}

.case-body h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.case-body p { color: #9AA1B0; font-size: 0.83rem; line-height: 1.6; flex: 1; }

.case-result {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(94,234,212,0.07);
  border: 1px solid rgba(94,234,212,0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #5EEAD4;
  font-weight: 600;
}

.case-result::before { content: '↗ '; }

/* ============ PROCESO ============ */
.process-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 740; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 56px; }

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* 4 tramos separados, cada uno se completa recién cuando termina el anterior (efecto relevo) */
.process-step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.process-step::after {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #5EEAD4, #34D3BE);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s ease;
}

.process-step.visible::after { transform: scaleX(1); }

.process-step::before {
  content: '';
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.process-step.visible::before {
  background: #5EEAD4;
  box-shadow: 0 0 12px #5EEAD4;
  animation: procDotPulse 2.2s ease-in-out infinite;
}

@keyframes procDotPulse {
  0%, 100% { box-shadow: 0 0 12px #5EEAD4; opacity: 1; }
  50% { box-shadow: 0 0 20px 4px #5EEAD4; opacity: 0.7; }
}

/* Cada tramo empieza a dibujarse justo cuando termina el anterior: 0.65s por paso */
.process-timeline .process-step:nth-child(1)::after { transition-delay: 0s; }
.process-timeline .process-step:nth-child(2)::after { transition-delay: 0.65s; }
.process-timeline .process-step:nth-child(3)::after { transition-delay: 1.3s; }
.process-timeline .process-step:nth-child(4)::after { transition-delay: 1.95s; }

/* El punto y el número se encienden cuando su propio tramo termina de dibujarse */
.process-timeline .process-step:nth-child(1)::before,
.process-timeline .process-step:nth-child(1) .process-num { transition-delay: 0.65s; }
.process-timeline .process-step:nth-child(2)::before,
.process-timeline .process-step:nth-child(2) .process-num { transition-delay: 1.3s; }
.process-timeline .process-step:nth-child(3)::before,
.process-timeline .process-step:nth-child(3) .process-num { transition-delay: 1.95s; }
.process-timeline .process-step:nth-child(4)::before,
.process-timeline .process-step:nth-child(4) .process-num { transition-delay: 2.6s; }
.process-timeline .process-step:nth-child(1).visible::before { animation-delay: 0.65s; }
.process-timeline .process-step:nth-child(2).visible::before { animation-delay: 1.3s; }
.process-timeline .process-step:nth-child(3).visible::before { animation-delay: 1.95s; }
.process-timeline .process-step:nth-child(4).visible::before { animation-delay: 2.6s; }

.process-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  transition: color 0.35s ease;
}

.process-step.visible .process-num { color: #5EEAD4; }

.process-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.process-step p { color: #9AA1B0; font-size: 0.85rem; line-height: 1.65; }

/* ============ QUIÉNES SOMOS ============ */
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 740; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px; }
.about-p { color: #9AA1B0; font-size: 0.95rem; line-height: 1.8; margin-bottom: 36px; }

.about-metrics { display: flex; gap: 40px; }
.about-metrics div { display: flex; flex-direction: column; gap: 2px; }
.about-metrics strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.about-metrics span { color: #9AA1B0; font-size: 0.8rem; }

.about-card {
  background: linear-gradient(135deg, rgba(94,234,212,0.08), rgba(45,212,191,0.04));
  border: 1px solid rgba(94,234,212,0.2);
  border-radius: 18px;
  padding: 40px;
}

.about-quote { font-size: 1.2rem; font-weight: 600; line-height: 1.6; letter-spacing: -0.02em; margin-bottom: 20px; }
.about-author { color: #5EEAD4; font-size: 0.85rem; font-weight: 600; }

/* ============ CTA ============ */
.cta-section { padding: clamp(96px, 16vw, 140px) var(--pad-x); text-align: center; position: relative; overflow: hidden; z-index: 1; }

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(94,234,212,0.12), transparent 65%);
  pointer-events: none;
  filter: blur(20px);
}

.cta-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.cta-sub { color: #9AA1B0; font-size: 1rem; max-width: 440px; margin: 0 auto 40px; line-height: 1.75; position: relative; z-index: 1; }

.cta-form { display: flex; gap: 10px; justify-content: center; max-width: 460px; margin: 0 auto; position: relative; z-index: 1; }

.cta-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  padding: 14px 18px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: 0.2s;
}

.cta-input:focus { border-color: rgba(94,234,212,0.5); background: rgba(94,234,212,0.05); }
.cta-input::placeholder { color: #9AA1B0; }

.cta-alt { position: relative; z-index: 1; margin-top: 22px; color: #9AA1B0; font-size: 0.88rem; }
.cta-alt a { color: var(--c); text-decoration: none; font-weight: 600; }
.cta-alt a:hover { text-decoration: underline; }
.cta-note { color: #9AA1B0; font-size: 0.78rem; margin-top: 16px; position: relative; z-index: 1; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px var(--pad-x) 28px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-tag { color: #9AA1B0; font-size: 0.85rem; line-height: 1.7; max-width: 320px; }
.footer-col-title {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #9AA1B0; font-size: 0.85rem; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: #fff; }

/* Contacto y redes: misma fila de íconos, mismo estilo */
.footer-socials { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #9AA1B0;
  transition: 0.2s;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  color: #fff;
  border-color: var(--c);
  background: rgba(94,234,212,0.12);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #9AA1B0;
  font-size: 0.78rem;
  text-align: center;
}

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.2s;
}

.wa-float:hover { transform: scale(1.08); }

/* ============ ANIMACIÓN FADE-IN AL SCROLL ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE - 768px (solo reacomodo estructural) ============ */
@media (max-width: 768px) {
  .services-split { grid-template-columns: 1fr; }
  .svc-list { border-right: none; }
  .svc-panel { min-height: 420px; }
  .svc-panel-body { padding: 26px 24px; max-width: none; }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .stat + .stat::before { display: none; }
  .process-timeline { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }

  /* Footer mobile: alineado a la izquierda, lista tappable (mas nativo) */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .footer-tag { max-width: none; }
  .footer-socials { justify-content: flex-start; }
  /* Enlaces del footer en 2 columnas */
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .footer-links a { padding: 13px 2px; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .footer-bottom { text-align: left; }
}

/* ============ RESPONSIVE - 480px (solo reacomodo estructural) ============ */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-btn-main, .hero-btn-ghost { width: 100%; text-align: center; }
  .hero-mini-stats { flex-direction: column; }

  .svc-panel { min-height: 340px; }
  .stats-row { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .result-item { border-left: none; padding-left: 0; }

  .cta-form { flex-direction: column; }
  .about-metrics { gap: 24px; flex-wrap: wrap; }
}


/* ============================================================
   PÁGINAS DE CASO DE ÉXITO (subpáginas)
   ============================================================ */
.case-main { padding-top: 60px; position: relative; z-index: 1; }

.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px var(--pad-x) 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #9AA1B0;
}
.breadcrumb a { color: #9AA1B0; text-decoration: none; transition: 0.2s; }
.breadcrumb a:hover { color: var(--c); }
.breadcrumb .sep { color: #4B5563; }
.breadcrumb .current { color: #fff; font-weight: 600; }

.case-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px var(--pad-x) 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.case-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 16px 0 18px;
}
.case-hero-lead { color: #9AA1B0; font-size: 1.02rem; line-height: 1.75; }

.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.case-tag-chip {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c); background: rgba(94,234,212,0.08);
  border: 1px solid rgba(94,234,212,0.2); padding: 4px 12px; border-radius: 100px;
}

.case-hero-media {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.case-hero-media img.cover { width: 100%; height: 100%; object-fit: cover; }
.case-hero-media img.contain { max-width: 96%; max-height: 96%; object-fit: contain; }

.case-body { max-width: 1100px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--pad-x); }
.case-block { margin-bottom: clamp(40px, 6vw, 64px); }
.case-block:last-child { margin-bottom: 0; }
.case-block h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.case-block > p { color: #9AA1B0; font-size: 1rem; line-height: 1.8; max-width: 760px; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 28px; }
.result-item { padding: 4px 0 4px 24px; border-left: 1px solid var(--border); }
.result-item:first-child { border-left: none; padding-left: 0; }
.result-num {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, #5EEAD4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.result-label { color: #9AA1B0; font-size: 0.85rem; margin-top: 8px; line-height: 1.5; }

.case-feature-list { list-style: none; margin-top: 18px; display: grid; gap: 12px; max-width: 760px; }
.case-feature-list li { color: #9AA1B0; font-size: 0.95rem; line-height: 1.6; padding-left: 28px; position: relative; }
.case-feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--c); font-weight: 800; }

.case-quote { border-left: 3px solid var(--c); padding: 6px 0 6px 24px; margin-top: 28px; max-width: 760px; }
.case-quote p { font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 600; line-height: 1.6; color: #E5E7EB; font-style: italic; }
.case-quote cite { display: block; margin-top: 12px; color: var(--c); font-size: 0.85rem; font-weight: 600; font-style: normal; }

/* Sub-clientes (caso chatbot) */
.subcases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.subcase { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; }
.subcase h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.subcase .subcase-tag { color: var(--c); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.subcase p { color: #9AA1B0; font-size: 0.88rem; line-height: 1.65; margin: 10px 0 14px; }
.subcase .subcase-result { color: #5EEAD4; font-size: 0.82rem; font-weight: 600; }

.case-cta { text-align: center; padding: clamp(60px, 9vw, 100px) var(--pad-x); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.case-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 14px; }
.case-cta p { color: #9AA1B0; margin-bottom: 28px; }

@media (max-width: 768px) {
  .case-hero { grid-template-columns: 1fr; }
  .case-hero-media { aspect-ratio: 16 / 10; }
}


/* ===== Íconos SVG como media de caso (erp, portal) ===== */
.case-media .case-svg { width: 72px; height: 72px; color: var(--c); position: relative; z-index: 1; }
.case-hero-media .case-svg { width: 145px; height: 145px; color: var(--c); }

/* ===== Encabezado del índice de casos ===== */
.casos-index-head { margin-bottom: 8px; }
.casos-index-head h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.08;
  margin: 14px 0 14px;
}
.casos-index-head .section-sub { max-width: 560px; }

/* ===== Botón "ver todos" en la sección de casos de la landing ===== */
.cases-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }


/* ===== Caso Mostaza App: showcase métricas + mockup de teléfono ===== */
.app-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.app-metric-block { }
.app-metric-num {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}
.app-metric-label { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; }
.app-metric-block p { color: #9AA1B0; font-size: 0.9rem; line-height: 1.65; margin-top: 8px; max-width: 52ch; }
.app-divider { width: 42px; height: 3px; border-radius: 3px; background: var(--c); margin: clamp(22px, 3vw, 32px) 0; }

/* La imagen ya incluye el marco del telefono: se muestra directa con sombra */
.app-phone { display: flex; justify-content: center; }
.app-phone img {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: block;
  filter: drop-shadow(0 40px 55px rgba(0,0,0,0.55));
}

@media (max-width: 768px) {
  .app-showcase { grid-template-columns: 1fr; }
  .app-phone { order: -1; }
}


/* ===== Formatos alternativos para casos (variar la lectura) ===== */
/* Pasos numerados (para 'La solución / La implementación') */
.steps { list-style: none; margin-top: 28px; max-width: 880px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: none; padding-top: 4px; }
.step-num { font-size: 1.5rem; font-weight: 800; color: var(--c); letter-spacing: -0.02em; line-height: 1; min-width: 42px; }
.step-body h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.step-body p { color: #9AA1B0; font-size: 0.95rem; line-height: 1.7; max-width: 72ch; }

/* Lista de beneficios con ícono check (para 'Por qué...') */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 44px; margin-top: 28px; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.why-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(94,234,212,0.1); border: 1px solid rgba(94,234,212,0.22); display: flex; align-items: center; justify-content: center; color: var(--c); flex-shrink: 0; }
.why-ico svg { width: 17px; height: 17px; }
.why-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.why-item p { color: #9AA1B0; font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 680px) {
  .why-grid { grid-template-columns: 1fr; }
}


/* Logo de WhatsApp en el boton flotante */
.wa-float { color: #fff; }
.wa-float svg { width: 28px; height: 28px; }


/* ===== Menú móvil (hamburguesa) ===== */
.nav-menu { display: contents; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: flex;
    position: fixed; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(20,22,28,0.98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--pad-x) 22px;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  #navbar.nav-open .nav-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu .nav-links { display: flex; flex-direction: column; gap: 0; width: 100%; }
  .nav-menu .nav-links a { padding: 15px 6px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-menu .nav-right { width: 100%; margin-top: 16px; }
  .nav-menu .nav-right .btn-primary { display: block; text-align: center; padding: 13px; font-size: 0.95rem; }
  #navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  #navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}


/* ============ PÁGINA PROYECTOS ============ */
.proy-head { max-width: 1100px; margin: 0 auto; padding: 8px var(--pad-x) 0; }
.proy-head h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.08;
  margin: 12px 0 20px;
}
.proy-lead { color: #9AA1B0; font-size: 1rem; line-height: 1.75; max-width: 70ch; }

.proy-block { max-width: 1100px; margin: 0 auto; padding: clamp(48px, 7vw, 72px) var(--pad-x) 0; }
.proy-block-head { margin-bottom: 30px; }
.proy-block-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 12px; }
.proy-block-head p { color: #9AA1B0; font-size: 0.95rem; line-height: 1.7; max-width: 62ch; }
.proy-block .cases-grid { margin-top: 0; }

/* Placeholder cuando todavía no hay foto (isotipo cohete al 20%) */
.case-media.proy-ph {
  background: radial-gradient(circle at 50% 42%, rgba(94,234,212,0.06), transparent 60%), var(--bg2);
}
.case-media.proy-ph::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url(/assets/images/logo-isotipo.png) center / 72px auto no-repeat;
  opacity: 0.2;
}

/* ============ PÁGINA TÓTEMS ============ */
/* Bloques alternados: el reel cambia de lado en desktop */
.totem-feature--flip .totem-feature-screen { order: -1; justify-self: center; }
.totem-feature--flip { grid-template-columns: 0.9fr 1.1fr; }

/* .case-body también es el cuerpo de las páginas de caso: en tarjetas no lleva ese padding/ancho */
.case-card .case-body { max-width: none; margin: 0; padding: 24px; }
.case-card .case-body .case-tag { flex: 0 0 auto; }

/* Tarjetas con varias capturas que se van alternando (fundido) */
.proy-rotate { position: relative; background: #111318; }
.proy-rotate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.proy-rotate > img.is-active { opacity: 1; }
.proy-block[id] { scroll-margin-top: 90px; }

/* Hero de página de caso con varias capturas alternando (mismo patrón que .case-media.proy-rotate) */
.case-hero-media.proy-rotate { position: relative; background: #111318; padding: 0; }
.case-hero-media.proy-rotate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.case-hero-media.proy-rotate img.is-active { opacity: 1; }

/* Pantalla principal de cada tótem: captura real (no video) */
.totem-feature-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Tira de capturas debajo de cada tótem: se ve la pantalla entera (vertical u horizontal) */
.tp-captures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tp-captures:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 330px)); justify-content: center; }
/* Mezcla vertical + horizontales: la vertical ocupa el alto de las dos horizontales apiladas */
.tp-captures--mixed { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.tp-capture--tall { grid-row: span 2; }
.tp-capture--tall .tp-capture-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.tp-capture--wide .tp-capture-img { aspect-ratio: auto; }
.tp-capture { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tp-capture-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 42%, rgba(94,234,212,0.06), transparent 60%), var(--bg2);
  transition: border-color 0.2s ease;
}
.tp-capture-img:hover { border-color: rgba(94,234,212,0.35); }
.tp-capture-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 14px 30px -14px rgba(0,0,0,0.6); display: block; }
.tp-capture figcaption { color: #9AA1B0; font-size: 0.85rem; line-height: 1.5; }

.tp-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tp-benefit {
  background: #1C1E25;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 26px 28px;
}
.tp-benefit h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.tp-benefit p { color: #9AA1B0; font-size: 0.9rem; line-height: 1.65; }

.tp-include { grid-template-columns: 1fr 1fr; max-width: 760px; }

/* ============ Índice lateral (/totems) ============ */
/* Fijo al costado del contenido centrado de 1100px: queda 24px a la izquierda de
   la caja de texto. Por debajo de 1510px no hay margen suficiente y se oculta. */
.side-index {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: calc(50% - 550px - 192px);
  width: 168px;
  z-index: 40;
}
@media (min-width: 1510px) { .side-index { display: block; } }

.side-index-title {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6E7682;
  margin: 0 0 14px 17px;
}
.side-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}
.side-index a {
  display: block;
  padding: 9px 0 9px 17px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.side-index a:hover { color: rgba(255, 255, 255, 0.72); }
.side-index a.is-active {
  color: #FFFFFF;
  font-weight: 600;
  border-left-color: var(--c);
}

/* ============ Galería de videos (/totems/videos) ============ */
/* Un grupo por tótem; cada grupo admite todos los videos que haga falta. */
.tv-group-head { margin-bottom: 26px; }
.tv-group-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 12px; }
.tv-group-head p { color: #9AA1B0; font-size: 0.95rem; line-height: 1.7; max-width: 62ch; }

.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.tv-item { margin: 0; min-width: 0; }
.tv-item--wide { grid-column: span 2; }
.tv-item--wide .tv-screen { aspect-ratio: 16 / 9; }
.tv-item figcaption {
  color: #9AA1B0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 12px;
}

.tv-screen {
  width: 100%;
  border-radius: 18px; overflow: hidden; background: #000;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -30px rgba(94,234,212,0.4);
}
.tv-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Galeria de expos (/expo): las fotos del stand entran en la misma grilla que los
   videos, y la grilla se centra cuando la expo tiene pocos items. */
.tv-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-grid--compact { grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); justify-content: center; }
.expo-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 768px) {
  .totem-feature--flip { grid-template-columns: 1fr; }
  .tp-captures, .tp-captures--mixed, .tp-captures:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tp-capture--tall { grid-row: auto; grid-column: 1 / -1; }
  .tp-capture--tall .tp-capture-img { aspect-ratio: 4 / 5; }
  .tp-capture--wide { grid-column: 1 / -1; }
  .tp-benefits { grid-template-columns: 1fr; }
  .tp-include { grid-template-columns: 1fr; }

  /* Videos: el grupo del tótem se desliza en horizontal */
  .tv-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .tv-grid::-webkit-scrollbar { display: none; }
  .tv-item { flex: 0 0 min(72%, 260px); scroll-snap-align: center; }
  .tv-item--wide { flex-basis: min(92%, 420px); }
}

/* Chips de métricas/capacidades (sin la flecha de resultado de .case-result) */
.proy-metrics {
  margin-top: 16px; padding: 10px 14px;
  background: rgba(94,234,212,0.06); border: 1px solid rgba(94,234,212,0.14);
  border-radius: 8px; font-size: 0.8rem; color: #8EE7DA; font-weight: 600; line-height: 1.5;
}

/* Destacado: Profesionales in-company */
.proy-incompany { max-width: 1100px; margin: clamp(44px, 6vw, 68px) auto 0; padding: 0 var(--pad-x); }
.proy-incompany-inner {
  position: relative; overflow: hidden; border-radius: 20px;
  padding: clamp(32px, 5vw, 52px);
  background: linear-gradient(135deg, rgba(94,234,212,0.10), rgba(45,212,191,0.02));
  border: 1px solid rgba(94,234,212,0.35);
}
.proy-incompany-inner::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(94,234,212,0.18), transparent 70%); pointer-events: none;
}
.proy-incompany h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin: 10px 0 14px; position: relative; z-index: 1; }
.proy-incompany p { color: #CBD5E1; font-size: 1.02rem; line-height: 1.75; max-width: 66ch; position: relative; z-index: 1; }


/* ===== Proyectos: video en tarjeta (llena el marco) + lightbox ===== */
.case-media.proy-vid, .case-media.proy-img { cursor: pointer; background: #000; }
.proy-vid .proy-vid-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.proy-vid-badge {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  color: #052B26; background: rgba(94,234,212,0.92);
  padding: 5px 10px; border-radius: 100px;
  opacity: 0; transform: translateY(4px); transition: 0.25s;
}
.proy-vid:hover .proy-vid-badge,
.proy-vid:focus-visible .proy-vid-badge,
.proy-img:hover .proy-vid-badge,
.proy-img:focus-visible .proy-vid-badge { opacity: 1; transform: translateY(0); }
.proy-vid:focus-visible,
.proy-img:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

.proy-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(0,0,0,0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.proy-lightbox.open { display: flex; }
.proy-lightbox video {
  max-height: 88vh; max-width: min(92vw, 460px); width: auto; height: auto;
  border-radius: 16px; background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1);
}
.proy-lightbox img {
  max-height: 88vh; max-width: min(94vw, 1400px); width: auto; height: auto;
  border-radius: 14px; background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1);
}
.proy-lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.proy-lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============ SERVICIOS ============ */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(40px, 6vw, 64px);
  gap: clamp(24px, 4vw, 40px);
}

.services-header h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
@media (max-width: 768px) {
  .services-header { flex-direction: column; align-items: flex-start; }
}

/* ===== Casos de éxito: spotlight (varias tarjetas visibles, con navegación) ===== */
.spotlight-cases { margin-top: 48px; }

.spotlight-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.spotlight-track::-webkit-scrollbar { display: none; }

.spotlight-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #1C1E25;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.spotlight-card:hover { border-color: rgba(94,234,212,0.3); transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(0,0,0,0.55); }

.spotlight-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 22px; }
.spotlight-media img { max-width: 80%; max-height: 84%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45)); }

.spotlight-body { padding: 22px 24px 26px; display: flex; flex-direction: column; border-top: 1px solid var(--border); flex: 1; }
.spotlight-body h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 10px; line-height: 1.25; }
.spotlight-body > p { color: #9AA1B0; font-size: 0.85rem; line-height: 1.65; }
.spotlight-body .case-result { margin-top: 16px; align-self: flex-start; }
.spotlight-body .case-link { margin-top: auto; padding-top: 16px; }

.spotlight-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.spotlight-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.spotlight-arrow:hover { background: rgba(94,234,212,0.14); border-color: var(--c); color: var(--c); }
.spotlight-arrow:active { transform: scale(0.94); }
.spotlight-arrow:disabled,
.spotlight-arrow.is-disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.spotlight-arrow svg { width: 18px; height: 18px; }

.spotlight-dots { display: flex; align-items: center; gap: 8px; }
.spotlight-dot {
  width: 8px; height: 8px; border-radius: 100px;
  background: rgba(255,255,255,0.18); border: none; padding: 0; cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.spotlight-dot:hover { background: rgba(255,255,255,0.36); }
.spotlight-dot.active { width: 22px; background: var(--c); }

@media (max-width: 1100px) {
  .spotlight-card { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 640px) {
  .spotlight-card { flex-basis: 84%; }
  .spotlight-media { aspect-ratio: 16 / 10; }
}
