/* Hero Section Styles - Componente Unificado */

/* Hero Section Base - Para páginas internas (contact, brands, products) */
.page-hero {
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 60px 0 40px 0; /* Altura uniforme más generosa */
    text-align: center;
    height: 230px; /* Altura fija para uniformidad visual */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Títulos unificados */
.page-hero-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-color, #698C8C);
    margin: 0;
    font-family: var(--montserrat-font), Arial, sans-serif;
    line-height: 1.2;
    text-align: center;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-color, #40403F);
    margin: 0;
    font-family: var(--poppins-font), Arial, sans-serif;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
}

/* Variantes de color para diferentes páginas */
.page-hero.contact-hero .page-hero-title {
    color: var(--primary-color, #698C8C);
}

.page-hero.brands-hero .page-hero-title {
    color: var(--primary-color, #698C8C);
    font-weight: 600;
    font-size: 2.5rem;
}

.page-hero.products-hero .page-hero-title {
    color: #3B564D;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        padding: 48px 0 32px 0;
        height: 200px; /* Altura fija en tablet */
    }
    
    .page-hero-title {
        font-size: 2rem;
    }
    
    .page-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .page-hero.brands-hero .page-hero-title {
        font-size: 2.2rem;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 40px 0 24px 0;
        height: 170px; /* Altura fija en mobile */
    }
    
    .page-hero-title {
        font-size: 1.8rem;
    }
    
    .page-hero-subtitle {
        font-size: 1rem;
    }
    
    .page-hero.brands-hero .page-hero-title {
        font-size: 2rem;
        font-weight: 600;
    }
}

/* Compatibilidad con clases existentes - DEPRECATED */
/* Estas clases se mantendrán temporalmente para compatibilidad */
.contact-header-section,
.brands-hero,
.products-header-section {
    /* Redirigir a la nueva clase unificada */
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 60px 0 40px 0;
    text-align: center;
    height: 230px; /* Altura fija para uniformidad */
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-title,
.brands-title,
.products-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-color, #698C8C);
    margin: 0 0 16px 0;
    font-family: var(--montserrat-font), Arial, sans-serif;
    line-height: 1.2;
}

.contact-subtitle,
.brands-hero-desc,
.products-subtitle {
    font-size: 1.2rem;
    color: var(--text-color, #40403F);
    margin: 0;
    font-family: var(--poppins-font), Arial, sans-serif;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajustes específicos para brands */
.brands-title {
    font-weight: 600;
    font-size: 2.5rem;
}

/* Ajustes específicos para products */
.products-title {
    color: #3B564D;
}

/* Hero Section Styles - Solo Hero Estático */

/* Hero Estático */
.hero-static {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
    max-height: 750px;
}

.hero-image-container {
    width: 100%;
    height: auto;
    position: relative;
    display: block;
}

.hero-static-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 750px;
}

.hero-static .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-gray);
    text-align: center;
    padding: 0 20px;
    transform: translateX(10%);
}

/* Estilos de tipografía del hero estático */
.hero-static .hero-title {
    font-family: var(--montserrat-font);
    font-size: 6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    color: #311309;
    line-height: 1.1;
    display: block !important;
    width: 100%;
    pointer-events: auto;
    user-select: text;
    cursor: text;
}

.hero-static .hero-subtitle {
    font-family: var(--poppins-font);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #311309;
    line-height: 1.4;
    display: block !important;
    width: 100%;
    pointer-events: auto;
    user-select: text;
    cursor: text;
}

