/* ==========================================================================
1. VARIABLES DE MARCA Y REGLAS BASE (PALETA INTERACTIVA ARYMA SYSTEMS)
========================================================================== */
:root {
 --primary: #002d4a; /* Azul Oscuro Corporativo */
 --primary-hover: #001a2c; /* Azul Oscuro Profundo */ 
 --dark: #16243d; /* Azul Marino */
 --bg-light: #ffffff; /* Blanco Puro Absoluto */
 --bg-offwhite: #fcfcfd; /* Blanco Alabastro (Sutil textura visual) */
 --bg-gray: #f8fafc; /* Gris Lino Ultra Suave (Para romper la monotonía) */
 --text-muted: #4a5568; /* Gris Pizarra */
 --border-color: #e2e8f0; /* Gris Bordes Suave */
 --accent-green: #00a8cc; /* Azul Claro LED Neón */
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-light);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. ESTILOS DEL PRELOADER TECNOLÓGICO
========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(30, 30, 35, 0.55); 
  backdrop-filter: blur(5px); 
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
}

.preloader-logo {
  width: 100%;
  max-width: 250px; 
  height: auto;
  margin-bottom: 35px; 
  filter: drop-shadow(0px 12px 35px rgba(0, 168, 204, 0.5)); 
  animation: growTech 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.preloader-phrase {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem; 
  font-weight: 900;    
  letter-spacing: 6px; 
  margin: 0;
  text-transform: uppercase;
  color: #ffffff; 
  text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.95), 0px 0px 25px rgba(0, 168, 204, 0.6); 
  opacity: 0;
  animation: fadeInText 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.6s; 
}

@media (max-width: 600px) {
  .preloader-logo { max-width: 200px; }
  .preloader-phrase { font-size: 1.2rem; letter-spacing: 3px; }
}

/* ==========================================================================
   3. BOTÓN FLOTANTE DE WHATSAPP
========================================================================== */
.whatsapp-btn {
  position: fixed !important; 
  bottom: 30px;               
  right: 30px;                
  width: 60px;
  height: 60px;
  background-color: #25D366; 
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); 
  z-index: 999999 !important; 
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn img {
  width: 34px;
  height: 34px;
  display: block;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.08); 
  background-color: #20ba5a;              
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}
/* ==========================================================================
           1. RESET DE ESTILOS Y VARIABLES BÁSICAS
           ========================================================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --led-cyan: #00a8cc; /* Color celeste neón para hovers */
        }

        body {
            background-color: #f4f6f9;
        }

      
