/* ==========================================================================
   PÁGINA: BENEFICIOS DEL COMERCIO LOCAL
   Versión: 1.1 - Corregido para móviles
   ========================================================================== */

/* ==========================================================================
   1. SECCIÓN HERO - CABECERA
   ========================================================================== */

.service-hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 120px 0;
    overflow: hidden;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.content-over-overlay {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent !important; /* IMPORTANTE: Evita fondo blanco */
}

/* Forzar que el contenedor del hero sea transparente en TODOS los tamaños */
.service-hero-section .container {
    background: transparent !important;
    background-color: transparent !important;
}

.content-over-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: transparent !important;
    padding: 0 !important;
}

.content-over-overlay .lead {
    font-size: 1.35rem;
    font-weight: 400;
    color: #f8f9fa !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    margin-bottom: 0;
    background: transparent !important;
    padding: 0 !important;
}

/* Forzar texto blanco en toda la sección hero */
.service-hero-section * {
    color: #ffffff !important;
}

.service-hero-section .text-white,
.service-hero-section h1,
.service-hero-section p,
.service-hero-section .lead {
    color: #ffffff !important;
    background: transparent !important;
}

/* ==========================================================================
   2. SECCIÓN DE BENEFICIOS
   ========================================================================== */

.benefits-list-section {
    background-color: #f8f9fa !important;
    padding: 80px 0;
}

