:root {
    --spax-green: #0d6e3a;
    --spax-dark: #2c2c2c;
    --spax-cream: #F9F9F8;
    --spax-gray: #f4f4f4;
    --text-muted: #7a7a7a;
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.06);
    --shadow-float: 0 25px 50px rgba(13, 110, 58, 0.15);
}

body {
    background-color: var(--spax-cream); 
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hero-productos {
    position: relative;
    padding: 180px 0 120px 0;
    /* Gradient oscuro degradado para contraste + imagen */
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%),
        url('/assets/productos/hero-productos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-productos {
        padding: 130px 0 60px 0;
        min-height: auto;
    }
}
/* Resalte y sombra de texto en el Hero */
.hero-productos h1, 
.hero-productos .title-premium,
.hero-productos .title-premium-sm {
    color: #ffffff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-productos p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 540px;
}

/* Estilo flotante premium para la barra de búsqueda */
.hero-productos .input-group {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    overflow: hidden;
    background-color: #ffffff;
}

.hero-productos .input-group input {
    border: none;
    padding-left: 20px;
}

.hero-productos .input-group input:focus {
    box-shadow: none;
}
.hero-productos .title-premium-sm {
    color: white;
}

.hero-productos p {
    color: rgba(255, 255, 255, 0.8) !important;
}
.spax-organic-card .badge-vertical {
    background-color: var(--spax-dark);
}

@keyframes float-organic {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
}

@media (max-width: 767.98px) {

    #productViewModal {
        padding: 10px !important;
    }

    #productViewModal .modal-dialog {
        margin: 10px auto;
        width: calc(100% - 10px);
        max-width: 500px;
        min-height: calc(100vh - 20px);
        display: flex;
        align-items: center;
    }

    #productViewModal .modal-content {
        width: 100%;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        overflow-x: hidden;
      
    }

    #productViewModal .row {
        --bs-gutter-x: 0;
    }


    #modalImageContainer {
        width: 100%;
        min-height: 280px !important;
        height: 280px;
        flex: 0 0 280px;
    }

    #modalProductImage {
        max-width: 75%;
        max-height: 175px !important;
        object-fit: contain;
    }

    #modalImageContainer > img.position-absolute {
        width: 130px !important;
        top: 15px !important;
        left: 15px !important;
    }

    #productViewModal .btn-close {
        top: 10px !important;
        right: 10px !important;
        margin: 0 !important;
        padding: 10px !important;
        z-index: 1060 !important;
    }

    #btnZoomModal {
        top: 15px !important;
        right: 55px !important;
        width: 40px !important;
        height: 40px !important;
    }


    #modalImageContainer .position-absolute.d-flex {
        bottom: 12px !important;
        right: 12px !important;
        gap: 8px !important;
    }

    #thumb-screw,
    #thumb-box {
        width: 65px !important;
        height: 65px !important;
    }

    #productViewModal .col-md-7 {
        width: 100%;
        padding: 22px !important;
    }

    #productViewModal .col-md-7 > .position-relative.mb-4 {
        margin-bottom: 22px !important;
    }

    #modalSearchInput {
        height: 45px;
        font-size: 0.82rem !important;
    }

    #modalProductCode {
        font-size: 0.72rem !important;
    }

    #productViewModalLabel {
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
        padding-right: 10px;
    }

    #productViewModal .row.g-3.mb-4 {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 8px;
    }

    #productViewModal .row.g-3.mb-4 .col-6 {
        width: 50%;
    }

    #productViewModal .row.g-3.mb-4 .p-3 {
        padding: 12px 8px !important;
       
    }

    #modalIconPres,
    #modalIconQuant {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 7px !important;
    }

    #productViewModal .row.g-3.mb-4 small {
        font-size: 0.55rem !important;
    }

    #modalProductPresentation,
    #modalProductQuantity {
        font-size: 0.82rem !important;
        line-height: 1.2;
    }


    #productViewModal .list-unstyled li {
        font-size: 0.78rem !important;
        line-height: 1.4;
    }

    #btnCotizarWa {
        font-size: 0.78rem !important;
        padding: 12px 15px !important;
    }

    #btnCotizarWa i {
        font-size: 1.2rem !important;
    }


    #productViewModal .mt-auto {
        padding-top: 18px !important;
    }
}

@media (max-width: 380px) {

    #productViewModal {
        padding: 5px !important;
    }

    #productViewModal .modal-dialog {
        width: calc(100% - 4px);
        margin: 5px auto;
    }

    #productViewModal .modal-content {
        max-height: calc(100vh - 10px);
       
    }

    #modalImageContainer {
        min-height: 240px !important;
        height: 240px;
    }

    #modalProductImage {
        max-height: 145px !important;
    }

    #thumb-screw,
    #thumb-box {
        width: 55px !important;
        height: 55px !important;
    }

    #productViewModal .col-md-7 {
        padding: 18px !important;
    }

    #productViewModalLabel {
        font-size: 1.1rem !important;
    }

    #productViewModal .row.g-3.mb-4 .p-3 {
        padding: 10px 5px !important;
    }
}
.spax-organic-card,
.spax-organic-card .card-img-wrapper,
.spax-organic-card .badge-vertical {
    border-radius: 0 !important;
}
.spax-family-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-image: 
        linear-gradient(rgba(247, 244, 244, 0.1), rgba(17, 17, 17, 0.5)), 
        url('/assets/productos/section-productos.webp'),
        radial-gradient(circle at 50% 40%, #158b4b 0%, #094f29 100%);

    position: relative;
    color: #ffffff;

    background-position: center center;
    margin-top:-2.5rem;
    margin-bottom:4rem;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.spax-watermark-left,
.spax-watermark-right {
    position: absolute;
    opacity: 0.12;
    z-index: 2;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.spax-watermark-left {
    width: 600px;
    top: -70px;
    left: -250px;
    transform: rotate(12deg);
}

.spax-watermark-right {
    width: 500px;
    bottom: -150px;
    right: -150px;
    transform: rotate(-45deg);
}

.spax-family-img {
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(255,255,255,0.08));
    transition: transform 0.3s ease;
}

.spax-family-img:hover {
    transform: scale(1.05);
}

.spax-family-desc {
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
}
.pagination .page-item.active .page-link {
            background-color: var(--spax-green, #0d6e3a);
            border-color: var(--spax-green, #0d6e3a);
            color: #fff;
        }

        .pagination .page-link {
            color: var(--spax-dark, #2c2c2c);
            font-weight: 600;
            border-radius: 0 !important;
            margin: 0 2px;
        }

        .pagination .page-link:focus {
            box-shadow: none;
        }