/* ==========================================================================
   4. HEADER GLOBAL - CONFIGURACIÓN PARA PC / ESCRITORIO
========================================================================== */
   header {
            background: #002d4a !important; /* Azul oscuro corporativo */
            border-bottom: 2px solid #00a8cc !important; /* Línea de resplandor neón */
            box-shadow: 0 4px 20px rgba(0, 168, 204, 0.4); /* Brillo LED hacia abajo */
            padding: 0; 
            position: sticky;
            top: 0;
            z-index: 1000;
            height: 56px; /* Barra delgada y exacta */
            width: 100%;
        }

        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 54px; 
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* ESTILOS DEL LOGO (Faltaban en tu CSS original) */
        .logo {
            color: #ffffff !important;
            font-size: 20px;
            font-weight: 700;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            height: 100%;
        }

        .logo span {
            font-weight: 400;
            opacity: 0.8;
        }

        /* ENLACES Y NAVEGACIÓN */
        .nav-links {
            display: flex;
            gap: 32px;
            list-style: none;
            height: 100%;
        }

        .nav-links li {
            display: flex;
            align-items: center;
            height: 100%;
        }

        .nav-links a {
            text-decoration: none;
            color: #ffffff !important; 
            font-weight: 600;
            font-size: 15px;
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            height: 100%;
            gap: 8px; /* Espacio por si activas iconos después */
        }

        /* Brillo celeste neón al pasar el mouse */
        .nav-links a:hover,
        .nav-links a:active,
        .nav-links a:focus {
            color: var(--led-cyan) !important; 
            text-shadow: 0 0 8px rgba(0, 168, 204, 0.6); 
        }

        /* SOLUCIÓN AL ERROR CRÍTICO: Control de tamaño de los SVGs gigantes */
        .nav-links a svg {
            width: 18px !important;
            height: 18px !important;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            display: inline-block;
            vertical-align: middle;
        }

        /* Asegura que las líneas internas del SVG usen el color correcto */
        .nav-links svg path,
        .nav-links svg polyline,
        .nav-links svg polygon,
        .nav-links svg line {
            stroke: currentColor !important;
            fill: none !important;
        }

        /* BOTÓN DE MENÚ MÓVIL (Hamburguesa) */
        .menu-toggle {
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
            display: none; /* Oculto en computadoras */
            width: 32px;
            height: 32px;
        }

        .menu-toggle svg {
            width: 24px;
            height: 24px;
            fill: none;
            stroke: #ffffff !important; 
            stroke-width: 2;
        }

        .menu-toggle .icon-close {
            display: none;
        }

        /* Ocultar barra secundaria en escritorio si existiera */
        @media (min-width: 769px) {
            #barra-navegacion-principal {
                display: none !important; 
            }
        }

        /* Adaptación para pantallas de celulares */
        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }
            .nav-links {
                display: none; /* Aquí puedes acoplar tu JS para desplegarlo móvil */
            }
        }
        
         @media (max-width: 768px) {
            /* Asegura la visibilidad del botón de menú */
            .menu-toggle {
                display: block !important;
                z-index: 1100;
            }

            /* MENÚ DESPLEGABLE REPARADO */
            .nav-links {
                display: none !important; /* Oculto por completo por defecto */
                flex-direction: column !important;
                position: absolute !important;
                top: 56px !important; /* Exactamente abajo del header */
                left: 0 !important;
                width: 100% !important;
                background-color: #ffffff !important; /* Fondo blanco */
                box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2) !important; /* Sombra pronunciada sobre la cuadrícula */
                padding: 10px 24px !important;
                gap: 0 !important;
                z-index: 99999 !important; /* Prioridad máxima por encima de .grid-container */
                height: auto !important; /* Ajuste automático para que salgan todos los enlaces */
                overflow: visible !important;
            }

            /* Estado cuando el JavaScript inyecta la clase activa */
            .nav-links.active {
                display: flex !important; /* Fuerza a mostrar todo el bloque */
            }

            .nav-links li {
                width: 100% !important;
                display: block !important;
                border-bottom: 1px solid #eef2f5 !important; /* Línea divisoria gris tenue */
                height: auto !important;
            }

            .nav-links li:last-child {
                border-bottom: none !important;
            }

            /* TEXTOS EN AZUL LED */
            .nav-links a {
                width: 100% !important;
                padding: 15px 0 !important;
                font-size: 16px !important;
                color: #00a8cc !important; /* Color azul LED */
                font-weight: 600 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: flex-start !important;
                height: auto !important;
            }

            /* Iconos SVG del menú en móvil */
            .nav-links a svg {
                display: inline-block !important;
                width: 20px !important;
                height: 20px !important;
                margin-right: 12px !important;
                stroke: #00a8cc !important; /* Color LED para los iconos */
                fill: none !important;
            }

            /* Alternancia de iconos de la hamburguesa (X) */
            .menu-toggle.open .icon-bars {
                display: none !important;
            }
            .menu-toggle.open .icon-close {
                display: block !important;
                stroke: #ffffff !important;
            }
        }
/* ==========================================================================
   5. SECCIÓN HERO (ESTRUCTURA GENERAL Y BOTONES PC)
========================================================================== */
.hero {
  padding: 40px 0 20px 0;    
  margin-top: 0;              
  position: relative;
  overflow: visible; 
  min-height: auto; 
  display: block; 
  background-image: url('../imagenes/teclas.avif'); 
  background-position: center; 
  background-size: cover;      
  background-repeat: no-repeat; 
}