.hero-highlight {
    color: var(--secondary-color);
    font-weight: 900;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-static .hero-content {
        align-items: center;
        text-align: center;
        padding: 0 5%;
        transform: translateX(5%);
    }
    
    .hero-static .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
        max-width: none;
    }
    
    .hero-static .hero-subtitle {
        font-size: 1.3rem;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero-static {
        max-height: 600px;
    }
    
    .hero-static-img {
        height: auto;
        max-height: 600px;
        object-fit: cover;
    }
    
    /* Sobrescribir style.css línea 950 - Hero específico con mayor especificidad */
    .hero-static .hero-title {
        font-size: 2rem !important;
        letter-spacing: 1.5px;
        margin-bottom: 0.8rem;
    }
    
    .hero-static .hero-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 1.5rem;
    }

    .hero-static .hero-content {
        padding: 0 1.5rem;
        align-items: center;
        text-align: center;
        transform: translateX(10%) !important;
    }
}

@media (max-width: 480px) {
    /* Asegurar especificidad sobre cualquier regla genérica */
    .hero-static .hero-title {
        font-size: 2rem !important;
        letter-spacing: 1px;
    }
    
    .hero-static .hero-subtitle {
        font-size: 0.8rem !important;
    }

    .hero-static .hero-content {
        padding: 0 1rem;
        align-items: center;
        text-align: center;
        transform: translateX(10%) !important;
    }
}

/* Contenedor específico del hero - Sin limitaciones de .container */
.hero-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
} /* Brands Page - Component CSS */

/* Brands Hero Section */
.brands-hero {
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 48px 0 24px 0;
    text-align: center;
}

.brands-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #698C8C);
    font-family: var(--montserrat-font), Arial, sans-serif;
}

.brands-hero-desc {
    color: #555;
    margin-top: 8px;
    font-family: var(--poppins-font), Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

/* Brands Cards Section */
.brands-cards-horizontal {
    padding-top: 48px;
    padding-bottom: 64px;
}

.brand-card-horizontal {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 32px 24px;
    gap: 40px;
    margin-bottom: 40px;
    min-height: 525px;
}

.brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 0 0 40%;
    min-width: 0;
    justify-content: center;
}

.brand-logo {
    width: 160px;
    height: 90px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f8f8;
    margin-bottom: 8px;
    display: block;
}

.brand-name {
    font-size: 1.6rem;
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--primary-color, #698C8C);
    margin: 0 0 8px 0;
}

