/* ==============================================================================
   ARCHIVO AISLADO: quimica-responsive.css
   NOTA: Solo afecta a tablets y móviles (max-width: 992px y 768px). 
   El diseño de escritorio se mantiene intacto.
   ============================================================================== */

/* ==============================================================================
   1. TABLETS Y DISPOSITIVOS MEDIANOS (max-width: 992px)
   ============================================================================== */
@media screen and (max-width: 992px) {
    .propiedades-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .solucion-header-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .categorias-cards-grid,
    .productos-grid-4col,
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px !important;
    }

    .sectores-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .asesoria-content-grid {
        grid-template-columns: 1fr !important;
        padding-left: 0 !important;
        gap: 30px !important;
    }

    .asesora-bg-img {
        width: 100% !important;
        opacity: 0.15; /* Se atenúa en tablet para no estorbar al texto */
    }

    .prefooter-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .prefooter-text-col {
        padding-left: 0 !important;
    }

    .prefooter-leaf-img,
    .prefooter-leaf-overlay {
        display: none !important;
    }
}

/* ==============================================================================
   2. MÓVILES GRANDES Y TABLETS VERTICALES (max-width: 768px)
   ============================================================================== */
@media screen and (max-width: 768px) {

    /* --- 2.1. CONTENEDOR GENERAL --- */
    .container-quimica {
        max-width: 100% !important;
        padding: 80px 15px !important;
    }

    /* --- 2.2. HERO QUÍMICA --- */
    .hero-quimica-v2 {
        min-height: auto !important;
        padding: 50px 0 !important;
    }

    .hero-quimica-left h1 {
        font-size: 2.3rem !important;
        line-height: 1.15 !important;
    }

    .hero-quimica-left p {
        font-size: 0.95rem !important;
    }

    .hero-quimica-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .hero-quimica-buttons a {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* --- 2.3. TIRA FLOTANTE DE PROPIEDADES --- */
    .strip-propiedades-wrapper {
        margin-top: -80px !important;
        margin-bottom: -160px !important;
        padding: 0 10px !important;
    }

    .strip-propiedades-card {
        padding: 20px 15px !important;
    }

    .propiedades-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* --- 2.4. SECCIÓN SOLUCIÓN Y BUSCADOR --- */
    .seccion-solucion {
        padding: 10px 0 20px 0 !important;
    }

    .solion-header-grid,
    .solucion-header-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 25px !important;
    }

    .solucion-text h2 {
        font-size: 1.6rem !important;
    }

    .solucion-text p {
        font-size: 0.92rem !important;
    }

    .search-input-wrapper {
        padding: 4px 4px 4px 12px !important;
        flex-direction: column !important;
        gap: 10px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .search-input-wrapper input {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        padding: 12px !important;
        border-radius: 8px !important;
    }

    .btn-search-orange {
        width: 100% !important;
        text-align: center !important;
    }

    .categorias-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* --- 2.5. SECCIÓN TIENDA Y PRODUCTOS --- */
    .tienda-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-top:-50px;
        gap: 10px !important;
    }

    .tienda-title-row h2 {
        font-size: 1.6rem !important;
    }

    .categorias-pills {
        overflow-x: auto !important;
        width: 100% !important;
        padding-bottom: 8px !important;
        flex-wrap: nowrap !important;
    }

    .cat-pill {
        flex-shrink: 0 !important;
    }

    .productos-grid-4col {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* --- 2.6. BOTÓN FLOTANTE DEL CARRITO --- */
    .floating-cart-btn {
        top: 90px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .cart-modal-drawer {
        max-width: 100% !important;
    }

    /* --- 2.7. TIRA DE BENEFICIOS --- */
    .strip-beneficios {
        padding: 10px 0 !important;
    }

    .beneficios-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* --- 2.8. CONTROL DE CALIDAD --- */
    .seccion-control-calidad {
        padding: 10px 0 !important;
        min-height: auto !important;
    }

    .calidad-text-col h2 {
        font-size: 1.8rem !important;
    }

    .calidad-text-col p {
        font-size: 0.95rem !important;
    }

    /* --- 2.9. SECTORES DE ATENCIÓN --- */
    .seccion-sectores {
        padding: 40px 0 10px 0 !important;
    }

    .seccion-sectores h2 {
        font-size: 1.6rem !important;
        margin-bottom: 20px !important;
    }

    .sectores-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .sector-card {
        height: 200px !important;
    }

   /* --- ASESORÍA Y WHATSAPP (MÓVIL CON IMAGEN VISIBLE) --- */
    .seccion-asesoria-wsp {
        padding: 10px 15px !important;
        display: block !important;
    }

    /* Convierte la imagen en un banner superior limpio y visible */
    .asesora-bg-img {
        position: relative !important;
        width: 100% !important;
        height: 240px !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
        opacity: 1 !important;
        margin-bottom: 0px !important;
        border-radius: 12px !important;
    }

    .asesoria-overlay-gradient {
        display: none !important; /* Se oculta el fundido de escritorio ya que ahora es un banner directo */
    }

    .asesoria-content-grid {
        grid-template-columns: 1fr !important;
        padding-left: 0 !important;
        gap: 20px !important;
    }

    .asesoria-info-col h3 {
        margin-top:-50px;
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .asesoria-info-col p {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
    }

    .btn-wsp-orange {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .asesoria-right-checklist {
        padding: 20px 15px !important;
    }

    .asesoria-right-checklist h4 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }

    .asesoria-right-checklist li {
        font-size: 0.9rem !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }
    /* --- 2.11. PRE-FOOTER --- */
    .seccion-pre-footer {
        padding: 5px 0 !important;
    }

    .prefooter-text-col h2 {
        font-size: 1.5rem !important;
        text-align: center !important;
    }

    .prefooter-img-col {
        justify-content: center !important;
    }
}