/* ==========================================================================
   CONSTRUCTION ANALYTICS - ESTILOS PRINCIPALES (MULTIPÁGINA)
   Marca: Construction Analytics
   Año: 2026
   Hosting: GoDaddy Shared Hosting (Optimizado, Vanilla CSS)
   ========================================================================== */

/* --- Variables y Paleta de Colores --- */
:root {
  --color-navy-dark: #040d1a;
  --color-navy-primary: #061a33;
  --color-navy-secondary: #0c2547;
  --color-navy-surface: #102e56;
  --color-navy-border: #1b3d6e;

  --color-cyan: #00c0d8;
  --color-cyan-light: #3be2f8;
  --color-cyan-hover: #00d6f2;
  --color-cyan-glow: rgba(0, 192, 216, 0.25);
  --color-cyan-subtle: rgba(0, 192, 216, 0.08);

  --color-white: #ffffff;
  --color-bg-light: #f4f7fb;
  --color-bg-light-alt: #edf2f7;
  --color-text-main: #1a273a;
  --color-text-muted: #5a6e85;
  --color-text-light: #e2e8f0;
  --color-border-light: #e2e8f0;
  --color-card-bg: #ffffff;

  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ebe5d;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(6, 26, 51, 0.06), 0 1px 2px rgba(6, 26, 51, 0.04);
  --shadow-md: 0 4px 12px rgba(6, 26, 51, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(6, 26, 51, 0.1), 0 8px 10px -6px rgba(6, 26, 51, 0.06);
  --shadow-glow: 0 0 20px var(--color-cyan-glow);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Accesibilidad: Enlace de salto --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--color-cyan);
  color: var(--color-navy-primary);
  padding: 8px 16px;
  z-index: 99999;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 10px;
}

:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

/* --- Layout Contenedor --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Tipografía y Títulos de Sección --- */
.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 12px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 3px;
  background-color: var(--color-cyan);
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 800;
  color: var(--color-navy-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 680px;
}

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

.text-cyan {
  color: var(--color-cyan);
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

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

.btn-primary {
  background-color: var(--color-cyan);
  color: var(--color-navy-primary);
  box-shadow: 0 4px 14px rgba(0, 192, 216, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-cyan-hover);
  box-shadow: 0 6px 20px rgba(0, 192, 216, 0.5);
  transform: translateY(-2px);
  color: var(--color-navy-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background-color: rgba(0, 192, 216, 0.08);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-navy-primary);
  border: 1.5px solid var(--color-border-light);
}

.btn-outline-dark:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background-color: var(--color-cyan-subtle);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--color-cyan);
  color: var(--color-navy-primary);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 192, 216, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--color-cyan-hover);
  color: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 192, 216, 0.45);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   1. BARRA SUPERIOR (TOP BAR)
   ========================================================================== */
.topbar {
  background-color: var(--color-navy-dark);
  color: #94a3b8;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--color-navy-surface);
  padding: 8px 0;
}

.topbar-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.topbar-item:hover {
  color: var(--color-cyan);
}

/* ==========================================================================
   2. ENCABEZADO (HEADER & NAV)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(6, 26, 51, 0.08);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  width: 215px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mobile-menu-header {
  display: none !important;
}

.mobile-menu-body {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-navy-primary);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-cyan);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--color-cyan);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-navy-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   3. HERO PRINCIPAL (PÁGINA DE INICIO)
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at 85% 20%, rgba(0, 192, 216, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(12, 37, 71, 0.8) 0%, transparent 60%),
              var(--color-navy-primary);
  color: var(--color-white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-navy-border);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-navy-surface);
  border: 1px solid var(--color-navy-border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-cyan);
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--color-white);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Composición visual de Hero con HUD interactivo */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 192, 216, 0.15);
  border: 1px solid var(--color-navy-border);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 51, 0) 60%, rgba(6, 26, 51, 0.6) 100%);
  pointer-events: none;
}

/* Indicadores Flotantes Tecnológicos (HUD) */
.floating-hud {
  position: absolute;
  background: rgba(10, 34, 63, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 192, 216, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 5;
  min-width: 200px;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.floating-hud-top-right {
  top: -15px;
  right: -15px;
  animation-delay: 0s;
}

.floating-hud-bottom-left {
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.hud-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-cyan);
}

.hud-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
}

