/* ==========================================================================
   ELECTUX - PORTAL CORPORATIVO PREMIUM (ONE PAGE)
   Hoja de Estilos de Alta Fidelidad e Identidad Visual
   ========================================================================== */

/* Importación de Fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@600;700;800;900&family=Rajdhani:wght@500;600;700&display=swap');

/* Variables de Diseño System */
:root {
  --primary: #005DFF;          /* Azul Eléctrico */
  --primary-glow: rgba(0, 93, 255, 0.5);
  --primary-dim: rgba(0, 93, 255, 0.15);
  
  --bg-dark: #05070A;          /* Negro Absoluto */
  --bg-deep: #071423;          /* Azul Profundo */
  --bg-card: #0A1930;          /* Azul Oscuro (Módulos/Tarjetas) */
  --bg-card-hover: #0e2343;
  
  --text-light: #FFFFFF;       /* Blanco Puro */
  --text-gray: #B0C0D8;        /* Gris Técnico Azulado */
  --text-muted: #647B9C;       /* Gris Apagado */
  
  --border-light: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(0, 93, 255, 0.25);
  --border-glow-active: rgba(0, 93, 255, 0.7);

  --font-title: 'Orbitron', sans-serif;
  --font-subtitle: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   Estilos de Base e Infraestructura Visual
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* Altura de la navbar fija */
}

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

/* Personalización del Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-deep);
  border: 2px solid var(--bg-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Fondo de Rejilla Tecnológica (Plano de Ingeniería) */
.tech-grid {
  position: relative;
}
.tech-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 93, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 93, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Efectos de Iluminación Radial Glow */
.glow-radial-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 93, 255, 0.08) 0%, transparent 70%);
  top: 10%;
  left: -200px;
  pointer-events: none;
  z-index: 0;
}

.glow-radial-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 93, 255, 0.06) 0%, transparent 70%);
  bottom: 15%;
  right: -250px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Tipografía y Elementos Comunes
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  letter-spacing: 1px;
}

.section-subtitle {
  font-family: var(--font-subtitle);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 4px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: var(--primary);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, #9EB5D6 70%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #00C6FF 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 93, 255, 0.2);
}

p {
  color: var(--text-gray);
  font-weight: 300;
}

.btn-primary-glow {
  background-color: var(--primary);
  color: var(--text-light);
  font-family: var(--font-subtitle);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 1px solid var(--primary);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 93, 255, 0.3);
  transition: var(--transition-smooth);
}

.btn-primary-glow:hover {
  background-color: transparent;
  color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-outline-glow {
  background-color: transparent;
  color: var(--text-light);
  font-family: var(--font-subtitle);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-outline-glow:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-dim);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVBAR (Navegación Corporativa Fija)
   ========================================================================== */
.custom-navbar {
  padding: 1.2rem 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.custom-navbar.scrolled {
  background-color: rgba(5, 7, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 93, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.navbar-brand img {
  height: 52px;
  transition: var(--transition-smooth);
}

.custom-navbar.scrolled .navbar-brand img {
  height: 44px;
}

.navbar-nav .nav-link {
  font-family: var(--font-subtitle);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.5rem 1.2rem !important;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

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

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

/* Navbar Hamburguesa en Móvil */
.navbar-toggler {
  border: 1px solid rgba(0, 93, 255, 0.4);
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 15px var(--primary-glow);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 93, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   SECCIÓN 1: HERO PRINCIPAL (Pantalla Completa)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  padding-top: 100px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/hero_bg.png');
  background-size: cover;
  background-position: center right;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(5, 7, 10, 0.95) 0%, 
    rgba(5, 7, 10, 0.8) 40%, 
    rgba(5, 7, 10, 0.3) 100%),
    linear-gradient(0deg, 
    rgba(5, 7, 10, 1) 0%, 
    rgba(5, 7, 10, 0) 50%, 
    rgba(5, 7, 10, 0.8) 100%);
  z-index: -1;
}

/* Efecto de Luces Azules Flotantes en el Hero */
.hero-light-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 93, 255, 0.25) 0%, transparent 70%);
  bottom: 10%;
  right: 15%;
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 6s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 1; }
}

.hero-subtitle {
  font-family: var(--font-subtitle);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Indicador de Scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-subtitle);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.scroll-indicator:hover {
  color: var(--primary);
}

.scroll-mouse {
  width: 24px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
  margin-bottom: 8px;
}

.scroll-indicator:hover .scroll-mouse {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 1.8s infinite;
}

.scroll-indicator:hover .scroll-wheel {
  background-color: var(--primary);
}

@keyframes scrollWheelAnim {
  0% { top: 8px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* ==========================================================================
   SECCIÓN 2: QUIÉNES SOMOS (Experiencia Técnica)
   ========================================================================== */
.about-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--bg-dark);
  z-index: 1;
}

.about-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.about-img-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(35deg, rgba(7, 20, 35, 0.6) 0%, rgba(5, 7, 10, 0.2) 100%);
  border: 1px solid rgba(0, 93, 255, 0.2);
  border-radius: 8px;
}

.about-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 10s ease;
}

.about-img-wrapper:hover .about-img {
  transform: scale(1.08);
}

/* Rejilla de los 4 Pilares */
.pilar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pilar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(0, 93, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.pilar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 93, 255, 0.1);
}

.pilar-icon-box {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 93, 255, 0.1);
  border: 1px solid rgba(0, 93, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 93, 255, 0.2);
  transition: var(--transition-smooth);
}

.pilar-card:hover .pilar-icon-box {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.05);
}