.brand-desc {
    font-family: var(--body-text-font, 'Open Sans', Arial, sans-serif);
    font-size: 1.1rem;
    color: var(--text-color, #333);
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 18px;
}

.brand-slider-horizontal {
    width: 60%;
    min-width: 300px;
    max-width: 900px;
    display: flex;
    align-items: center;
    position: relative;
}

.brand-photo {
    width: 100%;
    height: 525px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    background: #fff;
    padding: 12px 0;
}

/* Swiper Styles - Compatible con Swiper 11 */
.brand-slider-horizontal .swiper-pagination {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    z-index: 2;
    text-align: center;
}

.brand-slider-horizontal .swiper-button-next,
.brand-slider-horizontal .swiper-button-prev {
    background: var(--primary-color, #698C8C) !important;
    border-radius: 8px !important;
    width: 44px !important;
    height: 44px !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #fff;
    transition: background 0.2s, color 0.2s;
    margin-top: -22px !important;
}

.brand-slider-horizontal .swiper-button-next:hover,
.brand-slider-horizontal .swiper-button-prev:hover {
    background: #3a5a5a !important;
    color: #fff !important;
}

.brand-slider-horizontal .swiper-button-next:after,
.brand-slider-horizontal .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
    color: #fff !important;
}

.brand-slider-horizontal .swiper-button-next {
    right: 10px !important;
}

.brand-slider-horizontal .swiper-button-prev {
    left: 10px !important;
}

.brand-slider-horizontal .swiper-pagination-bullet {
    background: #c2e2d6 !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 4px !important;
    border: 2px solid var(--primary-color, #698C8C);
    transition: background 0.2s, border 0.2s;
    border-radius: 50% !important;
}

.brand-slider-horizontal .swiper-pagination-bullet-active {
    background: var(--primary-color, #698C8C) !important;
    border-color: #3a5a5a;
}

/* Brands CTA Section */
.brands-cta {
    width: 100%;
    background: linear-gradient(135deg, #b9c5b1 0%, #3b564d 100%);
    padding: 64px 0 64px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

.brands-cta-container {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(60, 60, 60, 0.10);
    padding: 38px 28px 32px 28px;
    text-align: center;
    position: relative;
    top: 1px;
    z-index: 2;
}

.brands-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brands-cta-title {
    font-size: 1.18rem;
    font-family: var(--body-text-font, 'Open Sans', Arial, sans-serif);
    color: #2d2d2d;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.7;
}

.brands-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.08rem;
    font-family: var(--body-text-font, 'Open Sans', Arial, sans-serif);
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(60, 60, 60, 0.07);
    background: var(--primary-color, #698C8C);
    color: #fff;
    margin: 0 auto;
}

.brands-cta-btn:hover {
    background: var(--secondary-color, #b9c5b1);
    color: var(--primary-color, #698C8C);
}

/* Responsive Design */
@media (max-width: 900px) {
    .brand-card-horizontal {
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
        padding: 28px 20px;
        gap: 30px;
    }

    .brand-slider-horizontal {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        order: 1; /* Slider aparece primero en móvil */
    }

    .brand-photo {
        height: 450px; /* Aumentado de 300px para mejor visualización */
        object-fit: contain;
        padding: 16px 0;
    }

    .brand-info {
        flex: 1 1 0;
        width: 100%;
        order: 2; /* Info aparece después del slider */
        align-items: center;
        text-align: center;
    }

    .brand-logo {
        width: 140px;
        height: 80px;
        margin: 0 auto 12px auto;
    }

    .brand-name {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .brand-desc {
        text-align: center;
        font-size: 1.05rem;
        line-height: 1.6;
    }

    /* Controles Swiper más grandes para móvil */
    .brand-slider-horizontal .swiper-button-next,
    .brand-slider-horizontal .swiper-button-prev {
        width: 50px !important;
        height: 50px !important;
        margin-top: -25px !important;
    }

    .brand-slider-horizontal .swiper-button-next:after,
    .brand-slider-horizontal .swiper-button-prev:after {
        font-size: 20px !important;
    }

    .brand-slider-horizontal .swiper-pagination-bullet {
        width: 14px !important;
        height: 14px !important;
        margin: 0 6px !important;
    }
}

@media (max-width: 700px) {
    .brands-cta-container {
        padding: 22px 8px 18px 8px;
        max-width: 98vw;
    }

    .brands-cta-title {
        font-size: 1rem;
    }

    .brands-cta-btn {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}

@media (max-width: 600px) {
    .brand-card-horizontal {
        padding: 24px 16px;
        gap: 24px;
        margin-bottom: 32px;
    }

    .brand-logo {
        width: 120px;
        height: 68px;
    }

    .brand-photo {
        height: 380px; /* Aumentado de 160px - mucho mejor para móvil */
        padding: 12px 0;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .brand-desc {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Optimizar controles para pantallas pequeñas */
    .brand-slider-horizontal .swiper-button-next,
    .brand-slider-horizontal .swiper-button-prev {
        width: 46px !important;
        height: 46px !important;
        margin-top: -23px !important;
    }

    .brand-slider-horizontal .swiper-button-next {
        right: 8px !important;
    }

    .brand-slider-horizontal .swiper-button-prev {
        left: 8px !important;
    }

    .brand-slider-horizontal .swiper-pagination {
        bottom: 12px;
    }
}

/* Breakpoint adicional para móviles muy pequeños */
@media (max-width: 480px) {
    .brand-card-horizontal {
        padding: 20px 12px;
        margin-bottom: 28px;
    }

    .brand-photo {
        height: 320px; /* Aún respetable para pantallas muy pequeñas */
    }

    .brand-logo {
        width: 100px;
        height: 56px;
    }

    .brand-name {
        font-size: 2rem;
    }

    .brand-desc {
        font-size: 0.95rem;
    }
} 