/* ==========================================================================
   BADIROQ - INGENIERÍA DE CONFIABILIDAD INDUSTRIAL
   Sistema de Diseño: Industrial Blueprint 3D (v1.0.0)
   ========================================================================== */

/* 1. Reset y Variables Globales */
:root {
  /* Paleta de Colores Obligatoria */
  --color-bg: #FFFFFF;         /* Blanco sólido (fondo limpio) */
  --color-base: #0A2647;       /* Azul marino profundo (títulos, textos, base) */
  --color-alert: #E71D36;      /* Rojo vibrante (sensores, alertas, fallas, CTA) */
  --color-tech: #219EBC;       /* Cian eléctrico (wireframes, rejillas, acotaciones) */
  --color-white: #FFFFFF;      /* Blanco puro (tarjetas y áreas de enfoque) */
  
  /* Gradientes Técnicos */
  --grad-blueprint: linear-gradient(135deg, var(--color-base) 0%, #051424 100%);
  --grad-tech-glow: radial-gradient(circle, rgba(33, 158, 188, 0.15) 0%, rgba(33, 158, 188, 0) 70%);

  /* Transiciones y Sombras */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --shadow-tech: 0 8px 32px 0 rgba(10, 38, 71, 0.05);
  --shadow-tech-hover: 0 16px 48px 0 rgba(33, 158, 188, 0.12);
  
  /* Fuentes */
  --font-title: 'Outfit', 'Montserrat', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
}

/* Reset Estándar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg);
  color: var(--color-base);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Fondo Técnico: Cuadrícula Blueprint */
body::before {
  content: "";
  display: none; /* Desactivar fondo cuadriculado blueprint */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px, 8px 8px;
  background-image: 
    linear-gradient(to right, rgba(33, 158, 188, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33, 158, 188, 0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(33, 158, 188, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33, 158, 188, 0.02) 1px, transparent 1px);
  z-index: -2;
  pointer-events: none;
}

/* 2. Componentes de Estructura / Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Marcas de Registro Técnicas (Cruces en las 4 esquinas de secciones clave) */
.blueprint-section {
  position: relative;
  padding: 8rem 0;
  border-bottom: 1px dashed rgba(33, 158, 188, 0.15);
}

.blueprint-section::before,
.blueprint-section::after,
.blueprint-section .container::before,
.blueprint-section .container::after {
  content: "+";
  position: absolute;
  font-family: monospace;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-tech);
  opacity: 0.5;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ubicación de las cruces en las 4 esquinas */
.blueprint-section::before { top: 10px; left: 10px; }
.blueprint-section::after { top: 10px; right: 10px; }
.blueprint-section .container::before { bottom: 10px; left: 10px; }
.blueprint-section .container::after { bottom: 10px; right: 10px; }

/* 3. Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-base);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: rgba(10, 38, 71, 0.85);
}

strong {
  color: var(--color-base);
  font-weight: 600;
}

/* Badges Técnicos */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(33, 158, 188, 0.08);
  border: 1px solid rgba(33, 158, 188, 0.2);
  color: var(--color-base);
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.badge-tech::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-tech);
  border-radius: 50%;
}

.badge-tech.alert {
  background-color: rgba(231, 29, 54, 0.08);
  border-color: rgba(231, 29, 54, 0.2);
  color: var(--color-alert);
}

.badge-tech.alert::before {
  background-color: var(--color-alert);
  animation: pulse-red 1.5s infinite;
}

/* 4. Cabecera (Navbar) */
header {
  width: 100%;
  position: absolute;
  top: 1.5rem;
  left: 0;
  z-index: 100;
  border-bottom: none;
}

header .inner {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 2rem;
  box-shadow: 0 8px 32px 0 rgba(10, 38, 71, 0.05);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-base);
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-base);
  position: relative;
}

.logo-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border: 1.5px dashed var(--color-tech);
}

.logo-text span {
  color: var(--color-tech);
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-base);
  transition: var(--transition-smooth);
}

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

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-alert);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(231, 29, 54, 0.25);
}

.btn-primary:hover {
  background-color: #d1122a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 29, 54, 0.35);
}

.btn-secondary {
  background-color: var(--color-base);
  color: var(--color-white);
  border: 1px solid var(--color-base);
}

.btn-secondary:hover {
  background-color: #061930;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-base);
  color: var(--color-base);
}

.btn-outline:hover {
  background-color: rgba(10, 38, 71, 0.03);
}