.hero-flex {
  display: flex;
  align-items: flex-start;    
  justify-content: center; 
  gap: 50px;                  
  width: 100%;
  margin-top: 15px;           
}

.hero-text {
  flex: 1.1;
  opacity: 0; 
  animation: slideLeftToRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 2.5s; 
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--dark); 
  margin-bottom: 24px;
}

.hero-text h1 .resalto,
.hero-text strong {
  color: var(--primary);
  font-weight: 800;
}

.hero-text p {
  font-size: 19px;
  color: var(--text-muted); 
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px; 
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary) !important; 
  color: #ffffff !important; 
  border: none;
  box-shadow: 0 8px 20px rgba(0, 168, 204, 0.25); 
}

.btn-primary:hover {
  background-color: var(--primary-hover) !important; 
  transform: translateY(-3px); 
  box-shadow: 0 12px 24px rgba(0, 168, 204, 0.35);
}

.btn-secondary {
  background-color: transparent !important;
  color: var(--primary) !important; 
  border: 2px solid var(--primary) !important;
}

.btn-secondary:hover {
  background-color: rgba(0, 168, 204, 0.05); 
  color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: translateY(-3px);
}

.hero-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: flex-start; 
}

.floating-img {
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  vertical-align: top; 
  animation: floatAnimation 6s ease-in-out infinite;
}

/* ==========================================================================
   6. SECCIÓN DE MÉTRICAS Y SERVICIOS (PANTALLAS GRANDES)
========================================================================== */
.metricas-section {
  padding: 40px 0 60px 0; 
  background-color: transparent !important; 
  text-align: center; 
}

.metricas-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 0px; 
  width: 100%;
}

.metrica-card {
  background: transparent !important;
  border: none !important;
  padding: 20px 40px !important;
  transition: transform 0.3s ease;
}

.metrica-card:hover { transform: translateY(-3px); }

.metrica-card:not(:last-child) {
  border-right: 1px solid rgba(22, 36, 61, 0.12) !important;
}

.metrica-numero {
  font-size: 54px; 
  font-weight: 800; 
  color: var(--primary) !important; 
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}

.metrica-texto {
  font-size: 13px; 
  font-weight: 700; 
  color: var(--text-muted) !important; 
  text-transform: uppercase; 
  letter-spacing: 1.5px;
}

.services-section {
  position: relative; 
  padding: 100px 0;
  background-image: url('../imagenes/fondo.avif'); 
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 45, 74, 0.45); 
  z-index: -1;
}

.services-header { text-align: center; margin-bottom: 60px; }

.services-header h2 {
  font-size: 36px; font-weight: 800; color: #ffffff; margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); 
}

.services-header p {
  font-size: 16px; color: #e2e8f0; max-width: 540px; margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: #E6F4FE !important; 
  border: 1px solid #CEE7FC !important; 
  border-radius: 16px; 
  padding: 40px;
  box-shadow: 0 10px 30px rgba(11, 30, 61, 0.08); 
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px); 
  border-color: var(--led-cyan) !important; 
  box-shadow: 0 15px 35px rgba(0, 168, 204, 0.15);
}

.card-icon {
  width: 180px; height: 75px; margin-bottom: 24px;
}

.card-icon img.icon-png {
  width: auto; height: 100%; max-width: 100%; object-fit: contain; display: block;
}

.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--dark) !important; }
.service-card p { font-size: 15px; color: var(--text-muted) !important; line-height: 1.6; }

/* ==========================================================================
   7. SECCIÓN DE PRODUCTOS (TARJETAS EN CELESTE CON BORDES AZUL MARINO)
========================================================================== */
.products-section {
  padding: 100px 0;
  background-color: var(--bg-light); 
  border-top: 1px solid var(--border-color);
}

.products-header { 
  text-align: center; 
  margin-bottom: 60px; 
}

.products-header h2 { 
  font-size: 36px; 
  font-weight: 800; 
  color: var(--dark); 
  margin-bottom: 16px; 
}

