/*
Theme Name: Garabito Custom Theme
Author: Brad-Teah
Description: Tema personalizado para el proyecto Garabito.
Version: 1.1
*/

/* =========================================
   0. DECLARACIÓN DE FUENTES (AVENIR)
   ========================================= */

@font-face {
    font-family: 'Avenir';
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Heavy.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* --- APLICACIÓN GLOBAL --- */
html, body {
    font-family: 'Avenir', sans-serif !important;
}

/* Títulos principales (Avenir Heavy) */
h1, h2, h3, h4, .news-content h3 {
    font-family: 'Avenir', sans-serif;
    font-weight: 800;
}

/* Párrafos y textos de lectura (Avenir Book) */
p, li, span, a, .news-content p {
    font-family: 'Avenir', sans-serif;
    font-weight: 400;
}

/* Botones y acentos (Avenir Black para que resalten) */
.btn-outline-white, .news-btn, .division-btn, .btn-whatsapp-outline {
    font-family: 'Avenir', sans-serif;
    font-weight: 900;
    text-transform: uppercase; /* Opcional, para que se vean más como el diseño */
    letter-spacing: 0.5px;
}
/* 1. RESET Y ESTRUCTURA GENERAL */
* { box-sizing: border-box !important; }

html, body { 
    margin: 0; 
    padding: 0; 
    font-family: sans-serif; 
    max-width: 100vw; 
    overflow-x: hidden; 
    position: relative;
}

body {
    padding-top: 65px;
}


/* =========================================
   1. ESTRUCTURA GENERAL (Confirmamos z-index)
   ========================================= */
.site-header {
    background-color: #f32735; /* Rojo Garabito */
    width: 100%;
    border-bottom: none; 
    
    height: 65px; /* Altura fija al header */
    position: fixed; 
    top:0;
    z-index: 999; /* Super importante para que la sombra tape la foto del Hero */
    overflow: visible; /* ¡VITAL! Permite que el logo se salga */
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%; 
    height: 100%;
    padding: 0 0 0 40px; 
    box-sizing: border-box;
    position: relative; /* Necesario para el logo absoluto */
}

/* 2. LOGOS */
.logo img {
    height: 50px; 
    width: auto;
    display: block;
}
/* =========================================
   3. MENÚ PRINCIPAL (MÁS PEQUEÑO Y COMPACTO)
   ========================================= */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center; 
    padding: 0 20px;
    padding-right: 150px !important; /* El colchón para el logo */
}

.nav-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 50px; /* Bajamos el espacio entre palabras (antes era 35px) */
}

.nav-list li { list-style: none !important; }

/* Letra más pequeña (Avenir Book) */
.nav-list li a {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 400 !important; 
    font-size: 14x !important;  /* Bajamos de 18px a 15px */
    letter-spacing: 0.01em !important; /* Ajustamos un pelín el espaciado para que no se vea tan estirado */
    color: white !important;
    text-decoration: none !important;
    text-transform: uppercase;
    padding-bottom: 6px; /* Reducimos un poquito el espacio de la rayita */
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease; 
}

/* Efecto hover mágico (sin brincos) */
.nav-list li a:hover,
.nav-list li.current-menu-item > a {
    border-bottom: 2px solid white;
    -webkit-text-stroke: 0.6px white; 
    text-shadow: 0.2px 0 0 white, -0.2px 0 0 white; 
}

/* Limpieza responsive */
@media (max-width: 992px) {
    .main-navigation {
        padding-right: 0 !important;
    }
}

/* =========================================
   4. ZONA DERECHA Y LOGO ESPECIAL 69 AÑOS
   ========================================= */
.header-right-zone {
    display: flex;
    align-items: center;
    height: 100%; 
    position: relative; 
    padding-right: 40px; 
}

/* --- MAGIA: ESTE ES EL ELEMENTO QUE CUELGA EN DESKTOP --- */
.logo-69 {
    display: block;
    position: absolute;
    top: 0;
    right: 110px; 
    height: 80px;
    width: auto;
    object-fit: contain;
    padding: 18px;
    background: #f32735;
    border-radius: 0 0 20px 20px;
    box-shadow: -5px 10px 20px rgba(0,0,0,0.25);
    z-index: 10;
    transition: all 0.3s ease;
}

/* =========================================
   5. SELECTOR DE IDIOMAS
   ========================================= */
.custom-lang-switcher {
    transform: translateY(-8px); /* Centra visualmente en desktop */
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 15px;
    position: relative;
    cursor: pointer;
    z-index: 5;
    margin-left: 30px;
}

.globe-icon { margin-right: 5px; font-size: 18px; }
.arrow-icon { margin-left: 5px; font-size: 12px; }

.lang-dropdown {
    list-style: none !important;
    margin: 0;
    padding: 0;
    position: relative;
}

.lang-dropdown li {
    display: none; 
    text-transform: uppercase;
    list-style: none !important;
}

.lang-dropdown li.current-lang { display: block; }
.lang-dropdown li a { color: white !important; text-decoration: none !important; }

.custom-lang-switcher:hover .lang-dropdown {
    position: absolute;
    top: 100%;
    left: -15px;
    background-color: #c4000b;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 50px;
}

.custom-lang-switcher:hover .lang-dropdown li {
    display: block;
    margin-bottom: 10px;
}

.custom-lang-switcher:hover .lang-dropdown li:last-child { margin-bottom: 0; }

/* =========================================
   6. ESTILOS RESPONSIVE HEADER (ALINEACIÓN PERFECTA)
   ========================================= */
.mobile-menu-toggle { display: none; }

@media (max-width: 992px) {
    /* Permitimos que el header crezca cuando el menú se abra */
    .site-header {
        height: auto !important;
        min-height: 65px;
    }

    .header-flex {
        flex-wrap: wrap; 
        padding: 0 20px !important; /* Quitamos padding vertical que desalineaba */
        min-height: 65px;
    }

    /* 🌟 MAGIA DE ALINEACIÓN: Forzamos a todos los elementos a medir 65px de alto y centrarse solos */
    .logo, .header-right-zone, .mobile-menu-toggle {
        display: flex;
        align-items: center;
        height: 65px; 
        margin: 0;
    }

    .logo { margin-right: auto; } /* Empuja la zona derecha hacia el final */

    .header-right-zone {
        padding: 0;
        background: none; 
        box-shadow: none; 
        border-radius: 0;
    }

    .logo-69 {
        height: 28px !important; 
        margin-right: 15px !important;
        transform: none !important; 
        position: static !important;
        padding: 0 !important;
        background: none !important;
        box-shadow: none !important;
    }

    .custom-lang-switcher { 
        transform: none !important; 
        margin: 0 !important;
    }

    .mobile-menu-toggle {
        flex-direction: column;
        justify-content: center; /* Centra las 3 rayitas de la hamburguesa */
        gap: 5px;
        cursor: pointer;
        margin-left: 20px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
    }

    /* Animación de cruz */
    .mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* Menú desplegable */
    .main-navigation {
        display: none;
        width: 100%;
        order: 3; 
        padding: 0 0 15px 0;
    }

    .main-navigation.active { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        background-color: #c4000b; 
        padding: 20px;
        border-radius: 5px;
    }
}

@media (max-width: 600px) {
    /* Balanceamos visualmente el logo Garabito con el logo 69 */
    .logo img { height: 26px !important; } 
    
    .logo-69 { 
        height: 22px !important;
        margin-right: 12px !important;
    }
    
    .mobile-menu-toggle {
        margin-left: 12px;
    }
}

/* =========================================
   6. SECCIÓN HERO (TAMAÑOS AJUSTADOS Y ELEGANTES)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 85vh; 
    background-image: url('/wp-content/uploads/2026/03/HOME-FOTO-1.png'); 
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat%
    display: flex;
    align-items: center; 
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 2;
    transform: translateY(-80px);
}

/* --- TÍTULO PRINCIPAL --- */
.hero-container h1, 
.hero-container .wp-block-heading {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 900 !important; 
    font-size: 70px !important;
    line-height: 70px !important;
    letter-spacing: 0 !important; 
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
    text-transform: uppercase !important;
}

.hero-container hr,
.hero-container .wp-block-separator {
    display: none !important;
}

/* --- PÁRRAFO DESCRIPTIVO --- */
.hero-container p:first-of-type,
.hero-container .wp-block-paragraph:first-of-type {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 400 !important; 
    font-size: 27px !important;
    line-height: 37px !important;
    letter-spacing: 0 !important; 
    color: #ffffff !important;
    position: relative;
    padding-left: 110px !important;
    max-width: 600px !important; 
    margin: 0 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important; 
}

/* Rayita decorativa */
.hero-container p:first-of-type::before,
.hero-container .wp-block-paragraph:first-of-type::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 90px;
    height: 4px; 
    background-color: #ffffff;
}