/* 5. Hero Section */
.hero {
  padding-top: 22.5rem;
  padding-bottom: 6rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 340px;
  background-image: url('assets/realist_hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  border-bottom: 1.5px solid rgba(10, 38, 71, 0.1);
  box-shadow: 0 4px 20px rgba(10, 38, 71, 0.03);
}

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

.hero-content {
  z-index: 10;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--color-tech);
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: rgba(10, 38, 71, 0.8);
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-visual-container {
  background-color: var(--color-white);
  border: 1px solid rgba(10, 38, 71, 0.1);
  box-shadow: var(--shadow-tech);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  overflow: hidden;
}

.hero-visual-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(33, 158, 188, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33, 158, 188, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Regla milimétrica en los bordes de la imagen */
.rule-x, .rule-y {
  position: absolute;
  background-color: rgba(33, 158, 188, 0.2);
  font-family: monospace;
  font-size: 8px;
  color: var(--color-tech);
  display: flex;
  justify-content: space-between;
  padding: 2px 5px;
}

.rule-x {
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid var(--color-tech);
}

.rule-y {
  left: 0;
  top: 0;
  height: 100%;
  width: 20px;
  writing-mode: vertical-rl;
  border-right: 1px solid var(--color-tech);
}

/* Esquinas de registro en la caja del render */
.visual-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--color-tech);
  border-style: solid;
  border-width: 0;
  z-index: 5;
}
.visual-corner-tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.visual-corner-tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.visual-corner-bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.visual-corner-br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.blueprint-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 2;
  position: relative;
  mix-blend-mode: multiply; /* Mezcla con el fondo cuadriculado */
}

/* Línea de escaneo láser animada */
.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-tech);
  box-shadow: 0 0 10px var(--color-tech);
  animation: scan 4s linear infinite;
  z-index: 3;
}

/* 6. Tarjetas de Cristal (Glassmorphic Blueprint) y Bordes Técnicos */
.glass-card {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 38, 71, 0.08);
  box-shadow: var(--shadow-tech);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-tech);
  opacity: 0.8;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 158, 188, 0.3);
  box-shadow: var(--shadow-tech-hover);
}

.glass-card.alert-card::before {
  background-color: var(--color-alert);
}

/* Esquinas de diseño técnico de tarjeta y Doble Borde Blueprint */
.card-double-border {
  border: 1.5px solid var(--color-base);
  background-color: var(--color-white);
  /* Doble borde técnico usando box-shadow */
  box-shadow: 
    0 0 0 3px var(--color-white), 
    0 0 0 4.5px rgba(10, 38, 71, 0.15),
    var(--shadow-tech);
}

.card-double-border:hover {
  border-color: var(--color-tech);
  box-shadow: 
    0 0 0 3px var(--color-white), 
    0 0 0 4.5px rgba(33, 158, 188, 0.4),
    var(--shadow-tech-hover);
}

.card-mark {
  position: absolute;
  font-family: monospace;
  font-size: 8px;
  color: var(--color-tech);
  opacity: 0.4;
}
.card-mark-tl { top: 6px; left: 8px; }
.card-mark-br { bottom: 6px; right: 8px; }

/* Estilos de Logo Real */
.logo-img-real {
  transition: var(--transition-smooth);
}
.logo-img-real:hover {
  filter: drop-shadow(0 0 6px rgba(33, 158, 188, 0.15));
}


/* 7. Pilares de Confiabilidad */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-icon {
  font-size: 2.5rem;
  color: var(--color-tech);
  margin-bottom: 1.5rem;
}

/* 8. Módulos de Servicio (Services Grid) */
.services-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

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

.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.service-visual {
  background-color: var(--color-white);
  border: 1px solid rgba(10, 38, 71, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(33, 158, 188, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 158, 188, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* 9. Sección de Autoridad Local (Essity) */
.authority-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.standards-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.map-wrapper {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-base);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-tech);
}

.map-container {
  width: 100%;
  aspect-ratio: 1.2;
  position: relative;
  background-color: #F8FAFC;
  border: 1px solid rgba(33, 158, 188, 0.15);
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

/* Rejilla del Mapa */
.map-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(33, 158, 188, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 158, 188, 0.06) 1px, transparent 1px);
  background-size: 25px 25px;
}

/* Elementos del mapa técnico vectorizados */
.map-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--color-alert);
  border-radius: 50%;
  z-index: 10;
}

.map-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 15px);
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-base);
  white-space: nowrap;
  background-color: var(--color-white);
  padding: 2px 6px;
  border: 1px solid var(--color-base);
  border-radius: 2px;
  z-index: 11;
}