.products-header p { 
  color: var(--text-muted); 
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Tarjetas de Producto con Borde Azul Corporativo */
.product-card {
  background: #E6F4FE !important; 
  border: 1px solid var(--primary) !important; 
  border-radius: 16px; 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

/* Al pasar el mouse el borde se ilumina en Azul LED y gana relieve neón */
.product-card:hover {
  border-width: 1.5px !important;
  border-color: var(--led-cyan) !important; 
  box-shadow: 0 15px 35px rgba(0, 168, 204, 0.15);
  transform: translateY(-4px);
}

/* Etiqueta flotante del producto en color Azul LED */
.product-badge {
  position: absolute; 
  top: 16px; 
  left: 16px; 
  background-color: var(--led-cyan);
  color: #ffffff; 
  padding: 4px 12px; 
  border-radius: 4px; 
  font-size: 11px; 
  font-weight: 700; 
  text-transform: uppercase;
}

.product-badge.discount { 
  background-color: var(--primary); 
}

.product-image {
  width: 100%; 
  height: 230px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 24px;
  border-bottom: 1px solid var(--primary); 
}

.product-image img { 
  max-width: 90%; 
  max-height: 90%; 
  object-fit: contain; 
  transition: transform 0.4s ease; 
}

.product-card:hover .product-image img { 
  transform: translateY(-4px); 
}

.product-info { 
  padding: 24px; 
  display: flex; 
  flex-direction: column; 
  flex-grow: 1; 
}

.product-category { 
  font-size: 11px; 
  text-transform: uppercase; 
  color: var(--led-cyan); 
  font-weight: 600; 
  margin-bottom: 6px; 
}

.product-info h3 { 
  font-size: 18px; 
  color: var(--dark) !important; 
  margin-bottom: 10px; 
  font-weight: 700; 
}

.product-info p { 
  color: var(--text-muted) !important; 
  font-size: 14px; 
  margin-bottom: 24px; 
  flex-grow: 1; 
}

.product-footer { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.product-price { 
  font-size: 20px; 
  font-weight: 700; 
  color: var(--primary); 
}

/* Botón del Producto */
.btn-product {
  background-color: transparent; 
  color: var(--primary); 
  border: 1px solid var(--primary);
  padding: 8px 18px; 
  border-radius: 30px; 
  font-size: 14px; 
  font-weight: 600; 
  transition: all 0.2s ease; 
  text-decoration: none;
}

.btn-product:hover { 
  background-color: var(--primary); 
  color: #ffffff; 
}

/* ==========================================================================
   8. SECCIÓN DE CONTACTO Y FORMULARIO (ESTILO CIRCUITO PREMIUM)
========================================================================== */
.contacto-section {
  padding: 100px 0;
  background-color: var(--bg-offwhite);
  border-top: 1px solid var(--border-color);
}

.contacto-container {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.contacto-info {
  flex: 1;
}

.contacto-form-box {
  flex: 1.2;
  background: var(--bg-light);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 45, 74, 0.05);
}

.form-group {
  margin-bottom: 24px;
}

/* Campos de entrada: El foco activa el resplandor Azul LED */
.form-control {
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-gray);
  color: var(--dark);
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--led-cyan) !important;
  background-color: var(--bg-light);
  box-shadow: 0 0 12px rgba(0, 168, 204, 0.25) !important;
}

/* Botón de Enviar Formulario */
.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  background-color: var(--primary) !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 168, 204, 0.2);
}

.btn-submit:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 204, 0.35);
}

/* ==========================================================================
   9. SECCIÓN: PRE-FOOTER INFORMATIVO CORPORATIVO (LÍNEAS LED)
========================================================================== */
.pre-footer-section {
  background-color: var(--primary) !important;
  padding: 60px 20px 20px 20px;
  color: #ffffff;
  border-top: 2px solid var(--led-cyan) !important; /* Línea divisoria superior Azul LED */
  box-shadow: 0 -4px 20px rgba(0, 168, 204, 0.2); 
}

.pre-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.pre-footer-col {
  flex: 1;
  min-width: 250px;
}