.hud-subtext {
  font-size: 0.8125rem;
  color: #e2e8f0;
  font-weight: 500;
}

.hud-deco-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 12px;
  margin-top: 8px;
}

.hud-bar {
  flex: 1;
  background: var(--color-cyan);
  border-radius: 2px;
  opacity: 0.6;
}

.hud-bar.bar-1 { height: 40%; opacity: 0.4; }
.hud-bar.bar-2 { height: 75%; opacity: 0.7; }
.hud-bar.bar-3 { height: 55%; opacity: 0.5; }
.hud-bar.bar-4 { height: 95%; opacity: 0.9; }

.hud-sparkline {
  position: relative;
  width: 100%;
  height: 10px;
  margin-top: 8px;
  display: flex;
  align-items: center;
}

.spark-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 192, 216, 0.2), var(--color-cyan));
  border-radius: 2px;
  position: relative;
}

.spark-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  background-color: var(--color-cyan-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-cyan);
}

/* ==========================================================================
   4. HERO INTERIOR (PÁGINAS SECUNDARIAS)
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(circle at 85% 35%, rgba(0, 210, 230, 0.16), transparent 35%),
    linear-gradient(115deg, #031327 0%, #072a48 55%, #04364b 100%);
  color: var(--color-white);
  padding: 58px 0 54px;
  min-height: 370px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: inset 0 -1px 0 rgba(0, 229, 255, 0.4), 0 2px 16px rgba(0, 210, 230, 0.15);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 210, 230, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 210, 230, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: gridDriftSlow 32s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 75% 45%, rgba(0, 229, 255, 0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.page-hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.page-hero-content {
  flex: 0 0 58%;
  max-width: 58%;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: #8fa6c2;
  margin-bottom: 16px;
  font-weight: 500;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.page-breadcrumb a {
  color: var(--color-cyan-light);
  text-decoration: none;
  transition: color 180ms ease;
}

.page-breadcrumb a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.page-breadcrumb .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.page-breadcrumb span[aria-current="page"] {
  color: #e2e8f0;
  font-weight: 600;
}

.page-hero .page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cyan);
  background: rgba(0, 210, 230, 0.12);
  border: 1px solid rgba(0, 210, 230, 0.35);
  padding: 5px 15px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 210, 230, 0.15);
  opacity: 1;
  visibility: visible;
  transform: none;
}

.page-hero .page-title {
  font-size: clamp(2.35rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 12px rgba(3, 19, 39, 0.6);
  opacity: 1;
  visibility: visible;
  transform: none;
}

.page-hero .page-subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #c4d3e5;
  max-width: 660px;
  margin-bottom: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Columna Derecha: Composición Tecnológica Rica */
.page-hero-visual {
  flex: 0 0 42%;
  max-width: 42%;
  width: 42%;
  height: 270px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-tech-layers {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 180ms ease-out;
}

.hero-tech-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

/* Chips Glassmorphism */
.hero-glass-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(4, 19, 39, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 210, 230, 0.38);
  border-radius: 9999px;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
}

.hero-glass-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  animation: chipDotPulse 3s ease-in-out infinite;
}

.chip-pos-1 {
  top: 14px;
  left: 16px;
  animation: floatSubtleA 5.5s ease-in-out infinite;
}

.chip-pos-2 {
  top: 48%;
  right: 10px;
  animation: floatSubtleB 6.2s ease-in-out infinite 0.8s;
}

.chip-pos-3 {
  bottom: 14px;
  left: 28px;
  animation: floatSubtleA 5.8s ease-in-out infinite 1.6s;
}

/* Animaciones de Gráficos SVG */
@keyframes floatSubtleA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes floatSubtleB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes chipDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #00e5ff; }
}

@keyframes buildingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3.5px); }
}

