/*=============================================
    MÓDULO DE PRODUCTIVIDAD - DISEÑO WORDPRESS
    Basado en Elementor - Packaging and Color
=============================================*/

/* Variables globales del módulo */
:root {
    --pc-dark-bg: #1a2e3f;
    --pc-light-bg: #f8f9fa;
    --pc-green: #2ecc71;
    --pc-yellow: #f1c40f;
    --pc-text-dark: #333333;
    --pc-text-light: #ffffff;
    --pc-spacer-height: 50px;
}

.productivity-section {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    overflow: hidden;
}

/* ========================================
   HERO SECTION - Fondo Oscuro
   ======================================== */
.productivity-hero {
    background-color: var(--pc-dark-bg);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.productivity-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    width: 100%;
}

.hero-title {
    color: var(--pc-text-light);
    font-size: 48px;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease;
}

.hero-title strong {
    font-weight: 700;
}

/* ========================================
   SECCIÓN RECICLABLE - Fondo Gris Claro
   ======================================== */
.productivity-recyclable {
    background-color: var(--pc-light-bg);
    padding: 80px 0;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon {
    width: 276px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.05);
}

.feature-title {
    color: var(--pc-text-dark);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.feature-title strong {
    color: var(--pc-green);
    font-weight: 700;
}

/* ========================================
   SECCIÓN EMPAQUES - Con imagen de fondo
   ======================================== */
.productivity-packaging {
    background-color: #ffffff;
}

.packaging-image-side {
    background-image: url('/public/images/productivity/Materiales-Reciclables.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    position: relative;
}

.packaging-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
}

.packaging-content-side {
    display: flex;
    align-items: center;
    padding: 60px 40px;
    min-height: 600px;
}

.packaging-content-wrapper {
    max-width: 550px;
    margin: 0 auto;
}

.content-icon {
    width: 263px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.content-icon:hover {
    transform: rotate(3deg) scale(1.02);
}

.content-title {
    color: var(--pc-text-dark);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.content-title strong {
    color: #3498db;
    font-weight: 700;
}

.content-description {
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   SECCIÓN CERTIFICACIONES - Fondo Azul Oscuro
   ======================================== */
.productivity-certifications {
    background-color: #F3DDB3;
    padding: 80px 0;
}

.certifications-icon {
    width: 138px;
    height: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.certifications-icon:hover {
    transform: translateY(-8px);
}

.certifications-title {
    color: var(--pc-text-light);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 30px;
}

.certifications-title strong {
    color: var(--pc-yellow);
    font-weight: 700;
}

.certifications-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE - Media Queries
   ======================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 42px;
    }
    
    .feature-title {
        font-size: 32px;
    }
    
    .content-title {
        font-size: 36px;
    }
    
    .certifications-title {
        font-size: 32px;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 36px;
    }
    
    .productivity-recyclable {
        padding: 60px 0;
    }
    
    .feature-title {
        font-size: 28px;
        text-align: center;
    }
    
    .productivity-recyclable .row {
        flex-direction: column-reverse;
    }
    
    .packaging-image-side {
        min-height: 400px;
    }
    
    .packaging-content-side {
        min-height: auto;
        padding: 50px 30px;
    }
    
    .packaging-content-wrapper {
        text-align: center;
    }
    
    .content-title {
        font-size: 32px;
    }
    
    .certifications-title {
        font-size: 28px;
    }
    
    .certifications-description {
        font-size: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 30px;
    }
    
    .feature-icon {
        width: 200px;
    }
    
    .feature-title {
        font-size: 24px;
    }
    
    .content-icon {
        width: 200px;
    }
    
    .content-title {
        font-size: 26px;
    }
    
    .certifications-icon {
        width: 100px;
    }
    
    .certifications-title {
        font-size: 24px;
    }
    
    .packaging-image-side {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 26px;
    }
    
    .productivity-recyclable,
    .productivity-certifications {
        padding: 40px 0;
    }
    
    .feature-icon {
        width: 180px;
    }
    
    .feature-title {
        font-size: 22px;
    }
    
    .content-icon {
        width: 180px;
    }
    
    .content-title {
        font-size: 24px;
    }
    
    .certifications-icon {
        width: 80px;
    }
    
    .certifications-title {
        font-size: 22px;
    }
    
    .certifications-description {
        font-size: 14px;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease forwards;
}


/* ========================================
   SECCIÓN CERTIFICACIONES - Fondo Beige
   ======================================== */
.productivity-certifications {
    background-color: #F3DDB3;
    padding: 80px 0;
}

.certifications-icon {
    width: 138px;
    height: auto;
    max-width: 100%;
    /* El icono en verde #018A17 */
    filter: brightness(0) saturate(100%) invert(26%) sepia(95%) saturate(2500%) hue-rotate(95deg);
    transition: transform 0.3s ease;
}

/* Si el SVG ya es verde, mejor sin filter:
.certifications-icon {
    width: 138px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}
*/

.certifications-icon:hover {
    transform: translateY(-8px);
}

.certifications-title {
    color: #018A17;  /* Título completo en verde #018A17 */
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 30px;
}

.certifications-title strong {
    color: #018A17;  /* Los strong también en verde #018A17 */
    font-weight: 700;
}

.certifications-description {
    color: #333333;  /* El párrafo en NEGRO */
    font-size: 16px;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
}

.certifications-icon {
    width: 138px;
    height: auto;
    max-width: 100%;
    filter: brightness(0) saturate(100%) invert(26%) sepia(95%) saturate(2500%) hue-rotate(95deg);
    transition: transform 0.3s ease;
}


/* ========================================
   SECCIÓN RECICLABLE - Con imagen de fondo verde
   ======================================== */
.productivity-recyclable {
    background-image: url('/public/images/productivity/fondo-sostenible.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
}

/* Overlay verde semitransparente para mejorar legibilidad */
.productivity-recyclable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 138, 23, 0.85); /* #018A17 con opacidad */
    z-index: 1;
}

.productivity-recyclable .container {
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon {
    width: 276px;
    height: auto;
    max-width: 100%;
    filter: brightness(0) invert(1); /* Hace el icono BLANCO */
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.05);
}

.feature-title {
    color: #ffffff;  /* Texto BLANCO */
    font-size: 36px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Sombra para mejor legibilidad */
}

.feature-title strong {
    color: #ffffff;  /* Strong también en BLANCO */
    font-weight: 700;
}



/* ========================================
   HERO SECTION - Con imagen de fondo Sostenibilidad.webp
   ======================================== */
.productivity-hero {
    background-image: url('/public/images/productivity/Sostenibilidad.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.productivity-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay oscuro para mejor legibilidad del texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    width: 100%;
}

.hero-title {
    color: #ffffff;  /* Texto blanco */
    font-size: 48px;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra para mejor legibilidad */
}

.hero-title strong {
    font-weight: 700;
}


/* ========================================
   CORRECCIÓN: HERO TITLE SIEMPRE VISIBLE
   ======================================== */
.hero-title {
    opacity: 1 !important;  /* Forzar que sea visible */
    animation: fadeInUp 1s ease;  /* Mantener la animación */
}

/* Asegurar que el JavaScript no lo oculte */
.productivity-hero .hero-title {
    opacity: 1 !important;
}