/* ==========================================================================
   ARKIMEN — Sistema de Diseño UX/UI Industrial B2B
   Visión Artificial, Inteligencia Artificial e Ingeniería Llave en Mano
   ========================================================================== */

:root {
  /* Paleta Corporativa Extraída del Logo Oficial de Arkimen y VitraScan */
  --ark-navy-950: #040b16;
  --ark-navy-900: #082038;
  --ark-navy-850: #0b2847;
  --ark-navy-800: #10355c;
  --ark-navy-700: #1b4978;

  --ark-cyan-600: #0098cc;
  --ark-cyan-500: #00c2ff;
  --ark-cyan-400: #38d4ff;
  --ark-cyan-300: #7ce3ff;
  --ark-cyan-glow: rgba(0, 194, 255, 0.22);

  /* Superficies Técnicas Claras (Gris Acero / Blanco Laboratorio) */
  --ark-bg-light: #f4f7fa;
  --ark-bg-white: #ffffff;
  --ark-surface-alt: #eaf0f6;
  --ark-border-light: #d5e0ec;
  --ark-border-dark: rgba(0, 194, 255, 0.18);

  /* Texto */
  --ark-text-primary: #082038;
  --ark-text-secondary: #334e68;
  --ark-text-muted: #627d98;
  --ark-text-on-dark: #f0f6fc;
  --ark-text-muted-dark: #9fb3c8;

  /* Acentos de Telemetría y Estado Industrial */
  --ark-ok: #10b981;
  --ark-warn: #f59e0b;
  --vs-laser-red: #ef4444;
  --vs-silver: #cbd5e1;

  /* Tipografía */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Sombras */
  --container-max: 1320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(8, 32, 56, 0.06);
  --shadow-md: 0 12px 30px rgba(8, 32, 56, 0.1);
  --shadow-lg: 0 24px 48px rgba(4, 11, 22, 0.28);
  --shadow-cyan: 0 0 28px rgba(0, 194, 255, 0.25);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  color: var(--ark-text-primary);
  background-color: var(--ark-bg-light);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   BARRA TÉCNICA SUPERIOR (TOP UTILITY BAR)
   ========================================================================== */
.top-utility-bar {
  background: var(--ark-navy-950);
  color: var(--ark-text-muted-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  position: relative;
  z-index: 1001;
  width: 100%;
}

.top-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ark-ok);
  box-shadow: 0 0 8px var(--ark-ok);
  display: inline-block;
  flex-shrink: 0;
}

.utility-badge {
  background: rgba(0, 194, 255, 0.1);
  color: var(--ark-cyan-400);
  border: 1px solid rgba(0, 194, 255, 0.25);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.lang-switcher {
  display: inline-flex;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ark-text-muted-dark);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
  color: #fff;
  border-color: var(--ark-cyan-500);
  background: rgba(0, 194, 255, 0.18);
  box-shadow: 0 0 8px rgba(0, 194, 255, 0.35);
}

.utility-text-mobile,
.wf-label-mobile,
.btn-text-mobile,
.nav-mobile-cta {
  display: none;
}

/* ==========================================================================
   NAVEGACIÓN PRINCIPAL (STICKY HEADER)
   ========================================================================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 32, 56, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 194, 255, 0.22);
  box-shadow: 0 4px 20px rgba(4, 11, 22, 0.35);
  transition: var(--transition);
  width: 100%;
}

.site-header .container.header-inner {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-lockup:hover {
  opacity: 0.9;
}

.brand-logo-icon {
  height: 36px;
  width: auto;
}

.brand-logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-logo-wordmark {
  height: 17px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ark-cyan-400);
  margin-top: 1px;
  white-space: nowrap;
}

.site-header .brand-tagline {
  display: none;
}

@media (min-width: 1540px) {
  .site-header .brand-tagline {
    display: block;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.nav-link {
  color: var(--ark-text-on-dark);
  font-size: 0.81rem;
  font-weight: 500;
  padding: 0.42rem 0.62rem;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ark-cyan-400);
  background: rgba(0, 194, 255, 0.08);
}

.nav-link-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: rgba(0, 194, 255, 0.18);
  color: var(--ark-cyan-300);
  padding: 0.06rem 0.32rem;
  border-radius: 3px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Dropdowns de Navegación (Escritorio) */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  cursor: pointer;
}

.dropdown-chevron {
  width: 9px;
  height: 6px;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  background: rgba(5, 18, 36, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 194, 255, 0.28);
  border-radius: 12px;
  padding: 0.6rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 194, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-mobile-category-title {
  display: none;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(0, 194, 255, 0.1);
  transform: translateX(3px);
}

.dropdown-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: color 0.15s ease;
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--ark-cyan-400);
}

.dropdown-item-desc {
  font-size: 0.73rem;
  color: #94a3b8;
  line-height: 1.35;
}

.dropdown-item-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.pill-cyan {
  background: rgba(0, 194, 255, 0.16);
  color: var(--ark-cyan-300);
  border: 1px solid rgba(0, 194, 255, 0.4);
}

.pill-indigo {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-cta-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: rgba(0, 194, 255, 0.12);
  border: 1px solid rgba(0, 194, 255, 0.35);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.mobile-menu-btn:hover,
.mobile-menu-btn.active {
  background: var(--ark-cyan-500);
  color: var(--ark-navy-950);
  border-color: var(--ark-cyan-400);
}

/* ==========================================================================
   BOTONES E COMPONENTES GLOBALES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
}

.header-cta-btn {
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ark-cyan-500), var(--ark-cyan-600));
  color: var(--ark-navy-950);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 194, 255, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 194, 255, 0.48);
  background: linear-gradient(135deg, var(--ark-cyan-400), var(--ark-cyan-500));
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(0, 194, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(0, 194, 255, 0.14);
  border-color: var(--ark-cyan-400);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--ark-navy-900);
  color: #fff;
  border-color: var(--ark-navy-800);
}

.btn-navy:hover {
  background: var(--ark-navy-800);
  border-color: var(--ark-cyan-500);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
}

/* Cabeceras de Sección */
.section-padding {
  padding: 5.5rem 0;
}

.section-header {
  max-width: 820px;
  margin-bottom: 3.25rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ark-cyan-600);
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.28);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.eyebrow-dark {
  color: var(--ark-cyan-400);
  background: rgba(0, 194, 255, 0.12);
  border-color: rgba(0, 194, 255, 0.32);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--ark-text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   HERO PRINCIPAL (INGENIERÍA A MEDIDA + HUD DE VISIÓN INTERACTIVO)
   ========================================================================== */
.hero-section {
  position: relative;
  background:
    radial-gradient(circle at 82% 24%, rgba(0, 194, 255, 0.18), transparent 45%),
    radial-gradient(circle at 12% 80%, rgba(16, 53, 92, 0.65), transparent 50%),
    linear-gradient(160deg, var(--ark-navy-950) 0%, var(--ark-navy-900) 60%, #07192e 100%);
  color: var(--ark-text-on-dark);
  padding: 4.5rem 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 194, 255, 0.25);
}

/* Retícula Técnica CAD de Fondo */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 194, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 194, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero-title .highlight-cyan {
  color: var(--ark-cyan-400);
  text-shadow: 0 0 24px rgba(0, 194, 255, 0.25);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ark-text-muted-dark);
  margin-bottom: 1.65rem;
  max-width: 640px;
}