.map-radius-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--color-tech);
  border-radius: 50%;
  background-color: rgba(33, 158, 188, 0.02);
  z-index: 5;
}

.radius-100k {
  width: 70%;
  aspect-ratio: 1;
  animation: pulse-radius 4s infinite linear;
}

.map-point {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-base);
  border-radius: 50%;
  z-index: 8;
}

.map-point::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 8px;
  font-weight: 600;
  color: rgba(10, 38, 71, 0.7);
  white-space: nowrap;
}

/* Ubicaciones relativas */
.pt-sahagun { top: 50%; left: 50%; width: 12px; height: 12px; background-color: var(--color-alert); } /* Centro */
.pt-pachuca { top: 40%; left: 45%; }
.pt-puebla { top: 72%; left: 62%; }
.pt-tlaxcala { top: 60%; left: 58%; }
.pt-edomex { top: 55%; left: 25%; }

/* 10. Matriz de Criticidad e Impacto del Paro */
.matrix-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Gráfico del Iceberg del Gasto Eléctrico/Mecánico */
.iceberg-container {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-base);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.iceberg-graphic {
  flex-grow: 1;
  position: relative;
  margin: 2rem 0;
  border-bottom: 2px solid var(--color-base);
}

.water-line {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-tech);
  border-top: 1px dashed var(--color-base);
}

.water-line-label {
  position: absolute;
  top: calc(25% - 20px);
  right: 0;
  font-family: monospace;
  font-size: 8px;
  color: var(--color-tech);
  letter-spacing: 0.1em;
}

/* Dibujo Iceberg Vectorial Simple */
.iceberg-shape {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 300px solid rgba(33, 158, 188, 0.08);
  clip-path: polygon(50% 0%, 85% 20%, 100% 70%, 50% 100%, 0% 70%, 15% 20%);
  border: 1px solid var(--color-tech);
  z-index: 1;
}

.iceberg-label {
  position: absolute;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: var(--color-white);
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(10, 38, 71, 0.15);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-tech);
  z-index: 10;
  white-space: nowrap;
}

.label-visible {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--color-tech);
  color: var(--color-tech);
}

.label-hidden-1 { top: 40%; left: 10%; border-left: 3px solid var(--color-alert); }
.label-hidden-2 { top: 55%; right: 10%; border-left: 3px solid var(--color-alert); }
.label-hidden-3 { top: 70%; left: 15%; border-left: 3px solid var(--color-alert); }
.label-hidden-4 { top: 85%; right: 15%; border-left: 3px solid var(--color-alert); }

/* Matriz de Criticidad Interactiva 3x3 */
.matrix-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 30px repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr) 30px;
  gap: 6px;
  aspect-ratio: 1.2;
}

.matrix-cell {
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(10, 38, 71, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0.5rem;
}

/* Colores de Severidad en la Matriz */
.matrix-cell.risk-low {
  background-color: rgba(33, 158, 188, 0.05);
  border-color: rgba(33, 158, 188, 0.15);
  color: var(--color-tech);
}
.matrix-cell.risk-low:hover {
  background-color: rgba(33, 158, 188, 0.15);
}

.matrix-cell.risk-medium {
  background-color: rgba(10, 38, 71, 0.03);
  border-color: var(--color-base);
  color: var(--color-base);
}
.matrix-cell.risk-medium:hover {
  background-color: rgba(10, 38, 71, 0.08);
}

.matrix-cell.risk-high {
  background-color: rgba(231, 29, 54, 0.05);
  border-color: rgba(231, 29, 54, 0.2);
  color: var(--color-alert);
}
.matrix-cell.risk-high:hover {
  background-color: rgba(231, 29, 54, 0.15);
  box-shadow: 0 0 10px rgba(231, 29, 54, 0.1);
}

.matrix-cell.active {
  transform: scale(1.05);
  box-shadow: var(--shadow-tech-hover);
  z-index: 5;
}
.matrix-cell.risk-high.active {
  border-color: var(--color-alert);
  background-color: rgba(231, 29, 54, 0.2);
}
.matrix-cell.risk-medium.active {
  border-color: var(--color-base);
  background-color: rgba(10, 38, 71, 0.12);
}
.matrix-cell.risk-low.active {
  border-color: var(--color-tech);
  background-color: rgba(33, 158, 188, 0.25);
}

/* Ejes de la Matriz */
.matrix-axis-y {
  grid-column: 1;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-family: monospace;
  font-size: 8px;
  color: var(--color-base);
  font-weight: bold;
}

.matrix-axis-x {
  grid-row: 4;
  grid-column: 2 / span 3;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-family: monospace;
  font-size: 8px;
  color: var(--color-base);
  font-weight: bold;
}

/* Panel de Información de la Matriz */
.matrix-info-panel {
  background-color: var(--color-white);
  border: 1px solid rgba(10, 38, 71, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-tech);
  border-left: 4px solid var(--color-tech);
  transition: var(--transition-smooth);
}

/* 11. Formulario de Captura de Leads (Diagnóstico) */
.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.form-info h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-info ul {
  list-style: none;
  margin-top: 1rem;
}

.form-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-info li::before {
  content: "✓";
  color: var(--color-tech);
  font-weight: 900;
}

/* Caja de Formulario Técnica */
.blueprint-form-box {
  background-color: var(--color-white);
  border: 2px solid var(--color-base);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-tech);
}

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

