/* ==========================================================================
   VARIABLES GLOBALES Y PALETA CORPORATIVA
   ========================================================================== */
:root {
    --primary-color: #79a42b;       /* Verde Biotec Corporativo */
    --primary-dark: #224d28;        /* Verde Oscuro de Botones y Menú */
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --red-cta: #f91d2c;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET DE ESTILOS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   COMPONENTE: CONTENEDORES Y TIPOGRAFÍAS BASE
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding {
    padding: 80px 0 60px 0;
}
.grey-bg { background-color: var(--bg-light); }

.sub-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 5px;
}
.main-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}
.main-title.centered { text-align: center; }
.section-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* --- ESTRUCTURAS EN GRID --- */
.grid-layout {
    display: grid;
    gap: 25px;
}
.grid-3-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-products { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ==========================================================================
   TOP BAR (BARRA SUPERIOR)
   ========================================================================== */
.top-bar {
    background-color: #f1f3f5;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}
.container-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
}
.top-bar a {
    text-decoration: none;
    color: var(--text-muted);
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}
.top-bar a:hover {
    color: var(--primary-color);
}
.top-bar .fa-whatsapp {
    color: #25d366 !important;
    margin-right: 6px;
    font-size: 1.05rem;
}
.top-bar .fa-envelope {
    margin-right: 6px;
}

/* ==========================================================================
   MAIN HEADER (MENÚ PRINCIPAL)
   ========================================================================== */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}
