/* ==========================================
   VARIABLES GLOBALES Y CONFIGURACIÓN BASE
   ========================================== */
:root {
    /* Paleta de colores requerida */
    --primary-dark: #010c34;
    --secondary-dark: #111d54;
    --accent-blue: #38b6ff;
    
    /* Colores complementarios para equilibrio visual */
    --accent-hover: #1aa3f0;
    --text-light: #ffffff;
    --text-muted: #e0e6ed;
    --text-dark: #333333;
    --bg-light: #f8fafc;
    
    /* Tipografía y Transiciones */
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Botón Genérico */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================
   1. BARRA SUPERIOR (TOP BAR)
   ========================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 25px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info i {
    color: var(--accent-blue);
}

/* ==========================================
   2. NAVEGACIÓN PRINCIPAL (STICKY HEADER)
   ========================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: #010c34;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 12px;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover, 
.nav-link.active {
    color: #38b6ff;
}

/* Indicador de pestaña activa */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #38b6ff;
    transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #010c34; /* Icono visible sobre fondo blanco */
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================
   3. SECCIÓN PRINCIPAL (HERO SLIDER)
   ========================================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: calc(85vh - 80px);
    min-height: 480px;
    overflow: hidden;
    background-color:var(--primary-dark);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(1, 12, 52, 0.85) 0%, rgba(17, 29, 84, 0.6) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 650px;
    /*text-align: left;  FORCE ALINEACIÓN A LA IZQUIERDA */
    /*margin-left: 0;    ASEGURA QUE SE PEGUE AL BORDE IZQUIERDO DEL CONTENEDOR */
}

.slide-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light);
}

.slide-content p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* Controles manuales del Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 12, 52, 0.5);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--accent-blue);
    color: var(--primary-dark);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Indicadores Puntos */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.dot.active {
    background-color: var(--accent-blue);
    transform: scale(1.2);
}

/* ==========================================
   4. BARRA DE INDICADORES DE CONFIANZA
   ========================================== */
.trust-bar-section {
    background-color: var(--primary-dark);
    padding: 35px 0;
    border-top: 3px solid var(--accent-blue);
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.trust-icon {
    font-size: 2.2rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.trust-text h3 {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.trust-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* ==========================================
   RESPONSIVIDAD (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        justify-content: center;
    }
    
    .top-bar-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff; /* Desplegable móvil en fondo blanco */
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .main-nav.open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        gap: 10px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   5. SECCIÓN PRODUCTOS Y SERVICIOS
   ========================================== */
.products-section {
    position: relative;
    padding: 90px 0;
    /* Imagen Parallax Real */
    background-image: url('../Images/servicios_bg.jpg'); 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    z-index: 1;
}

/* Capa transparente muy clara sobre la foto para unificar contraste sin perder la imagen */
.products-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 244, 248, 0.60) 100%);
    z-index: 1;
}

.products-container {
    position: relative;
    z-index: 2;
}

/* Encabezado Centrado */
.section-header-service {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.section-header-service h2 {
    font-size: 2.2rem;
    color: #010c34;
    margin-top: 5px;
    margin-bottom: 12px;
}

.divider-center {
    width: 60px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 0 auto 18px auto;
}

.section-header-service p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.6;
}
/*Fin del encabezado*/


/* RETÍCULA DE FICHAS 1 columna */
.services-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 45px;
}

/* TARJETA DE SERVICIO EN GRIS CLARO */
.service-card-light {
    display: flex;
    align-items: stretch;
    background-color: #f8f9fa; /* Gris muy claro sobrio */
    border: 1px solid #e9ecef; /* Borde sutil gris */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

/* Invertir dirección (imagen a la derecha) para las tarjetas pares (2 y 4) */
.services-cards-grid .service-card-light:nth-child(even) {
    flex-direction: row-reverse;
}

/* Mantener comportamiento responsivo correcto en pantallas menores a 1100px */
@media (max-width: 1100px) {
    .services-cards-grid .service-card-light:nth-child(even) {
        flex-direction: column;
    }
}

.service-card-light:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue); /* #38b6ff al pasar el cursor */
    box-shadow: 0 12px 28px rgba(1, 12, 52, 0.12);
}