.hero-capabilities-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cap-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #d9ecff;
  background: rgba(16, 53, 92, 0.65);
  border: 1px solid rgba(0, 194, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cap-pill::before {
  content: "▸";
  color: var(--ark-cyan-400);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Visor HUD Interactivo de Visión Artificial */
.hero-hud-wrapper {
  background: rgba(4, 11, 22, 0.85);
  border: 1px solid rgba(0, 194, 255, 0.38);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  overflow: hidden;
}

.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(8, 32, 56, 0.95);
  border-bottom: 1px solid rgba(0, 194, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.hud-cam-id {
  color: var(--ark-cyan-400);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hud-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ark-ok);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hud-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #02060d;
}

.hud-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.hud-viewport.mode-3d img {
  filter: hue-rotate(15deg) contrast(1.12) saturate(1.2);
}

.hud-viewport.mode-ai img {
  filter: contrast(1.18) brightness(0.95);
}

/* Línea de Escaneo Óptico Animada */
.hud-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ark-cyan-400), #fff, var(--ark-cyan-400), transparent);
  box-shadow: 0 0 14px var(--ark-cyan-400);
  animation: scanVertical 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanVertical {
  0% { top: 8%; opacity: 0.3; }
  50% { top: 88%; opacity: 0.95; }
  100% { top: 8%; opacity: 0.3; }
}

/* Cajas Delimitadoras de Telemetría IA (Bounding Boxes) */
.hud-bbox {
  position: absolute;
  border: 1.5px solid var(--ark-ok);
  background: rgba(16, 185, 129, 0.12);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #e6fffa;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.hud-bbox.bbox-1 {
  top: 58%;
  left: 44%;
  width: 18%;
  height: 19%;
}

.hud-bbox.bbox-2 {
  top: 56%;
  left: 62%;
  width: 15%;
  height: 16%;
  border-color: var(--ark-cyan-400);
  background: rgba(0, 194, 255, 0.12);
}

.hud-bbox-label {
  position: absolute;
  top: -20px;
  left: -1px;
  background: rgba(4, 11, 22, 0.9);
  border: 1px solid currentColor;
  padding: 1px 5px;
  white-space: nowrap;
  border-radius: 2px;
}

.hud-controls-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  background: rgba(6, 20, 37, 0.95);
  border-top: 1px solid rgba(0, 194, 255, 0.18);
}

.hud-mode-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 194, 255, 0.2);
  color: var(--ark-text-muted-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.42rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.hud-mode-btn.active,
.hud-mode-btn:hover {
  background: rgba(0, 194, 255, 0.18);
  color: #fff;
  border-color: var(--ark-cyan-400);
}

.hud-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ark-navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.85rem;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.hud-metric-cell {
  display: flex;
  flex-direction: column;
}

.hud-metric-label {
  font-size: 0.62rem;
  color: var(--ark-text-muted-dark);
  text-transform: uppercase;
}

.hud-metric-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ark-cyan-400);
}

/* Barra de KPIs B2B del Hero */
.hero-kpi-bar {
  position: relative;
  z-index: 2;
  background: rgba(4, 11, 22, 0.78);
  border-top: 1px solid rgba(0, 194, 255, 0.2);
  padding: 1.5rem 0;
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.kpi-item {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  border-left: 2px solid var(--ark-cyan-500);
  padding-left: 1rem;
}

.kpi-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.kpi-desc {
  font-size: 0.83rem;
  color: var(--ark-text-muted-dark);
  line-height: 1.35;
}

/* ==========================================================================
   SECCIÓN 1: INGENIERÍA MULTIDISCIPLINAR LLAVE EN MANO (360°)
   ========================================================================== */
.pillars-section {
  background: var(--ark-bg-white);
  border-bottom: 1px solid var(--ark-border-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--ark-bg-light);
  border: 1px solid var(--ark-border-light);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ark-navy-900), var(--ark-cyan-500));
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ark-cyan-500);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ark-cyan-600);
  margin-bottom: 0.75rem;
  display: block;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--ark-navy-900);
}

.pillar-text {
  font-size: 0.92rem;
  color: var(--ark-text-secondary);
  margin-bottom: 1rem;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--ark-bg-white);
  border: 1px solid var(--ark-border-light);
  color: var(--ark-navy-800);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ==========================================================================
   SECCIÓN 2: SERVICIOS DE VISIÓN ARTIFICIAL INDUSTRIAL (CORE)
   ========================================================================== */
.services-section {
  background: var(--ark-bg-light);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.filter-tab-btn {
  background: var(--ark-bg-white);
  border: 1px solid var(--ark-border-light);
  color: var(--ark-text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab-btn.active,
.filter-tab-btn:hover {
  background: var(--ark-navy-900);
  color: #fff;
  border-color: var(--ark-navy-900);
}

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

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

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--ark-cyan-500);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(8, 32, 56, 0.06);
  border: 1px solid rgba(0, 194, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ark-navy-900);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ark-navy-900);
}

.service-card p {
  font-size: 0.94rem;
  color: var(--ark-text-secondary);
  margin-bottom: 1.25rem;
}