@keyframes nodePulseSubtle {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes dashFlow {
  0% { stroke-dashoffset: 48; }
  100% { stroke-dashoffset: 0; }
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes radarRingPulse {
  0% { r: 12; opacity: 0.85; }
  75% { r: 62; opacity: 0; }
  100% { r: 62; opacity: 0; }
}

.svg-float-building {
  transform-origin: center;
  animation: buildingFloat 5.5s ease-in-out infinite;
}

.svg-data-path {
  stroke-dasharray: 6 4;
  animation: dashFlow 7.5s linear infinite;
}

.svg-pulse-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulseSubtle 3.2s ease-in-out infinite;
}

.svg-pulse-node:nth-child(2n) {
  animation-delay: 1.1s;
}

.svg-pulse-node:nth-child(3n) {
  animation-delay: 2.2s;
}

.svg-radar-ring {
  transform-origin: center;
  animation: radarRingPulse 3.8s ease-out infinite;
}

.svg-radar-sweep {
  transform-origin: 230px 135px;
  animation: radarSweep 8s linear infinite;
}

/* ==========================================================================
   5. ESPECIALIDADES (5 DISCIPLINAS)
   ========================================================================== */
.specialties-section {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  padding: 0;
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
}

.specialty-card {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--color-border-light);
  transition: all var(--transition-normal);
}

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

.specialty-card:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-2px);
}

.specialty-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: var(--radius-sm);
  background-color: var(--color-cyan-subtle);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.specialty-icon svg {
  width: 24px;
  height: 24px;
}

.specialty-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy-primary);
}

/* ==========================================================================
   6. PROGRAMAS DE CAPACITACIÓN
   ========================================================================== */
.programs-section {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

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

.program-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 192, 216, 0.3);
}

.program-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-navy-surface);
}

.program-thumb picture,
.program-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.program-thumb img {
  transition: transform 0.5s ease;
}

.program-card:hover .program-thumb img {
  transform: scale(1.05);
}

.program-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(6, 26, 51, 0.85);
  backdrop-filter: blur(4px);
  color: var(--color-cyan);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 192, 216, 0.3);
}

.program-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.program-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-areas {
  margin-top: 8px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.program-areas-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy-primary);
  margin-bottom: 8px;
}

.program-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.program-tag {
  font-size: 0.75rem;
  background: var(--color-bg-light);
  color: var(--color-text-main);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-light);
}

.program-action {
  margin-top: auto;
}

.btn-program-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy-primary);
  transition: all var(--transition-fast);
}

.btn-program-select svg {
  width: 16px;
  height: 16px;
  color: var(--color-cyan);
  transition: transform var(--transition-fast);
}

.btn-program-select:hover {
  color: var(--color-cyan);
}

.btn-program-select:hover svg {
  transform: translateX(4px);
}

.section-footer-action {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================================
   7. BENEFICIOS FORMATIVOS
   ========================================================================== */
.benefits-section {
  padding: 60px 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

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

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

.benefit-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 4px;
}

.benefit-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   8. SOLUCIONES PROFESIONALES
   ========================================================================== */
.solutions-section {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

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

.solution-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 192, 216, 0.3);
}

.solution-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-cyan-subtle);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.solution-icon svg {
  width: 26px;
  height: 26px;
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 12px;
}

.solution-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.solution-details-list {
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--color-text-main);
}

.solution-details-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  line-height: 1.45;
}

.solution-details-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--color-cyan);
  font-size: 1.1rem;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-top: auto;
}

.solution-link svg {
  width: 16px;
  height: 16px;
  color: var(--color-cyan);
  transition: transform var(--transition-fast);
}

.solution-link:hover {
  color: var(--color-cyan);
}

.solution-link:hover svg {
  transform: translateX(4px);
}

/* Enfoque de trabajo / Proceso (en Soluciones) */
.process-section {
  padding: 80px 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.process-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: all var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-cyan);
  background: var(--color-white);
}

.process-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: 12px;
}

.process-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 8px;
}

.process-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   9. NOSOTROS
   ========================================================================== */
.about-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  gap: 48px;
}

.about-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy-primary);
}

.about-feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.about-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(6, 26, 51, 0.12);
  border: 1px solid rgba(0, 192, 216, 0.3);
  background-color: var(--color-navy-surface);
}

.about-visual picture,
.about-visual img {
  width: 100%;
  height: 380px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-visual-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(6, 26, 51, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 192, 216, 0.45);
  color: var(--color-cyan-light);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
}