/* BLOQUE DE IMAGEN (50% de la tarjeta) */
.service-card-image {
    flex: 0 0 30%;
    width: 30%;
    position: relative;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.service-card-light:hover .service-card-image img {
    transform: scale(1.06);
}

/* BLOQUE DE TEXTO EN TARJETA (50% de la tarjeta) */
.service-card-content {
    flex: 0 0 70%;
    width: 70%;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff; /* Blanco puro para legibilidad total del texto */
}

.service-card-header-info {
    margin-bottom: 12px;
}

.service-card-header-info h3 {
    font-size: 1.35rem;
    color: var(--primary-dark); /* #010c34 */
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 5px;
}

.service-card-header-info h4 {
    font-size: 0.88rem;
    color: #1aa3f0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card-header-info h5 {
    font-size: 0.88rem;
    color: #111d54;
    font-weight: 600;
    /*text-transform: uppercase;*/
    letter-spacing: 0.5px;
}

.service-card-content p {
    color: #5a6578;
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA (PRODUCTOS Y SERVICIOS)
   ========================================== */

@media (max-width: 992px) {
    /* 1. Invertir la orientación a vertical y quitar flex alternado */
    .service-card-light,
    .services-cards-grid .service-card-light:nth-child(even) {
        flex-direction: column !important;
    }

    /* 2. Resetear el flexbox para que no fuercen proporciones del 40%/60% */
    .service-card-image, 
    .service-card-content {
        flex: none !important;
        width: 100% !important;
    }

    /* 3. Limitar altura del contenedor de la imagen */
    .service-card-image {
        height: 180px !important;
        max-height: 180px !important;
    }

    /* 4. Forzar que la imagen interna respete la altura del contenedor */
    .service-card-image img {
        height: 100% !important;
        max-height: 180px !important;
        object-fit: cover !important;
    }

    /* 5. Asegurar padding adecuado en la caja de texto */
    .service-card-content {
        padding: 20px 18px !important;
    }

    .service-card-content p {
        text-align: left !important;
        font-size: 0.90rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Reducción adicional para pantallas muy pequeñas (celulares de menor resolución) */
    .service-card-image {
        height: 150px !important;
        max-height: 150px !important;
    }

    .service-card-image img {
        height: 100% !important;
        max-height: 150px !important;
    }
}
/* ==========================================
   6. SECCIÓN SERVICIOS ESPECIALIZADOS
   ========================================== */
.specialized-services-section {
    background-color: var(--primary-dark); /* #010c34 para crear contraste con el bloque superior */
    padding: 80px 0;
    color: var(--text-light);
}

/* Encabezado Centrado */
.section-header-center {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.section-header-center h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-top: 5px;
    margin-bottom: 12px;
}

.divider-center {
    width: 60px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 0 auto 18px auto;
}

.section-header-center p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Rejilla de 4 Columnas con Líneas Divisorias */
.specialized-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(56, 182, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

/* Items individuales */
.specialized-item {
    padding: 40px 30px;
    text-align: center;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    position: relative;
    /* Línea divisoria derecha tenue */
    border-right: 1px solid rgba(56, 182, 255, 0.15);
}

/* Quita la línea al último elemento de la fila */
.specialized-item:last-child {
    border-right: none;
}

.specialized-icon {
    font-size: 2.4rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    transition: transform var(--transition-fast);
}

.specialized-item h3 {
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.specialized-item p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* EFECTO HOVER */
.specialized-item:hover {
    background-color: var(--secondary-dark); /* Tono #111d54 sutil al pasar el mouse */
    cursor: default;
}

.specialized-item:hover .specialized-icon {
    transform: translateY(-5px) scale(1.1);
}

/* ==========================================
   RESPONSIVIDAD SECCIÓN SERVICIOS ESPECIALIZADOS
   ========================================== */
@media (max-width: 992px) {
    .specialized-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Reajuste de bordes para rejilla 2x2 */
    .specialized-item {
        border-bottom: 1px solid rgba(56, 182, 255, 0.15);
    }
    
    .specialized-item:nth-child(2n) {
        border-right: none;
    }

    .specialized-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

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

    .specialized-item {
        border-right: none;
        border-bottom: 1px solid rgba(56, 182, 255, 0.15);
    }

    .specialized-item:last-child {
        border-bottom: none;
    }
}

/* ==========================================
   BLOQUE: EMISIÓN DE TÍTULOS ELECTRÓNICOS
   ========================================== */
.etitulos-container {
    margin-top: 50px;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, rgba(1, 12, 52, 0.9) 100%);
    border: 1px solid rgba(56, 182, 255, 0.25);
    border-radius: 10px;
    padding: 40px;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Columna de Texto e Información */
.etitulos-info h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.3;
}

.etitulos-info p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Estilos del Contador Numérico Animado */
.counter-box {
    display: inline-flex;
    flex-direction: column;
    background-color: rgba(1, 12, 52, 0.6);
    border-left: 4px solid var(--accent-blue);
    padding: 15px 25px;
    border-radius: 0 8px 8px 0;
}

.counter-number {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    font-family: monospace, var(--font-main);
}

.counter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* Columna de Imagen Enlazada con Efecto Visual */
.etitulos-media {
    display: flex;
    justify-content: center;
}

.etitulos-link {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(56, 182, 255, 0.2);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.etitulos-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

/* Badge de icono de enlace externo al pasar el mouse */
.etitulos-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-blue);
    color: var(--primary-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

/* Efectos Hover */
.etitulos-link:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.etitulos-link:hover .etitulos-img {
    transform: scale(1.03);
}

.etitulos-link:hover .etitulos-badge {
    transform: scale(1.1);
    background-color: var(--text-light);
}

/* Adaptación Responsiva */
@media (max-width: 992px) {
    .etitulos-container {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }
}

/* ==========================================
   7. SECCIÓN NOSOTROS - IMÁGENES TIPO ESCALERA
   ========================================== */
.about-section {
    background-color: #ffffff;
    padding: 0; /* Mantiene 0 padding superior/inferior en la sección */
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 5fr 7fr; /* 5 columnas para imágenes, 7 para texto */
    gap: 40px;
    align-items: center; /* Centra el flujo principal de contenido */
}

/* COLUMNA IZQUIERDA: 2 IMÁGENES PARALELAS EN ESCALERA */
.about-images-col {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas de igual ancho */
    gap: 20px;
    /* Define la altura de la columna incluyendo el desfase */
    height: 100%;
    min-height: 480px;
    align-items: stretch;
}

.about-img-box {
    width: 100%;
    /* Ambas imágenes tendrán exactamente el mismo alto */
    height: 85%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(1, 12, 52, 0.15);
    position: relative;
    border: 1px solid rgba(17, 29, 84, 0.08);
}

/* Imagen 1 (Izquierda): Pegada al borde superior */
.about-img-box.img-top {
    align-self: flex-start; /* Se pega al límite superior del módulo */
    border-radius: 0 0 10px 10px; /* Bordes planos arriba para tocar el borde */
}

/* Imagen 2 (Derecha): Pegada al borde inferior (Efecto Escalera) */
.about-img-box.img-bottom {
    align-self: flex-end; /* Se desplaza y se pega al límite inferior */
    border-radius: 10px 10px 0 0; /* Bordes planos abajo para tocar el borde */
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garantiza proporciones impecables */
    transition: transform var(--transition-fast);
}

.about-img-box:hover .about-img {
    transform: scale(1.05);
}

/* Ajuste para pantallas medianas / móviles */
@media (max-width: 992px) {
    .about-images-col {
        min-height: 380px;
    }
    
    .about-img-box {
        height: 90%;
    }
}

/* COLUMNA DERECHA: TEXTO INFORMATIVO */
.about-text-col {
    padding: 80px 0; /* El padding vertical de la sección se maneja en el texto */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-col h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-top: 5px;
    margin-bottom: 15px;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--secondary-dark);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.about-description {
    font-size: 0.96rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

/* Tarjetas Informativas Destacadas */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: var(--bg-light);
    padding: 18px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
}

.highlight-icon {
    font-size: 1.6rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.highlight-info h4 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.highlight-info p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Bloque Destacado de Filosofía/Cita */
.about-quote {
    background: linear-gradient(90deg, rgba(1, 12, 52, 0.04) 0%, rgba(56, 182, 255, 0.08) 100%);
    border-left: 4px solid var(--secondary-dark);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    position: relative;
    display: flex;
    gap: 15px;
    align-items: center;
}

.quote-icon {
    font-size: 1.8rem;
    color: var(--accent-blue);
    opacity: 0.6;
}

.about-quote p {
    font-size: 0.92rem;
    color: var(--primary-dark);
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA SECCIÓN NOSOTROS
   ========================================== */
@media (max-width: 992px) {
    .about-section {
        padding: 60px 0;
    }

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

    .about-images-col {
        gap: 20px;
    }

    .about-img-box {
        height: 220px;
    }

    .about-img-box.img-top,
    .about-img-box.img-bottom {
        border-radius: 8px; /* Restablece esquinas redondeadas en pantallas chicas */
    }

    .about-text-col {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .about-text-col h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================
   8. FRANJA DE MÉTRICAS / ESTADÍSTICAS
   ========================================== */
.stats-bar-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding: 45px 0; /* Altura estilizada/compacta para evitar sobrecarga */
    border-top: 1px solid rgba(56, 182, 255, 0.2);
    border-bottom: 3px solid var(--accent-blue);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Rejilla de 4 Columnas Simétricas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

/* Item individual de Métrica */
.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Divisor tenue vertical */
}

.stat-item:last-child {
    border-right: none; /* Elimina la línea divisoria en el último elemento */
}

/* Iconos de las Métricas */
.stat-icon {
    font-size: 2.3rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.stat-item:hover .stat-icon {
    transform: scale(1.15);
}

/* Formato del Texto y Número */
.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
    font-family: monospace, var(--font-main);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
    white-space: nowrap;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA FRANJA DE MÉTRICAS
   ========================================== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item {
        border-right: none;
        justify-content: flex-start;
        padding-left: 20px;
    }
}

@media (max-width: 576px) {
    .stats-bar-section {
        padding: 35px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-item {
        justify-content: center;
        padding-left: 0;
    }
}

/* ==========================================
   9. SECCIÓN MARCAS / CARRUSEL TICKER
   ========================================== */
.brands-section {
    background-color: #ffffff; /* Fondo claro para dar aire visual fresco */
    padding: 70px 0 80px 0;
    position: relative;
    overflow: hidden;
}

/* Encabezado Discreto */
.brands-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-dark);
    letter-spacing: 1.5px;
    margin-top: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Contenedor Externo del Carrusel (Mascara con Degradado en los Bordes) */
.brands-ticker-wrapper {
    width: 100%;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    /* Difuminado suave en los bordes izquierdo y derecho */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Pista Interna que se desplaza */
.brands-ticker-track {
    display: flex;
    align-items: center;
    gap: 30px; /* Separación uniforme entre cada logotipo */
    width: max-content; /* Permite que el ancho crezca con todas las imágenes */
    will-change: transform;
    animation: marquee 90s linear infinite; /* Movimiento suave a 60 FPS */
}

/* PAUSA EN HOVER: Detiene el movimiento completo al pasar el mouse */
.brands-ticker-wrapper:hover .brands-ticker-track {
    animation-play-state: paused;
}

/* Tarjeta / Marco de cada Logotipo */
.brand-item {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 6px;
    background-color: transparent;
    transition: all var(--transition-fast);
}

/* Tratamiento de Imagen: Escala de Grises por Defecto */
.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Convierte la imagen original a gris y le da ligera opacidad */
    filter: grayscale(100%) opacity(0.55);
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

/* ILUMINACIÓN EN HOVER: Revela el color original y resalta el logo */
.brand-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.12); /* Leve zoom focal */
    cursor: pointer;
}

/* Animación Marquee CSS pura */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Se desplaza exactamente la mitad (el bloque duplicado por JS) */
    }
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA MARCAS
   ========================================== */
@media (max-width: 768px) {
    .brands-section {
        padding: 50px 0 60px 0;
    }
    .brands-title {
        font-size: 0.95rem;
    }
    .brand-item {
        width: 100px;
        height: 100px;
    }
    .brands-ticker-track {
        gap: 30px;
        animation-duration: 35s; /* Un poco más rápido en móviles */
    }
}

/* ==========================================
   10. CONTACTO Y PIE DE PÁGINA (FOOTER)
   ========================================== */
.main-footer {
    background-color: var(--primary-dark); /* Color #010c34 para un cierre corporativo imponente */
    color: var(--text-light);
    padding-top: 70px;
    border-top: 3px solid var(--accent-blue);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr; /* 3 secciones iguales */
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* SECCIÓN 1: LOGO BLANCO Y SLOGAN */
.footer-logo {
    max-height: 50px;
    width: auto;
    display: block;
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-slogan {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
    max-width: 320px;
}

/* TÍTULOS DE SECCIONES 2 Y 3 */
.footer-title {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 8px;
    font-weight: 600;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent-blue);
}

/* SECCIÓN 2: CONTACTO Y HORARIO */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-icon {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-email-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-email-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.schedule-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.schedule-text strong {
    color: var(--text-light);
    margin-bottom: 2px;
}

/* SECCIÓN 3: MENÚ DE NAVEGACIÓN */
.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-arrow {
    font-size: 0.75rem;
    color: var(--accent-blue);
    transition: transform var(--transition-fast);
}

.footer-nav-list a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

.footer-nav-list a:hover .nav-arrow {
    transform: translateX(3px);
}

/* FOOTER INFERIOR (COPYRIGHT) */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom strong {
    color: var(--accent-blue);
    font-weight: 600;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA FOOTER
   ========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-footer {
        padding-top: 50px;
    }
}