.service-specs-list {
  border-top: 1px solid var(--ark-border-light);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-specs-list li {
  font-size: 0.84rem;
  color: var(--ark-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-specs-list li strong {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ark-navy-900);
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--ark-border-light);
}

.service-link {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ark-cyan-600);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-link:hover {
  color: var(--ark-navy-900);
  gap: 0.55rem;
}

/* Destacado Robótica 3D dentro de Servicios */
.robotics-feature-banner {
  margin-top: 2.5rem;
  background: var(--ark-navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid rgba(0, 194, 255, 0.3);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.robotics-content {
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
}

.robotics-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: #fff;
}

.robotics-text {
  color: var(--ark-text-muted-dark);
  margin-bottom: 1.25rem;
  font-size: 0.96rem;
  line-height: 1.6;
}

.robotics-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.robotics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.robotics-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.robotics-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECCIÓN 3: SOLUCIONES DE IA E INDUSTRIA 4.0 + SIMULADOR TÉCNICO
   ========================================================================== */
.ai-section {
  background: linear-gradient(180deg, var(--ark-navy-950) 0%, var(--ark-navy-900) 100%);
  color: var(--ark-text-on-dark);
  border-top: 1px solid rgba(0, 194, 255, 0.2);
  border-bottom: 1px solid rgba(0, 194, 255, 0.2);
}

.ai-section .section-subtitle {
  color: var(--ark-text-muted-dark);
}

.ai-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ai-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ai-feature-item {
  background: rgba(16, 53, 92, 0.45);
  border: 1px solid rgba(0, 194, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.ai-feature-item:hover {
  border-color: var(--ark-cyan-400);
  background: rgba(16, 53, 92, 0.7);
}

.ai-feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ai-feature-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
}

.ai-metric-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ark-cyan-300);
  background: rgba(0, 194, 255, 0.14);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
}

.ai-feature-item p {
  font-size: 0.92rem;
  color: var(--ark-text-muted-dark);
}

/* Simulador Comparativo Reglas Clásicas vs Deep Learning Híbrido Arkimen */
.ai-simulator-box {
  background: rgba(4, 11, 22, 0.82);
  border: 1px solid rgba(0, 194, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.sim-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.sim-scenario-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.sim-scenario-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 194, 255, 0.2);
  color: var(--ark-text-muted-dark);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.sim-scenario-btn.active,
.sim-scenario-btn:hover {
  background: rgba(0, 194, 255, 0.18);
  color: #fff;
  border-color: var(--ark-cyan-400);
}

.sim-comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.sim-bar-group-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  margin-bottom: 0.35rem;
}

.sim-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.sim-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s ease;
}

.sim-progress-fill.fill-cyan {
  background: linear-gradient(90deg, var(--ark-cyan-600), var(--ark-cyan-400));
}

.sim-progress-fill.fill-muted {
  background: #64748b;
}

.sim- architecture-strip {
  background: rgba(8, 32, 56, 0.7);
  border: 1px solid rgba(0, 194, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ark-cyan-300);
}

/* ==========================================================================
   SECCIÓN 4: SECTORES INDUSTRIALES Y MATERIALES DE APLICACIÓN
   ========================================================================== */
.sectors-section {
  background: var(--ark-bg-white);
  border-bottom: 1px solid var(--ark-border-light);
}

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

.sector-card {
  background: var(--ark-bg-light);
  border: 1px solid var(--ark-border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.sector-card:hover {
  border-color: var(--ark-navy-800);
  box-shadow: var(--shadow-sm);
}

.sector-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ark-navy-900);
}

.sector-card p {
  font-size: 0.9rem;
  color: var(--ark-text-secondary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   SECCIÓN 5: CATÁLOGO DE PRODUCTOS DESARROLLADOS (SECUNDARIA - VITRASCAN®)
   ========================================================================== */
.products-catalog-section {
  background:
    radial-gradient(circle at 90% 15%, rgba(0, 194, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #07172b 0%, #05101f 100%);
  color: var(--ark-text-on-dark);
  position: relative;
}

.products-catalog-section .section-subtitle {
  color: var(--ark-text-muted-dark);
}

.strategic-context-banner {
  background: rgba(0, 194, 255, 0.08);
  border-left: 4px solid var(--ark-cyan-500);
  border-top: 1px solid rgba(0, 194, 255, 0.2);
  border-right: 1px solid rgba(0, 194, 255, 0.2);
  border-bottom: 1px solid rgba(0, 194, 255, 0.2);
  padding: 1rem 1.35rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.strategic-context-banner p {
  font-size: 0.92rem;
  color: #d9ecff;
}

/* Tarjeta Insignia del Catálogo: VITRASCAN */
.product-flagship {
  background: linear-gradient(145deg, rgba(14, 42, 74, 0.85), rgba(6, 18, 34, 0.96));
  border: 1px solid rgba(0, 194, 255, 0.42);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg), 0 0 36px rgba(0, 194, 255, 0.14);
  margin-bottom: 2rem;
}

.flagship-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

.vitrascan-brand-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.vitrascan-logo-box {
  background: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--vs-silver);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.vitrascan-logo-box img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.vitrascan-badge-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vs-category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ark-cyan-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vs-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.vs-description {
  font-size: 0.98rem;
  color: var(--ark-text-muted-dark);
  margin-bottom: 1.35rem;
}

.vs-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.vs-feature-box {
  background: rgba(4, 11, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
}

.vs-feature-box h4 {
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--ark-cyan-300);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vs-feature-box p {
  font-size: 0.82rem;
  color: var(--ark-text-muted-dark);
  line-height: 1.45;
}

.vs-visual-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vs-machine-Showcase {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 194, 255, 0.35);
  box-shadow: var(--shadow-lg);
}

.vs-laser-defect-marker {
  position: absolute;
  top: 63%;
  left: 52%;
  width: 22px;
  height: 22px;
  border: 2px solid var(--vs-laser-red);
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 14px var(--vs-laser-red);
  animation: pulseGlow 1.3s infinite;
}

.vs-laser-tooltip {
  position: absolute;
  top: -28px;
  left: 26px;
  background: rgba(4, 11, 22, 0.92);
  border: 1px solid var(--vs-laser-red);
  color: #fecaca;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.vs-specs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.vs-spec-pill {
  background: rgba(4, 11, 22, 0.8);
  border: 1px solid rgba(0, 194, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  text-align: center;
}

.vs-spec-pill strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #fff;
}

.vs-spec-pill span {
  font-size: 0.68rem;
  color: var(--ark-text-muted-dark);
}

/* Otros Productos del Catálogo de I+D */
.secondary-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-secondary-card {
  background: rgba(11, 40, 71, 0.55);
  border: 1px solid rgba(0, 194, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.product-secondary-card:hover {
  border-color: var(--ark-cyan-400);
  transform: translateY(-3px);
}

.product-secondary-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin: 0.45rem 0 0.6rem;
}

.product-secondary-card p {
  font-size: 0.88rem;
  color: var(--ark-text-muted-dark);
  margin-bottom: 1.15rem;
}

/* ==========================================================================
   SECCIÓN 6: METODOLOGÍA LLAVE EN MANO + LABORATORIO ÓPTICO
   ========================================================================== */
.methodology-section {
  background: var(--ark-bg-light);
}

.methodology-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--ark-bg-white);
  border: 1px solid var(--ark-border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--ark-cyan-500);
  box-shadow: var(--shadow-sm);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ark-navy-900);
  background: rgba(0, 194, 255, 0.16);
  border: 1px solid rgba(0, 194, 255, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
  color: var(--ark-navy-900);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--ark-text-secondary);
}

.optical-lab-callout {
  background: linear-gradient(135deg, var(--ark-navy-900), var(--ark-navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid rgba(0, 194, 255, 0.35);
}

.optical-lab-text {
  max-width: 720px;
}

.optical-lab-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.optical-lab-text p {
  color: var(--ark-text-muted-dark);
  font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN 7: CASOS DE ÉXITO Y RESULTADOS EN PLANTA
   ========================================================================== */
.cases-section {
  background: var(--ark-bg-white);
  border-top: 1px solid var(--ark-border-light);
  border-bottom: 1px solid var(--ark-border-light);
}

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

.case-card {
  background: var(--ark-bg-light);
  border: 1px solid var(--ark-border-light);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.6rem 0 0.75rem;
  color: var(--ark-navy-900);
}

.case-metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ark-border-light);
}

.case-metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--ark-cyan-600);
}

.case-metric span {
  font-size: 0.76rem;
  color: var(--ark-text-muted);
}

/* ==========================================================================
   SECCIÓN 8: CONTACTO TÉCNICO B2B Y ESTUDIO DE VIABILIDAD
   ========================================================================== */
.contact-section {
  background: var(--ark-bg-light);
  padding: 4.5rem 0 3.5rem 0 !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info-panel {
  background: var(--ark-navy-900);
  color: #fff;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 194, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: var(--shadow-md);
}

.contact-panel-logo {
  height: 44px;
  width: auto;
  margin-bottom: 0.85rem;
  display: block;
}

.contact-panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: #fff;
  line-height: 1.3;
}

.contact-panel-desc {
  color: var(--ark-text-muted-dark);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.75rem 0;
}

.contact-info-item {
  font-size: 0.86rem;
  line-height: 1.4;
}

.contact-info-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ark-cyan-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact-info-item a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 194, 255, 0.5);
  transition: var(--transition-fast);
}