.pre-footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  padding-bottom: 8px;
}

/* Subrayado decorativo corto en tono Azul LED para títulos */
.pre-footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--led-cyan);
}

.pre-footer-col p, 
.pre-footer-col ul {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.6;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pre-footer-col ul li {
  margin-bottom: 12px;
}

/* Enlaces del Footer con transición neón */
.pre-footer-col ul li a {
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pre-footer-col ul li a:hover {
  color: var(--led-cyan) !important;
  padding-left: 5px; /* Sutil desplazamiento interactivo al pasar el mouse */
}

/* ==========================================================================
   10. ESTILOS DE LOS CONTADORES DINÁMICOS Y FOOTER BASE
========================================================================== */
.counter-box {
  text-align: center;
}

.counter {
  font-family: 'Orbitron', sans-serif; 
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 168, 204, 0.15);
}

footer {
  background: var(--primary); /* Fondo Azul Oscuro Corporativo */
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff; 
  letter-spacing: 0.5px;
  margin-top: auto;
  border-top: 3px solid var(--led-cyan); /* Línea divisoria superior Azul LED */
}

/* ==========================================================================
   11. ADAPTACIONES RESPONSIVE UNIFICADAS (EXCLUSIVO PARA CELULARES)
========================================================================== */
@media (max-width: 768px) {
  
  /* --- WhatsApp Móvil --- */
  .whatsapp-btn { 
    bottom: 20px; 
    right: 20px; 
    width: 54px; 
    height: 54px; 
  }
  .whatsapp-btn img { 
    width: 30px; 
    height: 30px; 
  }

  /* --- Navbar Móvil Desplegable --- */
  #barra-navegacion-principal {
    display: block !important;
    background: var(--primary) !important;
    border-bottom: 2px solid var(--led-cyan) !important;
    box-shadow: 0 4px 20px rgba(0, 168, 204, 0.4) !important; 
    position: sticky !important;
    top: 0 !important;
    z-index: 999999 !important; 
    height: 56px !important; 
    width: 100% !important;
    overflow: visible !important; 
  }

  .menu-toggle {
    display: flex !important;
  }

  .nav-links {
    display: none !important; 
    flex-direction: column !important;
    position: fixed !important;
    top: 56px !important; 
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    background-color: #ffffff !important; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important; 
    padding: 15px 0 !important;
    gap: 0 !important;
    list-style: none !important;
  }

  .nav-links.active { 
    display: flex !important; 
  }
  
  .nav-links li { 
    width: 100% !important; 
  }

  .nav-links a {
    color: var(--primary) !important; 
    width: 100% !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #f0f4f8 !important; 
    height: auto !important;
    gap: 10px !important; 
  }

  .nav-links a:hover {
    background-color: #f7fafc !important; 
    text-shadow: none !important;
    color: var(--led-cyan) !important;
  }

  .nav-links a svg {
    display: inline-block !important; 
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: var(--primary) !important; 
    stroke-width: 2 !important;
    transition: all 0.25s ease !important;
  }

  .nav-links a:hover svg {
    stroke: var(--led-cyan) !important; 
    filter: drop-shadow(0 0 5px rgba(0, 168, 204, 0.8)) !important; 
  }

  /* --- Hero Móvil --- */
  .hero { 
    padding: 40px 0 20px 0; 
  }
  .hero-flex { 
    flex-direction: column-reverse; 
    gap: 30px; 
    margin-top: 0; 
  }
  .hero-text { 
    text-align: center; 
  }
  .hero-text h1 { 
    font-size: 36px; 
  }
  .hero-btns { 
    justify-content: center; 
  }

  /* --- Métricas Móvil --- */
  .metrica-card:not(:last-child) {
    border-right: none !important;
    border-bottom: 1px solid rgba(22, 36, 61, 0.08) !important; 
  }

  /* --- Servicios y Productos Móvil --- */
  .services-section { 
    padding: 60px 0; 
  }
  .service-card { 
    padding: 30px 24px; 
  }
  .services-grid, 
  .products-grid { 
    grid-template-columns: 1fr; 
  }

  /* --- Testimonios Móvil --- */
  .slider-arrow { 
    display: none; 
  }
  .testimonial-card { 
    flex: 0 0 85vw; 
  }

  /* --- Formulario de Contacto Móvil --- */
  .contacto-container {
    flex-direction: column;
    gap: 35px;
  }
  .contacto-form-box {
    padding: 30px 20px;
    width: 100%;
  }

  /* --- Pre-Footer Informativo Móvil --- */
  .pre-footer-grid {
    flex-direction: column;
    gap: 30px;
  }
  .pre-footer-col {
    width: 100%;
  }
}