.benefit-card-large {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background-color: #ffffff !important;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 35px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card-large:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(237, 143, 12, 0.15);
    border-left: 5px solid var(--color-principal, #ed8f0c);
}

.benefit-card-icon {
    flex-shrink: 0;
    font-size: 2.2rem;
    color: var(--color-principal, #ed8f0c) !important;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(237, 143, 12, 0.1) 0%, rgba(237, 143, 12, 0.05) 100%) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.benefit-card-large:hover .benefit-card-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, rgba(237, 143, 12, 0.2) 0%, rgba(237, 143, 12, 0.1) 100%) !important;
}

.benefit-card-content {
    flex: 1;
}

.benefit-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529 !important;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.benefit-card-text {
    color: #6c757d !important;
    line-height: 1.75;
    margin-bottom: 0;
    font-size: 1rem;
}

/* ==========================================================================
   3. SECCIÓN CTA FINAL
   ========================================================================== */

#cta-final-beneficios,
.cta-section {
    background: linear-gradient(135deg, var(--color-principal, #ed8f0c) 0%, #d97706 100%) !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Forzar que el contenedor de CTA sea transparente en TODOS los tamaños */
.cta-section .container {
    position: relative;
    z-index: 1;
    background: transparent !important;
    background-color: transparent !important;
}

.cta-section .text-center {
    background: transparent !important;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: transparent !important;
}

.cta-text {
    font-size: 1.2rem;
    color: #ffffff !important;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    background: transparent !important;
}

/* Forzar texto blanco en toda la sección CTA */
.cta-section *:not(.btn) {
    color: #ffffff !important;
}

.cta-section h2,
.cta-section p {
    color: #ffffff !important;
    background: transparent !important;
}

.cta-section .btn-light {
    background-color: #ffffff !important;
    color: var(--color-principal, #ed8f0c) !important;
    font-weight: 600;
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-section .btn-light:hover {
    background-color: #212529 !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   4. RESPONSIVE DESIGN
   ========================================================================== */

/* Tablets (landscape) */
@media (max-width: 992px) {
    .service-hero-section {
        min-height: 500px;
        padding: 100px 0;
    }

    .service-hero-section .container {
        background: transparent !important;
    }

    .content-over-overlay {
        background: transparent !important;
    }

    .content-over-overlay h1 {
        font-size: 3rem;
        color: #ffffff !important;
        background: transparent !important;
    }

    .content-over-overlay .lead {
        font-size: 1.2rem;
        color: #f8f9fa !important;
        background: transparent !important;
    }

    .benefits-list-section {
        padding: 60px 0;
    }

    .benefit-card-title {
        font-size: 1.3rem;
    }

    .cta-section .container {
        background: transparent !important;
    }

    .cta-title {
        font-size: 2.2rem;
        color: #ffffff !important;
        background: transparent !important;
    }

    .cta-text {
        color: #ffffff !important;
        background: transparent !important;
    }
}

/* Tablets (portrait) */
@media (max-width: 768px) {
    .service-hero-section {
        min-height: 450px;
        padding: 80px 0;
    }

    .service-hero-section .container {
        background: transparent !important;
        background-color: transparent !important;
    }

    .content-over-overlay {
        background: transparent !important;
        background-color: transparent !important;
        padding: 0 15px !important;
    }

    .content-over-overlay h1 {
        font-size: 2.5rem;
        color: #ffffff !important;
        background: transparent !important;
    }

    .content-over-overlay .lead {
        font-size: 1.1rem;
        color: #f8f9fa !important;
        background: transparent !important;
    }

    .benefit-card-large {
        padding: 30px;
        gap: 20px;
    }

    .benefit-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section .container {
        background: transparent !important;
        background-color: transparent !important;
    }

    .cta-title {
        font-size: 2rem;
        color: #ffffff !important;
        background: transparent !important;
    }

    .cta-text {
        font-size: 1.1rem;
        color: #ffffff !important;
        background: transparent !important;
    }
}

/* Móviles */
@media (max-width: 576px) {
    .service-hero-section {
        min-height: 400px;
        padding: 60px 0;
        background-attachment: scroll;
    }

    /* CRÍTICO: Eliminar fondos blancos en móviles */
    .service-hero-section .container,
    .service-hero-section .text-center,
    .content-over-overlay {
        background: transparent !important;
        background-color: transparent !important;
    }

    .content-over-overlay h1 {
        font-size: 2rem;
        color: #ffffff !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .content-over-overlay .lead {
        font-size: 1rem;
        color: #f8f9fa !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .benefits-list-section {
        padding: 40px 0;
    }

    .benefit-card-large {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 20px;
        padding: 25px;
    }

    .benefit-card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .benefit-card-title {
        font-size: 1.2rem;
    }

    .benefit-card-text {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 50px 0;
    }

    /* CRÍTICO: Eliminar fondos blancos en CTA móvil */
    .cta-section .container,
    .cta-section .text-center {
        background: transparent !important;
        background-color: transparent !important;
    }

    .cta-title {
        font-size: 1.75rem;
        color: #ffffff !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .cta-text {
        font-size: 1rem;
        color: #ffffff !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .cta-section .btn-light {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Móviles pequeños */
@media (max-width: 375px) {
    .service-hero-section {
        min-height: 350px;
        padding: 40px 0;
    }

    .service-hero-section .container,
    .content-over-overlay {
        background: transparent !important;
    }

    .content-over-overlay h1 {
        font-size: 1.75rem;
        color: #ffffff !important;
        background: transparent !important;
    }

    .content-over-overlay .lead {
        font-size: 0.95rem;
        color: #f8f9fa !important;
        background: transparent !important;
    }

    .benefit-card-large {
        padding: 20px;
    }

    .cta-section .container {
        background: transparent !important;
    }

    .cta-title,
    .cta-text {
        color: #ffffff !important;
        background: transparent !important;
    }
}

/* ==========================================================================
   5. SOBRESCRIBIR ESTILOS DEL TEMA
   ========================================================================== */

/* Eliminar cualquier fondo blanco que el tema pueda agregar */
.service-hero-section .container,
.service-hero-section .row,
.service-hero-section .col,
.service-hero-section [class*="col-"],
.service-hero-section div,
.content-over-overlay,
.cta-section .container,
.cta-section .row,
.cta-section .col,
.cta-section [class*="col-"],
.cta-section div:not(.btn) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Mantener el texto blanco en hero y CTA */
.service-hero-section h1,
.service-hero-section h2,
.service-hero-section h3,
.service-hero-section p,
.service-hero-section span,
.service-hero-section .lead,
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section p,
.cta-section span {
    color: #ffffff !important;
    background: transparent !important;
}

/* ==========================================================================
   6. ANIMACIONES Y EFECTOS ADICIONALES
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

.benefit-card-large,
.benefit-card-icon,
.cta-section .btn-light {
    will-change: transform;
}

/* ==========================================================================
   7. UTILIDADES Y AJUSTES FINALES
   ========================================================================== */

.service-hero-section {
    background-color: #212529;
}

.text-white {
    color: #ffffff !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.bg-white {
    background-color: #ffffff !important;
}