.contact-info-item a:hover {
  color: var(--ark-cyan-300);
  text-decoration-color: var(--ark-cyan-300);
}

.contact-samples-box {
  background: rgba(0, 194, 255, 0.09);
  border: 1px solid rgba(0, 194, 255, 0.28);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #d9ecff;
  line-height: 1.4;
  margin-top: 0.75rem;
}

.contact-form-card {
  background: var(--ark-bg-white);
  border: 1px solid var(--ark-border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ark-navy-900);
}

.form-control {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--ark-border-light);
  border-radius: var(--radius-sm);
  background: var(--ark-bg-light);
  color: var(--ark-text-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--ark-cyan-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15);
}

.form-status-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--ark-ok);
  color: #065f46;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   MODAL DE FICHA TÉCNICA VITRASCAN®
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 11, 22, 0.82);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--ark-navy-900);
  color: #fff;
  border: 1px solid var(--ark-cyan-500);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.spec-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.spec-table th {
  font-family: var(--font-mono);
  color: var(--ark-cyan-400);
  background: rgba(4, 11, 22, 0.5);
}

.modal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-mobile-lang {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-lang-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ark-text-muted-dark);
}

/* ==========================================================================
   PIE DE PÁGINA CORPORATIVO (FOOTER)
   ========================================================================== */
.site-footer {
  background: var(--ark-navy-950);
  color: var(--ark-text-muted-dark);
  border-top: 1px solid rgba(0, 194, 255, 0.22);
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.96rem;
  margin-bottom: 1rem;
}

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