/* Adaptación intermedia para tabletas y ordenadores pequeños */
@media (max-width: 968px) {
  .hero-flex { 
    flex-direction: column-reverse; 
    text-align: center; 
    gap: 40px; 
  }
  .hero-image { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin: 0 auto 15px auto; 
  }
  .floating-img { 
    max-height: 260px; 
    max-width: 70%; 
    margin: 0 auto; 
  }
  .hero-text h1 { 
    font-size: 38px; 
  }
  .hero-btns { 
    justify-content: center; 
  }
}

/* Adaptación para smartphones de baja resolución */
@media (max-width: 640px) {
  .hero-btns { 
    flex-direction: column; 
    width: 100%; 
  }
  .hero-btns a { 
    text-align: center; 
    width: 100%; 
  }
}

/* ==========================================================================
   12. ESTRUCTURA DE ANIMACIONES GLOBALES (KEYFRAMES UNIFICADOS)
========================================================================== */

/* Animación Unificada de Desplazamiento Horizontal (Izquierda a Derecha) */
@keyframes slideLeftToRight {
  0% { 
    opacity: 0; 
    transform: translateX(-120px); 
  }
  100% { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

/* Animaciones del Preloader Tecnológico */
@keyframes growTech {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animación de Flote para las Ilustraciones del Hero */
@keyframes floatAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
/* ==========================================================================
   3. SECCIÓN DEL FONDO CELESTE CUADRICULADO (Contenido)
   ========================================================================== */
.grid-container {
    width: 100% !important;
    min-height: calc(100vh - 56px) !important; /* Descuenta los 56px exactos de tu header */
    padding: 60px 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    
    /* Fondo celeste temático */
    background-color: #3399cc !important; 
    
    /* Generación matemática de la cuadrícula fina blanca */
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 1px, transparent 1px) !important;
    
    /* Tamaño equilibrado de los cuadros */
    background-size: 45px 45px !important; 
}

/* Envoltorio interno para centrar el bloque de contenidos */
.seccion-servicios-contenedor {
    width: 100% !important;
    max-width: 1200px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* Contenedor que manda el Texto a la izquierda y el Logo a la derecha */
.title-container {
    display: flex !important;
    flex-direction: row-reverse !important; 
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important; 
    margin-bottom: 25px !important;
    width: 100% !important;
}

/* LOGO GRANDE: Escalado destacado en la derecha */
.title-logo {
    height: 80px !important; 
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* TÍTULO EN AZUL CORPORATIVO SÓLIDO */
.title {
    color: #003366 !important; 
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    text-align: left !important;
    text-shadow: none !important; 
}

.subtitle {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    max-width: 650px !important;
    margin: 0 auto 50px auto !important;
    line-height: 1.5 !important;
    text-align: center !important;
}



/* ==========================================
   DISEÑO RESPONSIVO FIJO
========================================== */
@media (max-width: 992px) {
    .cards-wrapper-servicios {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columnas en tablets */
    }
}

@media (max-width: 768px) {
    .title-container {
        flex-direction: column-reverse !important; 
        gap: 15px !important;
    }
    .title {
        font-size: 2rem !important;
        text-align: center !important; 
    }
    .title-logo {
        height: 60px !important; 
    }
}

@media (max-width: 650px) {
    .cards-wrapper-servicios {
        grid-template-columns: 1fr !important; /* 1 columna en celulares */
    }
}
