/* ==========================================================================
   BRANAVI CONNECTS (branaviconnects.com) | ENTERPRISE DESIGN SYSTEM 2026
   Arquitectura Visual de Grado Corporativo — Inspirada en zensoftware.studio
   Paleta Oficial BRANAVI: Deep Obsidian (#02050e), Royal Blue (#041184),
   Electric Cobalt (#2563eb), Ice Cyan (#7dd3fc) & Pure White (#ffffff)
   ========================================================================== */

:root {
  --bg-obsidian: #02050e;
  --bg-surface: #050b1c;
  --bg-card: rgba(9, 17, 42, 0.72);
  --bg-card-elevated: rgba(13, 25, 62, 0.88);
  --brand-royal: #041184;
  --brand-cobalt: #2563eb;
  --brand-sky: #60a5fa;
  --brand-ice: #93c5fd;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(96, 165, 250, 0.38);
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(4, 17, 132, 0.55) 0%, transparent 70%),
    radial-gradient(circle at 88% 35%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 12% 75%, rgba(4, 17, 132, 0.22) 0%, transparent 50%);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   BARRA DE PROGRESO SUPERIOR & SELECTOR DE PROPUESTAS PARA DIRECCIÓN
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-royal), var(--brand-sky), #ffffff);
  z-index: 2500;
  transition: width 0.08s linear;
}

.version-switcher-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1800;
  background: rgba(2, 5, 14, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  font-size: 0.75rem;
}

.version-switcher-pill .v-label {
  color: var(--text-muted);
  font-weight: 600;
}

.version-switcher-pill a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
}

.version-switcher-pill a:hover {
  background: var(--brand-cobalt);
  border-color: var(--brand-sky);
}

/* ==========================================================================
   NAVBAR CORPORATIVO PREMIUM
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 5, 14, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.35s var(--ease-out-expo);
}

.navbar.scrolled {
  background: rgba(2, 5, 14, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-identity img {
  height: 44px;
  width: auto;
}

.brand-tag {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 1px solid var(--border-subtle);
  line-height: 1.25;
}

.brand-tag strong {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-sky);
}

.brand-tag span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.15rem;
}

.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brand-sky);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn-magnetic svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn-magnetic:hover svg {
  transform: translateX(3px);
}

.btn-glow {
  background: linear-gradient(135deg, #041184 0%, #2563eb 100%);
  color: var(--text-primary);
  border-color: rgba(147, 197, 253, 0.28);
  box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.7);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -6px rgba(96, 165, 250, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.btn-xl {
  padding: 1.02rem 2rem;
  font-size: 0.94rem;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   HERO PRINCIPAL — AMPLIO, IMPONENTE Y FLUIDO (CERO SALTO DE LÍNEAS)
   ========================================================================== */
.hero-stage {
  position: relative;
  padding: 6.5rem 0 6rem;
  overflow: hidden;
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4.5rem;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: rgba(4, 17, 132, 0.42);
  border: 1px solid var(--border-glow);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ice);
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-sky);
  box-shadow: 0 0 10px var(--brand-sky);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 4.1vw, 3.85rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Reserva fija de línea para que jamás empuje el texto hacia abajo */
.hero-dynamic-slot {
  display: block;
  min-height: 1.22em;
  white-space: nowrap;
}

.hero-dynamic-word {
  background: linear-gradient(90deg, #ffffff 0%, #93c5fd 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-right: 2px solid var(--brand-sky);
  padding-right: 6px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 590px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

/* Tarjeta Derecha del Hero */
.command-center-wrap {
  perspective: 1200px;
}

.command-center-card {
  background: rgba(7, 13, 34, 0.78);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.65rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease-out, border-color 0.3s ease;
}

.command-center-card:hover {
  border-color: var(--border-glow);
}

.cc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cc-top-bar img {
  height: 28px;
  width: auto;
}

.cc-status-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cc-video-showcase {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.cc-video-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease;
}

.cc-hud-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 5, 14, 0.92) 0%, transparent 58%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.cc-hud-bottom strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.cc-hud-bottom span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cc-kpi-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cc-kpi-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.05rem 1.2rem;
}

.cc-kpi-box .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.cc-kpi-box .num span {
  color: var(--brand-sky);
}

.cc-kpi-box .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   FRANJA DE INDICADORES AUDITADOS
   ========================================================================== */
.counters-section {
  padding: 2rem 0 5.5rem;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  padding: 2.5rem 2rem;
  background: rgba(7, 13, 34, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.counter-card {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid var(--border-subtle);
}

.counter-card:last-child {
  border-right: none;
}

.counter-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.counter-value .prefix,
.counter-value .suffix {
  color: var(--brand-sky);
}

.counter-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.counter-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   ESTRUCTURA GENERAL DE SECCIONES
   ========================================================================== */
.section {
  padding: 7.5rem 0;
  position: relative;
}

.section-glass {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4.5rem;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-sky);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Reveal que funciona incluso sin JS y anima suave cuando carga */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   EL NUEVO ESCENARIO DE LOS 6 PILARES TECNOLÓGICOS (REEMPLAZA EL CLIPART 2002)
   Bento Grid de 6 Módulos con Telemetría Animada en Vivo (SVG + CSS Pro)
   ========================================================================== */
.tech-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.tech-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-out-expo);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.tech-module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-sky), transparent);
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.tech-module-card:hover {
  background: var(--bg-card-elevated);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(4, 17, 132, 0.45);
}

.tech-module-card:hover::before {
  opacity: 1;
}

/* Visor superior animado de cada módulo (donde antes iban los dibujos viejos) */
.tech-visual-stage {
  height: 168px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(4, 17, 132, 0.5) 0%, rgba(2, 5, 14, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.65rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-visual-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.56) contrast(1.08) brightness(0.76);
  transform: scale(1.02);
  transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.tech-visual-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(2, 5, 14, 0.45), rgba(4, 17, 132, 0.14));
}

.tech-module-card:hover .tech-visual-stage img {
  transform: scale(1.08);
  filter: saturate(0.68) contrast(1.08) brightness(0.9);
}

/* Fotografía editorial para los servicios, con la misma jerarquía visual que el resto del sitio. */
.service-card-media {
  height: 138px;
  margin: 0.95rem 0 1.45rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #060c20;
}

.service-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(2, 5, 14, 0.18), rgba(4, 17, 132, 0.24));
}

.service-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.06) brightness(0.76);
  transform: scale(1.02);
  transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.tilt-card:hover .service-card-media img {
  transform: scale(1.07);
  filter: saturate(0.7) contrast(1.06) brightness(0.88);
}

.tech-stage-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(2, 5, 14, 0.78);
  border: 1px solid rgba(96, 165, 250, 0.32);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ice);
  z-index: 1;
}

.tech-module-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.tech-module-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex-grow: 1;
}

.tech-module-meta {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--brand-sky);
  font-weight: 600;
}

/* Animaciones SVG internas de los 6 módulos tecnológicos */
.svg-orbit-ring {
  transform-origin: center;
  animation: spinSlow 18s linear infinite;
}