.footer-links a:hover {
  color: var(--ark-cyan-400);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN: DESKTOP, LAPTOPS & TABLETS
   ========================================================================== */
@media (max-width: 1366px) {
  .nav-link {
    font-size: 0.78rem;
    padding: 0.38rem 0.5rem;
  }
  .header-cta-btn {
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 1220px) {
  .nav-link {
    font-size: 0.75rem;
    padding: 0.35rem 0.42rem;
  }
  .site-header .header-inner {
    gap: 0.5rem;
  }
  .nav-link-badge {
    display: none;
  }
  .brand-logo-icon {
    height: 32px;
  }
  .brand-logo-wordmark {
    height: 15px;
  }
}

/* Transición al menú móvil/tableta en pantallas <= 1140px */
@media (max-width: 1140px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4, 11, 22, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 1.25rem 1rem 2rem;
    border-bottom: 2px solid var(--ark-cyan-500);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85);
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    z-index: 999;
    gap: 0.4rem;
  }

  .main-nav.open {
    display: flex !important;
  }

  .nav-item-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: none;
  }

  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    background: rgba(0, 194, 255, 0.04) !important;
    border: 1px solid rgba(0, 194, 255, 0.18) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 0.5rem !important;
    margin: 0.2rem 0 0.5rem 0 !important;
    gap: 0.25rem !important;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-mobile-category-title {
    display: block !important;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ark-cyan-400);
    padding: 0.25rem 0.5rem 0.4rem;
    border-bottom: 1px solid rgba(0, 194, 255, 0.2);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
  }

  .main-nav .dropdown-item {
    padding: 0.6rem 0.65rem;
    border-radius: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .main-nav .dropdown-item:last-child {
    border-bottom: none;
  }

  .main-nav .nav-link {
    padding: 0.72rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }

  .main-nav .nav-link-badge {
    display: inline-block;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 194, 255, 0.12);
    border: 1px solid rgba(0, 194, 255, 0.4);
    color: #fff;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn.active {
    background: var(--ark-cyan-500);
    color: var(--ark-navy-950);
    border-color: var(--ark-cyan-400);
  }

  .nav-mobile-cta {
    display: block;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 194, 255, 0.2);
  }

  .nav-mobile-lang {
    display: flex;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .ai-layout-grid,
  .flagship-grid,
  .robotics-feature-banner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-panel,
  .contact-form-card {
    height: auto;
  }

  .pillars-grid,
  .hero-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .sectors-grid,
  .secondary-products-grid,
  .methodology-steps-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Prevenir desbordes en cualquier contenedor o tarjeta */
  .pillar-card,
  .service-card,
  .sector-card,
  .product-flagship,
  .product-secondary-card,
  .step-card,
  .case-card,
  .ai-feature-item,
  .ai-simulator-box,
  .contact-info-panel,
  .contact-form-card,
  .robotics-feature-banner,
  .robotics-content,
  .hero-hud-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Barra de Utilidades Compacta y Sin Desborde */
  .hide-on-mobile {
    display: none !important;
  }

  .utility-text-desktop,
  .wf-label-desktop {
    display: none !important;
  }

  .utility-text-mobile,
  .wf-label-mobile {
    display: inline !important;
  }

  .top-utility-bar {
    padding: 0.3rem 0;
    font-size: 0.7rem;
  }

  .top-utility-inner {
    gap: 0.35rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .utility-left, .utility-right {
    gap: 0.45rem;
    flex-wrap: nowrap;
  }

  .lang-switcher {
    font-size: 0.68rem;
  }

  .lang-btn {
    padding: 0.08rem 0.3rem;
  }

  /* Cabecera Sticky y Botones Adaptados a Pantallas Estrechas */
  .header-inner {
    min-height: 60px;
    gap: 0.5rem;
  }

  .brand-lockup {
    gap: 0.45rem;
    max-width: 160px;
  }

  .brand-logo-icon {
    height: 34px;
  }

  .brand-logo-wordmark {
    height: 16px;
  }

  .brand-tagline {
    display: none !important;
  }

  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .header-cta-btn {
    padding: 0.42rem 0.68rem;
    font-size: 0.78rem;
  }

  .btn-text-desktop {
    display: none !important;
  }

  .btn-text-mobile {
    display: inline !important;
    font-weight: 700;
  }

  .mobile-menu-btn {
    padding: 0.42rem 0.65rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Ajustes de Secciones y Tipografía */
  .section-padding {
    padding: 3.25rem 0;
  }

  .hero-section {
    padding: 2.25rem 0 0;
  }

  .hero-grid {
    gap: 1.85rem;
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
    line-height: 1.18;
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero-capabilities-pills {
    gap: 0.35rem;
    margin-bottom: 1.4rem;
  }

  .cap-pill {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-kpi-bar {
    padding: 1.25rem 0;
  }

  .hero-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .kpi-item {
    padding-left: 0.65rem;
    border-left-width: 2px;
  }

  .kpi-number {
    font-size: 1.45rem;
  }

  .kpi-desc {
    font-size: 0.74rem;
  }

  /* Filtro de Servicios con Desplazamiento Táctil Horizontal Suave */
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.6rem;
    gap: 0.4rem;
  }

  .filter-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }

  /* Componentes del Visor y Simulador */
  .hud-top-bar {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .hud-controls-bar {
    flex-direction: column;
    gap: 0.35rem;
  }

  .hud-mode-btn {
    white-space: normal;
    text-align: center;
  }

  .hud-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .sim-scenario-buttons {
    grid-template-columns: 1fr;
  }

  .sim-bar-group-label {
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }

  /* Automatización Robótica Avanzada Banner (Ajuste Perfecto en Móvil) */
  .robotics-feature-banner {
    margin-top: 1.75rem;
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .robotics-content {
    padding: 1.4rem 1.15rem;
  }

  .robotics-title {
    font-size: 1.32rem;
    line-height: 1.25;
  }

  .robotics-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .robotics-actions .btn {
    width: 100%;
    text-align: center;
  }

  .robotics-pills {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }

  .robotics-pills .cap-pill {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .robotics-media {
    min-height: 220px;
    max-height: 260px;
  }

  /* VitraScan y Catálogo en Móvil */
  .strategic-context-banner {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .strategic-context-banner .btn {
    width: 100%;
    text-align: center;
  }

  .product-flagship {
    padding: 1.4rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .vitrascan-brand-header {
    gap: 0.75rem;
  }

  .vs-title {
    font-size: 1.5rem;
  }

  .vs-logo-box img {
    height: 42px;
  }

  .vs-features-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .vs-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }

  .vs-actions .btn {
    width: 100%;
    text-align: center;
  }

  .vs-laser-defect-marker {
    top: 55%;
    left: 36%;
  }

  .vs-laser-tooltip {
    left: auto;
    right: -8px;
    top: -24px;
    font-size: 0.58rem;
    padding: 2px 5px;
  }

  .vs-specs-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }

  .optical-lab-callout {
    padding: 1.4rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .optical-lab-callout .btn {
    width: 100%;
    text-align: center;
  }

  .contact-info-panel,
  .contact-form-card {
    padding: 1.4rem 1.15rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-window {
    padding: 1.4rem 1.15rem;
  }

  .modal-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }

  .modal-actions .btn {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .pillars-grid,
  .services-grid,
  .sectors-grid,
  .secondary-products-grid,
  .methodology-steps-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .hero-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .brand-lockup {
    gap: 0.35rem;
    max-width: 145px;
  }
  .brand-logo-icon {
    height: 30px;
  }
  .brand-logo-wordmark {
    height: 14px;
  }
  .header-cta-btn {
    padding: 0.38rem 0.52rem;
    font-size: 0.74rem;
  }
  .mobile-menu-btn {
    padding: 0.38rem 0.55rem;
    font-size: 0.74rem;
  }
  .mobile-menu-btn .menu-text {
    display: none;
  }
}

/* ==========================================================================
   COMPONENTES INTERACTIVOS B2B AVANZADOS (ROI, SLIDER, UPLOAD, LEGAL, COOKIE, FAB)
   ========================================================================== */

/* 1. Comparador de Defectología Antes / Después (VitraScan Slider) */
.defect-comparison-wrapper {
  margin-top: 3.5rem;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.95), rgba(9, 20, 36, 0.98));
  border: 1px solid var(--ark-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.defect-comparison-header {
  margin-bottom: 1.5rem;
}

.defect-slider-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.defect-slider-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 194, 255, 0.25);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: #030a14;
}

.defect-slide-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.layer-after {
  z-index: 1;
}

.layer-before {
  z-index: 2;
  width: 100%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s linear;
}

.defect-view-bg {
  width: 100%;
  height: 100%;
}

.bg-vitrascan {
  background: radial-gradient(circle at 65% 45%, rgba(0, 194, 255, 0.18), transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.12), transparent 50%),
              repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0, 194, 255, 0.05) 29px),
              repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(0, 194, 255, 0.05) 29px),
              #061426;
}

.bg-classic {
  background: repeating-linear-gradient(0deg, #111, #111 2px, #161616 2px, #161616 4px);
  filter: contrast(120%) brightness(85%);
}

.defect-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.defect-side-badge {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-after {
  right: 1rem;
  background: rgba(0, 194, 255, 0.2);
  border: 1px solid var(--ark-cyan-400);
  color: #fff;
}

.badge-before {
  left: 1rem;
  background: rgba(40, 40, 40, 0.85);
  border: 1px solid #666;
  color: #ccc;
}

.defect-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.defect-marker-target {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ark-cyan-400);
  border-radius: 3px;
  animation: pulseTarget 2s infinite ease-in-out;
  background: rgba(0, 194, 255, 0.18);
}

.defect-marker-target.is-ok {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  animation: none;
}

.defect-marker-target.is-error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.25);
  border-radius: 50%;
}