.pilar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pilar-desc {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   SECCIÓN 3: SERVICIOS (Soluciones Especializadas)
   ========================================================================== */
.services-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--bg-deep);
  z-index: 1;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 93, 255, 0.1);
  background-color: var(--bg-card-hover);
}

.service-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(0, 93, 255, 0.15) 0%, transparent 100%);
  border: 1px solid rgba(0, 93, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.8rem;
  box-shadow: 0 0 20px rgba(0, 93, 255, 0.1);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  color: var(--text-light);
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
  transform: rotate(360deg);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   SECCIÓN 4: EXPERIENCIA E INDICADORES (Cifras Impresionantes)
   ========================================================================== */
.stats-section {
  position: relative;
  padding: 5rem 0;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(0, 93, 255, 0.15);
  border-bottom: 1px solid rgba(0, 93, 255, 0.15);
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 93, 255, 0.3);
}

.stat-label {
  font-family: var(--font-subtitle);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-gray);
  letter-spacing: 2px;
  margin-bottom: 0;
}

/* Separadores visuales entre stats (solo para pantallas grandes) */
@media (min-width: 992px) {
  .stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 0;
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(0, 93, 255, 0.3), transparent);
  }
}

/* ==========================================================================
   SECCIÓN 5: SECTORES DE ATENCIÓN (Grid Minimalista)
   ========================================================================== */
.sectors-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--bg-dark);
  z-index: 1;
}

.sector-card {
  background-color: rgba(10, 25, 48, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.sector-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  background-color: var(--bg-card);
  box-shadow: 0 15px 30px rgba(0, 93, 255, 0.08);
}

.sector-icon {
  font-size: 2.2rem;
  color: var(--text-gray);
  margin-bottom: 1.2rem;
  transition: var(--transition-smooth);
}

.sector-card:hover .sector-icon {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.1);
}

.sector-name {
  font-family: var(--font-subtitle);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.sector-card:hover .sector-name {
  color: var(--primary);
}

/* ==========================================================================
   SECCIÓN 6: PROYECTOS DESTACADOS (Galería Interactiva)
   ========================================================================== */
.projects-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--bg-deep);
  z-index: 1;
}

/* Filtros de Categoría */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: transparent;
  color: var(--text-gray);
  font-family: var(--font-subtitle);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Grid de la Galería */
.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4 / 3;
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 93, 255, 0.15);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, 
    rgba(5, 7, 10, 0.95) 0%, 
    rgba(5, 7, 10, 0.7) 50%, 
    rgba(5, 7, 10, 0.1) 100%);
  opacity: 0.9;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 1;
}

.project-card:hover .project-overlay {
  background: linear-gradient(0deg, 
    rgba(7, 20, 35, 0.98) 0%, 
    rgba(7, 20, 35, 0.8) 50%, 
    rgba(0, 93, 255, 0.15) 100%);
}

.project-type {
  font-family: var(--font-subtitle);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.project-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.project-card:hover .project-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SECCIÓN 7: CAPACIDADES TÉCNICAS (Diagrama / Bloques)
   ========================================================================== */
.capabilities-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--bg-dark);
  z-index: 1;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.cap-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.cap-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.cap-item:hover {
  transform: translateX(5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 25px rgba(0, 93, 255, 0.05);
}

.cap-item:hover::before {
  background-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.cap-num {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.6;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cap-title-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.cap-icon {
  font-size: 1.4rem;
  color: var(--primary);
}

.cap-title {
  font-family: var(--font-subtitle);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  color: var(--text-light);
}

.cap-desc {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   SECCIÓN 8: CONTACTO CORPORATIVO (Sin Formularios)
   ========================================================================== */
.contact-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--bg-deep);
  z-index: 1;
}

.contact-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(7, 20, 35, 0.95), rgba(5, 7, 10, 0.98)),
    radial-gradient(circle at 50% 50%, rgba(0, 93, 255, 0.08) 0%, transparent 60%);
  z-index: -1;
}

.contact-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 4rem 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 93, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon-box {
  width: 54px;
  height: 54px;
  background-color: rgba(0, 93, 255, 0.08);
  border: 1px solid rgba(0, 93, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 93, 255, 0.1);
  transition: var(--transition-smooth);
}

.contact-info-item:hover .contact-icon-box {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
  transform: scale(1.05);
}

.contact-info-label {
  font-family: var(--font-subtitle);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 300;
  transition: var(--transition-fast);
}

a.contact-info-value:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 93, 255, 0.3);
}

/* Redes Sociales */
.social-header {
  font-family: var(--font-subtitle);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-header::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-grid {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-3px);
}

/* ==========================================================================
   FOOTER (Aviso Legal y Enlaces)
   ========================================================================== */
.footer-section {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 350px;
}

.footer-links-title {
  font-family: var(--font-subtitle);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-family: var(--font-subtitle);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 4rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-legal-links {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   OPTIMIZACIONES PARA DISPOSITIVOS MÓVILES (Responsividad)
   ========================================================================== */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .about-section {
    padding: 5rem 0;
  }
  
  .services-section {
    padding: 5rem 0;
  }
  
  .sectors-section {
    padding: 5rem 0;
  }
  
  .projects-section {
    padding: 5rem 0;
  }
  
  .capabilities-section {
    padding: 5rem 0;
  }
  
  .contact-section {
    padding: 5rem 0;
  }
  
  .contact-panel {
    padding: 3rem 2rem;
  }
  
  .footer-legal-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
  
  .btn-primary-glow, .btn-outline-glow {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
  }
  
  .contact-panel {
    padding: 2rem 1.2rem;
  }
  
  .stat-number {
    font-size: 2.8rem;
  }
}