.svg-pulse-node {
  animation: nodeGlow 2.4s ease-in-out infinite;
}

.svg-signal-dash {
  stroke-dasharray: 6 6;
  animation: dashFlow 1.6s linear infinite;
}

.svg-wave-bar {
  transform-origin: center;
  animation: eqBounce 1.3s ease-in-out infinite;
}

.svg-scan-beam {
  animation: scanSweep 2.8s ease-in-out infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes nodeGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -24; }
}

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes scanSweep {
  0%, 100% { transform: translateX(-38px); opacity: 0.35; }
  50% { transform: translateX(38px); opacity: 0.95; }
}

/* ==========================================================================
   GRILLA DE SOLUCIONES BPO & CICLO DE COBRANZAS
   ========================================================================== */
.ecosystem-switcher {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.eco-tab {
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.eco-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
}

.eco-tab.active {
  background: var(--brand-royal);
  border-color: var(--brand-sky);
  color: var(--text-primary);
}

.cards-3d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tilt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.35rem 2.1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.tilt-card:hover {
  background: var(--bg-card-elevated);
  border-color: var(--border-glow);
  transform: translateY(-5px);
}

.card-division-pill {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-sky);
  margin-bottom: 1.15rem;
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(4, 17, 132, 0.5);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-sky);
  margin-bottom: 1.35rem;
}

.card-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.tilt-card h3 {
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tilt-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
  flex-grow: 1;
}

/* ==========================================================================
   SIMULADOR INTERACTIVO DE AUDITORÍA IA (ABAJO DE LOS 6 MÓDULOS)
   ========================================================================== */
.ai-engine-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
  background: rgba(7, 13, 34, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.5rem;
}

.ai-FeatureList {
  display: grid;
  gap: 1rem;
}

.ai-feature-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ai-feature-item:hover,
.ai-feature-item.active {
  background: rgba(4, 17, 132, 0.42);
  border-color: var(--border-glow);
}

.ai-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(4, 17, 132, 0.6);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-sky);
}

.ai-feat-icon svg {
  width: 18px;
  height: 18px;
}

.ai-feature-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.ai-feature-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ai-console-card {
  background: rgba(2, 5, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
}

.ai-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-waveform-bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  height: 46px;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.ai-waveform-bars span {
  flex: 1;
  background: var(--brand-sky);
  border-radius: 99px;
  height: 30%;
  animation: waveBarPulse 1.5s ease-in-out infinite;
}

@keyframes waveBarPulse {
  0%, 100% { height: 22%; opacity: 0.35; }
  50% { height: 90%; opacity: 0.9; }
}

.ai-transcript-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.ai-transcript-line {
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ai-transcript-line:last-child {
  margin-bottom: 0;
}

.ai-transcript-line strong {
  color: var(--brand-sky);
}

.ai-metrics-meters {
  display: grid;
  gap: 0.85rem;
}

.ai-meter-row {
  display: grid;
  gap: 0.35rem;
}

.ai-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ai-meter-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.ai-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-royal), var(--brand-sky));
  border-radius: 999px;
  transition: width 0.5s var(--ease-out-expo);
}

/* ==========================================================================
   CURVA DE RESULTADOS AUDITADOS (2023 - OCTUBRE 2026)
   ========================================================================== */
.results-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.timeline-steps {
  display: grid;
  gap: 0.9rem;
}

.timeline-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: grid;
  grid-template-columns: 95px 1fr auto;
  align-items: center;
  gap: 1.15rem;
  transition: border-color 0.3s ease;
}

.timeline-step-card.peak-card {
  background: rgba(4, 17, 132, 0.38);
  border-color: var(--border-glow);
}

.tl-year {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand-sky);
}

.tl-money {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tl-money small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tl-goal-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--brand-ice);
  font-size: 0.74rem;
  font-weight: 700;
}

.chart-showcase-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.35rem;
}

/* ==========================================================================
   GALERÍA DE INFRAESTRUCTURA REAL EN MONTEVIDEO
   ========================================================================== */
.gallery-stage {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
}

.gallery-main-viewport {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 490px;
}

.gallery-main-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.gallery-caption-bar {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 2.1rem;
  background: linear-gradient(to top, rgba(2, 5, 14, 0.94) 0%, transparent 100%);
}

.gallery-caption-bar h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.gallery-caption-bar p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.gallery-thumbs-stack {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-thumb-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  height: 112px;
  opacity: 0.65;
  transition: all 0.25s ease;
}

.gallery-thumb-item:hover,
.gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--brand-sky);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-item span {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(to top, rgba(2, 5, 14, 0.92), transparent);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ==========================================================================
   CLIENTES REALES Y TESTIMONIO
   ========================================================================== */
.clients-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.client-tile {
  background: #ffffff;
  border-radius: 16px;
  height: 98px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out-expo);
}

.client-tile:hover {
  transform: translateY(-4px);
}

.client-tile img {
  max-height: 52px;
  max-width: 132px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.testimonial-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3.25rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
}

.testi-avatar-ring {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid var(--border-glow);
}

.testi-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testi-quote {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.35rem;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO
   ========================================================================== */
.contact-dual-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-card-left,
.contact-card-right {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.75rem;
}

.mode-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(2, 5, 14, 0.7);
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.mode-pill-btn {
  padding: 0.72rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
}

.mode-pill-btn.active {
  background: var(--brand-royal);
  color: var(--text-primary);
}

.modern-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-box.span-2 {
  grid-column: span 2;
}

.field-box label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-box input,
.field-box select,
.field-box textarea {
  padding: 0.88rem 1.05rem;
  border-radius: 12px;
  background: rgba(2, 5, 14, 0.78);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.field-box input:focus,
.field-box select:focus,
.field-box textarea:focus {
  outline: none;
  border-color: var(--brand-sky);
}

.contact-list-items {
  display: grid;
  gap: 1.4rem;
  margin: 2rem 0;
}

.c-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.c-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(4, 17, 132, 0.5);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-sky);
  flex-shrink: 0;
}

.c-icon svg {
  width: 18px;
  height: 18px;
}

.c-row strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.c-row span,
.c-row a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   FOOTER CORPORATIVO + CRÉDITO SUTIL ZENSOFTWARE.STUDIO
   ========================================================================== */
.footer-modern {
  background: #010309;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.25rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-cols h4 {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.footer-cols ul {
  display: grid;
  gap: 0.65rem;
}

.footer-cols ul a {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-cols ul a:hover {
  color: var(--text-primary);
}

.footer-copy {
  padding-top: 1.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dev-credit {
  font-size: 0.74rem;
  color: #64748b;
}

.dev-credit a {
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px dotted rgba(148, 163, 184, 0.35);
}

.dev-credit a:hover {
  color: var(--brand-sky);
  border-color: var(--brand-sky);
}

.floating-action-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: var(--brand-royal);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65);
}

.floating-action-hub:hover {
  transform: translateY(-2px);
}