.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    transition: var(--transition-smooth);
}
.logo-img {
    height: 100px;
    width: auto;
    display: block;
}
.nav-menu a {
    text-decoration: none;
    color: #444444;
    font-weight: 500;
    margin: 0 15px;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.search-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.search-btn:hover { color: var(--primary-color); }

.btn-contacto-header {
    background-color: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.btn-contacto-header:hover {
    background-color: var(--primary-color);
}

/* ==========================================================================
   VIDEO HERO PRINCIPAL (VISTA ESCRITORIO)
   ========================================================================== */
.video-hero-container {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 520px;
    overflow: visible;
    background-color: #0d231a;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.video-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(13,35,26,0.85) 0%, rgba(34,77,40,0.5) 100%);
    z-index: 1;
}
.video-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-content h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-top: -80px;
    animation: textUpFade 1s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* --- NUEVA SECCIÓN: CARRUSEL DE IMÁGENES (Oculto en Desktop por defecto) --- */
.mobile-carousel-container {
    display: none; 
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #0d231a;
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 35, 26, 0.65);
    z-index: 3;
}
.carousel-caption-box {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    z-index: 4;
}
.carousel-caption-box h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

/* --- PANEL ESTADÍSTICAS FLOTANTE (VISTA DESKTOP) --- */
.stats-floating-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20; 
    transform: translateY(50%);
}
.container-stats-flex {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 15px;
}
.stats-panel-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    padding: 20px 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px 10px;
}
.stat-icon-box {
    color: var(--primary-color);
    font-size: 1.4rem;
    background: rgba(121, 164, 43, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.btn-cta-advisor {
    background-color: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.btn-cta-advisor:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}
.arrow-inline {
    font-size: 0.75rem;
    margin-left: 4px;
}

@keyframes textUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TARJETAS Y BLOQUES DE CONTENIDO (PRODUCTOS, PROCESOS)
   ========================================================================== */
.card-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.07);
    border-color: var(--primary-color);
}
.card-icon {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.card-item h3 { font-size: 1.25rem; font-weight: 600; color: #2d3748; }

.step-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.step-icon {
    width: 65px;
    height: 65px;
    background: rgba(121,164,43,0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px auto;
}
.step-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); }

/* ==========================================================================
   SUCURSALES Y AREA COMERCIAL
   ========================================================================== */
.contact-commercial {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.contact-commercial h3 { font-size: 1.2rem; color: #444; }
.contact-commercial a { color: var(--primary-color); font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.comm-icon { font-size: 1.8rem; color: var(--primary-color); }

.branch-card {
    background: var(--white);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}
.branch-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.branch-card h3 { 
    font-size: 1rem; 
    margin-bottom: 12px; 
    color: var(--primary-dark); 
    font-weight: 600;
}
/* Contenedor adaptativo para el iframe */
.map-container {
    width: 100%;
    height: 200px; /* Altura ideal y cómoda para móviles y desktop */
    border-radius: 6px;
    overflow: hidden; /* Corta las esquinas del mapa para que queden redondeadas */
    border: 1px solid #edf2f7;
}

/* Hace que el mapa ocupe todo el espacio de su contenedor */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   BANNER DE ASESORAMIENTO GRATUITO
   ========================================================================== */
.banner-asesoramiento {
    background: linear-gradient(to right, rgba(34, 77, 40, 0.9), rgba(121, 164, 43, 0.75)), 
                url('laboratorio fondo.jpeg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.container-banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.banner-info-col {
    flex: 1;
    max-width: 650px;
}
.banner-tagline {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}
.banner-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}
.banner-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
}
.btn-formulario-cta {
    background-color: #f91d2c;
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-formulario-cta:hover {
    background-color: #d61421;
    transform: translateY(-1px);
}
.banner-metrics-card {
    background-color: var(--white);
    padding: 40px 60px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    text-align: center;
}
.metric-block { padding: 15px 0; }
.metric-big-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #4b831c;
    line-height: 1;
    margin-bottom: 4px;
}
.metric-subtext { font-size: 1rem; color: #444444; font-weight: 600; }
.metric-divider { width: 80%; height: 1px; background-color: #e2e8f0; }

/* ==========================================================================
   BANNER DE CONSULTA COMERCIAL
   ========================================================================== */
.banner-consulta-comercial {
    background: linear-gradient(135deg, rgba(34, 77, 40, 0.92) 0%, rgba(140, 185, 49, 0.88) 100%), 
                url('fondo-consulta.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.contact-channel-block {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.contact-channel-icon {
    font-size: 2rem;
    color: #4b831c;
    margin-bottom: 8px;
}
.contact-channel-label {
    font-size: 0.9rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.contact-channel-link {
    font-size: 1.25rem;
    color: #224d28;
    font-weight: 700;
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.2s ease;
}
.contact-channel-link:hover { color: #8cb931; }

.btn-whatsapp-direct {
    background-color: #25d366;
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    justify-content: center;
}
.btn-whatsapp-direct:hover {
    background-color: #1ebd59;
    transform: translateY(-1px);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP GLOBAL
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px; 
    background-color: #25d366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition-smooth);
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #20ba5a; }


/* ==========================================================================
   MEDIA QUERIES (Alineación Responsiva, Carrusel Móvil y Grillas Compactas)
   ========================================================================== */

@media (max-width: 992px) {
    /* INTERRUPTOR PRINCIPAL: Ocultar el video de escritorio */
    .video-hero-container {
        display: none !important;
    }

    /* INTERRUPTOR PRINCIPAL: Mostrar el carrusel de imágenes */
    .mobile-carousel-container {
        display: block;
    }

    /* Transformación del Contenedor del Panel a Flujo Estático */
    .stats-floating-wrapper {
        position: relative;
        transform: none;
        padding: 20px 0;
        background-color: var(--bg-light);
        width: 100%;
    }
    .container-stats-flex {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    /* Panel de estadísticas siempre horizontal */
    .stats-panel-card {
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 12px 10px;
        gap: 8px;
        width: 100%;
    }
    .stat-item {
        width: auto;
        flex: 1;
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        gap: 4px;
        text-align: center;
        padding: 4px 2px;
    }
    .stat-icon-box {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .stat-number {
        font-size: 1.1rem;
    }
    .stat-label {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Botón estático inferior al 100% */
    .btn-cta-advisor {
        width: 100%;
        padding: 15px;
        border-radius: 8px;
        justify-content: center;
    }
}

@media (max-width: 868px) {
    .container-banner-flex {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }
    .banner-info-col { max-width: 100%; }
    .banner-metrics-card {
        width: 100%;
        min-width: unset;
        padding: 30px;
    }
    .banner-title { font-size: 2.1rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    
    .container-top {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 10px;
    }
    .top-bar a {
        margin-right: 0;
        margin-bottom: 0;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .main-title { font-size: 1.8rem; }

    .whatsapp-float {
        right: 20px;
        bottom: 20px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    /* --- REDISEÑO ESTÉTICO DE PRODUCTOS (Grilla de 2 columnas) --- */
    .grid-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 10px;
    }
    .card-item {
        padding: 20px 15px;
        align-items: center;
        text-align: center;
        min-height: 160px;
        justify-content: center;
    }
    .card-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    .card-item h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    /* --- SINCRO Y REDISEÑO ESTÉTICO DE PROCESO DE TRABAJO (.grid-4-col a 2 columnas) --- */
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 10px;
    }
    .step-card {
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 150px;
    }
    .step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin: 0 auto 12px auto;
    }
    .step-card h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
}

/* ==========================================================================
   SECCIÓN: FOOTER PREMIUM (NUEVA LÍNEA GRÁFICA SUAVE)
   ========================================================================== */
.main-footer-premium {
    background-color: #fafbfa; /* Fondo off-white muy limpio */
    color: var(--text-dark);
    padding: 80px 0 0 0; /* Más aire arriba */
    font-size: 0.95rem;
    border-top: 1px solid #edf2f7;
}

.container-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* Desproporción elegante para que respire */
    gap: 50px;
    align-items: flex-start;
}

/* Títulos de columnas minimalistas */
.footer-premium-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 25px;
    position: relative;
}
.footer-premium-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 24px;
    height: 3px;
    background-color: var(--primary-color); /* Línea verde característica */
    border-radius: 2px;
}

.footer-premium-text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Redes Sociales con estilo de píldora redondeada */
.footer-premium-socials {
    display: flex;
    gap: 12px;
}
.footer-premium-socials a {
    background-color: var(--white);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
}
.footer-premium-socials a:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(121, 164, 43, 0.2);
}

/* Menú de Navegación Estilizado */
.footer-premium-links {
    list-style: none;
    padding: 0;
}
.footer-premium-links li {
    margin-bottom: 12px;
}
.footer-premium-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-block;
}
.footer-premium-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Bloques de Contacto Avanzados (Flex Layout) */
.footer-premium-contact {
    list-style: none;
    padding: 0;
}
.footer-premium-contact li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

/* Contenedor circular sutil para los iconos */
.contact-icon-wrapper {
    background-color: rgba(121, 164, 43, 0.08); /* Fondo verde traslúcido suave */
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.contact-icon-wrapper.whatsapp-icon {
    background-color: rgba(37, 211, 102, 0.08);
    color: #25d366;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
}
.contact-label {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}
.contact-info-text a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.contact-info-text a:hover {
    color: var(--primary-color);
}
.link-ubicaciones {
    font-size: 0.95rem;
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

/* Barra inferior de Copyright */
.footer-bottom-bar {
    background-color: var(--white);
    border-top: 1px solid #edf2f7;
    padding: 24px 0;
    text-align: center;
    margin-top: 60px;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA (FOOTER PREMIUM)
   ========================================================================== */
@media (max-width: 992px) {
    .container-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-premium-col:first-child {
        grid-column: span 2; /* Acerca de nosotros ocupa todo el ancho arriba */
    }
}

@media (max-width: 768px) {
    .container-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 20px;
    }
    .footer-premium-col:first-child {
        grid-column: span 1;
    }
    .main-footer-premium {
        padding: 60px 0 0 0;
    }
}

/* ==========================================================================
   PÁGINA INTERNA: NOSOTROS (PREMIUM)
   ========================================================================== */

/* Contenedor Base de la etiqueta <main> */
.grey-bg {
    background-color: #f7f9f7;
    padding-bottom: 60px;
}

/* Banner superior corto (Hero Interno) */
.internal-page-hero {
    background: linear-gradient(135deg, #1b3d22 30%, #34613d 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 4px solid #8cc63f;
}

.internal-page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Le da relieve al título */
}

.internal-page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grilla de la sección principal (Layout 2 columnas) */
.grid-nosotros-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.nosotros-content-col {
    display: flex;
    flex-direction: column;
}

.section-desc-premium {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
}

/* Tarjetas de Pilares (Propósito y Compromiso) */
.nosotros-pillars-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pillar-item-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pillar-icon-box {
    background-color: rgba(74, 124, 89, 0.1); /* Fondo suave con tu tono verde */
    color: #1b3d22;
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pillar-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #1b3d22;
}

.pillar-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Columna de la Imagen Derecha con Medallón flotante */
.nosotros-visual-col {
    position: relative;
}

.image-wrapper-premium {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.img-nosotros-main {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Medallón "28 Años de Excelencia" */
.visual-badge-experience {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #1b3d22;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.visual-badge-experience .badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.visual-badge-experience .badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ajustes Estilos Menú Activo */
.nav-menu a.active {
    color: #1b3d22;
    font-weight: 700;
}

/* Responsive para Pantallas Pequeñas (Móviles y Tablets) */
@media (max-width: 992px) {
    .grid-nosotros-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nosotros-visual-col {
        order: -1; /* Sube la imagen arriba del texto en móviles */
    }
    
    .internal-page-hero h1 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   SECCIÓN DE VALORES ESPECÍFICA
   ========================================================================== */

/* Contenedor flexible para alinear las tarjetas */
.valores-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center; /* Centra las tarjetas de la segunda fila */
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
}

/* Tarjeta de valor individual */
.valor-card-premium {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    flex: 1 1 calc(33.333% - 25px); /* Ocupa 3 columnas en pantallas grandes */
    min-width: 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los íconos y textos internamente */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto Hover */
.valor-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Caja contenedora del ícono */
.valor-icon-box {
    color: #1b3d22; /* Tu verde principal */
    font-size: 2.2rem;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texto del Valor */
.valor-card-premium h3 {
    font-size: 1.25rem;
    color: #333333;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Ajuste responsive para tablets y móviles */
@media (max-width: 768px) {
    .valor-card-premium {
        flex: 1 1 calc(50% - 25px); /* 2 columnas en tablets */
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .valor-card-premium {
        flex: 1 1 100%; /* 1 columna en celulares */
    }
}