.form-group label {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-base);
  letter-spacing: 0.05em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  background-color: var(--color-bg);
  border: 1px solid rgba(10, 38, 71, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-base);
  transition: var(--transition-smooth);
  width: 100%;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-tech);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.15);
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-family: monospace;
  font-size: 0.85rem;
  display: none;
}
.form-status.success {
  display: block;
  background-color: rgba(33, 158, 188, 0.08);
  border: 1px solid var(--color-tech);
  color: var(--color-base);
}
.form-status.error {
  display: block;
  background-color: rgba(231, 29, 54, 0.08);
  border: 1px solid var(--color-alert);
  color: var(--color-alert);
}

/* 12. FAQ (Acordeones) */
.faq-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border: 1px solid rgba(10, 38, 71, 0.1);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-white);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(33, 158, 188, 0.3);
}

.faq-question {
  padding: 1.5rem 2rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-base);
  transition: var(--transition-smooth);
}

.faq-question::after {
  content: "+";
  font-family: monospace;
  font-size: 1.25rem;
  color: var(--color-tech);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
  content: "-";
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  padding: 0 2rem;
  opacity: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  color: rgba(10, 38, 71, 0.8);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
  opacity: 1;
}

/* 13. Footer */
footer {
  background-color: var(--color-base);
  color: var(--color-white);
  padding: 5rem 0 2rem 0;
  position: relative;
  border-top: 2px solid var(--color-tech);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(33, 158, 188, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(33, 158, 188, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--color-tech);
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-tech);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* 14. Animaciones de Sistema */
@keyframes scan {
  0% { top: 0%; opacity: 0.3; }
  50% { top: 100%; opacity: 1; }
  100% { top: 0%; opacity: 0.3; }
}

@keyframes pulse-red {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes pulse-radius {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.2; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.2; }
}

/* 15. Adaptabilidad Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  .hero {
    padding-top: 21rem;
  }
  .hero::before {
    height: 320px;
  }
  .hero-grid, .authority-layout, .matrix-layout, .form-layout, .standards-layout, .pillars-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header .inner {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  .hero {
    padding-top: 13.5rem;
  }
  .hero::before {
    height: 200px;
  }
  .nav-links {
    display: none; /* Simplificado para landing en móvil */
  }
  .blueprint-section {
    padding: 5rem 0;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ===== NUEVAS SECCIONES ENRIQUECIDAS & IMÁGENES REALISTAS ===== */

/* Stats block in Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(10, 38, 71, 0.15);
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-value {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-alert);
  line-height: 1.2;
}
.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(10, 38, 71, 0.6);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Grid of Services (Realist style) */
.services-realist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.service-realist-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-realist-image-frame {
  position: relative;
  aspect-ratio: 1.6;
  background-color: #FFFFFF;
  border: 1px solid rgba(10, 38, 71, 0.1);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.service-realist-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.service-realist-card:hover .service-realist-image-frame img {
  transform: scale(1.05);
}
.service-realist-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-realist-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-base);
}
.service-realist-content p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(10, 38, 71, 0.8);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.service-realist-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-realist-features li {
  font-size: 0.85rem;
  color: rgba(10, 38, 71, 0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-realist-features li::before {
  content: "✓";
  color: var(--color-tech);
  font-weight: bold;
}

/* Timeline (4 Steps) */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}
.timeline-steps::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 50px;
  right: 50px;
  height: 2px;
  background-image: linear-gradient(to right, var(--color-tech) 50%, transparent 50%);
  background-size: 15px 1px;
  z-index: 1;
  opacity: 0.3;
}
.timeline-step {
  text-align: center;
  position: relative;
  z-index: 2;
}
.timeline-step-number-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.timeline-step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--color-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-base);
  transition: var(--transition-smooth);
  box-shadow: 0 0 0 6px var(--color-bg);
}
.timeline-step:hover .timeline-step-number {
  border-color: var(--color-alert);
  color: var(--color-alert);
  box-shadow: 0 0 12px rgba(231, 29, 54, 0.25), 0 0 0 6px var(--color-bg);
  transform: translateY(-2px);
}
.timeline-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-base);
}
.timeline-step p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(10, 38, 71, 0.75);
  margin: 0 auto;
  max-width: 200px;
}