.floating-action-hub svg {
  width: 18px;
  height: 18px;
  color: var(--brand-sky);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1120px) {
  .container {
    padding: 0 1.75rem;
  }

  .hero-grid,
  .ai-engine-layout,
  .results-grid,
  .gallery-stage,
  .contact-dual-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tech-bento-grid,
  .cards-3d-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-thumbs-stack {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 5rem 0;
  }

  .nav-menu,
  .nav-cta-group {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .navbar.mobile-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 90px;
    inset-inline: 0;
    background: rgba(2, 5, 14, 0.98);
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .hero-dynamic-slot {
    white-space: normal;
    min-height: 2.3em;
  }

  .tech-bento-grid,
  .cards-3d-grid,
  .modern-form-grid,
  .mode-pills {
    grid-template-columns: 1fr;
  }

  .field-box.span-2 {
    grid-column: span 1;
  }

  .counters-grid,
  .clients-wall {
    grid-template-columns: 1fr 1fr;
  }

  .counter-card {
    border-right: none;
    padding: 0.75rem;
  }

  .testimonial-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.25rem 1.5rem;
  }

  .timeline-step-card {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .version-switcher-pill {
    bottom: 80px;
    left: 16px;
  }
}

/* ==========================================================================
   AJUSTE EDITORIAL (v2.1): menos efectos, alineación a la izquierda,
   botones sobrios y navbar sin superposición. Estas reglas pisan las anteriores.
   ========================================================================== */
body {
  background-image: none;
  background-color: #040813;
}

/* Navbar: sin superposición */
.nav-inner { gap: 1.5rem; }
.brand-identity { flex-shrink: 0; }
.brand-tag { white-space: nowrap; }
.nav-menu { gap: 1.6rem; flex-shrink: 1; }
.nav-menu a { white-space: nowrap; font-size: 0.86rem; }
.nav-cta-group { flex-shrink: 0; }
@media (max-width: 1320px) { .brand-tag { display: none; } }

/* Botones sobrios: color sólido, sin brillo ni degradado */
.btn-glow {
  background: #1f3fd0;
  border-color: #1f3fd0;
  box-shadow: none;
  font-weight: 600;
}
.btn-glow:hover { background: #2a4ee6; transform: none; box-shadow: none; }
.btn-glass { background: transparent; border-color: rgba(255,255,255,0.22); }
.btn-glass:hover { background: rgba(255,255,255,0.06); transform: none; }
.btn-magnetic { padding: 0.7rem 1.3rem; border-radius: 8px; }
.btn-xl { padding: 0.95rem 1.75rem; }

/* Hero: sin efectos de luz */
#neuralCanvas { opacity: 0.18; }
.hero-eyebrow-pill {
  background: transparent;
  border: none;
  padding: 0;
  letter-spacing: 0.14em;
  color: var(--brand-ice);
}
.pulse-dot { animation: none; box-shadow: none; }
.hero-dynamic-word {
  background: none;
  -webkit-text-fill-color: #93c5fd;
  color: #93c5fd;
  border-right: none;
}
.command-center-card {
  backdrop-filter: none;
  background: #0a1128;
  box-shadow: none;
  border-radius: 14px;
  transform: none !important;
}
.cc-video-showcase { border-radius: 8px; }
.cc-kpi-box { border-radius: 8px; background: transparent; }

/* Métricas: sin caja flotante, solo líneas finas, alineadas a la izquierda */
.counters-grid {
  background: transparent;
  box-shadow: none;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 2.5rem 0;
}
.counter-card { text-align: left; padding: 0 1.5rem; }
.counter-card:first-child { padding-left: 0; }
.counter-value { font-size: clamp(1.5rem, 2.1vw, 2rem); }
.counter-value .prefix, .counter-value .suffix { color: #93c5fd; }
.counter-title { text-transform: none; letter-spacing: 0; font-size: 0.88rem; }

/* Títulos de sección alineados a la izquierda (lectura editorial) */
.section-head {
  text-align: left;
  max-width: 680px;
  margin: 0 0 3.5rem 0;
}
.section-title { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.eyebrow-tag { letter-spacing: 0.12em; }
.ecosystem-switcher { justify-content: flex-start; }
.eco-tab { border-radius: 8px; }
.eco-tab.active { background: #1f3fd0; border-color: #1f3fd0; }

/* Tarjetas planas: sin brillo, sin sombra, sin elevación exagerada */
.tech-module-card,
.tilt-card,
.chart-showcase-box,
.timeline-step-card,
.testimonial-hero-card,
.contact-card-left,
.contact-card-right,
.ai-engine-layout {
  background: #0a1128;
  box-shadow: none;
  border-radius: 12px;
  backdrop-filter: none;
}
.tech-module-card::before { display: none; }
.tech-module-card:hover,
.tilt-card:hover { transform: none; box-shadow: none; background: #0d1633; border-color: rgba(147,197,253,0.4); }
.tech-visual-stage { border-radius: 8px; background: #060c20; }
.tech-stage-badge { border-radius: 6px; background: transparent; }
.card-icon-wrap, .c-icon, .ai-feat-icon { border-radius: 8px; background: transparent; }
.timeline-step-card.peak-card { background: #101b45; }
.tl-goal-pill { border-radius: 6px; }
.gallery-main-viewport, .gallery-thumb-item { border-radius: 8px; }
.client-tile { border-radius: 8px; }
.mode-pills, .mode-pill-btn, .field-box input, .field-box select, .field-box textarea { border-radius: 8px; }
.mode-pill-btn.active { background: #1f3fd0; }
.ai-meter-fill { background: #60a5fa; }
.scroll-progress-bar { background: #60a5fa; }

/* Contenido del testimonio y contacto sin centrado forzado */
.testimonial-hero-card { text-align: left; }

/* Luces de fondo bien visibles */
#neuralCanvas { opacity: 1; }

/* Cartel del hero: tamaño fijo, todas las fotos iguales, sin saltos */
.command-center-card { width: 100%; }
.cc-video-showcase {
  height: 290px;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.cc-video-showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cc-hud-overlay { z-index: 2; }
.cc-hud-bottom { height: 3.1rem; overflow: hidden; }
.cc-hud-bottom strong,
.cc-hud-bottom span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-kpi-box { min-height: 118px; }
.cc-kpi-box .num { white-space: nowrap; font-size: 1.4rem; }
@media (max-width: 820px) { .cc-video-showcase { height: 220px; } }

/* Hero: columna de la tarjeta mas ancha (crece hacia la izquierda) y fija; luces -40% */
.hero-grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 3.5rem; }
.command-center-wrap { min-width: 0; width: 100%; }
.command-center-card { min-width: 0; }
.cc-video-showcase { height: 340px; }
#neuralCanvas { opacity: 0.6; }
@media (max-width: 1120px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .cc-video-showcase { height: 230px; } }


/* Marco fijo 16:10 con fotos recortadas iguales; cambio por fundido */
.cc-video-showcase { height: auto; aspect-ratio: 16 / 10; background: #060c20; }
.cc-video-showcase .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.cc-video-showcase .hero-slide.is-active { opacity: 1; }
@media (max-width: 820px) { .cc-video-showcase { height: auto; } }

/* Titular: nunca se corta ni salta de línea */
.hero-headline { font-size: clamp(2rem, 3.1vw, 2.85rem); line-height: 1.15; }
.hero-dynamic-slot { min-height: 1.2em; }
.hero-copy-col { min-width: 0; }

/* Logo oficial: tamaño legible en navbar, tarjeta y footer */
.brand-identity img { height: 58px; }
.cc-top-bar img { height: 46px; }
.footer-modern img { height: 62px !important; }
.nav-inner { height: 96px; }
@media (max-width: 820px) {
  .hero-headline { font-size: 2rem; }
  .brand-identity img { height: 46px; }
  .navbar.mobile-open .nav-menu { top: 96px; }
}

/* ==========================================================================
   RESPONSIVE v2.2 — notebooks 13"-15", tablets, Android e iPhone
   ========================================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }

/* Contenedor que se adapta: centrado y con margen proporcional */
.container {
  max-width: 1360px;
  padding-left: clamp(1.25rem, 3.2vw, 3rem);
  padding-right: clamp(1.25rem, 3.2vw, 3rem);
}
.hero-grid { width: 100%; }

/* Notebooks (14"/15" con escala de Windows): menú compacto, nada se sale */
@media (max-width: 1500px) {
  .brand-tag { display: none; }
  .nav-menu { gap: 1.35rem; }
  .nav-menu a { font-size: 0.84rem; }
  .btn-magnetic { padding: 0.65rem 1.1rem; font-size: 0.82rem; }
}
@media (max-width: 1320px) {
  .nav-cta-group .btn-glass { display: none; }
  .nav-menu { gap: 1.1rem; }
}

/* Menú hamburguesa desde tablet hacia abajo */
@media (max-width: 1180px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta-group { margin-left: 0; }
  .navbar.mobile-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: rgba(2, 5, 14, 0.98);
    padding: 0.75rem clamp(1.25rem, 3.2vw, 3rem) 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .navbar.mobile-open .nav-menu a {
    width: 100%;
    padding: 0.95rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .navbar.mobile-open .nav-menu a::after { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-stage { padding: 4.5rem 0 4rem; }
  .command-center-wrap { max-width: 640px; }
  .counters-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .counter-card { border-right: none; padding: 0 1rem; }
  .counter-card:first-child { padding-left: 1rem; }
}

/* Celulares (Android / iPhone) */
@media (max-width: 640px) {
  .nav-inner { height: 76px; gap: 0.75rem; }
  .brand-identity img { height: 42px; }
  .navbar.mobile-open .nav-menu { max-height: calc(100vh - 80px); }
  .nav-cta-group { display: none; }

  .hero-stage { padding: 3rem 0 3rem; }
  .hero-headline { font-size: 1.95rem; }
  .hero-dynamic-slot { white-space: normal; min-height: 2.35em; }
  .hero-description { font-size: 1rem; margin-bottom: 1.75rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn-magnetic { width: 100%; }
  .hero-eyebrow-pill { font-size: 0.68rem; margin-bottom: 1.25rem; }

  .command-center-card { padding: 1rem; }
  .cc-top-bar img { height: 38px; }
  .cc-status-label { font-size: 0.62rem; }
  .cc-kpi-duo { grid-template-columns: 1fr; gap: 0.75rem; }
  .cc-kpi-box { min-height: 0; }
  .cc-kpi-box .num { font-size: 1.3rem; }
  .cc-hud-bottom { height: 3rem; }

  .counters-section { padding: 1rem 0 3.5rem; }
  .counters-grid { grid-template-columns: 1fr 1fr; padding: 1.75rem 0; gap: 1.75rem 0.5rem; }
  .counter-card { padding: 0 0.75rem; }
  .counter-card:first-child { padding-left: 0.75rem; }
  .counter-card:last-child { grid-column: span 2; }
  .counter-value { font-size: 1.55rem; }

  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.25rem; }
  .section-title { font-size: 1.65rem; }
  .section-subtitle { font-size: 0.97rem; }
  .ecosystem-switcher { gap: 0.5rem; }
  .eco-tab { padding: 0.6rem 1rem; font-size: 0.8rem; }

  .tech-bento-grid, .cards-3d-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .tech-module-card { padding: 1.25rem; }
  .tech-visual-stage { height: 150px; }
  .tilt-card { padding: 1.5rem 1.35rem; }

  .ai-engine-layout { padding: 1.1rem; gap: 1.5rem; }
  .ai-console-card { padding: 1.15rem; }
  .ai-feature-item { padding: 0.95rem; grid-template-columns: 36px 1fr; gap: 0.8rem; }
  .ai-meter-label { font-size: 0.72rem; gap: 0.5rem; }

  .results-grid { gap: 2rem; }
  .timeline-step-card { grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem; padding: 1rem; }
  .timeline-step-card .tl-year { grid-column: 1 / -1; }
  .chart-showcase-box { padding: 1rem; }

  .gallery-main-viewport { min-height: 0; aspect-ratio: 4 / 3; }
  .gallery-caption-bar { padding: 1rem; }
  .gallery-caption-bar h3 { font-size: 1.05rem; }
  .gallery-caption-bar p { display: none; }
  .gallery-thumbs-stack { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; gap: 0.6rem; }
  .gallery-thumb-item { height: 84px; }

  .clients-wall { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 2.5rem; }
  .client-tile { height: 80px; padding: 0.9rem; }
  .testimonial-hero-card { padding: 1.5rem 1.15rem; gap: 1.5rem; text-align: left; }
  .testi-quote { font-size: 0.97rem; }

  .contact-dual-grid { gap: 1.5rem; }
  .contact-card-left, .contact-card-right { padding: 1.5rem 1.15rem; }
  .mode-pills { grid-template-columns: 1fr; }
  .modern-form-grid { grid-template-columns: 1fr; }
  .field-box.span-2 { grid-column: span 1; }
  .field-box input, .field-box select, .field-box textarea { font-size: 16px; } /* evita el zoom automático de iPhone */

  .footer-modern { padding: 3rem 0 6rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .footer-copy { flex-direction: column; align-items: flex-start; }
  .floating-action-hub { bottom: 16px; right: 16px; padding: 0.7rem 1.1rem; }
}

/* Celulares muy chicos */
@media (max-width: 380px) {
  .hero-headline { font-size: 1.7rem; }
  .brand-identity img { height: 38px; }
}

/* ==========================================================================
   ESTUDIO JURÍDICO — componentes propios (mismo sistema de diseño)
   ========================================================================== */
.urgent-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 2.5rem;
  background: #0a1128;
  border: 1px solid var(--border-glow);
  border-radius: 12px;
}
.urgent-band h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem; }
.urgent-band p { color: var(--text-secondary); font-size: 0.97rem; max-width: 640px; }
.urgent-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.studio-profile {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  background: #0a1128;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.studio-profile-photo { width: 190px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 1px solid rgba(96, 165, 250, 0.4); background: #060c20; }
.studio-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.studio-profile h3 { font-family: var(--font-display); font-size: 1.55rem; margin: 0.7rem 0; }
.studio-profile p { max-width: 590px; color: var(--text-secondary); font-size: 0.98rem; margin-bottom: 1.5rem; }

.studio-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.studio-principles article { min-height: 190px; padding: 2rem; background: #0a1128; }
.studio-principles span { display: block; color: var(--brand-sky); font-weight: 700; letter-spacing: 0.1em; font-size: 0.76rem; margin-bottom: 1.35rem; }
.studio-principles h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.65rem; }
.studio-principles p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.72; }

.split-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.check-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.check-list li { display: flex; gap: 0.85rem; color: var(--text-secondary); font-size: 0.97rem; line-height: 1.6; }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; color: var(--brand-sky); }
.band-photo { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-subtle); aspect-ratio: 16 / 10; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }

.sister-card {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: 2.25rem 2.5rem; background: #0a1128; border: 1px solid var(--border-subtle); border-radius: 12px;
}
.sister-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.4rem; }
.sister-card p { color: var(--text-secondary); max-width: 640px; }

.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 2.25rem 0; }
.fact { padding: 0 1.5rem; border-right: 1px solid var(--border-subtle); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: none; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; line-height: 1.2; }
.fact span { font-size: 0.86rem; color: var(--text-muted); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tilt-card ul.mini-list { margin-top: 1rem; display: grid; gap: 0.4rem; }
.tilt-card ul.mini-list li { font-size: 0.86rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.tilt-card ul.mini-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-sky); }

@media (max-width: 1120px) {
  .split-band { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-row { grid-template-columns: 1fr 1fr; row-gap: 1.75rem; }
  .fact:nth-child(2) { border-right: none; }
  .fact:nth-child(3) { padding-left: 0; }
}
@media (max-width: 820px) {
  .urgent-band, .sister-card { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
  .studio-profile { grid-template-columns: 1fr; text-align: center; padding: 1.5rem 1.25rem; }
  .studio-profile-photo { margin: 0 auto; }
  .studio-principles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .facts-row { grid-template-columns: 1fr; }
  .fact { border-right: none; padding: 0.75rem 0; }
  .urgent-actions .btn-magnetic { width: 100%; }
}

/* ==========================================================================
   MOVIMIENTO EDITORIAL — transiciones sobrias para el sitio del Estudio
   ========================================================================== */
.card-icon-wrap {
  display: grid;
  place-items: center;
}

.card-icon-wrap svg,
.c-icon svg,
.floating-action-hub svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tilt-card.is-interactive {
  transform-style: preserve-3d;
  transition: transform 300ms ease, border-color 300ms ease, background-color 300ms ease;
  will-change: transform;
}

.tilt-card.is-interactive .card-icon-wrap {
  transition: color 300ms ease, transform 300ms ease, background-color 300ms ease;
}

.tilt-card.is-interactive:hover .card-icon-wrap {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.16);
  transform: translateY(-3px);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
}

.detail-card {
  min-height: 255px;
  padding: 1.65rem;
  background: #091127;
  position: relative;
  overflow: hidden;
  transition: background-color 250ms ease, transform 250ms ease;
}

.detail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #60a5fa;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 350ms ease;
}

.detail-card:hover {
  background: #0d1935;
  transform: translateY(-4px);
}

.detail-card:hover::before { transform: scaleY(1); }

.detail-card > span {
  display: block;
  color: #93c5fd;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 2.5rem;
}

.detail-card h3,
.history-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.detail-card p,
.history-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.history-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: #0a1128;
  transition: transform 280ms ease, border-color 280ms ease, background-color 280ms ease;
}

.history-card:hover {
  transform: translateY(-7px);
  background: #0d1633;
  border-color: rgba(147, 197, 253, 0.5);
}

.history-date {
  margin-bottom: 2.2rem;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-card a {
  margin-top: auto;
  padding-top: 1.75rem;
  color: #bfdbfe;
  font-size: 0.86rem;
  font-weight: 700;
}

.history-card a span {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 220ms ease;
}

.history-card:hover a span { transform: translateX(5px); }

.section-head .section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 1.2rem;
  background: #60a5fa;
  transform: scaleX(0);
  transform-origin: left;
}

.section-head.visible .section-title::after { animation: draw-line 650ms 220ms ease forwards; }

.reveal.visible {
  animation: editorial-reveal 720ms cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--reveal-order, 0) * 85ms);
}

.facts-row.visible .fact {
  animation: editorial-reveal 650ms cubic-bezier(.22, 1, .36, 1) both;
}

.facts-row.visible .fact:nth-child(1) { animation-delay: 0ms; }
.facts-row.visible .fact:nth-child(2) { animation-delay: 90ms; }
.facts-row.visible .fact:nth-child(3) { animation-delay: 180ms; }
.facts-row.visible .fact:nth-child(4) { animation-delay: 270ms; }

.split-band .reveal.visible .check-list li {
  animation: list-reveal 480ms ease both;
}

.split-band .reveal.visible .check-list li:nth-child(1) { animation-delay: 100ms; }
.split-band .reveal.visible .check-list li:nth-child(2) { animation-delay: 180ms; }
.split-band .reveal.visible .check-list li:nth-child(3) { animation-delay: 260ms; }
.split-band .reveal.visible .check-list li:nth-child(4) { animation-delay: 340ms; }

.band-photo { background: #060c20; }
.band-photo img { transition: transform 900ms cubic-bezier(.22, 1, .36, 1); }
.band-photo.visible img { transform: scale(1.06); }

@keyframes editorial-reveal {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes list-reveal {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes draw-line {
  to { transform: scaleX(1); }
}

@media (max-width: 1120px) {
  .service-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .service-detail-grid { grid-template-columns: 1fr; margin-top: 2rem; }
  .detail-card { min-height: auto; }
  .history-card { min-height: 0; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   BRANAVI v3 — sistema editorial jurídico
   ========================================================================== */
body.legal-site {
  --legal-ink: #0a162a;
  --legal-ink-soft: #18263d;
  --legal-paper: #f5f1e9;
  --legal-paper-deep: #e7dfd2;
  --legal-line: rgba(10, 22, 42, .16);
  --legal-accent: #b88b47;
  --legal-sky: #b5ccea;
  background: var(--legal-paper);
  color: var(--legal-ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

.legal-site * { box-sizing: border-box; }
.legal-site h1, .legal-site h2, .legal-site h3, .legal-site p { margin: 0; }
.legal-site a { color: inherit; text-decoration: none; }
.legal-site svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.legal-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.legal-progress { position: fixed; inset: 0 auto auto 0; z-index: 100; width: 0; height: 3px; background: var(--legal-accent); }
.legal-header { position: fixed; z-index: 90; inset: 0 0 auto; color: #fff; transition: background .35s ease, box-shadow .35s ease; }
.legal-header.is-scrolled { background: rgba(10, 22, 42, .96); box-shadow: 0 1px 0 rgba(255,255,255,.11); }
.legal-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 88px; gap: 2rem; }
.legal-brand { display: inline-flex; align-items: center; justify-self: start; gap: .8rem; font-size: .61rem; font-weight: 700; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }
.legal-brand img { width: 126px; height: 46px; object-fit: contain; object-position: left center; }
.legal-nav { display: flex; align-items: center; gap: 1.8rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav a { opacity: .74; transition: opacity .2s ease; }
.legal-nav a:hover { opacity: 1; }
.legal-header__actions { justify-self: end; display: flex; gap: .65rem; }
.legal-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .85rem; padding: .82rem 1.2rem; border: 1px solid var(--legal-ink); background: var(--legal-ink); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; transition: background .25s ease, color .25s ease, transform .25s ease; }
.legal-button:hover { transform: translateY(-2px); background: var(--legal-accent); border-color: var(--legal-accent); }
.legal-button svg, .legal-text-link svg { width: 17px; stroke-width: 1.8; }
.legal-button--small { min-height: 37px; padding: .58rem .85rem; font-size: .65rem; }
.legal-button--outline { border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
.legal-button--outline:hover { border-color: var(--legal-accent); background: var(--legal-accent); }
.legal-button--light { background: #fff; border-color: #fff; color: var(--legal-ink); }
.legal-button--light:hover { background: var(--legal-paper); border-color: var(--legal-paper); }
.legal-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; }
.legal-menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; }

.legal-hero { position: relative; min-height: 790px; padding: 145px 0 82px; overflow: hidden; background: var(--legal-ink); color: #fff; }
.legal-hero__background { position: absolute; inset: 0; background: radial-gradient(circle at 76% 44%, rgba(104,145,193,.25), transparent 30%), linear-gradient(105deg, #081426 0%, #0d1d37 64%, #122442 100%); }
.legal-hero__background::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 66px 66px; mask-image: linear-gradient(to right, #000 20%, transparent 78%); }
.legal-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.legal-kicker, .legal-overline { display: flex; align-items: center; gap: .65rem; color: var(--legal-accent); font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.legal-kicker span { width: 7px; height: 7px; border: 1px solid var(--legal-accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(184,139,71,.12); }
.legal-hero h1 { max-width: 620px; margin: 1.5rem 0 1.6rem; font-family: "Playfair Display", serif; font-size: clamp(3rem, 5.2vw, 5.75rem); font-weight: 600; letter-spacing: -.06em; line-height: .96; }
.legal-hero h1 em { color: var(--legal-sky); font-weight: inherit; }
.legal-hero__lead { max-width: 560px; color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.8; }
.legal-hero__actions { display: flex; align-items: center; gap: 1.7rem; margin-top: 2.3rem; }
.legal-button--large { min-height: 58px; padding: 1rem 1.35rem; }
.legal-text-link { display: inline-flex; align-items: center; gap: .7rem; color: currentColor; border-bottom: 1px solid rgba(255,255,255,.36); padding-bottom: .3rem; font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.legal-text-link span { font-size: 1rem; transition: transform .2s ease; }
.legal-text-link:hover span { transform: translateX(4px); }
.legal-hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 560px; margin-top: 5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.23); }
.legal-hero__facts dt { color: #fff; font-family: "DM Mono", monospace; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-hero__facts dd { margin: .42rem 0 0; color: rgba(255,255,255,.6); font-size: .73rem; line-height: 1.45; }
.legal-hero__visual { position: relative; padding-bottom: 44px; }
.legal-hero__frame { position: relative; min-height: 535px; overflow: hidden; border: 1px solid rgba(255,255,255,.26); }
.legal-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 1s ease, transform 6s ease; }
.legal-hero__photo.is-active { opacity: 1; transform: scale(1); }
.legal-hero__frame::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; pointer-events: none; background: linear-gradient(transparent, rgba(4,10,20,.86)); }
.legal-hero__caption { position: absolute; z-index: 1; inset: auto 2rem 1.8rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.legal-hero__caption span { color: var(--legal-accent); font: .67rem "DM Mono", monospace; }
.legal-hero__caption strong { max-width: 270px; font-size: .78rem; line-height: 1.45; text-align: right; }
.legal-hero__stamp { position: absolute; inset: auto auto 0 -39px; display: grid; width: 150px; height: 150px; place-content: center; border-radius: 50%; background: var(--legal-accent); color: var(--legal-ink); font: 700 .72rem "DM Mono", monospace; letter-spacing: .08em; text-align: center; transform: rotate(-12deg); }
.legal-hero__stamp span + span { margin-top: .35rem; font-size: .52rem; }

.legal-intro { padding: 0; background: var(--legal-paper); }
.legal-intro__grid { display: grid; grid-template-columns: .48fr 1fr 70px; align-items: center; gap: 3rem; min-height: 215px; border-bottom: 1px solid var(--legal-line); }
.legal-intro__statement { max-width: 700px; font-family: "Playfair Display", serif; font-size: clamp(1.45rem, 2.2vw, 2.25rem); letter-spacing: -.03em; line-height: 1.25; }
.legal-arrow-link { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--legal-ink); transition: background .2s ease, color .2s ease, transform .2s ease; }
.legal-arrow-link svg { width: 20px; }
.legal-arrow-link:hover { background: var(--legal-ink); color: #fff; transform: translateX(3px); }

.legal-section { padding: clamp(6rem, 10vw, 9rem) 0; }
.legal-section__header { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 4rem; }
.legal-section__header h2, .legal-practice__intro h2, .legal-notarial h2, .legal-method h2, .legal-studio h2, .legal-contact h2 { margin-top: .9rem; font-family: "Playfair Display", serif; font-size: clamp(2.3rem, 4.2vw, 4.5rem); font-weight: 600; letter-spacing: -.055em; line-height: 1; }
.legal-section__header > p { max-width: 325px; color: #536075; font-size: .9rem; line-height: 1.75; }
.legal-service-groups { border-top: 1px solid var(--legal-line); }
.legal-service-group { display: grid; grid-template-columns: .26fr .92fr .32fr; gap: 2rem; min-height: 285px; padding: 2rem 0; border-bottom: 1px solid var(--legal-line); transition: padding .35s ease, color .35s ease; }
.legal-service-group:hover { padding-inline: 1.5rem; color: #fff; background: var(--legal-ink); }
.legal-service-group--dark { color: #fff; background: var(--legal-ink); padding-inline: 1.5rem; }
.legal-group__label { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: .2rem; }
.legal-group__label span { color: var(--legal-accent); font: .68rem "DM Mono", monospace; }
.legal-group__label p { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-group__content h3 { max-width: 620px; font-family: "Playfair Display", serif; font-size: clamp(1.75rem, 3vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.legal-group__content > p { max-width: 620px; margin: .9rem 0 1.3rem; color: #536075; font-size: .91rem; line-height: 1.7; transition: color .3s ease; }
.legal-service-group:hover .legal-group__content > p, .legal-service-group--dark .legal-group__content > p { color: rgba(255,255,255,.66); }
.legal-service-list { display: flex; flex-wrap: wrap; gap: .55rem .8rem; }
.legal-service-list a { display: inline-flex; align-items: center; gap: .25rem; border-bottom: 1px solid currentColor; padding-bottom: .15rem; font-size: .72rem; font-weight: 800; }
.legal-service-list svg { width: 13px; stroke-width: 2; }
.legal-group__icon { align-self: end; justify-self: end; display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid currentColor; color: var(--legal-accent); transition: transform .35s ease; }
.legal-service-group:hover .legal-group__icon { transform: rotate(8deg) scale(1.05); }
.legal-group__icon svg { width: 32px; stroke-width: 1.3; }

.legal-practice { color: #fff; background: var(--legal-ink); }
.legal-practice__intro { display: grid; grid-template-columns: .8fr 1.25fr .65fr; gap: 2rem; align-items: end; margin-bottom: 4.5rem; }
.legal-practice__intro h2 { margin: 0; color: var(--legal-sky); }
.legal-practice__intro > p:last-child { color: rgba(255,255,255,.62); font-size: .88rem; line-height: 1.75; }
.legal-practice__map { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); border-left: 1px solid rgba(255,255,255,.22); }
.legal-practice__item { min-height: 215px; padding: 1.6rem; border-right: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); transition: background .3s ease; }
.legal-practice__item:hover { background: rgba(181,204,234,.1); }
.legal-practice__item > span { color: var(--legal-accent); font: .66rem "DM Mono", monospace; }
.legal-practice__item h3 { margin: 3.2rem 0 .55rem; font-size: 1rem; }
.legal-practice__item p { color: rgba(255,255,255,.63); font-size: .83rem; line-height: 1.65; }

.legal-notarial { padding: clamp(6rem, 10vw, 10rem) 0; background: #ddd4c6; }
.legal-notarial__layout { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: clamp(3rem, 8vw, 9rem); }
.legal-notarial__image { position: relative; min-height: 610px; overflow: hidden; }
.legal-notarial__image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.3s cubic-bezier(.22,1,.36,1); }
.legal-notarial__image.is-visible img { transform: scale(1.06); }
.legal-notarial__image-caption { position: absolute; inset: auto 1.5rem 1.4rem; color: #fff; font: 700 .72rem/1.55 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.legal-notarial__lead { margin: 1.4rem 0 2.2rem; color: #3b4659; font-size: .98rem; line-height: 1.8; }
.legal-notarial__items { border-top: 1px solid var(--legal-line); }
.legal-notarial__items > div { display: grid; grid-template-columns: 42px 1fr; column-gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--legal-line); }
.legal-notarial__items span { grid-row: span 2; color: var(--legal-accent); font: .65rem "DM Mono", monospace; }
.legal-notarial__items h3 { font-size: .9rem; }
.legal-notarial__items p { margin-top: .3rem; color: #536075; font-size: .8rem; line-height: 1.6; }
.legal-notarial .legal-text-link { margin-top: 2rem; border-color: var(--legal-ink); }

.legal-business { background: #fff; }
.legal-section__header--business { margin-bottom: 3.1rem; }
.legal-business__grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--legal-line); border-left: 1px solid var(--legal-line); }
.legal-business__feature { display: flex; min-height: 300px; flex-direction: column; justify-content: space-between; padding: 1.45rem; border-right: 1px solid var(--legal-line); border-bottom: 1px solid var(--legal-line); transition: background .28s ease, color .28s ease, transform .28s ease; }
.legal-business__feature:hover { color: #fff; background: var(--legal-ink); transform: translateY(-7px); }
.legal-business__feature span { color: var(--legal-accent); font: .65rem "DM Mono", monospace; }
.legal-business__feature h3 { margin-top: 2.8rem; font-family: "Playfair Display", serif; font-size: 1.45rem; letter-spacing: -.03em; }
.legal-business__feature > p { color: #536075; font-size: .82rem; line-height: 1.7; transition: color .28s ease; }
.legal-business__feature:hover > p { color: rgba(255,255,255,.67); }

.legal-method { padding: clamp(5rem, 8vw, 8rem) 0; color: #fff; background: #122442; }
.legal-method header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 4rem; }
.legal-method h2 { max-width: 660px; color: var(--legal-sky); }
.legal-method__steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.legal-method__steps li { display: grid; grid-template-columns: 35px 1fr; gap: .9rem; padding: 1.6rem 1.1rem 0 0; border-right: 1px solid rgba(255,255,255,.18); }
.legal-method__steps li + li { padding-left: 1.1rem; }
.legal-method__steps span { color: var(--legal-accent); font: .65rem "DM Mono", monospace; }
.legal-method__steps h3 { font-size: .88rem; }
.legal-method__steps p { margin-top: .5rem; color: rgba(255,255,255,.6); font-size: .79rem; line-height: 1.7; }

.legal-studio { background: var(--legal-paper); }
.legal-studio__grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(3rem, 8vw, 9rem); }
.legal-studio__copy > p:not(.legal-overline) { max-width: 420px; margin: 1.4rem 0 2rem; color: #536075; font-size: .94rem; line-height: 1.8; }
.legal-studio__copy .legal-button--outline { border-color: var(--legal-ink); color: var(--legal-ink); }
.legal-studio__copy .legal-button--outline:hover { color: #fff; background: var(--legal-ink); }
.legal-studio__photo { position: relative; min-height: 460px; overflow: hidden; }
.legal-studio__photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.legal-studio__photo.is-visible img { transform: scale(1.06); }
.legal-studio__marker { position: absolute; inset: auto 1.25rem 1.2rem; display: flex; align-items: center; gap: .7rem; color: #fff; font-size: .77rem; font-weight: 700; }
.legal-studio__marker span { width: 9px; height: 9px; border: 1px solid #fff; border-radius: 50%; }

.legal-connect { padding: 3.8rem 0; color: #fff; background: var(--legal-ink); }
.legal-connect__inner { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.legal-connect h2 { margin: .8rem 0 .65rem; font-family: "Playfair Display", serif; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.04em; }
.legal-connect p:not(.legal-overline) { color: rgba(255,255,255,.64); font-size: .87rem; }

.legal-contact { padding: clamp(6rem, 10vw, 9rem) 0; background: #e9e0d3; }
.legal-contact__grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 8rem); }
.legal-contact__intro > p:not(.legal-overline) { max-width: 430px; margin: 1.4rem 0 3rem; color: #536075; font-size: .92rem; line-height: 1.8; }
.legal-contact__details { display: grid; gap: 1.25rem; margin: 0; }
.legal-contact__details dt { color: #657085; font: .63rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.legal-contact__details dd { margin: .27rem 0 0; font-size: .83rem; line-height: 1.6; }
.legal-contact__details a { border-bottom: 1px solid var(--legal-ink); }
.legal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-content: start; padding: clamp(1.4rem, 4vw, 2.5rem); background: #fff; box-shadow: 0 24px 55px rgba(10,22,42,.1); }
.legal-form__field--full, .legal-form__footer, .legal-form__status { grid-column: 1 / -1; }
.legal-form__field label { display: block; margin-bottom: .48rem; color: #657085; font: .64rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.legal-form input, .legal-form select, .legal-form textarea { width: 100%; border: 0; border-bottom: 1px solid #bfc3ca; border-radius: 0; padding: .65rem 0; outline: none; color: var(--legal-ink); font: 500 .9rem "Manrope", sans-serif; background: transparent; }
.legal-form textarea { resize: vertical; min-height: 100px; }
.legal-form input:focus, .legal-form select:focus, .legal-form textarea:focus { border-color: var(--legal-accent); }
.legal-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; padding-top: 1.2rem; border-top: 1px solid var(--legal-line); }
.legal-form__footer p { max-width: 270px; color: #657085; font-size: .68rem; line-height: 1.5; }
.legal-form__status { min-height: 1.2rem; color: #315f47; font-size: .78rem; }

.legal-footer { padding: 4rem 0 1.3rem; color: rgba(255,255,255,.65); background: #07101f; }
.legal-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 3rem; padding-bottom: 3.3rem; }
.legal-footer img { width: 150px; height: 55px; object-fit: contain; object-position: left center; }
.legal-footer p { max-width: 260px; margin-top: 1rem; font-size: .78rem; line-height: 1.7; }
.legal-footer h3 { margin-bottom: 1rem; color: var(--legal-accent); font: .65rem "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.legal-footer a { display: block; margin: .55rem 0; font-size: .78rem; transition: color .2s ease; }
.legal-footer a:hover { color: #fff; }
.legal-footer__bottom { display: flex; justify-content: space-between; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.16); font: .62rem "DM Mono", monospace; letter-spacing: .05em; }
.legal-call { position: fixed; z-index: 70; right: 22px; bottom: 22px; display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.28); background: var(--legal-ink); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); font: .7rem "DM Mono", monospace; }
.legal-call svg { width: 18px; stroke-width: 1.7; color: var(--legal-sky); }

.legal-site [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--reveal-delay, 0) * 90ms); }
.legal-site [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .legal-header__inner { grid-template-columns: 1fr auto; }
  .legal-nav { position: absolute; top: 88px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 24px 1.5rem; background: #0a162a; }
  .legal-header.is-menu-open .legal-nav { display: flex; }
  .legal-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .legal-header__actions { display: none; }
  .legal-menu-toggle { display: block; }
  .legal-hero { min-height: auto; }
  .legal-hero__grid, .legal-notarial__layout, .legal-studio__grid, .legal-contact__grid { grid-template-columns: 1fr; }
  .legal-hero__copy { max-width: 720px; }
  .legal-hero__visual { max-width: 720px; width: 100%; margin-left: auto; }
  .legal-section__header, .legal-practice__intro { display: block; }
  .legal-section__header > p, .legal-practice__intro > p:last-child { margin-top: 1.4rem; }
  .legal-business__grid { grid-template-columns: repeat(3, 1fr); }
  .legal-method__steps { grid-template-columns: repeat(2, 1fr); }
  .legal-method__steps li:nth-child(2) { border-right: 0; }
  .legal-notarial__image { min-height: 480px; }
}

@media (max-width: 640px) {
  .legal-shell { width: min(100% - 32px, 1180px); }
  .legal-header__inner { min-height: 76px; }
  .legal-brand img { width: 112px; height: 39px; }
  .legal-brand > span { display: none; }
  .legal-nav { top: 76px; padding-inline: 16px; }
  .legal-hero { padding: 125px 0 56px; }
  .legal-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .legal-hero__lead { font-size: .92rem; }
  .legal-hero__actions { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .legal-hero__facts { margin-top: 3rem; }
  .legal-hero__frame { min-height: 370px; }
  .legal-hero__stamp { left: auto; right: -23px; width: 112px; height: 112px; font-size: .58rem; }
  .legal-intro__grid { grid-template-columns: 1fr; gap: 1.3rem; padding: 3rem 0; }
  .legal-arrow-link { display: none; }
  .legal-section { padding: 5rem 0; }
  .legal-service-group { grid-template-columns: 1fr; gap: 1.35rem; min-height: 0; padding: 1.75rem 0; }
  .legal-service-group:hover, .legal-service-group--dark { padding-inline: 1rem; }
  .legal-group__label { flex-direction: row; align-items: center; }
  .legal-group__icon { display: none; }
  .legal-practice__map { grid-template-columns: 1fr 1fr; }
  .legal-notarial__image { min-height: 340px; }
  .legal-business__grid { grid-template-columns: 1fr; }
  .legal-business__feature { min-height: 190px; }
  .legal-business__feature h3 { margin-top: 1.2rem; }
  .legal-method header { display: block; margin-bottom: 2.3rem; }
  .legal-method__steps { grid-template-columns: 1fr; }
  .legal-method__steps li, .legal-method__steps li + li { padding: 1.2rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .legal-studio__photo { min-height: 330px; }
  .legal-connect__inner, .legal-form__footer { align-items: flex-start; flex-direction: column; }
  .legal-contact__grid { gap: 3rem; }
  .legal-form { grid-template-columns: 1fr; }
  .legal-form__field--full, .legal-form__footer, .legal-form__status { grid-column: auto; }
  .legal-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .legal-footer__bottom { display: block; line-height: 2; }
  .legal-call span { display: none; }
  .legal-call { right: 16px; bottom: 16px; padding: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-site *, .legal-site *::before, .legal-site *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- Aviso legal y consentimiento (letra chica) ---- */
.legal-consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.74rem; line-height: 1.5; color: var(--text-muted); cursor: pointer; }
.legal-consent input { margin-top: 3px; flex-shrink: 0; width: 15px; height: 15px; accent-color: #2563eb; }
.legal-consent a, .legal-link { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.legal-link { font-size: 0.74rem; color: var(--text-muted); }
.footer-copy .legal-link { margin-left: auto; margin-right: 1.25rem; }
@media (max-width: 640px) { .footer-copy .legal-link { margin: 0; } }
.legal-page { max-width: 820px; margin: 0 auto; padding: 4.5rem 1.5rem 5rem; }
.legal-page h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.legal-page .legal-updated { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.legal-page h2 { font-family: var(--font-display); font-size: 1.05rem; margin: 2rem 0 0.5rem; color: #fff; }
.legal-page p, .legal-page li { font-size: 0.88rem; line-height: 1.75; color: var(--text-secondary); }
.legal-page ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.3rem; }
.legal-page a { color: var(--brand-ice); text-decoration: underline; }
.legal-top { border-bottom: 1px solid var(--border-subtle); }
.legal-top .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.legal-top img { height: 48px; width: auto; }
.legal-top a.back { font-size: 0.86rem; color: var(--text-secondary); }
