/* ==========================================================================
   UniControl S.A.S. - Sistema de Estilos "Titanium & Control Console" (site.css)
   Diseño: Híbrido de Precisión Industrial (Clean European Precision + SCADA Console)
   Zero external build dependencies. Diseñado desde cero.
   ========================================================================== */

/* --- 1. DESIGN TOKENS --- */
:root {
  /* Lienzo Claro / Titanio Técnico (Estilo Beckhoff / Festo / Quirófano Industrial) */
  --bg-titanium: #f8fafc;
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-panel-light: #e2e8f0;

  /* Consolas de Control SCADA / Dark Workstation */
  --scada-bg: #090e17;
  --scada-surface: #0f172a;
  --scada-surface-elevated: #1e293b;
  --scada-border: rgba(255, 255, 255, 0.1);
  --scada-border-active: rgba(0, 198, 215, 0.4);

  /* Acentos de Ingeniería */
  --brand-blue: #0052cc;
  --brand-blue-hover: #0041a8;
  --brand-blue-soft: rgba(0, 82, 204, 0.08);

  --brand-cyan: #00c6d7;
  --brand-cyan-soft: rgba(0, 198, 215, 0.12);

  --led-run: #10b981;
  --led-run-soft: rgba(16, 185, 129, 0.15);
  --led-run-glow: 0 0 10px rgba(16, 185, 129, 0.6);

  --led-warning: #f59e0b;

  /* Tipografías & Textos */
  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #f8fafc;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Bordes & Sombras */
  --border-light: #e2e8f0;
  --border-card: #cbd5e1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-scada: 0 20px 50px rgba(9, 14, 23, 0.4);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. RESET Y BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-titanium);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img, svg {
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- 3. BARRA DE NAVEGACIÓN EJECUTIVA --- */
.site-nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover {
  color: var(--brand-blue);
}

.nav-link.active {
  color: var(--brand-blue);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  border-radius: var(--radius-full);
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 82, 204, 0.25);
  transition: var(--transition);
}

.nav-action-btn:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.35);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-title);
  cursor: pointer;
  padding: 0.4rem;
}

.mobile-nav-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 1.25rem 2rem;
  gap: 1rem;
}

.mobile-nav-menu.open {
  display: flex;
}

/* --- 4. COMPONENTES: BOTONES & BADGES --- */
.badge-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-clean .status-dot {
  width: 7px;
  height: 7px;
  background: var(--led-run);
  border-radius: 50%;
  box-shadow: var(--led-run-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.25);
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.35);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text-title);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--scada-surface);
  color: #fff;
  border: 1px solid var(--scada-border);
}

.btn-dark:hover {
  background: var(--scada-surface-elevated);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: translateY(-2px);
}

/* --- 5. HERO SECTION: DOS COLUMNAS (AUTORIDAD + CONSOLA SCADA) --- */
.hero-section {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-titanium) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-logo-box {
  margin-bottom: 1.75rem;
}

.hero-brand-logo {
  height: clamp(48px, 5.5vw, 62px);
  width: auto;
  display: block;
}

.hero-text-col h1 {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-text-col p.hero-lead {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.spec-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.15rem;
}

.spec-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- LA CONSOLA SCADA DEL HERO (WORKSTATION OSCURA) --- */
.scada-console-box {
  background: var(--scada-bg);
  border: 1px solid var(--scada-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-scada);
  overflow: hidden;
  position: relative;
}

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

.scada-console-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-white);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.scada-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-run);
  box-shadow: var(--led-run-glow);
  animation: scadaPulse 2s infinite ease-in-out;
}

@keyframes scadaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.scada-status-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--led-run);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.scada-console-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Módulos internos de telemetría */
.scada-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.scada-tile {
  background: var(--scada-surface);
  border: 1px solid var(--scada-border);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.scada-tile:hover {
  border-color: var(--scada-border-active);
  background: var(--scada-surface-elevated);
}

.scada-tile-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
}

.scada-tile-val {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-cyan);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.scada-tile-unit {
  font-size: 0.75rem;
  color: var(--text-light);
}