.defect-marker-tag {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  white-space: nowrap;
  background: rgba(10, 25, 47, 0.92);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  border: 1px solid var(--ark-cyan-500);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.defect-marker-tag.is-ok {
  border-color: #10b981;
  color: #34d399;
}

.defect-marker-tag.is-error {
  border-color: #ef4444;
  color: #fca5a5;
}

@keyframes pulseTarget {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

.defect-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: 40px;
  margin-left: -20px;
  z-index: 5;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.9);
}

.handle-grabber {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ark-navy-950);
  border: 2px solid var(--ark-cyan-400);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  user-select: none;
}

/* 2. Calculadora de Retorno de Inversión (ROI) */
.roi-calculator-card {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #0d1b2a 0%, #112240 100%);
  border: 1px solid var(--ark-border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.roi-calc-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.25rem;
}

.roi-calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2.5rem;
  align-items: stretch;
}

.roi-inputs-column {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.roi-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.roi-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #d1d5db;
}

.roi-val-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(0, 194, 255, 0.18);
  border: 1px solid var(--ark-cyan-500);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.roi-range-slider {
  width: 100%;
  accent-color: var(--ark-cyan-400);
  cursor: pointer;
  height: 6px;
  background: #1f2937;
  border-radius: 3px;
}

.roi-shifts-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.roi-shift-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.55rem 0.4rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.roi-shift-btn.active {
  background: var(--ark-cyan-500);
  border-color: var(--ark-cyan-400);
  color: #030a14;
  font-weight: 700;
}

.roi-input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.roi-results-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(6, 18, 36, 0.75);
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

.roi-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.roi-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.roi-result-item.highlight,
.roi-result-item.payback-box {
  grid-column: span 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
}

.roi-res-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.roi-res-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.roi-res-val.text-cyan {
  color: var(--ark-cyan-400);
  font-size: 1.7rem;
}

.roi-res-val.text-green {
  color: #10b981;
  font-size: 1.5rem;
}

.roi-payback-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* 3. Subida de Archivos y Planos CAD */
.file-upload-dropzone {
  border: 2px dashed rgba(0, 194, 255, 0.4);
  background: rgba(240, 248, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-dropzone:hover,
.file-upload-dropzone.dragover {
  border-color: var(--ark-cyan-600);
  background: rgba(0, 194, 255, 0.08);
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.file-upload-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ark-navy-900);
}

.file-upload-subtext {
  font-size: 0.76rem;
  color: var(--ark-text-secondary);
}

.file-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--ark-cyan-500);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.file-preview-icon {
  font-size: 1rem;
}

.file-name {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--ark-navy-900);
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove-btn {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  line-height: 1;
}

/* 4. Enlaces Legales en Pie y Modales */
.btn-text-legal {
  background: none;
  border: none;
  color: var(--ark-text-secondary);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-text-legal:hover {
  color: var(--ark-cyan-400);
}

.modal-legal-body {
  margin: 1.25rem 0;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.modal-legal-body h4 {
  color: #fff;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}

.legal-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.legal-list li {
  margin-bottom: 0.35rem;
}

/* 5. Banner de Cookies RGPD */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 194, 255, 0.35);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  padding: 1.15rem 0;
  animation: slideUpBanner 0.3s ease-out;
}

@keyframes slideUpBanner {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text-col {
  flex: 1;
  min-width: 280px;
}

.cookie-title {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cookie-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.cookie-btn-row {
  display: flex;
  gap: 0.6rem;
}

/* 6. Botones Flotantes Multiacción */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 9997;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.has-cookie-banner .floating-actions {
  bottom: 6.5rem;
}

.fab-scroll-only {
  height: 0 !important;
  min-height: 0;
  border-width: 0 !important;
  margin-top: -0.65rem;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  box-shadow: none !important;
  transform: scale(0.8);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-actions.is-scrolled .fab-scroll-only {
  height: 48px !important;
  border-width: 1px !important;
  margin-top: 0;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42) !important;
  transform: scale(1);
}

.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ark-navy-900);
  color: #fff;
  border: 1px solid var(--ark-border-subtle);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
  text-decoration: none;
  transition: all 0.2s ease;
}

.fab-btn:hover {
  transform: scale(1.1);
  border-color: var(--ark-cyan-400);
  background: var(--ark-navy-950);
}

.fab-whatsapp {
  background: #25d366;
  border-color: #1ebc57;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
}

.fab-whatsapp:hover {
  background: #22c35e;
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.48);
  color: #6ee7b7 !important;
  padding: 0.36rem 0.78rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: 0.2rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.28);
  color: #fff !important;
  transform: translateY(-1px);
}

.fab-call {
  background: #065f46;
  border-color: #10b981;
}

.fab-quote {
  background: #075985;
  border-color: var(--ark-cyan-400);
}

.fab-top {
  background: var(--ark-navy-900);
}