/* Pilares Institucionales (Página Nosotros) */
.pillars-section {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

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

.pillar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition-normal);
}

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

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-cyan-subtle);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

.pillar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   10. LLAMADO A LA ACCIÓN (CTA BANNER)
   ========================================================================== */
.cta-section {
  background: radial-gradient(circle at 10% 50%, rgba(0, 192, 216, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 50%, rgba(12, 37, 71, 0.8) 0%, transparent 50%),
              var(--color-navy-dark);
  color: var(--color-white);
  padding: 70px 0;
  border-top: 1px solid var(--color-navy-surface);
  border-bottom: 1px solid var(--color-navy-surface);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text {
  max-width: 680px;
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 1.0625rem;
  color: #cbd5e1;
}

/* ==========================================================================
   11. CONTACTO & FORMULARIO
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy-primary);
  margin-bottom: 12px;
}

.contact-info-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

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

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy-primary);
}

.contact-detail-value a:hover {
  color: var(--color-cyan);
}

.contact-notice-box {
  margin-top: 36px;
  padding: 16px 20px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-cyan);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-form-container {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 28px;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy-primary);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy-primary);
}

.form-label .optional {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: normal;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(0, 192, 216, 0.15);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-cyan);
}

.checkbox-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--color-cyan);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  display: none;
}

.form-status.info {
  display: block;
  background-color: rgba(0, 192, 216, 0.1);
  color: #0369a1;
  border: 1px solid rgba(0, 192, 216, 0.3);
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-map-card {
  margin-top: 48px;
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 10px 30px rgba(6, 26, 51, 0.06);
}

.map-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.map-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-primary);
}

.map-address {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 192, 216, 0.25);
  box-shadow: 0 8px 24px rgba(6, 26, 51, 0.08);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   12. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid var(--color-navy-surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 200px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-cyan);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--color-navy-surface);
  font-size: 0.8125rem;
  color: #64748b;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--color-cyan);
}

/* ==========================================================================
   13. PÁGINAS LEGALES & ERROR 404
   ========================================================================== */
.legal-page {
  padding: 60px 0 80px;
  background-color: var(--color-bg-light);
}

.legal-header {
  margin-bottom: 40px;
}

.legal-content {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.error-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 60px 24px;
}

.error-code {
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}

/* ==========================================================================
   14. ANIMACIONES MODERNAS, MICROINTERACCIONES Y MEJORA PROGRESIVA
   ========================================================================== */

/* --- A. Scroll Reveal Seguro (CERO OPACITY: 0) --- */
.reveal-on-scroll {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

@keyframes subtleFadeUp {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}

.reveal-on-scroll.is-revealed {
  animation: subtleFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- B. Encabezado Dinámico con Scroll --- */
.site-header {
  transition: padding 260ms cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 260ms cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(6, 26, 51, 0.08);
  border-bottom-color: var(--color-border-light);
}

.site-header .header-container {
  transition: padding 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .header-container {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* --- C. Navegación con Línea Cian Animada --- */
.nav-link {
  position: relative;
  transition: color 220ms ease;
  color: var(--color-navy-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--color-cyan);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--color-navy-primary) !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--color-cyan);
  border-radius: var(--radius-pill);
  transform: scaleX(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* --- D. Hero Principal y Páginas Internas (Cuadrícula y HUDs) --- */
@keyframes gridDriftSlow {
  0% { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}

@keyframes hudFloatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes barFillPulse {
  0%, 100% { transform: scaleX(0.97); opacity: 0.88; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes dataLinePulse {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 2px var(--color-cyan)); }
  50% { opacity: 0.95; filter: drop-shadow(0 0 6px var(--color-cyan-light)); }
}

.hero-section,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 192, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 192, 216, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: gridDriftSlow 32s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-card-hud {
  position: relative;
  z-index: 2;
  animation: hudFloatSubtle 5.5s ease-in-out infinite;
  box-shadow: 0 12px 32px rgba(4, 13, 26, 0.4), 0 0 16px rgba(0, 192, 216, 0.16);
  border: 1px solid rgba(0, 192, 216, 0.35);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.hud-bar-fill {
  transform-origin: left;
  animation: barFillPulse 4.5s ease-in-out infinite;
}

.page-tag,
.section-tag {
  display: inline-block;
  box-shadow: 0 0 12px rgba(0, 192, 216, 0.18);
  transition: box-shadow 240ms ease;
}

.page-tag:hover,
.section-tag:hover {
  box-shadow: 0 0 18px rgba(0, 192, 216, 0.35);
}

/* --- E. Microinteracciones de Tarjetas (Hover, Elevación y Escala) --- */
.program-card,
.solution-card,
.value-card,
.specialty-card,
.pillar-card,
.benefit-card,
.process-card {
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 240ms ease;
}

.program-card:hover,
.solution-card:hover,
.value-card:hover,
.specialty-card:hover,
.pillar-card:hover,
.benefit-card:hover,
.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(6, 26, 51, 0.1), 0 0 0 1px rgba(0, 192, 216, 0.22);
}

.program-card .program-thumb img {
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .program-thumb img {
  transform: scale(1.02);
}

.solution-icon svg,
.contact-detail-icon svg {
  transition: transform 220ms ease;
}

.solution-card:hover .solution-icon svg {
  transform: scale(1.05);
}

.program-action a svg,
.solution-link svg {
  transition: transform 220ms ease;
}

.program-card:hover .program-action a svg,
.solution-card:hover .solution-link svg {
  transform: translateX(3px);
}

/* --- F. Botones con Efecto Sheen, Elevación y Active --- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 220ms ease, 
              background-color 220ms ease, 
              border-color 220ms ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; 
  left: -120%; 
  width: 50%; 
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn:hover::before {
  left: 140%;
  transition: left 600ms ease-in-out;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(0, 192, 216, 0.35);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn svg {
  transition: transform 220ms ease;
}

/* --- G. CTA Oscuros con Acabado Tecnológico --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  animation: dataLinePulse 4s ease-in-out infinite;
}

/* --- H. Footers con Hover y Subrayado Animado --- */
.footer-links a,
.footer-links-list a,
.footer-contact-item a {
  position: relative;
  transition: color 200ms ease;
}

.footer-links a:hover,
.footer-links-list a:hover,
.footer-contact-item a:hover {
  color: var(--color-cyan-light);
}

.footer-links a::after,
.footer-links-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.footer-links a:hover::after,
.footer-links-list a:hover::after {
  transform: scaleX(1);
}

.footer-contact-item svg,
.footer-contact-list svg {
  transition: transform 200ms ease, color 200ms ease;
}

.footer-contact-item:hover svg,
.footer-contact-list .footer-contact-item:hover svg {
  transform: scale(1.1);
  color: var(--color-cyan);
}

/* --- I. Contenedor Visual de Ubicación en Contacto (Reemplazo del iframe vacío) --- */
.map-visual-wrapper {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-secondary) 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 192, 216, 0.25);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.map-visual-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 192, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 192, 216, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.map-visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.map-visual-pin {
  position: relative;
  width: 56px;
  height: 56px;
  background: rgba(0, 192, 216, 0.12);
  border: 2px solid var(--color-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 192, 216, 0.35);
  margin-bottom: 4px;
}

.map-pulse-ring {
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 1px solid var(--color-cyan-light);
  opacity: 0.5;
  animation: hudFloatSubtle 3s ease-in-out infinite;
}

.map-visual-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-cyan);
}

.map-visual-address {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  font-weight: 500;
  max-width: 420px;
  line-height: 1.4;
}

.btn-map-action {
  margin-top: 6px;
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* --- J. Botón Flotante "Volver Arriba" --- */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(6, 26, 51, 0.92);
  border: 1.5px solid var(--color-cyan);
  border-radius: 50%;
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 192, 216, 0.2);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 240ms ease, visibility 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease, color 200ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--color-cyan);
  color: var(--color-navy-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 192, 216, 0.45);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

/* --- K. Accesibilidad: Prefers-Reduced-Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-card-hud,
  .hud-bar-fill,
  .hero-section::before,
  .page-hero::before,
  .back-to-top {
    animation: none !important;
  }
}

/* ==========================================================================
   15. RESPONSIVE - MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .specialty-card:nth-child(3) {
    border-right: none;
  }
  .specialty-card:nth-child(4),
  .specialty-card:nth-child(5) {
    border-top: 1px solid var(--color-border-light);
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 768px) {
  body.menu-open .site-header {
    z-index: 10000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-header,
  .site-header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .topbar {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .site-logo img {
    width: 150px;
    max-height: 34px;
  }

  .primary-nav,
  .mobile-nav,
  .mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    background: #ffffff !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    flex-direction: column !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
      opacity 220ms ease,
      visibility 220ms ease;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .primary-nav.is-open,
  .mobile-nav.is-open,
  .mobile-menu.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .mobile-menu-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 72px;
    height: 72px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(6, 26, 51, 0.08);
    flex-shrink: 0;
    width: 100%;
  }

  .mobile-menu-logo {
    display: flex;
    align-items: center;
  }

  .mobile-menu-logo img {
    width: 180px;
    height: auto;
    max-height: 34px;
    display: block;
  }

  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(6, 26, 51, 0.12);
    border-radius: 8px;
    color: var(--color-navy-primary);
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  .mobile-menu-close:hover,
  .mobile-menu-close:focus-visible {
    background: rgba(0, 192, 216, 0.1);
    color: var(--color-cyan);
    border-color: var(--color-cyan);
    outline: none;
  }

  .mobile-menu-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto;
    width: 100%;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .mobile-menu-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100%;
    list-style: none;
    padding: 24px 20px 40px !important;
    margin: 0;
  }

  .mobile-menu-links li {
    width: 100%;
    border-bottom: 1px solid rgba(6, 26, 51, 0.06);
  }

  .mobile-menu-links li:last-child {
    border-bottom: none;
  }

  .mobile-menu-links a,
  .primary-nav .nav-link {
    display: flex !important;
    align-items: center;
    min-height: 54px;
    width: 100%;
    padding: 12px 8px;
    color: var(--color-navy-primary);
    font-size: 20px;
    font-weight: 600;
    opacity: 1;
    visibility: visible;
    text-decoration: none;
    position: relative;
    transition: color 180ms ease, padding-left 180ms ease;
  }

  .mobile-menu-links a:hover {
    color: var(--color-cyan-hover);
    padding-left: 12px;
  }

  .mobile-menu-links a.active,
  .mobile-menu-links a[aria-current="page"],
  .primary-nav .nav-link.active,
  .primary-nav .nav-link[aria-current="page"] {
    color: var(--color-navy-primary) !important;
    font-weight: 700 !important;
    padding-left: 14px;
  }

  .mobile-menu-links a.active::before,
  .mobile-menu-links a[aria-current="page"]::before,
  .primary-nav .nav-link.active::before,
  .primary-nav .nav-link[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: var(--color-cyan);
    border-radius: 4px;
  }

  .primary-nav .nav-cta {
    width: 100%;
    margin-top: 0;
    padding: 0 20px 40px;
  }

  .primary-nav .nav-cta .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .floating-hud-top-right {
    top: -10px;
    right: 0;
  }

  .floating-hud-bottom-left {
    bottom: -15px;
    left: 0;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .specialty-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
  }

  .specialty-card:last-child {
    border-bottom: none;
  }

  .page-hero {
    padding: 64px 0 58px;
    min-height: auto;
    position: relative;
    overflow: hidden;
  }

  .page-hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .page-hero-content {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .page-hero .page-title {
    font-size: clamp(1.9rem, 6.5vw, 2.3rem);
    margin-bottom: 14px;
  }

  .page-hero .page-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .page-hero-visual {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 290px;
    height: 260px;
    max-width: none;
    flex: none;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
  }

  .hero-glass-chip {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-visual picture,
  .about-visual img {
    height: 260px;
    aspect-ratio: 16 / 10;
  }

  .map-wrapper {
    height: 310px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info,
  .contact-form-container,
  .contact-map-card {
    padding: 24px 18px;
  }

  .contact-detail-value {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .legal-content {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn {
    white-space: normal;
    padding: 12px 18px;
  }

  .contact-info,
  .contact-form-container,
  .contact-map-card {
    padding: 20px 14px;
  }

  .contact-info-title,
  .form-title {
    font-size: 1.25rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}