/* --- HERO RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-container h1, 
    .hero-container .wp-block-heading { 
        font-size: 50px !important; 
        line-height: 50px !important;
    }
    .hero-container p:first-of-type,
    .hero-container .wp-block-paragraph:first-of-type {
        font-size: 22px !important;
        line-height: 32px !important;
        padding-left: 90px !important;
    }
    .hero-container p:first-of-type::before,
    .hero-container .wp-block-paragraph:first-of-type::before {
        width: 70px;
        top: 11px;
    }
}

@media (max-width: 768px) {
    .hero-section { 
        background-image: var(--hero-mobile) !important;
        /* TRUCO ANTI-RECORTE MÓVIL */
        height: auto !important; 
        min-height: auto !important;
        /* Usamos aspect-ratio para que la caja crezca exactamente igual que la foto */
        aspect-ratio: 3 / 4; /* Si la ves muy corta, cámbialo a 2/3 o 9/16 */
        background-size: 100% 100% !important; 
        background-position: top center !important;
    }

    .hero-container { 
        padding: 0 20px !important; 
        transform: translateY(-20px); /* Ajustamos para que en móvil no suba tanto */
    }
    
    .hero-container h1, 
    .hero-container .wp-block-heading { 
        font-size: 35px !important; 
        line-height: 38px !important;
    }
    
    .hero-container p:first-of-type, 
    .hero-container .wp-block-paragraph:first-of-type { 
        font-size: 16px !important; 
        line-height: 24px !important;
        padding-left: 70px !important; 
    }

    .hero-container p:first-of-type::before,
    .hero-container .wp-block-paragraph:first-of-type::before {
        width: 50px; 
        top: 10px;
    }
}

/* =========================================
   7 Y 8. SECCIONES ABOUT UNIFICADAS (TEXTO EXACTO)
   ========================================= */
.about-section {
    background-image: url('https://www.garabitocomercial.com/wp-content/uploads/2026/03/FONDO.png');
    background-size: 100% 100%; 
    background-position: center; 
    background-repeat: no-repeat;
    padding: 60px 0; 
    width: 100%;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px; 
    z-index: 2;
    position: relative;
}




.about-video { flex: 1.5; width: 100%; max-width: 650px; }


.about-video video, .about-video iframe {
    width: 100%; border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
    display: block; background-color: #000;
}
.about-video iframe { aspect-ratio: 16 / 9; border: none; }

.video-placeholder, .video-square-placeholder {
    width: 100%; background-color: #1a1a1a; border-radius: 20px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.video-square-placeholder { aspect-ratio: 16 / 9; }
.video-placeholder { aspect-ratio: 16 / 9; color: white; font-size: 50px; }

.about-text { flex: 1.3; } 

/* --- TÍTULO OBLIGADO A 1 RENGLÓN --- */
.about-text h2 {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 900 !important; 
    font-size: 38px !important;  /* Tamaño ajustado */
    white-space: nowrap !important; /* Fuerza a que no baje de línea */
    color: #5b5b5b !important;   
    line-height: 1.1 !important; 
    margin-bottom: 25px;
}

/* --- PÁRRAFOS MÁS PEQUEÑOS (17px) --- */
.about-description p {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 400 !important; 
    font-size: 17px !important;  
    color: #808183 !important;   
    line-height: 1.6 !important; 
    margin-bottom: 25px;
    width: 100%;
}

/* Permitimos que los saltos de línea manuales funcionen en PC */
.about-description p br { display: block !important; }

.about-description strong, .about-description b {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 900 !important; 
    color: #808183 !important; 
}

/* --- RESPONSIVE ABOUT --- */
@media (max-width: 992px) {
    .about-section { padding: 40px 0;background-image: none !important; }
    .about-container { flex-direction: column; gap: 40px; padding: 0 20px; }
    .about-video { max-width: 100%; }
    
    /* En tablet/móvil quitamos la regla de 1 solo renglón y los saltos manuales */
    .about-text h2 { font-size: 32px !important; white-space: normal !important; }
    .about-description p { font-size: 16px !important; }
    .about-description p br { display: none !important; }
}

@media (max-width: 768px) {
    .about-text h2 { font-size: 28px !important; }
}

/* =========================================
   9. SECCIÓN ESTADÍSTICAS (TIPOGRAFÍA AVENIR SIN CAMBIAR TAMAÑOS)
   ========================================= */
.stats-section {
    background-image: url('/wp-content/uploads/2026/03/FONDO-DATOS.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 70px 0;
    color: #ffffff;
    width: 100%;
}

.stats-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 135px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}


.stats-col {
    display: flex;
    flex-direction: column;
    gap: 80px; 
    width: 50%;
}

.columna-desfasada { margin-top: 100px; }
.stat-item { display: flex; align-items: center; }
.justify-end { justify-content: flex-end; }

/* 1. ICONOS */
.stat-icon { 
    width: 58px; 
    height: 58px; 
    object-fit: contain; 
}

.stat-h-line {
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5); 
    position: relative;
    margin: 0 20px;
}

.dot-right::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; background-color: #ffffff; border-radius: 50%; }
.dot-left::before { content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; background-color: #ffffff; border-radius: 50%; }
.stat-v-line { width: 1px; height: 55px; background-color: rgba(255, 255, 255, 0.5); margin: 0 25px; }

/* 2. NÚMEROS: Inyectamos Avenir Black, mantenemos tus 54px */
.stat-title {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 900 !important; /* Avenir Black */
    font-size: 54px; /* INTOCABLE */
    margin: 0;
    white-space: nowrap;
    color: #ffffff !important;
}

.title-69 { display: flex; align-items: baseline; }
.title-69 span { 
    font-family: 'Avenir', sans-serif !important;
    font-weight: 900 !important;
    font-size: 20px; 
    margin-left: 6px; 
}

/* 3. TEXTOS DESCRIPTIVOS: Inyectamos Avenir Book, mantenemos tus 18px */
.stat-text { 
    font-family: 'Avenir', sans-serif !important;
    font-weight: 400 !important; /* Avenir Book (Emulando el Medium) */
    font-size: 22px; /* INTOCABLE */
    line-height: 1.1 !important; /* Interlineado pegado como pide el diseño */
    margin: 0; 
    color: #ffffff !important; 
}

.text-right { text-align: right; }

/* 4. IMAGEN DE "69 AÑOS" */
.img-69-anos { 
    height: 54px; 
    width: auto; 
    object-fit: contain; 
}

/* --- Responsive (Intocable) --- */
@media (max-width: 1100px) {
    .stat-h-line { width: 30px; margin: 0 10px; }
    .stat-v-line { margin: 0 15px; }
    .stat-title { font-size: 45px; }
    .stat-icon { width: 65px; height: 65px; }
    .img-69-anos { height: 45px; }
    .stat-text { font-size: 16px; }
}

@media (max-width: 992px) {
    .stats-container { flex-direction: column; gap: 60px; padding: 0 20px; }
    .stats-col { width: 100%; gap: 50px; }
    .columna-desfasada { margin-top: 0; }
    .stat-item, .stat-item.justify-end { flex-direction: column; text-align: center; gap: 15px; }
    .text-right { text-align: center; }
    .stat-h-line, .stat-v-line { display: none; }
    .stat-item img.stat-icon { order: 1; }
    .stat-item .stat-title, .stat-item .img-69-anos { order: 2; }
    .stat-item .stat-text { order: 3; }
}

/* --- ANIMACIÓN --- */
.animate-reveal {
    opacity: 0;
    clip-path: inset(0 100% 0 0); 
    transform: translateX(-20px);
    transition: all 2.5s cubic-bezier(0.25, 1, 0.5, 1); 
}

.animate-reveal.is-visible {
    opacity: 1;
    clip-path: inset(0 0 0 0); 
    transform: translateX(0);
}

/* =========================================
   10. SECCIÓN TRES DIVISIONES (ACTUALIZADA)
   ========================================= */
.divisions-section {
    background-image: url('/wp-content/uploads/2026/05/back.png');
    background-size: 100% 100%; 
    background-position: center; 
    background-repeat: no-repeat;
    padding: 100px 0;
    width: 100%;
}

.divisions-container { max-width: 1450px; margin: 0 auto; padding: 0 80px; }
.divisions-header { margin-bottom: 60px; text-align: center; }

.divisions-header h2 { 
    font-family: 'Avenir', sans-serif !important;
    font-weight: 400 !important; 
    font-size: 37px !important; 
    color: #221f1f !important; 
    line-height: 1.1 !important; 
    margin: 0; 
}
.divisions-header h2 strong { font-weight: 900 !important; }

.divisions-grid { display: flex; justify-content: space-between; gap: 30px; }

.division-card {
    flex: 1; 
    background-color: transparent; 
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s ease; 
    cursor: pointer; 
    display: flex;
    flex-direction: column;
}

.card-image-wrapper { width: 100%; aspect-ratio: 1 / 1; border-radius: 15px; overflow: hidden; margin-bottom: 25px; }
.division-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.4s ease, transform 0.4s ease; }