@media (max-width: 768px) {
  .roi-calc-grid {
    grid-template-columns: 1fr;
  }
  .defect-slider-container {
    height: 300px;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-btn-row {
    flex-direction: column;
    width: 100%;
  }
  .cookie-btn-row .btn {
    width: 100%;
    text-align: center;
  }
  body.has-cookie-banner .floating-actions {
    bottom: 13.5rem;
  }
  .floating-actions {
    right: 1rem;
    bottom: 1rem;
  }
  .fab-btn {
    width: 44px;
    height: 44px;
  }
  .floating-actions.is-scrolled .fab-scroll-only {
    height: 44px !important;
  }
}

/* ==========================================================================
   7. SECCIÓN NOTICIAS, EVENTOS, NOTIFICACIONES Y PROYECTOS REALIZADOS (CMS)
   ========================================================================== */
.news-section {
  background: linear-gradient(180deg, #061426 0%, #091d36 100%);
  color: #fff;
  border-top: 1px solid rgba(0, 194, 255, 0.14);
  border-bottom: 1px solid rgba(0, 194, 255, 0.14);
}

.news-section .section-title {
  color: #fff;
}

.news-section .section-subtitle {
  color: var(--ark-text-muted-dark);
}

.news-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.news-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.news-filter-btn:hover {
  border-color: var(--ark-cyan-400);
  color: #fff;
}

.news-filter-btn.active {
  background: var(--ark-cyan-500);
  border-color: var(--ark-cyan-400);
  color: #031124;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: rgba(11, 28, 51, 0.85);
  border: 1px solid rgba(0, 194, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--ark-cyan-400);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.news-card.is-featured {
  border-color: rgba(0, 194, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 194, 255, 0.1);
}

.news-card-media {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: #040d1a;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-cat-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

.news-card-media .news-cat-pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  backdrop-filter: blur(8px);
}

.news-featured-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(250, 204, 21, 0.92);
  color: #081221;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.news-cat-noticia { background: rgba(0, 194, 255, 0.22); color: #7ee3ff; border: 1px solid rgba(0, 194, 255, 0.55); }
.news-cat-evento { background: rgba(245, 158, 11, 0.24); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.6); }
.news-cat-proyecto { background: rgba(16, 185, 129, 0.24); color: #a7f3d0; border: 1px solid rgba(16, 185, 129, 0.6); }
.news-cat-notificacion { background: rgba(168, 85, 247, 0.26); color: #e9d5ff; border: 1px solid rgba(168, 85, 247, 0.6); }

.news-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ark-cyan-400);
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.32;
  color: #fff;
  margin: 0;
}

.news-card-summary {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  flex: 1;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.news-tag-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.16rem 0.48rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #94a3b8;
}

.news-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-read-btn {
  background: none;
  border: none;
  color: var(--ark-cyan-400);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-read-btn:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Modal lector de artículo */
.news-modal-window {
  max-width: 820px;
}

.news-modal-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ark-text-muted-dark);
}

.news-modal-hero {
  width: 100%;
  max-height: 290px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 194, 255, 0.2);
  margin: 0.85rem 0;
  background: #040d1a;
}

.news-modal-hero img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.news-modal-body {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.news-modal-body p {
  margin-bottom: 0.85rem;
}

.news-modal-body h4 {
  color: var(--ark-cyan-400);
  margin-top: 1.1rem;
  margin-bottom: 0.45rem;
}

.news-modal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.news-modal-body li {
  margin-bottom: 0.4rem;
}

.news-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   8. SECCIÓN EQUIPO DIRECTIVO & RIGOR TÉCNICO (ESTILO LOCALWEB)
   ========================================================================== */
.team-section {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 5rem 0;
  color: #0f172a;
}

.team-header-block {
  max-width: 840px;
  margin-bottom: 3rem;
}

.team-eyebrow-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0098cc;
  margin-bottom: 0.5rem;
}

.team-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #082038;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.team-main-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Selector Segmentado de Perfil Directivo */
.team-view-switcher {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  padding: 0.25rem;
  border-radius: 9999px;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.team-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  padding: 0.45rem 1.05rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-switch-btn:hover {
  color: #082038;
}

.team-switch-btn.active {
  background: #ffffff;
  color: #082038;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.team-tab-icon {
  width: 15px;
  height: 15px;
  color: #0098cc;
}

/* Fila de Perfil de Liderazgo (Grid 12 cols / 360px + 1fr) */
.lw-profile-row {
  margin-bottom: 3.5rem;
  transition: opacity 0.25s ease;
}

.lw-profile-row:last-of-type {
  margin-bottom: 3rem;
}

.lw-profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.25rem;
  align-items: start;
}

/* Columna y Tarjeta de Fotografía */
.lw-photo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.lw-photo-aspect {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff;
}

.lw-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.lw-photo-card:hover .lw-photo-img {
  transform: scale(1.02);
}

.lw-photo-bar {
  border-top: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.95);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.lw-photo-name {
  font-weight: 700;
  color: #0f172a;
}

.lw-photo-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #475569;
}

.lw-icon-pin {
  width: 14px;
  height: 14px;
  color: #0098cc;
  flex-shrink: 0;
}

/* Columna Editorial & Contacto */
.lw-editorial-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lw-editorial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lw-editorial-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.25rem;
}

.lw-leader-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #082038;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.lw-leader-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0098cc;
  margin-bottom: 0.95rem;
}

.lw-specialties-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lw-specialty-pill {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.lw-editorial-body {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lw-editorial-body p {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.7;
}

.lw-specs-box {
  margin-top: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lw-spec-row {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
}

.lw-spec-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  color: #082038;
  letter-spacing: 0.04em;
  margin-right: 0.35rem;
}

.lw-spec-value {
  color: #1e293b;
  font-weight: 500;
}

/* Tarjeta de Contacto Directo (LocalWeb Style) */
.lw-direct-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lw-direct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.15rem;
  flex-wrap: wrap;
}

.lw-direct-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #082038;
}

.lw-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #047857;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lw-whatsapp-btn:hover {
  background-color: #065f46;
  color: #ffffff;
  transform: translateY(-1px);
}

.lw-wa-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lw-direct-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

.lw-direct-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.lw-direct-icon {
  width: 16px;
  height: 16px;
  color: #0098cc;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.lw-direct-content {
  flex: 1;
  min-width: 0;
}

.lw-direct-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.lw-direct-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lw-direct-link {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lw-direct-link:hover {
  color: #0098cc;
  text-decoration: underline;
}

.lw-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lw-copy-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.lw-copy-btn.copied {
  border-color: #047857;
  background: #ecfdf5;
}

.lw-icon-copy {
  width: 13px;
  height: 13px;
}

/* Banda de Valor y Rigor (Differentiator Cards) */
.lw-diff-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}

.lw-diff-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lw-diff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.lw-diff-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #0098cc;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.lw-diff-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #082038;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.lw-diff-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .lw-profile-grid {
    grid-template-columns: 1fr;
  }
  .lw-photo-card {
    max-width: 380px;
    margin: 0 auto;
  }
  .lw-diff-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-section {
    padding: 3.5rem 0;
  }
  .team-view-switcher {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }
  .team-switch-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .lw-direct-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .lw-diff-band {
    grid-template-columns: 1fr;
  }
  .lw-editorial-card, .lw-direct-card {
    padding: 1.35rem;
  }
  .lw-direct-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   9. SECCIÓN LOCALWEB POR ARKIMEN (BANNER & CATÁLOGO PROMOCIONAL)
   ========================================================================== */