/* Responsividad de las nuevas secciones */
@media (max-width: 1024px) {
  .services-realist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .timeline-steps::before {
    display: none;
  }
}
@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .services-realist-grid {
    grid-template-columns: 1fr;
  }
  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Additional Services Grid Layout */
.services-additional-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .services-additional-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== MODERN 3D TECHNICAL STYLES & HUD ENHANCEMENTS ===== */

/* Micro LED Status Indicator */
.micro-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981; /* Verde esmeralda de estado activo */
  box-shadow: 0 0 8px #10b981, inset 0 0 4px rgba(255, 255, 255, 0.5);
  animation: pulse-led 2s infinite;
  display: inline-block;
}

@keyframes pulse-led {
  0% { opacity: 0.7; box-shadow: 0 0 4px #10b981; }
  50% { opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { opacity: 0.7; box-shadow: 0 0 4px #10b981; }
}

/* HUD Gauge Ticks */
.gauge-tick {
  width: 3px;
  height: 8px;
  background-color: rgba(33, 158, 188, 0.2);
  display: inline-block;
  margin-right: 2px;
  border-radius: 1px;
  transition: var(--transition-smooth);
}
.gauge-tick.active {
  background-color: var(--color-tech);
  box-shadow: 0 0 6px rgba(33, 158, 188, 0.8);
}

/* Enhanced 3D Glassmorphic Cards & Hover Tilts */
.glass-card {
  box-shadow: 
    0 8px 32px 0 rgba(10, 38, 71, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(10, 38, 71, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateZ(8px) translateY(-5px);
  border-color: var(--color-tech);
  box-shadow: 
    0 20px 40px -10px rgba(10, 38, 71, 0.12),
    0 0 20px rgba(33, 158, 188, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Double-bordered metallic styling for precision cards */
.card-double-border {
  border: 1px solid rgba(10, 38, 71, 0.15);
  background-color: var(--color-white);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 4px 16px rgba(10, 38, 71, 0.04);
}

.card-double-border:hover {
  border-color: var(--color-tech);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 15px 30px -8px rgba(33, 158, 188, 0.15),
    0 0 12px rgba(33, 158, 188, 0.1);
}

/* Recessed Technical Inputs */
.form-group input, 
.form-group select, 
.form-group textarea {
  background-color: #F8FAFC;
  border: 1px solid rgba(10, 38, 71, 0.12);
  box-shadow: inset 0 2px 4px 0 rgba(10, 38, 71, 0.05);
  transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--color-tech);
  border-bottom-width: 2px;
  background-color: var(--color-white);
  box-shadow: inset 0 2px 4px 0 rgba(10, 38, 71, 0.03), 0 2px 10px rgba(33, 158, 188, 0.15);
}

/* High-tech HUD buttons with Neon Cyan Highlights */
.btn-primary {
  background-color: var(--color-base);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(10, 38, 71, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: #061930;
  color: #00F2FF; /* Neon Cyan text on hover */
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(33, 158, 188, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 242, 255, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before {
  opacity: 1;
}

/* HUD Scanner scanning overlay effect */
.scanner-line {
  background-color: var(--color-tech);
  box-shadow: 0 0 10px var(--color-tech);
}

/* Grid adjustments for responsivity */
@media (max-width: 1024px) {
  .services-realist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .services-realist-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Sección Muerte Activos - Fondo Azul Oscuro (#13223D) */
#muerte-activos {
  background-color: #13223D; /* Custom dark blue */
}

#muerte-activos h2 {
  color: #ffffff;
}

#muerte-activos > .container > div > p {
  color: rgba(255, 255, 255, 0.9);
}

/* Ecosistema Card spanning 2 columns in the grid */
@media (min-width: 992px) {
  .ecosystem-card {
    grid-column: span 2;
  }
}

/* Reducción del 30% del tamaño del mapa de la ecuación de la confiabilidad */
.equation-map-wrapper {
  max-width: 70%;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  .equation-map-wrapper {
    max-width: 100%;
  }
}