.card-content { 
    text-align: left; 
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.card-content h3 { 
    font-family: 'Avenir', sans-serif !important;
    font-weight: 900 !important; 
    font-size: 32px !important; 
    color: #221f1f !important; 
    line-height: 1.1 !important; 
    margin: 0 0 15px 0; 
}

.card-content p { 
    font-family: 'Avenir', sans-serif !important;
    font-weight: 400 !important; 
    font-size: 21px !important; 
    color: #808183 !important; 
    line-height: 1.4 !important; 
    margin: 0 0 25px 0; 
}

.division-btn {
    font-family: 'Avenir', sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #808183 !important;
    display: inline-flex;
    align-items: center;
    background-color: transparent; 
    border: 1px solid #a0a0a0; 
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 13px; 
    transition: all 0.3s ease;
    margin-top: auto; 
    align-self: flex-start;
}

.division-btn .arrow-icon { margin-left: 8px; font-size: 18px; }

/* Efectos Hover Desktop */
.division-card:hover { background-color: #ffffff; box-shadow: 0 15px 40px rgba(0,0,0,0.08); transform: translateY(-5px); }
.division-card:hover .division-img { filter: grayscale(0%); transform: scale(1.05); }
.division-card:hover .division-btn { background-color: #e30613 !important; border-color: #e30613 !important; color: #ffffff !important; }

/* =========================================
   RESPONSIVE DIVISIONES (MOBILE & TABLET)
   ========================================= */
@media (max-width: 992px) {
    .divisions-section { 
        background-image: none !important; /* Quitamos fondo */
        background-color: #f9f9f9; /* Un gris casi blanco para que resalten las cards blancas */
        padding: 60px 0; 
    }

    .divisions-container { 
        padding: 0 25px; /* Respiro lateral para que no peguen al borde de la pantalla */
    }

    .divisions-grid { 
        flex-direction: column; 
        gap: 35px; 
        align-items: center; /* Centramos las cards */
    }

    .division-card { 
        background-color: #ffffff; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
        padding: 25px; /* Más padding interno para que se vea más "gruesa" */
        width: 100%;
        max-width: 500px; /* Limitamos el ancho para que no se estiren demasiado en tablets */
    }

    .division-img { filter: grayscale(0%); }

    .divisions-header h2 { font-size: 34px !important; }
    .card-content h3 { font-size: 28px !important; }
    .card-content p { font-size: 18px !important; }

    .division-btn { 
        background-color: #e30613 !important; 
        border-color: #e30613 !important; 
        color: #ffffff !important; 
        width: 100%; /* Botón ancho completo en mobile queda muy bien */
        justify-content: center;
    }
}
/* =========================================
   11. SECCIÓN CLIENTES (LOGOS MÁS GRANDES)
   ========================================= */
.clients-section { background-color: #ffffff; padding: 80px 0 120px 0; width: 100%; }
.clients-container { max-width: 1250px; margin: 0 auto; padding: 0 40px; }
.clients-header { text-align: center; margin-bottom: 30px; }
.clients-header h2 { font-size: 38px; color: #221f1f; font-weight: 400; margin: 0; }
.clients-header h2 strong { font-weight: 900; }
.clients-box { background-color: #ffffff; border-radius: 20px; padding: 60px; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }

.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0px 40px; align-items: center; justify-items: center; }

.client-logo-wrapper { width: 100%; height: 160px; display: flex; justify-content: center; align-items: center; }

.client-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: none !important; opacity: 1 !important; transition: transform 0.3s ease; }

.client-img:hover { transform: scale(1.15); }

/* Responsive */
@media (max-width: 1024px) { 
    .clients-grid { grid-template-columns: repeat(4, 1fr); } 
}
@media (max-width: 768px) {
    .clients-box { padding: 40px 20px; }
    .clients-header h2 { font-size: 40px; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
    .client-logo-wrapper { height: 120px; }
}
@media (max-width: 480px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .client-img { filter: grayscale(0%); opacity: 1; }
    .client-logo-wrapper { height: 100px; } 
}

/* =========================================
   12. SECCIÓN TESTIMONIO (AJUSTADA PARA ALEJAR LA FOTO)
   ========================================= */
.testimonial-section {
    background-color: #e30613; 
    background-image: url('/wp-content/uploads/2026/03/FONDO-ROJO.png'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* REDUCIMOS EL PADDING: Antes era 100px, ahora es 60px. 
       Esto hace que la caja sea menos alta y la foto se aleje. */
    padding: 60px 0; 
    width: 100%;
}

.testimonial-container { max-width: 1050px; margin: 0 auto; padding: 0 40px; }

/* CITA */
.testimonial-quote { 
    font-family: 'Avenir', sans-serif !important; 
    font-size: 28px; 
    color: #ffffff !important; 
    font-style: italic; 
    font-weight: 400 !important; 
    line-height: 1.3; 
    text-align: center; 
    margin: 0 0 30px 0; /* Un poco menos de margen aquí también */
}

.testimonial-quote strong { 
    font-family: 'Avenir', sans-serif !important;
    font-weight: 900 !important; 
    color: #ffffff !important; 
}

.testimonial-author { text-align: right; }

.testimonial-author h4 { 
    font-family: 'Avenir', sans-serif !important; 
    font-size: 32px; 
    color: #ffffff !important; 
    font-weight: 400 !important; 
    margin: 0 0 5px 0; 
}

.testimonial-author p { 
    font-family: 'Avenir', sans-serif !important; 
    font-size: 19px; 
    color: #ffffff !important; 
    font-weight: 400 !important; 
    margin: 0; 
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) { 
    .testimonial-quote { font-size: 24px; } 
    .testimonial-author h4 { font-size: 26px; }
}

@media (max-width: 768px) {
    /* En móvil también reducimos el padding para mantener proporción */
    .testimonial-section { padding: 50px 0; } 
    .testimonial-container { padding: 0 20px; }
    .testimonial-quote { font-size: 20px; text-align: left; }
    .testimonial-author { text-align: left; margin-top: 25px; }
    .testimonial-author h4 { font-size: 22px; }
    .testimonial-author p { font-size: 16px; }
}
/* =========================================
   13. SECCIÓN REPRESENTACIONES EXCLUSIVAS
   ========================================= */
.representations-section { background-color: #ffffff; padding: 40px 0 60px 0; width: 100%; }
.representations-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.representations-header { text-align: center; margin-bottom: 30px; }
.representations-header h2 { font-size: 38px; color: #221f1f; font-weight: 400; margin: 0; }
.representations-header h2 strong { font-weight: 900; }
.representations-box { background-color: #ffffff; border-radius: 20px; padding: 30px 60px; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }
.representations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 40px; align-items: center; justify-items: center; }
.representation-logo-wrapper { width: 100%; height: 120px; display: flex; justify-content: center; align-items: center; }
.representation-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: none !important; opacity: 1 !important; transition: all 0.3s ease; }
.representation-img:hover { transform: scale(1.1); }

@media (max-width: 992px) { .representations-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .representations-box { padding: 20px; }
    .representations-header h2 { font-size: 40px; }
    .representations-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}
@media (max-width: 480px) { .representation-img { filter: grayscale(0%); opacity: 1; } }

/* =========================================
   14. SECCIÓN PRIVATE LABEL
   ========================================= */
.private-label-section {
    background-color: #2a2a2a; 
    /* La imagen de fondo ahora se inyecta dinámicamente desde el HTML/PHP */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Enlace invisible que cubre todo el banner para que el usuario pueda darle clic */
.private-label-link-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Mantenemos la clase del botón original por si se usa en otras secciones del sitio */
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    background-color: transparent !important;
    border: 1px solid #ffffff;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 27px;
    padding: 8px 20px;
    border-radius: 13px;
    transition: all 0.3s ease;
}

.btn-outline-white .icon-play { margin-left: 10px; font-size: 20px; }

.btn-outline-white:hover { 
    background-color: #e30613 !important; 
    border-color: #e30613 !important; 
    color: #ffffff !important; 
}

@media (max-width: 768px) {
    .private-label-section {
        background-image: var(--pl-mobile) !important; 
        min-height: 500px; /* Ajusta esta altura según cómo se vea tu diseño en celular */
        background-position: center;
        padding: 0;
    }
}



/* =========================================
   15. SECCIÓN NOTICIAS Y EVENTOS (ACTUALIZADA)
   ========================================= */
.news-section { background-color: #ffffff; padding: 100px 0; width: 100%; }
.news-container { max-width: 1250px; margin: 0 auto; padding: 0 40px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.news-card {
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end;
    border-radius: 20px; 
    overflow: hidden; 
    text-decoration: none; 
    min-height: 400px; 
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }

.card-large { grid-column: span 2; }

.card-bg { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background-size: cover; 
    background-position: center; 
    z-index: 1; 
    transition: transform 0.5s ease; 
}
.news-card:hover .card-bg { transform: scale(1.05); }

.card-overlay { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    z-index: 2; 
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%); 
}

.news-badge { 
    position: absolute; 
    top: 0; left: 20px; 
    background-color: #e30613; 
    color: #ffffff; 
    font-size: 20px; 
    font-weight: bold; 
    padding: 8px 30px; 
    border-radius: 0 0 10px 10px; 
    z-index: 3; 
}

.news-content { position: relative; z-index: 3; }
.news-content h3 { font-size: 26px; font-weight: 800; margin: 0 0 15px 0; line-height: 1.2; color: #ffffff; }
.news-content p { font-size: 15px; line-height: 1.5; margin: 0 0 25px 0; color: #dddddd; }

/* --- BOTÓN CALCADO A LAS SECCIONES ANTERIORES --- */
.news-btn { 
    display: inline-flex; 
    align-items: center; 
    font-size: 14px; 
    font-weight: bold; 
    padding: 8px 20px; 
    border-radius: 12px; /* Radio de 15px igual a los otros */
    border: 1px solid #ffffff; 
    background-color: transparent !important; 
    color: #ffffff !important;
    transition: all 0.3s ease; 
    text-decoration: none;
}

.news-btn .icon-play { font-size: 10px; margin-left: 8px; }

/* Efecto Hover: se activa al pasar sobre la tarjeta o el botón */
.news-card:hover .news-btn,
.news-btn:hover { 
    background-color: #e30613 !important; 
    border-color: #e30613 !important; 
    color: #ffffff !important; 
}

/* Ajustes Responsive */
@media (max-width: 992px) { 
    .news-grid { grid-template-columns: repeat(2, 1fr); } 
    .card-large { grid-column: span 2; } 
}

@media (max-width: 768px) {
    .news-container { padding: 0 20px; }
    .news-grid { grid-template-columns: 1fr; }
    .card-large { grid-column: span 1; }
    .news-card { min-height: 350px; }
}
/* =========================================
   16. SECCIÓN CTA WHATSAPP (FINAL AVENIR)
   ========================================= */
.cta-whatsapp-section {
    background-color: #e4322c;
    background-image: url('/wp-content/uploads/2026/03/CONTACTO-FONDO.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: auto;
    position: relative;
}

.cta-whatsapp-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #e30613;
    opacity: 0.5;
    z-index: 0;
}

.cta-container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 120px; 
    width: 100%;
    position: relative;
    z-index: 1;
}

/* TÍTULO: Avenir Black (900) */
.cta-whatsapp-section h2 { 
    font-family: 'Avenir', sans-serif !important;
    font-size: 45px !important; 
    color: #ffffff !important; 
    font-weight: 800 !important; 
    line-height: 65px !important; 
    margin: 0 0 20px 0; 
    text-transform: uppercase; 
}

/* PÁRRAFO: Avenir Book (400) */
.cta-whatsapp-section p { 
    font-family: 'Avenir', sans-serif !important;
    font-size: 20px !important; 
    color: #ffffff !important; 
    font-weight: 400 !important; 
    line-height: 32px !important; 
    margin: 0 0 40px 0; 
}

/* --- BOTÓN DE WHATSAPP --- */
.btn-whatsapp-outline {
    font-family: 'Avenir', sans-serif !important;
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    padding: 9px 13px;
    border-radius: 13px; 
    transition: all 0.3s ease;
    font-weight: 400 !important;
}

.btn-whatsapp-outline .icon-play { 
    margin-right: 10px; 
    font-size: 12px; 
}

.btn-whatsapp-outline:hover { 
    background-color: #47474a !important; 
    border-color: #47474a !important; 
    transform: none !important; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .cta-whatsapp-section { padding: 60px 0 !important; }
    
    /* ¡EL SALVAVIDAS! Quitamos los 120px de relleno lateral en móviles */
    .cta-container { padding: 0 20px !important; } 
    
    .cta-whatsapp-section h2 { 
        font-size: 28px !important; 
        line-height: 1.2 !important; 
        margin-bottom: 15px !important; 
    }
    .cta-whatsapp-section p { 
        font-size: 18px !important; 
        line-height: 26px !important; 
        margin-bottom: 30px !important; 
    }
    .cta-whatsapp-section h2 br, .cta-whatsapp-section p br { display: none !important; }
    
    .btn-whatsapp-outline { 
        width: 100%; 
        max-width: 280px; 
        justify-content: center; 
        font-size: 15px !important; /* Ajustado para evitar que se parta en dos líneas */
        padding: 12px 20px !important;
    }
}


/* =========================================
   17. FOOTER (PIE DE PÁGINA - ALINEACIÓN EXACTA)
   ========================================= */
.site-footer { 
    background-color: #4a4a4a; 
    color: #ffffff; 
    padding: 60px 0 30px 0; 
    width: 100%; 
    font-family: 'Avenir', sans-serif; 
}

.footer-container { 
    max-width: 100%; 
    margin: 0; 
    padding: 0 80px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
}

.footer-col { flex: 1; }
.col-logo { flex: 0 0 320px; }

/* COLUMNA CENTRAL: Mantenemos el centrado del bloque de datos */
.col-contact { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

/* TÍTULO CONTACTO: Lo movemos MÁS a la izquierda con margen negativo */
.col-contact h4 { 
    font-size: 15px; 
    font-weight: 900; 
    color: #ffffff; 
    text-transform: uppercase;
    margin-bottom: 20px;
    width: auto;
    /* 👇 Aumentamos el margen negativo para empujarlo más a la izquierda */
    margin-left: -160px; 
}

.col-divisions { 
    flex: 0 0 220px; 
    text-align: left;
}

/* --- LOGO Y TEXTO (MÁS GRANDES) --- */
/* 👇 Aumentamos el ancho del logo de 180px a 240px */
.footer-logo { max-width: 240px; height: auto; margin-bottom: 20px; }
/* 👇 Aumentamos la letra de 14px a 16px para darle más presencia */
.col-logo p { font-size: 16px; line-height: 24px; color: #ffffff; margin: 0; }

/* --- LISTAS --- */
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { font-size: 14px; line-height: 28px; color: #ffffff; }
.footer-col ul li a { color: #ffffff !important; text-decoration: none; }

/* CONTACTO E ICONOS */
.contact-list li { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    justify-content: flex-start;
}

.footer-icon-custom { width: 18px; height: 18px; object-fit: contain; }

/* --- CIERRE FOOTER --- */
.footer-bottom { 
    max-width: 1250px; 
    margin: 40px auto 0 auto; 
    padding: 0 40px; 
    text-align: center; 
}
.footer-bottom p { font-size: 12px; color: #ffffff; font-style: italic; opacity: 0.8; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-container { flex-wrap: wrap; padding: 0 40px; }
    .col-logo { flex-basis: 100%; margin-bottom: 30px; text-align: center; }
    .col-contact h4 { margin-left: 0; text-align: center; }
}

@media (max-width: 768px) {
    .footer-container { flex-direction: column; align-items: center; gap: 30px; }
    .footer-col, .col-contact { text-align: center; align-items: center; }
    .contact-list li { justify-content: center; }
    .col-contact h4 { margin-left: 0; }
}


/* =========================================
   NOSOTROS — HERO SECTION
   ========================================= */
.nosotros-hero {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; <- ELIMINADO PARA NO CORTAR LA CABEZA */
    background-color: #333333;
    background-image: var(--nhero-bg-desktop);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}



.nosotros-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

.nosotros-hero__title {
    font-family: inherit; 
    font-weight: 900;
    font-size: 80px; 
    line-height: 1.1;
    color: #e30613;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px 0;
    white-space: nowrap; 
}

.nosotros-hero__subtitle {
    font-family: inherit;
    font-weight: 400;
    font-size: 50px;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin: 0;
}

/* =========================================
   NOSOTROS — SECCIÓN HISTORIA Y FUNDADOR (LIMPIO Y UNIFICADO)
   ========================================= */

.nosotros-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.nosotros-historia {
    position: relative;
    background-color: #ffffff;
    border-top: 18px solid #f32735; 
    background-image: var(--bg-pattern);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto; 
    max-width: 1920px;
    margin: 0 auto;
    padding-bottom: 0px; 
    z-index: 10;
    overflow: visible;
}

.historia-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr; 
    gap: 60px;
    align-items: stretch; /* ¡MAGIA! Hace que la columna de la foto y la del texto midan lo mismo */
}
/* --- Columna Izquierda (Fundador) --- */
.historia-img-col {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Cambiamos a 'center' para que la imagen crezca hacia arriba y hacia abajo por igual */
    justify-content: center; 
    align-items: flex-start; /* Lo pegamos a la izquierda */
    z-index: 20;
}

.historia-fundador-img {
    /* 1. Reducimos el tamaño para que no sea tan larga hacia abajo */
    width: 110%; 
    max-width: 620px; 
    height: auto;
    
    /* 2. Ajustamos el margen lateral para el nuevo ancho */
    margin-left: -5%; 
    
    /* 3. Mantenemos la cabeza sobresaliendo en el hero negro */
    margin-top: -130px; 

    /* 4. ¡LA CLAVE! Reducimos drásticamente este valor. 
       Antes tenías -150px, ahora con -40px la nota sube y deja de tapar lo de abajo */
    margin-bottom: -40px; 
    
    position: relative;
    z-index: 20; 
    display: block;
}
/* CAMBIO DE COLOR SIN TOCAR TAMAÑOS */
.historia-texto-col .historia-titulo {
    color: #828282 !important; /* El gris de la muestra que enviaste */
    font-size: 35px;
}

.historia-texto-col p {
    color: #828282 !important; /* Aplicamos el mismo gris al cuerpo de texto */
}

/* En caso de que quieras que las negritas resalten un poco más que el gris base */
.historia-texto-col p strong {
    color: #4a4a4a !important; 
}
/* =========================================
   RESPONSIVO (Ajustado para que no tape nada)
   ========================================= */
@media (max-width: 991px) {
    .historia-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .historia-img-col {
        align-items: center;
    }
    .historia-fundador-img {
        width: 100%; 
        margin-left: 0;
        margin-top: -90px; /* Sigue sobresaliendo un poco */
        margin-bottom: -20px; /* Nota más arriba en tablet */
        max-width: 480px;
    }
    .historia-texto-col {
        padding-top: 20px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .historia-fundador-img {
        width: 95%;
        max-width: 420px;
        margin-top: -70px;
        margin-bottom: -10px; /* Nota pegada al borde en móvil */
    }
}
/* =========================================
   NOSOTROS — SECCIÓN PILARES (FONDO OSCURO)
   ========================================= */
.nosotros-pilares {
    position: relative;
    background-color: #3b3b3b; 
    background-image: var(--bg-dark-pattern);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0; 
    padding-top: 150px; 
    padding-bottom: 80px;
    z-index: 5; 
}

.historia-fundador-img {
    transform: scale(1.05);
    transform-origin: bottom center;
}

.pilares-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: flex-start;
}

/* --- Cabecera de Pilares --- */
.pilares-header {
    margin-bottom: 40px;
}

.pilares-subtitle {
    display: inline-block;
    font-family: inherit;
    color: #ffffff;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    margin-bottom: 10px;
}

.pilares-subtitle::before {
    display: none;
}

.pilares-subtitle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -100vw;
    width: calc(100vw + 100%);
    height: 1px;
    background-color: #ffffff;
}

.pilares-titulo {
    font-family: inherit;
    color: #ffffff;
    font-weight: 400;
    font-size: 60px;
    margin: 0;
}

.pilares-titulo strong {
    font-weight: 900;
}

/* --- Diseño de Tarjetas --- */
.pilares-col-der {
    padding-top: 30px;
}

.pilar-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-height: 90px;
}

/* Caja Roja */
.pilar-num-box {
    width: 130px;
    background-color: #e4322c;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
    z-index: 1;
}

.pilar-num {
    font-family: inherit;
    font-weight: 900;
    font-size: 15rem;
    color: #de0021;
    line-height: 1;
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    z-index: 0;
}

/* Caja Blanca */
.pilar-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.pilar-content h3 {
    font-family: inherit;
    font-size: 27px;
    color: #333333;
    font-weight: 900;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.pilar-content p {
    font-family: inherit;
    font-size: 27px;
    color: #666666;
    line-height: 34px;
    margin: 0;
}

/* =========================================
   RESPONSIVO TABLET
   ========================================= */
@media (max-width: 991px) {
    .pilares-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pilares-col-der { padding-top: 0; }
    .pilares-header { margin-left: 0; }
    .pilares-titulo { font-size: 40px; }
    .pilares-subtitle { font-size: 22px; }
    .pilar-content h3 { font-size: 20px; }
    .pilar-content p { font-size: 18px; line-height: 26px; }
}

/* =========================================
   RESPONSIVO MOBILE — CARDS EN ORDEN 1,2,3,4
   ========================================= */
@media (max-width: 767px) {
    .nosotros-pilares {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .pilares-grid {
        display: flex;
        flex-direction: column;
    }

    /* Hacemos los contenedores de columna transparentes
       para que las cards sean hijos directos del flex */
    .pilares-col-izq,
    .pilares-col-der {
        display: contents;
    }

    /* Reordenamos: header → 1 → 2 → 3 → 4 */
    .pilares-header                        { order: 0; display: block; margin-bottom: 30px; }
    .pilares-col-der .pilar-card:nth-child(1) { order: 1; } /* card 1 */
    .pilares-col-izq .pilar-card:nth-child(2) { order: 2; } /* card 2 */
    .pilares-col-der .pilar-card:nth-child(2) { order: 3; } /* card 3 */
    .pilares-col-izq .pilar-card:nth-child(3) { order: 4; } /* card 4 */

    .pilares-titulo { font-size: 32px; line-height: 1.2; }
    .pilares-subtitle { font-size: 16px; }

    .pilar-card {
        flex-direction: row;
        min-height: auto;
        margin-bottom: 16px;
    }

    .pilar-num-box {
        width: 80px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .pilar-num {
        font-size: 7rem;
        right: -10px;
    }

    .pilar-content {
        padding: 18px;
    }

    .pilar-content h3 {
        font-size: 15px;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .pilar-content p {
        font-size: 13px;
        line-height: 20px;
    }
}

/* =========================================
   NOSOTROS — CENTRO DE DISTRIBUCIÓN (ACTUALIZADO)
   ========================================= */
.nosotros-cedis {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-image: var(--bg-cedis-desktop);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.nosotros-cedis .nosotros-container {
    width: 100%;
}

.cedis-content {
    max-width: 580px;
}

.cedis-titulo {
    font-family: inherit;
    font-size: 50px;
    color: #424549;
    font-weight: 900;
    line-height: 1.1; /* Ajustado de 72px a 1.1 para mejor control */
    margin-top: 0;
    margin-bottom: 30px;
}

.cedis-titulo .text-red {
    color: #e4322c;
    font-weight: 900;
}

.cedis-content p {
    font-family: inherit;
    font-size: 19px;
    color: #6b7280;
    font-weight: 100;
    line-height: 1.5;
    margin-bottom: 25px;
}

.cedis-content strong {
    color: #6b7280;
    font-weight: 900;
}

/* --- AJUSTES RESPONSIVOS CEDIS --- */
@media (max-width: 991px) {
    .nosotros-cedis {
        min-height: auto;
        padding: 60px 0;
        background-position: center left; /* Ajuste para que la foto no tape el texto */
    }

    /* TÍTULO: Lo hacemos más dominante */
    .cedis-titulo {
        font-size: 34px !important; 
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    /* PÁRRAFO: Lo bajamos para crear contraste */
    .cedis-content p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 767px) {
    .cedis-titulo {
        font-size: 30px !important;
    }
    
    .cedis-content p {
        font-size: 17px !important;
    }
}


/* =========================================
   NOSOTROS — SECCIÓN ÉXITO (SPLIT 50/50)
   ========================================= */
.nosotros-exito {
    width: 100%;
    position: relative;
}

.exito-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactamente mitad y mitad */
    width: 100%;
}

.exito-img-col {
    position: relative;
    height: 100%;
    min-height: 500px; /* Altura mínima para que no quede muy aplastado */
}

/* Magia para que la foto llene todo su cuadro perfecto */
.exito-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.exito-text-col {
    background-color: #e30613; /* Rojo Garabito */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 10%; /* Mucho aire a los lados */
}

.exito-text-inner {
    max-width: 90%;
}

.exito-text-inner h2 {
    font-family: inherit;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #ffffff;
    font-weight: 400; /* Texto normal */
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 30px;
}

.exito-text-inner h2 strong {
    font-weight: 800; /* Negritas para "representación adecuada" */
}

.exito-text-inner p {
    font-family: inherit;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* =========================================
   RESPONSIVO 
   ========================================= */
@media (max-width: 991px) {
    .cedis-content {
        max-width: 100%;
    }
    .exito-grid {
        grid-template-columns: 1fr; /* Pila en móvil (Foto arriba, Rojo abajo) */
    }
    .exito-img-col {
        min-height: 400px; /* Un poco más bajo en móvil */
    }
}

@media (max-width: 767px) {
    .nosotros-cedis {
        background-image: var(--bg-cedis-mobile);
        background-position: center top;
        align-items: flex-end;
        min-height: 80vh;
    }
    .cedis-content {
        background: rgba(255, 255, 255, 0.82);
        border-radius: 12px;
        padding: 24px 20px;
        max-width: 100%;
    }
    .exito-text-col {
        padding: 50px 20px;
    }
}

/* --- ESTILOS SECCIÓN ÉXITO --- */

/* Ajuste del fondo rojo con patrón */
.exito-text-col {
    background-color: #e30613; /* Rojo base por si la imagen tarda en cargar */
    background-position: right center; /* Posiciona los círculos a la derecha */
    background-repeat: no-repeat;
    background-size: cover; /* Cubre todo el cuadro rojo */
    display: flex;
    align-items: center; /* Centra el texto verticalmente */
}

/* Tipografía del Título */
/* === TIPOGRAFÍA === */
.exito-title {
    font-family: inherit;
    font-size: 1.8rem !important; /* Letra mucho más pequeña (antes estaba en 2.2) */
    color: #ffffff;
    font-weight: 400; 
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 25px;
    white-space: normal !important; /* Destruye cualquier regla vieja que obligue al texto a seguir de largo */
    word-wrap: break-word; /* Seguridad extra: si no cabe, lo baja obligatoriamente */
}

.exito-title strong {
    font-weight: 700; /* Grosor en negrita para "representación adecuada" */
}

/* Tipografía del Párrafo */
.exito-desc {
    font-weight: 400;
    font-size: 1.4rem !important; /* Ajusta según el tamaño de tu web */
    line-height: 1.5; /* Espacio entre líneas para que respire como en la imagen */
    color: #ffffff;
    margin: 0;
}

/* Solo por si acaso: aseguramos que la imagen del hombre ocupe su espacio sin dejar huecos */
.exito-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Opcional: Si en pantallas muy grandes quieres obligar a que NUNCA se rompa antes de tiempo */
@media (min-width: 1024px) {
    .exito-title {
        white-space: nowrap; /* Fuerza a que respete estrictamente nuestro <br> */
        font-size: 2rem; /* Lo podemos dejar un pelín más grande en escritorio */
    }
}
/* =========================================
   NOSOTROS — SECCIÓN VOLCÁN (SPLIT INVERTIDO)
   ========================================= */
.nosotros-contacto {
    width: 100%;
    position: relative;
    background-color: #ffffff; /* Fondo blanco */
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 igual que arriba */
    width: 100%;
    overflow: hidden;
}

/* Columna de Texto */
.contacto-text-col {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 8%;
}

.contacto-text-inner {
    max-width: 580px; /* Un poco más ancho para que quepan tus frases exactas */
    width: 100%;
}

/* Tipografía de esta sección */
.contacto-title {
    font-family: inherit;
    font-size: 45px;
    color: #222222;
    font-weight: 400;
    line-height: 60px;
    margin-top: 0;
    margin-bottom: 25px;
}

.contacto-title strong {
    font-weight: 900;
}

.contacto-desc {
    font-family: inherit;
    font-size: 20px;
    color: #777777;
    line-height: 36px;
    margin: 0;
}


.mt-15 {
    margin-top: 20px !important; /* Separa los dos párrafos de texto */
}

/* Columna de Imagen */
.contacto-img-col {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.contacto-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   RESPONSIVO (MÓVILES Y TABLETS)
   ========================================= */
@media (max-width: 991px) {
    .contacto-grid {
        grid-template-columns: 1fr; /* Pone una cosa debajo de otra */
    }
    
    /* Invertimos el orden visual: Texto arriba, foto abajo */
    .contacto-text-col {
        grid-row: 1;
        padding: 60px 30px;
    }
    .contacto-img-col {
        grid-row: 2;
        min-height: 400px;
    }

    /* TRUCO SALVAVIDAS: Ocultamos los saltos de línea SOLO en celulares 
       para que el texto no se descuadre si la pantalla es muy angosta */
    .contacto-title br, .contacto-desc br {
        display: none; 
    }
}

@media (max-width: 767px) {
    .contacto-text-col {
        padding: 50px 20px;
    }
    .contacto-title {
        font-size: 1.8rem; /* Título un poco más pequeño en celular */
    }
}
/* =========================================
   NOSOTROS — SECCIÓN PILARES (FONDO OSCURO)
   ========================================= */
.nosotros-pilares {
    position: relative;
    background-color: #3b3b3b;
    background-image: var(--bg-dark-pattern);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
    padding-top: 150px;
    padding-bottom: 80px;
    z-index: 5;
    overflow-x: hidden;
}

.pilares-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr; 
    gap: 40px;
    align-items: flex-start;
}

/* --- Cabecera de Pilares --- */
.pilares-header {
    margin-bottom: 40px;
    margin-left: 50px; /* Le da espacio a la rayita izquierda */
}

.pilares-subtitle {
    display: inline-block;
    font-family: inherit;
    color: #ffffff;
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    letter-spacing: 0.02em;
    position: relative;
    margin-bottom: 10px;
}

/* Eliminamos el guion a la izquierda */
.pilares-subtitle::before {
    display: none;
}

/* Línea completa debajo de "Quienes somos" que toca el borde izquierdo */
.pilares-subtitle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -100vw;
    width: calc(100vw + 100%);
    height: 1px;
    background-color: #ffffff;
}

.pilares-titulo {
    font-family: inherit;
    color: #ffffff;
    font-weight: 300;
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    margin: 0;
}

.pilares-titulo strong {
    font-weight: 800;
}

/* --- Diseño de Tarjetas --- */
.pilares-col-der {
    /* Eliminamos el padding top para que arranque alineada con el título */
    padding-top: 0; 
}

.pilar-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-height: 130px;
}

/* Caja Roja (Lado izquierdo) */
.pilar-num-box {
    width: 160px;
    background-color: #fe0027; /* Rojo Garabito */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    flex-shrink: 0;
}

/* El número gigante creado con CSS */
.pilar-num {
    font-family: inherit;
    font-weight: 850;
    font-size: 16rem;
    color: #de0021; /* Rojo más oscuro para contraste */
    line-height: 1;
    position: absolute;
    right: -10px; /* Empuja el número para cortarlo a la derecha */
    top: 55%;
    transform: translateY(-50%);
    user-select: none; 
}

/* Caja Blanca (Contenido) */
.pilar-content {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pilar-content h3 {
    font-family: inherit;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    color: #333333;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.pilar-content p {
    font-family: inherit;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    color: #888888; /* Gris medio/claro del diseño */
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   RESPONSIVO 
   ========================================= */
@media (max-width: 991px) {
    .pilares-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
}
/* Carga la imagen móvil SOLO en teléfonos */
@media (max-width: 767px) {
    .nosotros-hero {
        background-image: var(--nhero-bg-mobile);
    }
}

@media (max-width: 767px) {
    .pilares-header {
        margin-left: 0;
        text-align: center;
    }
    .pilares-subtitle::before {
        display: none; /* Quitamos la rayita en celular para que no estorbe */
    }
    .pilar-card {
        flex-direction: column; 
        min-height: auto;
    }
    .pilar-num-box {
        width: 100%;
        height: 100px; 
    }
    .pilar-num {
        font-size: 10rem;
        right: 20px;
    }
    .pilar-content {
        padding: 25px 20px;
    }
    .pilar-content p br {
        display: none; /* En celular apagamos los saltos de línea forzados para que el texto fluya natural */
    }
}
/* 1. Esto es lo más importante: le dice al submenú que su "casa" es el botón de DIVISIONES */
header nav ul li, 
.menu-item-has-children {
    position: relative !important;
}

/* 2. El diseño de la cajita del submenú */
header ul.sub-menu {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(8px);
    background-color: #ffffff !important;
    min-width: 200px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    border-top: 3px solid #e30613 !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* 3. Mostrar cuando pasas el mouse */
header nav ul li:hover > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0);
}

/* 4. Quitar puntos o rayas de los items */
header ul.sub-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

header ul.sub-menu li:before {
    display: none !important;
}

/* 5. Estilo de los textos adentro */
header ul.sub-menu li a {
    display: block !important;
    padding: 12px 24px !important;
    color: #6b7280 !important;
    text-align: center !important;
    font-family: 'Avenir', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

header ul.sub-menu li:last-child a {
    border-bottom: none !important;
}

/* 6. Hover elegante con barra roja a la izquierda */
header ul.sub-menu li a:hover {
    background-color: #fef2f2 !important;
    color: #e30613 !important;
    padding-left: 28px !important;
}

header ul.sub-menu li.current-menu-item a,
header ul.sub-menu li.current_page_item a {
    color: #e30613 !important;
    font-weight: 700 !important;
}

/* =========================================
   CONTAINER ESTÁNDAR (Divisiones)
   ========================================= */
.container-standard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5px;
    width: 100%;
}

@media (max-width: 767px) {
    .container-standard { padding: 0 35px; }
    .banner-content-wrapper {
        padding: 0 25px !important;
    }
}

/* =========================================
   BANNER DE DIVISIONES
   ========================================= */
.division-banner {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 20.83%; /* 400/1920 — proporción exacta, nunca se recorta */
    min-height: unset;
    background-size: 100% 100%;
    background-position: top left;
    background-repeat: no-repeat;
}

.division-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 60px !important;
}

/* Banners 1920x600 — Materias Primas, Empaques y similares */
.division-banner.mp-banner {
    padding-top: 31.25%; /* 600/1920 */
}

.division-banner.mp-banner .division-banner-text p {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}


@media (max-width: 767px) {
    .division-banner.mp-banner {
        background-image: var(--mp-bg-mobile) !important;
        background-size: 100% 100%;
        padding-top: 149.94%; /* 1200/801 — proporción móvil */
    }
}



.division-banner-text {
    max-width: 800px;
    text-align: center;
}


/* Variante alineada a la izquierda (Brand Now) */
.division-banner-text.text-left {
    margin: 0;
    text-align: left;
}

.division-banner-text h2 {
    color: #e30613;
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    white-space: nowrap;
}

.division-banner-text p {
    color: #ffffff;
    font-size: 35px;
    font-weight: 500;
    line-height: 45px;
    margin: 0;
}

/* =========================================
   SECCIÓN DIVISIONES Y TARJETAS (Fondo Blanco)
   ========================================= */
.seccion-divisiones {
    background-color: #ffffff;
    padding: 70px 0;
}

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

.division-main-title {
    color: #3a3a3c;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 300;
}

.division-main-title strong {
    font-weight: 800;
}

/* El Grid */
.division-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Las Tarjetas */
.division-card-wrapper {
    display: flex;
    flex-direction: column;
}

/* Tarjeta con slide-up overlay */
.marca-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.marca-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.marca-card:hover > img {
    transform: scale(1.06);
}

/* Panel que sube desde abajo */
.marca-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.45);
    padding: 18px 20px;
    transform: translateY(100%);
    transition: transform 0.45s ease;
    text-align: left;
}

.marca-card:hover .marca-overlay {
    transform: translateY(0);
}

.marca-overlay p {
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
    color: #ffffff;
}

.marca-overlay strong {
    font-weight: 800;
    color: #ffffff;
}

/* Texto gris debajo de la tarjeta */
.card-caption {
    font-size: 20px;
    font-weight: 700;
    color: #888888;
    margin-top: 12px;
    text-align: left;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .division-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .card-caption {
        font-size: 0.8rem;
    }
}

/* =========================================
   BRAND NOW — FRANJA ROJA
   ========================================= */
.brand-now-franja {
    background-color: #f32735;
    padding: 40px 40px; /* <--- ¡Listo! Reducido a la mitad para que quede más ajustado */
    text-align: center;
}

.brand-now-franja-text p {
    font-family: inherit;
    font-size: 36px; /* Mantenemos el tamaño que te gustó */
    font-weight: 400;
    color: #ffffff;
    line-height: 48px;
    margin: 0;
}

.brand-now-franja-text strong {
    font-weight: 900;
    color: #ffffff;
}

@media (max-width: 767px) {
    .brand-now-franja {
        padding: 30px 20px; /* También lo encogemos en celular para que no se vea desproporcionado */
    }
    .brand-now-franja-text p {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    .brand-now-franja-text br {
        display: none; 
    }
}

/* =========================================
   BRAND NOW — VENTAJAS
   ========================================= */
.bn-ventajas {
    background-color: #ffffff;
    padding: 80px 40px;
}

.bn-ventajas-container {
    max-width: 1250px; /* Contenedor general */
    margin: 0 auto;
    display: block;
}

.bn-ventajas-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .bn-ventajas {
        padding: 50px 20px;
    }
}
/* =========================================
   BRAND NOW — ¿A QUIÉN ESTÁ DIRIGIDO?
   ========================================= */
.bn-dirigido {
    background-color: #3b3b3b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 60px;
}

.bn-dirigido-container {
    max-width: 1050px; /* Contenedor más ajustado para obligarlos a acercarse */
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 30px; /* <--- ¡AQUÍ ESTÁ! Redujimos el hueco a la mitad para pegarlos */
}

.bn-dirigido-titulo {
    flex-shrink: 0;
    width: 40%;
}

.bn-dirigido-titulo h2 {
    font-family: inherit;
    font-size: 50px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.bn-dirigido-titulo .text-red {
    color: #e4322c;
}

.bn-dirigido-titulo .text-white {
    color: #ffffff;
}

/* Le damos el ancho restante al contenido para que aproveche el espacio */
.bn-dirigido-contenido {
    width: 60%;
}

.bn-dirigido-contenido p {
    font-family: inherit;
    font-size: 19px; /* El tamaño ideal que vimos */
    color: #d0d0d0;
    line-height: 34px;
    font-weight: 300;
    margin: 0 0 15px 0; /* Lo pegué un poquito más (de 20px a 15px) hacia el párrafo de abajo */
}

.bn-dirigido-contenido p:last-child {
    margin-bottom: 0;
}

.bn-dirigido-contenido p:first-child {
    padding-top: 115px; /* Empujado hacia abajo para alinear con el título */
}

.bn-dirigido-contenido strong {
    color: #ffffff;
    font-weight: 900;
}

@media (max-width: 768px) {
    .bn-dirigido {
        padding: 60px 30px;
    }
    .bn-dirigido-container {
        flex-direction: column;
        gap: 35px;
    }
    .bn-dirigido-titulo,
    .bn-dirigido-contenido {
        width: 100%;
    }
    .bn-dirigido-titulo h2 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    .bn-dirigido-contenido p:first-child {
        padding-top: 0;
    }
    .bn-dirigido-contenido p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
}
/* =========================================
   BRAND NOW — BANNER
   ========================================= */
.brand-now-banner {
    height: 0;
    /* Proporción exacta desktop (1800x764): 764 / 1800 = 42.44% */
    padding-top: 42.44%; 
    min-height: unset;
    background-size: 100% 100%;
    background-position: top left;
    position: relative;
}

.brand-now-banner .division-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .brand-now-banner {
        background-image: var(--bn-bg-mobile) !important;
        background-size: 100% 100%;
        /* Proporción exacta mobile (802x1063): 1063 / 802 = 132.54% */
        padding-top: 132.54%; 
        height: 0;
    }
}

/* =========================================
   BRAND NOW — SECCIÓN NUESTRO ENFOQUE
   ========================================= */
.bn-enfoque {
    width: 100%;
    height: 0;
    /* Proporción exacta desktop (1921x951): 951 / 1921 = 49.51% */
    padding-top: 49.51%; 
    background-image: var(--enfoque-bg-desktop);
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    display: block;
    margin: 0;
}

/* Capa invisible para que el usuario pueda hacer clic si hay un botón en la foto */
.bn-enfoque .enfoque-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: block;
}

@media (max-width: 767px) {
    .bn-enfoque {
        background-image: var(--enfoque-bg-mobile) !important;
        /* Proporción exacta nueva mobile (801x1784): 1784 / 801 = 222.72% */
        padding-top: 222.72% !important; 
        background-size: cover !important; /* Esto evita deformaciones */
        background-position: top center !important;
    }
}

/* =========================================
   BRAND NOW — SECCIÓN TESTIMONIO
   ========================================= */
.bn-testimonio {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.bn-testimonio-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
}

.bn-testimonio-cita {
    font-family: 'Avenir', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    border: none;
}

.bn-testimonio-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.bn-testimonio-proyecto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bn-test-label {
    font-family: 'Avenir', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.bn-test-proyecto-nombre {
    font-family: 'Avenir', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.bn-testimonio-autor {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bn-test-nombre {
    font-family: 'Avenir', sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: #ffffff;
}

.bn-test-cargo {
    font-family: 'Avenir', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #ffffff;
}

@media (max-width: 767px) {
    .bn-testimonio {
        background-image: var(--bn-test-mobile) !important;
        background-position: center top;
        height: auto;
        padding: 60px 0;
    }
    .bn-testimonio-inner {
        padding: 0 25px;
        gap: 35px;
    }
    .bn-testimonio-cita {
        font-size: 1.2rem;
    }
    .bn-testimonio-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    .bn-testimonio-autor {
        align-items: flex-start;
    }
}

/* =========================================
   PÁGINA INTERNA DE NOTICIAS (SINGLE)
   ========================================= */
.single-news-page {
    background-image: url('/wp-content/uploads/2026/04/Sin-titulo-5-scaled.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top center;
}

.single-news-hero {
    width: 100%;
    height: 340px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.single-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
    border-radius: 16px;
}

.single-news-hero .news-category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.single-news-body {
    padding: 60px 0;
}

.single-news-wrapper {
    display: block;
    max-width: 800px;
}

/* Columna Principal */
.news-main-content {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 40px;
}

.news-category-tag {
    display: inline-block;
    background-color: #E30613; /* Rojo Garabito */
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.news-main-title {
    font-size: 2.8rem;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 10px;
}

.news-publish-date {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* El contenido del editor de WordPress */
.news-text-editor p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 25px;
}

.news-text-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* Botones de Compartir */
.news-share-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-title {
    font-weight: bold;
    color: #333;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.share-icon:hover {
    background-color: #E30613;
    color: #fff;
}

/* Columna Lateral (Sidebar) */
.news-sidebar {
    width: 350px; /* Ancho fijo para el sidebar (aprox 30%) */
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.sidebar-title {
    font-family: 'Avenir', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.sidebar-title strong {
    font-weight: 700;
    color: #1a1a1a;
}

.sidebar-cats {
    display: flex;
    flex-direction: column;
}

.sidebar-cat-item {
    font-family: 'Avenir', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #6b7280;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.2s;
}

.sidebar-cat-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.sidebar-cat-item:hover {
    color: #e30613;
}

.sidebar-cat-item.active {
    color: #e30613;
    border-bottom-color: #e30613;
    font-weight: 600;
}

.sidebar-all-btn {
    display: inline-block;
    margin-top: 25px;
    background-color: #e30613;
    color: #ffffff;
    font-family: 'Avenir', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-all-btn:hover {
    background-color: #c0000f;
    color: #ffffff;
}

/* RESPONSIVE TABLET */
@media (max-width: 991px) {
    .single-news-wrapper {
        max-width: 100%;
    }
    .news-main-title {
        font-size: 2.2rem;
    }
    .single-news-hero {
        height: 280px;
    }
    .news-main-content {
        padding: 30px;
    }
    .related-news-track {
        justify-content: flex-start;
    }
}

/* RESPONSIVE MÓVIL */
@media (max-width: 767px) {
    .single-news-body {
        padding: 30px 0;
    }
    .single-news-wrapper {
        max-width: 100%;
    }
    .news-main-content {
        padding: 20px;
        border-radius: 12px;
    }
    .news-main-title {
        font-size: 1.7rem;
    }
    .single-news-hero {
        height: 220px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    .news-text-editor p {
        font-size: 1rem;
    }
    .related-news-section {
        padding: 40px 0 60px;
    }
    .related-news-header h2 {
        font-size: 1.6rem;
    }
    .related-news-track {
        justify-content: flex-start;
        padding: 10px 20px 18px;
    }
    .related-card {
        flex: 0 0 240px;
    }
    .related-card-img {
        height: 220px;
    }
}


/* =========================================
   SINGLE NOTICIAS — BLOQUE IMAGEN + TEXTO
   ========================================= */
.small-image-text-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    margin: 35px 0;
}

.small-image-text-block .image-wrapper {
    flex: 0 0 220px;
    width: 220px;
}

.small-image-text-block .image-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.small-image-text-block .text-wrapper {
    flex: 1;
}

.small-image-text-block .wysiwyg-content p {
    font-family: 'Avenir', sans-serif;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 16px;
}

.small-image-text-block .wysiwyg-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .small-image-text-block {
        flex-direction: column;
    }
    .small-image-text-block .image-wrapper {
        width: 100%;
        flex: unset;
    }
    .small-image-text-block .image-wrapper img {
        height: 240px;
    }
}


/* =========================================
   SINGLE NOTICIAS — NOTICIAS RELACIONADAS
   ========================================= */
.related-news-section {
    padding: 70px 0 90px;
}

.related-news-header {
    margin: 0 auto 40px;
    padding: 0 35px;
    text-align: center;
}

.related-news-header h2 {
    font-family: 'Avenir', sans-serif;
    font-size: 2.9rem;
    font-weight: 300;
    color: #6b7280;
}

.related-news-header h2 strong {
    font-weight: 700;
    color: #6b7280;
}

.related-news-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: center;
    padding: 10px 35px 18px;
    scrollbar-width: thin;
    scrollbar-color: #e30613 #f0f0f0;
}

.related-news-track::-webkit-scrollbar {
    height: 5px;
}

.related-news-track::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.related-news-track::-webkit-scrollbar-thumb {
    background-color: #e30613;
    border-radius: 10px;
}

.related-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(227, 6, 19, 0.2);
}

.related-card-img {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.related-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.75) 100%);
    border-radius: 16px;
}

.related-cat-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #e30613;
    color: #ffffff;
    font-family: 'Avenir', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.related-card-text {
    position: relative;
    z-index: 2;
    padding: 16px 20px 20px;
}

.related-card-text h3 {
    font-family: 'Avenir', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.related-card-text p {
    font-family: 'Avenir', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 12px;
}

.related-leer {
    font-family: 'Avenir', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    display: inline-block;
}

@media (max-width: 767px) {
    .related-card {
        flex: 0 0 260px;
    }
    .related-card-img {
        height: 240px;
    }
}

/* =========================================
   SECCIÓN DE CONTACTO
   ========================================= */
.contact-section {
    padding: 80px 0;
    background-image: url('/wp-content/uploads/2026/05/contacto-back.png');
    background-repeat: no-repeat;
    /* La anclamos a la esquina inferior izquierda */
    background-position: bottom left; 
    /* ¡EL TRUCO! Limitamos su tamaño al 40% del ancho de la pantalla */
    background-size: 60% auto; 
}

@media (max-width: 767px) {
    .contact-section {
        padding: 50px 20px;
        /* En celulares la hacemos un poco más pequeña o la ocultamos si estorba */
        background-size: 60% auto; 
    }
}

.contact-main-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.contact-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start; /* Mantiene ambas columnas alineadas arriba */
}

/* --- Columna Izquierda (Info) --- */
.contact-info-col {
    flex: 0 0 45%;
    /* Le damos un pequeño empujón de 5px abajo para que alinee perfecto con el label derecho */
    padding-top: 5px; 
}

.info-item {
    display: flex;
    align-items: center; /* ¡MAGIA! Esto centra verticalmente el texto con el centro del icono rojo */
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 0; /* Quitamos un margen viejo que tenías aquí para no dañar el centro */
}

.info-item p, .info-item a {
    color: #555555;
    font-size: 18px; /* Tamaño sutil y profesional */
    line-height: 1.4;
    text-decoration: none;
    margin: 0;
}

.info-item a:hover {
    color: #E30613;
}

/* --- Columna Derecha (Formulario CF7) --- */
.contact-form-col {
    flex: 1;
}

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

.form-group label {
    display: block;
    color: #777777; /* Color gris suave como en la foto */
    font-weight: 400;
    margin-bottom: 0px;
    font-size: 16px; /* BAJAMOS EL TAMAÑO: 27px era muy grande */
    font-family: inherit;
}

/* Inputs y Textarea */
.wpcf7-form-control.form-control {
    width: 100%;
    max-width: 450px; /* Ancho controlado, idéntico a tu foto */
    padding: 10px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    display: block;
}

.wpcf7-form-control.form-control:focus {
    border-color: #e4322c;
    outline: none;
}

textarea.wpcf7-form-control.form-control {
    height: 130px;
    resize: vertical;
    max-width: 450px;
}

/* Botón de Enviar */
.btn-submit-rojo {
    background-color: #e4322c;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit-rojo:hover {
    background-color: #c0000f;
}

/* Ocultar mensajes de error molestos hasta que se envíe */
.wpcf7-not-valid-tip {
    font-size: 0.85rem;
    margin-top: 5px;
    color: #e4322c;
}

/* Responsive Contacto */
@media (max-width: 991px) {
    .contact-grid {
        flex-direction: column;
        gap: 40px;
    }
    .contact-info-col, .contact-form-col {
        flex: 100%;
        padding-top: 0;
    }
    .wpcf7-form-control.form-control {
        max-width: 100%; /* En tablet y celular, los inputs sí ocupan todo el ancho */
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 50px 20px;
    }
    .info-item {
        gap: 15px;
    }
    .info-icon-img {
        width: 35px;
        height: 35px;
    }
    .info-item p, .info-item a {
        font-size: 16px;
    }
    .btn-submit-rojo {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   RESPONSIVE FIXES — PRODUCCIÓN
   ========================================= */

/* --- Títulos sin escala en secciones globales --- */
@media (max-width: 768px) {
    .clients-header h2,
    .representations-header h2 {
        font-size: 1.8rem;
    }
    .news-content h3 {
        font-size: 1.1rem;
    }
    .footer-col h4 {
        font-size: 1rem;
    }
}

/* --- Brand Now: columna de texto fija en tablet --- */
@media (max-width: 991px) {
    .bn-enfoque-texto {
        flex: 1 1 auto;
        max-width: 100%;
    }
    .bn-enfoque-container {
        padding: 60px 40px;
    }
}
@media (max-width: 767px) {
    .bn-enfoque-container {
        flex-direction: column;
        padding: 40px 20px;
        min-height: unset;
    }
    .bn-enfoque-texto {
        max-width: 100%;
    }
    .bn-enfoque-imagen {
        width: 100%;
        height: 280px;
    }
    .bn-enfoque-imagen img {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }
    .bn-enfoque-titulo {
        font-size: 1.8rem;
    }
    .bn-enfoque-texto p br {
        display: none;
    }
}


/* --- Pilar número: escala intermedia en tablet --- */
@media (max-width: 992px) {
    .pilar-num {
        font-size: 10rem;
    }
    .pilar-num-box {
        width: 110px;
    }
}

/* --- División cards: tablet 2 columnas → mobile 1 columna --- */
@media (max-width: 600px) {
    .marcas-grid {
        grid-template-columns: 1fr;
    }
    .marca-card {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* --- Brand Now ventajas: mobile 1 columna --- */
@media (max-width: 480px) {
    .bn-ventajas-grid {
        grid-template-columns: 1fr;
    }
    .bn-ventaja-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .bn-icon-circle img {
        width: 80px;
        height: 80px;
    }
}


/* --- Brand Now testimonio mobile --- */
@media (max-width: 480px) {
    .bn-testimonio-inner {
        padding: 0 20px;
    }
    .bn-testimonio-cita {
        font-size: 1rem;
    }
    .bn-test-nombre {
        font-size: 1.1rem;
    }
}

/* --- Noticias relacionadas: pantallas muy pequeñas --- */
@media (max-width: 480px) {
    .related-card {
        flex: 0 0 220px;
    }
    .related-card-img {
        height: 200px;
    }
    .related-news-header h2 {
        font-size: 1.4rem;
    }
}

/* --- Template noticias: banner responsive --- */
@media (max-width: 767px) {
    .news-section {
        padding: 40px 0;
    }
}

/* --- Formulario contacto: inputs full width --- */
@media (max-width: 480px) {
    .wpcf7-form-control.form-control {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
}

/* --- Hero: pantallas muy pequeñas --- */
@media (max-width: 480px) {
    .hero-section {
        height: 90vh;
        min-height: 500px;
    }
    .hero-container h1 {
        font-size: 1.8rem !important;
    }
    .hero-container p {
        font-size: 0.95rem !important;
    }
}

/* --- División banner: texto en mobile --- */
@media (max-width: 480px) {
    .division-banner-text {
        text-align: left;
    }
    .division-banner-text h2 {
        font-size: 2rem;
        white-space: normal;
    }
    .division-banner-text p {
        font-size: 1rem;
        line-height: 1.4;
    }
    .brand-now-banner .division-banner-text h2 {
        font-size: 1.7rem;
    }
}

/* ==========================================================================
   NUEVO CSS: Botones Flotantes Orgánicos (WhatsApp y LinkedIn)
   ========================================================================== */
.floating-social-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Un poquito más de espacio entre ellos para que respiren */
}

.f-social-btn {
    background-color: #ffffff;
    /* Aumentamos el ancho para que parezca una pastilla larga o un dedo */
    width: 100px; 
    height: 50px; /* Un pelín más altos para una mejor proporción */
    display: flex;
    align-items: center;
    /* Alineamos el icono a la izquierda de la cápsula, con un padding */
    justify-content: flex-start; 
    padding-left: 20px; 
    box-shadow: -3px 3px 12px rgba(0,0,0,0.15); /* Sombra un poco más profunda */
    
    /* ESTA ES LA CLAVE DEL DISEÑO DE "DEDO":
       Aplicamos un radio de borde extremo (50px) en el lado visible (izquierdo),
       y un radio mínimo (10px) en el lado fijo a la pantalla (derecho).
       Esto crea esa forma asimétrica orgánica que sale de la pared.
       He puesto un radio de 50px arriba y 50px abajo en el lado izquierdo
       para que la punta sea un círculo perfecto. */
    border-radius: 50px 10px 10px 50px; 
    
    color: #e30613; /* El rojo de Garabito para los iconos */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.f-social-btn:hover {
    transform: translateX(-8px); /* Efecto de que sale un poquito más al pasar el mouse */
    box-shadow: -5px 5px 15px rgba(0,0,0,0.2); /* Sombra más fuerte en hover */
}

.f-social-btn svg {
    width: 26px; /* Iconos un pelín más grandes para el nuevo tamaño de botón */
    height: 26px;
}
/* ==========================================================================
   Ajustes para Móviles: Botones Flotantes más pequeños
   ========================================================================== */
@media (max-width: 768px) {
    .floating-social-bar {
        gap: 8px; /* Los juntamos un poquito más */
    }
    .f-social-btn {
        width: 55px; /* Los hacemos cortitos, justo para el icono */
        height: 40px; /* Un poco más bajitos */
        padding-left: 14px; /* Acomodamos el icono al nuevo tamaño */
        border-radius: 30px 4px 4px 30px; /* Curva adaptada al tamaño pequeño */
    }
    .f-social-btn svg {
        width: 20px; /* Achicamos los iconos a penitas */
        height: 20px;
    }
}


@media (max-width: 767px) {
    .marca-overlay {
        display: none;
    }
    .marca-card > img {
        transform: none !important;
    }
}
.seccion-divisiones {
    padding: 10px 0;
}

.about-img-col {
    flex:4;
    max-width: 1000px;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}