.scada-tile-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Diagrama de Arquitectura de Buses */
.scada-bus-strip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--scada-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.scada-bus-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
}

.scada-bus-item span.ok-badge {
  color: var(--led-run);
  font-weight: 600;
}

/* --- ANIMACIÓN MÍMICO SCADA EN VIVO --- */
.scada-mimic-panel {
  background: #070b12;
  border: 1px solid var(--scada-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

.scada-mimic-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-light);
  padding: 0 0.15rem;
}

.mimic-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.mimic-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 6px var(--brand-cyan);
  animation: scadaPulse 2.5s infinite ease-in-out;
}

.scada-mimic-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Animación de giro de bomba (laminar y suave) */
.scada-pump-rotor {
  transform-origin: 0px 0px;
  animation: scadaPumpSpin 7s linear infinite;
}

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

/* Animación de flujo en tubería (laminar continuo) */
.flow-pipe {
  animation: scadaPipeFlow 5s linear infinite;
}

@keyframes scadaPipeFlow {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

/* Respiración suave de superficie de líquido */
.scada-liquid-surface {
  animation: scadaWave 4s ease-in-out infinite alternate;
}

@keyframes scadaWave {
  0% { transform: translateY(0px); }
  100% { transform: translateY(1.5px); }
}

/* Pulso sereno en curva de tendencia */
.scada-pulse-point {
  animation: scadaPulsePoint 2s ease-in-out infinite alternate;
}

@keyframes scadaPulsePoint {
  0% { r: 2; opacity: 0.7; }
  100% { r: 3.5; opacity: 1; filter: drop-shadow(0 0 4px #00f0ff); }
}

/* Micro-destello de paquete de comunicación */
.scada-txrx {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led-run);
  box-shadow: 0 0 4px var(--led-run);
  margin-right: 4px;
  animation: scadaTxRx 1.8s infinite ease-in-out;
}

@keyframes scadaTxRx {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.scada-tile-val, #scada-valve-pct, #scada-level-pct, #scada-err {
  transition: color 0.4s ease;
}

/* --- 6. CINTA DE MARCAS ALIADAS --- */
.partners-section {
  padding: 2.5rem 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.partners-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.partners-heading {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.partners-logos-row {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.partner-entry {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: var(--transition);
}

.partner-entry:hover {
  opacity: 1;
  color: var(--brand-blue);
}

.partner-entry svg {
  width: 24px;
  height: 24px;
  color: var(--brand-blue);
}

/* --- 7. SECCIÓN SERVICIOS (FICHAS TÉCNICAS DE ALTA GAMA) --- */
.services-section {
  padding: 6rem 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-title);
  margin-bottom: 0.85rem;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.65;
}

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

.service-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.service-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: var(--transition);
}

.service-box:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-box:hover::after {
  background: var(--brand-blue);
}

.service-box.featured-service {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
}

.service-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.service-box p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.service-tag-item {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  color: var(--text-body);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* --- 8. UNICONTROL LAB (ECOSISTEMA DE SOFTWARE PROPIETARIO) --- */
.lab-section {
  padding: 6rem 0;
  background: #090e17;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.lab-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 198, 215, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.lab-head {
  margin-bottom: 3.5rem;
  max-width: 720px;
}

.lab-head .badge-clean {
  background: rgba(0, 198, 215, 0.1);
  border-color: rgba(0, 198, 215, 0.3);
  color: var(--brand-cyan);
}

.lab-head h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.lab-head p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.65;
}

.lab-layout-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.lab-flagship-card {
  background: var(--scada-surface);
  border: 1px solid rgba(0, 198, 215, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  position: relative;
}

.lab-flagship-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  display: block;
}

.lab-flagship-card h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.lab-flagship-card p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.lab-compact-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lab-compact-row {
  background: var(--scada-surface);
  border: 1px solid var(--scada-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.lab-compact-row:hover {
  border-color: var(--brand-cyan);
  background: var(--scada-surface-elevated);
  transform: translateX(4px);
}

.lab-compact-info {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.lab-compact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.lab-compact-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.lab-compact-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lab-arrow-indicator {
  color: var(--text-muted);
  transition: var(--transition);
}

.lab-compact-row:hover .lab-arrow-indicator {
  color: var(--brand-cyan);
  transform: translateX(4px);
}

/* --- 9. SECTORES PRODUCTIVOS --- */
.sectors-section {
  padding: 6rem 0;
  background: var(--bg-titanium);
}

.sectors-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sector-tile-clean {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: var(--transition);
}

.sector-tile-clean:hover {
  border-color: var(--brand-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sector-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sector-tile-clean:hover .sector-tile-icon {
  background: var(--brand-blue);
  color: #fff;
}

.sector-tile-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.35rem;
}

.sector-tile-text p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* --- 9.1 SECCIÓN MARCAS ALIADAS & ALIANZAS ESTRATÉGICAS --- */
.marcas-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

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

.marca-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.marca-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.marca-card.sas-highlight {
  border-color: #10b981;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 32%);
  box-shadow: 0 4px 24px -2px rgba(16, 185, 129, 0.14);
}

.marca-card.sas-highlight:hover {
  border-color: #059669;
  box-shadow: 0 8px 32px -4px rgba(16, 185, 129, 0.22);
}

.sas-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: #dcfce7;
  color: #15803d;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.marca-brand-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.marca-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sas-highlight .marca-brand-icon {
  background: #dcfce7;
  color: #15803d;
}

.marca-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.marca-role {
  font-size: 0.84rem;
  font-family: var(--font-mono);
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 1.15rem;
  line-height: 1.4;
}

.sas-highlight .marca-role {
  color: #15803d;
}

.marca-description {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.marca-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.marca-feature-item {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

.marca-feature-item i {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.sas-highlight .marca-feature-item i {
  color: #16a34a;
}

.marca-feature-item strong {
  color: var(--text-title);
  font-weight: 600;
}

.service-contingency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.85rem;
}

/* --- 10. CONTACTO EJECUTIVO & UBICACIÓN --- */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-dept-card {
  background: var(--bg-titanium);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: var(--transition);
}

.contact-dept-card:hover {
  border-color: var(--brand-blue);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-dept-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-dept-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.2rem;
}

.contact-dept-info a.mail-link {
  font-size: 0.95rem;
  color: var(--brand-blue);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.contact-dept-info a.mail-link:hover {
  text-decoration: underline;
}

.contact-dept-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* WhatsApp Directo */
.wa-bar-wrap {
  margin-top: 1.5rem;
}

.wa-bar-label {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.wa-buttons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.wa-quick-btn {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.wa-quick-btn:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-2px);
}

/* Mapa */
.location-panel {
  background: var(--bg-titanium);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.location-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.location-header-text h4 {
  font-size: 1.1rem;
  color: var(--text-title);
  font-weight: 700;
}

.location-header-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.map-container-frame {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.map-container-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- 11. PÁGINAS INSTITUCIONALES (POLÍTICA Y TALENTO) --- */
.editorial-page-section {
  padding: 5rem 0 6rem;
}

.editorial-card-container {
  max-width: 860px;
  margin: 0 auto;
}

.editorial-header-block {
  text-align: center;
  margin-bottom: 3.5rem;
}

.editorial-header-block h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.editorial-header-block p {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 650px;
  margin: 0 auto;
}

.editorial-main-content {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow-sm);
}

.editorial-main-content p {
  font-size: 1.08rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.editorial-main-content p:last-child {
  margin-bottom: 0;
}

.editorial-quote {
  background: var(--bg-titanium);
  border-left: 4px solid var(--brand-blue);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.12rem;
  color: var(--text-title);
  font-weight: 500;
  font-style: italic;
  margin: 2.25rem 0;
}

.quality-list-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.quality-item-row {
  background: var(--bg-titanium);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.quality-item-row svg {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.quality-item-row h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.25rem;
}

.quality-item-row p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.skills-cloud-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2.5rem;
}

.skill-pill-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.action-callout-clean {
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: center;
  margin-top: 2.5rem;
}

.action-callout-clean h3 {
  font-size: 1.45rem;
  color: var(--text-title);
  margin-bottom: 0.6rem;
}

.action-callout-clean p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

/* --- 12. FOOTER EJECUTIVO --- */
.site-footer-clean {
  background: #0f172a;
  color: var(--text-light);
  padding: 5rem 0 3rem;
  border-top: 1px solid #1e293b;
}

.footer-clean-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo-col img {
  height: 36px;
  margin-bottom: 1.25rem;
}

.footer-logo-col p {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 320px;
  color: var(--text-light);
}

.footer-col-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-links-list a:hover {
  color: var(--brand-cyan);
}

.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- 13. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lab-layout-grid {
    grid-template-columns: 1fr;
  }
  .sectors-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .marcas-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-clean-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-action-btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-section {
    padding: 3rem 0;
  }
  .hero-specs-row {
    grid-template-columns: 1fr;
  }
  .services-cards-grid {
    grid-template-columns: 1fr;
  }
  .service-box.featured-service {
    grid-column: span 1;
  }
  .sectors-tiles-grid {
    grid-template-columns: 1fr;
  }
  .wa-buttons-row {
    grid-template-columns: 1fr;
  }
  .footer-clean-grid {
    grid-template-columns: 1fr;
  }
  .editorial-main-content {
    padding: 2rem 1.5rem;
  }
}

/* --- 14. COMPONENTE DROPDOWN "PERSONAS / EQUIPO TÉCNICO" --- */
.people-dropdown-box {
  margin-top: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.people-dropdown-box:hover {
  border-color: var(--brand-blue);
}

.people-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  text-align: left;
}

.people-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.people-toggle-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.people-toggle-title h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.15rem;
}

.people-toggle-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.people-chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.people-dropdown-box.open .people-chevron {
  transform: rotate(180deg);
  color: var(--brand-blue);
}

.people-menu-list {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.people-dropdown-box.open .people-menu-list {
  display: flex;
}

.person-row-item {
  background: var(--bg-titanium);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.person-row-item:hover {
  background: #fff;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.person-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.person-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.person-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.1rem;
}

.person-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.person-action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.person-action-btn:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.person-vcard-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.person-vcard-link:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* --- 15. TARJETAS DE CONTACTO PERSONALES (vCards cont_*.html) --- */
.vcard-page-wrapper {
  padding: 4rem 1.5rem 6rem;
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcard-card-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.vcard-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
}

.vcard-card-header {
  padding: 2.5rem 2.25rem 1.75rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, #fff 100%);
  border-bottom: 1px solid var(--border-light);
}

.vcard-avatar-huge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #003d99 100%);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.vcard-card-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.vcard-card-header .vcard-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.vcard-company-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vcard-card-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vcard-channel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-titanium);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text-title);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.vcard-channel-btn:hover {
  background: #fff;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.vcard-channel-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.vcard-channel-btn svg {
  color: var(--brand-blue);
}

.vcard-channel-btn.wa-btn-style:hover svg {
  color: #059669;
}

.vcard-channel-btn.wa-btn-style:hover {
  border-color: #059669;
  color: #059669;
}

.vcard-card-footer {
  padding: 1.5rem 2.25rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vcard-back-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vcard-back-link:hover {
  color: var(--brand-blue);
}

/* Sección QR y Descarga vCard */
.vcard-qr-section {
  margin-top: 0.75rem;
  padding: 2rem 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  width: 100%;
}

.vcard-qr-box {
  background: #ffffff;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 240px;
  height: 240px;
  max-width: 72vw;
  max-height: 72vw;
  box-sizing: border-box;
  flex-shrink: 0;
}

.vcard-qr-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.vcard-qr-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.vcard-qr-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  text-align: center;
}

.vcard-qr-title svg {
  color: var(--brand-blue);
}

.vcard-qr-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.vcard-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.4rem auto 0;
  padding: 0.75rem 1.25rem;
  width: 100%;
  max-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--brand-blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.vcard-download-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.vcard-download-btn:hover svg {
  color: #ffffff;
}