.localweb-promo-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 194, 255, 0.12), transparent 45%),
    linear-gradient(145deg, #051426 0%, #0a2544 50%, #031124 100%);
  color: #fff;
  border-bottom: 1px solid rgba(0, 194, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.localweb-banner {
  background: rgba(8, 32, 56, 0.75);
  border: 1px solid rgba(0, 194, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 32px rgba(0, 194, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.localweb-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3cd1f9, #988cfc, #13fcc7);
}

.localweb-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.localweb-accent-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(19, 252, 199, 0.2), rgba(60, 209, 249, 0.2));
  border: 1px solid rgba(19, 252, 199, 0.5);
  color: #13fcc7;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.localweb-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.localweb-desc {
  font-size: 1.05rem;
  color: var(--ark-text-muted-dark);
  line-height: 1.65;
  max-width: 960px;
  margin-bottom: 2.25rem;
}

.localweb-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.localweb-feat-item {
  background: rgba(4, 15, 30, 0.65);
  border: 1px solid rgba(0, 194, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.localweb-feat-item:hover {
  transform: translateY(-3px);
  border-color: var(--ark-cyan-400);
}

.localweb-feat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 0.45rem;
}

.localweb-feat-item p {
  font-size: 0.85rem;
  color: var(--ark-text-muted-dark);
  line-height: 1.5;
  margin: 0;
}

.localweb-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .localweb-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .localweb-banner {
    padding: 2rem 1.5rem;
  }
  .localweb-features-grid {
    grid-template-columns: 1fr;
  }
  .localweb-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   9B. SECCIÓN ARKIMEN AI (AI.ARKIMEN.COM - BANNER PROMOCIONAL)
   ========================================================================== */
.ai-promo-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.16), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.12), transparent 45%),
    linear-gradient(145deg, #07102e 0%, #0b1d51 55%, #050d26 100%);
  color: #fff;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.ai-banner {
  background: rgba(11, 29, 81, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38), 0 0 32px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
}

.ai-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #6366f1 50%, #38bdf8 100%);
}

.ai-category-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.45);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.ai-accent-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.ai-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 1.25rem 0 0.85rem;
  letter-spacing: -0.02em;
}

.ai-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 980px;
  margin-bottom: 2.25rem;
}

.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.ai-feat-item {
  background: rgba(7, 16, 46, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-feat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(99, 102, 241, 0.2);
}

.ai-feat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.ai-feat-item p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.ai-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

.ai-btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  border-color: #6366f1;
}

.ai-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #0369a1 100%);
  border-color: #818cf8;
}

@media (max-width: 1024px) {
  .ai-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ai-banner {
    padding: 2rem 1.5rem;
  }
  .ai-features-grid {
    grid-template-columns: 1fr;
  }
  .ai-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   12. AJUSTES RESPONSIVE Y ROBUSTEZ DE LAYOUT (v2026-11-20)
   Corrige el desbordamiento horizontal del simulador ROI y del formulario
   en móviles (360-430 px) provocado por el ancho intrínseco de los inputs
   y por el mínimo automático (min-content) de los grid items.
   ========================================================================== */

/* --- Controles de formulario: nunca imponer su ancho intrínseco --- */
.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

select.form-control {
  text-overflow: ellipsis;
}

/* --- Grids: permitir que las pistas bajen de su min-content --- */
.roi-calc-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
}

.roi-input-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roi-shifts-toggle {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roi-inputs-column,
.roi-results-column,
.roi-input-group,
.roi-label-row,
.roi-result-item,
.contact-grid > *,
.form-grid-2 > *,
.form-group {
  min-width: 0;
}

.roi-label-row {
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.roi-result-item.payback-box > div {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.roi-res-val {
  overflow-wrap: anywhere;
}

/* --- Etiquetas tipo pill: que puedan partir en varias líneas sin cortarse --- */
.eyebrow {
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}

@media (max-width: 768px) {
  .roi-calculator-card {
    padding: 1.45rem 1.15rem;
    margin-top: 2.25rem;
  }

  .roi-calc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .roi-input-row-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .roi-shifts-toggle {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  }

  .roi-shift-btn {
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }

  .roi-results-column {
    padding: 1.25rem 1.05rem;
  }

  .roi-results-grid {
    gap: 0.9rem;
  }

  .roi-res-val {
    font-size: 1.2rem;
  }

  .roi-res-val.text-cyan {
    font-size: 1.45rem;
  }

  .roi-res-val.text-green {
    font-size: 1.3rem;
  }

  .contact-form-card,
  .contact-info-panel {
    padding: 1.4rem 1.15rem;
  }

  /* Etiquetas superiores: más compactas para que quepan en 1-2 líneas */
  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.62rem;
    border-radius: 12px;
    align-items: flex-start;
  }

  .optical-lab-callout {
    padding: 1.5rem 1.2rem;
  }
}

@media (max-width: 400px) {
  .roi-calculator-card {
    padding: 1.2rem 0.9rem;
  }

  .roi-results-column {
    padding: 1.05rem 0.85rem;
  }

  .roi-res-val {
    font-size: 1.08rem;
  }

  .roi-res-val.text-cyan {
    font-size: 1.28rem;
  }

  .roi-res-val.text-green {
    font-size: 1.16rem;
  }

  .roi-shifts-toggle {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  }

  /* Objetivo táctil cómodo (>= 40 px) cuando el botón queda solo con icono */
  .mobile-menu-btn {
    min-width: 44px;
    min-height: 40px;
    justify-content: center;
    padding: 0.38rem 0.5rem;
  }
}

/* Indicador sutil de desplazamiento en carruseles de filtros (solo móvil) */
@media (max-width: 480px) {
  .filter-tabs,
  .team-view-switcher {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
  }

  .filter-tabs,
  .team-view-switcher {
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar,
  .team-view-switcher::-webkit-scrollbar {
    display: none;
  }
}

/* Etiqueta del HUD: alinear a la derecha en la caja 2 para que no se recorte
   cuando la caja está cerca del borde derecho del visor (móvil y tablet). */
.hud-bbox.bbox-2 .hud-bbox-label {
  left: auto;
  right: -1px;
}

/* Cajón de navegación móvil: ajustar al alto real de la cabecera (barra + header)
   para que no quede recortado por debajo del viewport. */
@media (max-width: 1140px) {
  .main-nav {
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
  }

  .mobile-menu-btn {
    min-height: 40px;
  }
}

@media (max-width: 1140px) {
  /* CTA de cabecera con altura táctil cómoda sin alterar el alto del header */
  .header-cta-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
}

/* Fila inferior de los desarrollos propios (02/03/04): metrica + enlace.
   Evita que ambos textos se toquen en movil (antes quedaban a 0 px). */
.product-specs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.9rem;
}

@media (max-width: 480px) {
  .product-specs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .product-specs-row .ai-metric-tag {
    white-space: nowrap;
  }
}
