/**
 * Manifiesto bundle catálogo — solo @import.
 * Editar estilos en los .css referenciados; regenerar: .\scripts\bundle-css.ps1
 */
/* --- catalogo-moderno.css --- */
/* ============================================================
   CATÁLOGO MODERNO - GLASSMORPHISM DESIGN
   ============================================================ */

/* Variables CSS para colores y efectos */
:root {
    --primary-color: #26252D;
    --secondary-color: #3A3A4A;
    --accent-color: #c81c24;
    --water-color: #4A90E2;
    --sintetico-color: #E67E22;
    --poliuretanico-color: #9B59B6;
    --text-dark: #26252D;
    --text-light: #FDFDFD;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --blur: blur(12px);
}

/* ============================================================
   CONTENEDOR PRINCIPAL DEL CATÁLOGO
   ============================================================ */

.catalogo-moderno {
    padding: 30px 20px 60px; /* Reduced top padding */
    max-width: 1400px;
    margin: 0 auto;
    background: #f6f7f8;
    min-height: 100vh;
}

/* ============================================================
   BARRA DE BÚSQUEDA Y FILTROS
   ============================================================ */

.barra-busqueda-filtros {
    display: none;
}

.search-container-premium {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-premium {
    width: 100%;
    padding: 15px 25px 15px 50px;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.search-input-premium:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(200, 28, 36, 0.1);
}

.busqueda-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 20px;
}

/* ============================================================
   FILTROS TIPO CHIPS
   ============================================================ */

.filtros-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.filtro-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.filtro-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filtro-chip.activo {
    background: linear-gradient(135deg, var(--accent-color), #c70000);
    border-color: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.filtro-chip .chip-icon {
    font-size: 16px;
}

.filtro-chip .chip-remove {
    margin-left: 5px;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.filtro-chip .chip-remove:hover {
    opacity: 1;
}

/* ============================================================
   TÍTULO DE CATEGORÍA
   ============================================================ */

.titulo-categoria {
    text-align: center;
    margin: 20px 0 15px;
    padding: 15px;
}

.titulo-categoria h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.titulo-categoria .icono-categoria {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

/* ============================================================
   GRID DE PRODUCTOS CON GLASSMORPHISM
   ============================================================ */

.productos-grid-moderno {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.producto-card-glass {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.producto-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--water-color), var(--sintetico-color), var(--poliuretanico-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto-card-glass:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
}

.producto-card-glass:hover::before {
    opacity: 1;
}

/* Imagen del producto */
.producto-imagen-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-imagen {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.producto-card-glass:hover .producto-imagen {
    transform: scale(1.1);
}

.producto-imagen-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto-card-glass:hover .producto-imagen-container::after {
    opacity: 1;
}

/* Badge del sistema */
.badge-sistema {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.badge-sistema.agua {
    background: linear-gradient(135deg, #4A90E2, #5BA3F5);
    color: white;
}

.badge-sistema.sintetico {
    background: linear-gradient(135deg, #E67E22, #F39C12);
    color: white;
}

.badge-sistema.poliuretanico {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
    color: white;
}

.badge-sistema.nitrosintetico {
    background: linear-gradient(135deg, #1ABC9C, #16A085);
    color: white;
}

.producto-card-glass:hover .badge-sistema {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Nombre del producto */
.producto-nombre {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botón de detalles */
.btn-detalles-glass {
    width: 100%;
    padding: 12px 20px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.producto-links-herramientas {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.link-herramienta {
    font-size: 0.85em;
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.link-herramienta:hover {
    opacity: 1;
    color: var(--accent-color);
}

.link-herramienta i {
    margin-right: 4px;
}

.btn-detalles-glass:hover {
    background: linear-gradient(135deg, var(--accent-color), #c70000);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   MENSAJE SIN RESULTADOS
   ============================================================ */

.sin-resultados {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sin-resultados-icono {
    font-size: 64px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.sin-resultados h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.sin-resultados p {
    color: rgba(44, 62, 80, 0.7);
    font-size: 16px;
}

.sin-resultados-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 26px;
    background: #25d366;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sin-resultados-wa i {
    font-size: 20px;
}

.sin-resultados-wa:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.sin-resultados-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 14px;
    padding: 10px 20px;
    border: 2px solid #c0392b;
    color: #c0392b;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sin-resultados-link:hover {
    background: #c0392b;
    color: #fff;
}

/* ============================================================
   BUSCADOR GLOBAL (sidebar) + RESULTADOS POR SECCIÓN
   ============================================================ */

.catalogo-buscar-global {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.catalogo-buscar-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.catalogo-buscar-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.catalogo-buscar-wrap .catalogo-input {
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
}

.catalogo-buscar-btn {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    padding: 0 16px;
    background: #c0392b;
    color: #fff;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 16px;
    transition: background 0.2s ease;
}

.catalogo-buscar-btn:hover {
    background: #a93226;
}

.buscar-seccion {
    margin-bottom: 34px;
}

.buscar-seccion-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(192, 57, 43, 0.25);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark, #1f2937);
}

.buscar-seccion-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: #c0392b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 13px;
}

/* ============================================================
   CONTADOR DE RESULTADOS
   ============================================================ */

.contador-resultados {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.contador-resultados strong {
    color: var(--accent-color);
    font-size: 18px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .catalogo-moderno {
        padding: 20px 15px 40px; /* Further reduced for mobile */
    }
    
    .productos-grid-moderno {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .barra-busqueda-filtros {
        padding: 20px;
    }
    
    .filtros-chips {
        gap: 8px;
    }
    
    .filtro-chip {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .titulo-categoria h2 {
        font-size: 24px;
    }
    
    .producto-imagen-container {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .productos-grid-moderno {
        grid-template-columns: 1fr;
    }
    
    .busqueda-input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .catalogo-moderno {
        padding: 15px 8px 20px;
    }
}

/* ============================================================
   ANIMACIONES
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto-card-glass {
    animation: fadeInUp 0.5s ease-out;
}

.producto-card-glass:nth-child(1) { animation-delay: 0.1s; }
.producto-card-glass:nth-child(2) { animation-delay: 0.2s; }
.producto-card-glass:nth-child(3) { animation-delay: 0.3s; }
.producto-card-glass:nth-child(4) { animation-delay: 0.4s; }
.producto-card-glass:nth-child(5) { animation-delay: 0.5s; }
.producto-card-glass:nth-child(6) { animation-delay: 0.6s; }

/* ============================================================
   NAVEGACIÓN DE CATEGORÍAS
   ============================================================ */

.categorias-nav {
    display: none !important;
}

.box10 + .categorias-nav {
    margin-top: 0 !important;
}

.categorias-scroll {
    max-width: min(1680px, calc(100vw - 12px));
    margin: 0 auto;
}

.categorias-carousel {
    max-width: min(1680px, calc(100vw - 12px));
    margin: 0 auto;
}

.categorias-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 8px;
}

.categorias-page {
    display: contents;
}

.categorias-carousel-ui {
    display: none;
}

.categorias-container {
    max-width: min(1680px, calc(100vw - 12px));
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 8px;
}

.categoria-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.categoria-link:hover,
.categoria-link.activa {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.categoria-link.activa {
    background: linear-gradient(135deg, var(--accent-color), #c70000);
    border-color: var(--accent-color);
}

/* ============================================================
   ESTILOS PARA FILTROS AVANZADOS (OPCIONAL)
   ============================================================ */

.filtros-avanzados {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.filtro-grupo {
    margin-bottom: 15px;
}

.filtro-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.filtro-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   LIMPIAR FILTROS
   ============================================================ */

.btn-limpiar-filtros {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    color: #E74C3C;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-limpiar-filtros:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: #E74C3C;
    transform: translateY(-2px);
}


.sin-resultados { text-align: center; padding: 60px 20px; background: white; border-radius: 20px; margin: 40px auto; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); } .sin-resultados-icono { font-size: 3rem; color: #ddd; margin-bottom: 20px; display: block; } .btn-limpiar-filtros { margin-top: 15px; padding: 12px 25px; background: #c81c24; border: none; border-radius: 30px; color: white; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(200, 28, 36, 0.3); } .btn-limpiar-filtros:hover { background: #800000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200, 28, 36, 0.4); }

.conteo-resultados { margin-bottom: 20px; font-size: 0.95rem; color: #666; font-style: italic; border-left: 3px solid #c81c24; padding-left: 15px; }

/* Carrusel mobile: 2 rubros por pantalla, deslizar entre páginas */
@media (max-width: 768px) {
    .categorias-nav {
        padding: 8px 0 6px;
    }

    .categorias-carousel {
        max-width: 100%;
        overflow: hidden;
        touch-action: pan-y;
    }

    .categorias-track {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        transition: transform 0.28s ease-out;
        will-change: transform;
    }

    .categorias-page {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        flex: 0 0 100%;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .categoria-link {
        min-width: 0;
        padding: 10px 8px;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .categoria-link:hover,
    .categoria-link.activa {
        transform: none;
    }

    .categorias-carousel-ui {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 6px 10px 2px;
    }

    .categorias-carousel-hint {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.65);
        letter-spacing: 0.02em;
    }

    .categorias-carousel-dots {
        display: flex;
        gap: 6px;
        justify-content: center;
    }

    .categorias-carousel-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: rgba(255, 255, 255, 0.35);
        cursor: pointer;
    }

    .categorias-carousel-dot.is-active {
        background: #fff;
        transform: scale(1.15);
    }
}

/* --- catalogo-layout-v8.css --- */
/* Layout catálogo: sidebar, toolbar, paginación — v3 compacto */

.catalogo-layout-v8 .catalogo-layout-inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    max-width: min(1680px, calc(100vw - 12px));
    margin: 0 auto;
    padding: 0 6px 40px;
    align-items: start;
    box-sizing: border-box;
}

.catalogo-sidebar {
    position: sticky;
    top: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 14px 12px;
    box-shadow: none;
}

.catalogo-sidebar-toggle {
    display: none;
}

.catalogo-rubro-nav {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.catalogo-rubro-nav .catalogo-sidebar-title {
    margin-top: 0;
}

.catalogo-rubro-nav .catalogo-input {
    font-weight: 600;
}

.catalogo-sidebar-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.catalogo-filtros-form label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    margin: 10px 0 4px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.catalogo-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.catalogo-input:focus {
    outline: none;
    border-color: #c81c24;
    box-shadow: 0 0 0 2px rgba(200, 28, 36, 0.1);
}

.catalogo-btn-primary {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #c81c24;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.catalogo-btn-primary:hover {
    filter: brightness(1.05);
}

.catalogo-btn-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #c81c24;
}

.catalogo-main {
    min-width: 0;
}

.catalogo-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.catalogo-page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #26252d;
}

.catalogo-count {
    margin: 2px 0 0;
    color: #6b7580;
    font-size: 0.8125rem;
}

.catalogo-vista-toggle {
    display: flex;
    gap: 2px;
    background: #f3f4f6;
    padding: 3px;
    border-radius: 6px;
}

.catalogo-vista-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.875rem;
}

.catalogo-vista-btn.activa {
    background: #fff;
    color: #c81c24;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.catalogo-paginacion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    padding-top: 16px;
}

.catalogo-page-btn,
.catalogo-page-num {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 0.8125rem;
}

.catalogo-page-num.activa {
    background: #c81c24;
    color: #fff;
    border-color: #c81c24;
}

.catalogo-page-nums {
    display: flex;
    gap: 4px;
}

.catalogo-productos[data-vista="lista"] {
    grid-template-columns: 1fr !important;
}

.catalogo-productos[data-vista="lista"] .producto-card-glass {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 16px;
    align-items: center;
    max-height: none;
}

.catalogo-productos[data-vista="lista"] .producto-imagen-container {
    grid-row: 1 / span 2;
    height: 100px;
}

.catalogo-productos[data-vista="lista"] .badge-sistema {
    grid-column: 2;
    justify-self: start;
}

.catalogo-productos[data-vista="lista"] .producto-nombre {
    grid-column: 2;
    text-align: left;
    margin: 0;
}

.catalogo-productos[data-vista="lista"] .btn-detalles-glass {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
}

.catalogo-productos[data-vista="lista"] .producto-links-herramientas {
    grid-column: 2;
    justify-content: flex-start;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Nav de rubros alineada al ancho del catálogo */
.catalogo-layout-v8 ~ .footer-moderno,
body:has(.catalogo-layout-v8) .categorias-carousel,
body:has(.catalogo-layout-v8) .categorias-track {
    max-width: min(1680px, calc(100vw - 12px));
}

@media (min-width: 1400px) {
    .catalogo-layout-v8 .catalogo-layout-inner {
        padding-left: 4px;
        padding-right: 8px;
    }
}

@media (max-width: 1024px) {
    .catalogo-layout-v8 .catalogo-layout-inner {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 12px;
        max-width: 100%;
        padding: 0 10px 32px;
    }
}

@media (max-width: 860px) {
    .catalogo-layout-v8 .catalogo-layout-inner {
        grid-template-columns: 1fr;
        padding: 0 12px 28px;
    }

    .catalogo-sidebar {
        position: static;
    }

    /* Toggle de filtros en mobile */
    .catalogo-sidebar {
        padding: 10px 10px;
    }

    .catalogo-sidebar-title {
        display: none;
    }

    .catalogo-sidebar-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 12px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #111827;
        font-weight: 800;
        font-size: 0.95rem;
        cursor: pointer;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    .catalogo-sidebar-toggle .catalogo-sidebar-toggle-text {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .catalogo-sidebar-toggle-icon {
        transition: transform 0.2s ease;
        color: #6b7280;
    }

    .catalogo-sidebar.is-collapsed .catalogo-sidebar-toggle-icon {
        transform: rotate(-90deg);
    }

    .catalogo-sidebar-body {
        overflow: hidden;
        max-height: 1200px;
        transition: max-height 0.25s ease, opacity 0.2s ease;
        opacity: 1;
        margin-top: 10px;
    }

    .catalogo-sidebar.is-collapsed .catalogo-sidebar-body {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        pointer-events: none;
        visibility: hidden;
    }

    .catalogo-sidebar:not(.is-collapsed) .catalogo-sidebar-body {
        pointer-events: auto;
        visibility: visible;
    }
}

@media (max-width: 600px) {
    .catalogo-productos[data-vista="lista"] .producto-card-glass {
        grid-template-columns: 1fr;
    }

    .catalogo-productos[data-vista="lista"] .producto-imagen-container {
        grid-row: auto;
    }

    .catalogo-productos[data-vista="lista"] .btn-detalles-glass {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Estado de carga AJAX */
.catalogo-main {
    transition: opacity 0.2s ease;
}
.catalogo-main.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* --- catalogo-tienda.css --- */
/* Catálogo estilo pinturería — 4 columnas, tarjeta clickeable, precios */

.catalogo-productos.tienda-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
    margin-top: 8px;
}

.tienda-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.tienda-card:hover {
    border-color: #ccc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.tienda-card-media {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tienda-card-title-link {
    text-decoration: none;
    color: inherit;
}

.tienda-card-title-link:hover .tienda-card-title {
    color: #c81c24;
}

.tienda-card-img {
    position: relative;
    background: #fafafa;
    padding: 20px 16px 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tienda-card-img img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tienda-descuento-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c81c24;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    line-height: 1.2;
    z-index: 1;
}

.tienda-descuento-solo {
    position: static;
    display: inline-block;
    margin-bottom: 6px;
}

.tienda-card-body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f0f0f0;
}

.tienda-card-title {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.8em;
}

.tienda-precios {
    margin-top: auto;
}

.tienda-precio-fila {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.tienda-precio-lista {
    font-size: 0.8rem;
    color: #888;
    text-decoration: line-through;
}

.tienda-badge-online {
    display: inline-block;
    font-size: 0.65rem;
    color: #5a7a9a;
    background: #eef4f9;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.tienda-precio-actual {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #c81c24;
    letter-spacing: -0.02em;
}

.tienda-btn-cotizar {
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;
    border: none;
    border-radius: 4px;
    background: #c81c24;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tienda-btn-cotizar:hover {
    background: #a60000;
}

.tienda-cuota-destacada {
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: #444;
    line-height: 1.4;
}

.tienda-cuota-destacada strong {
    color: #1a1a1a;
}

.tienda-precio-meta {
    margin: 0 0 4px;
    font-size: 0.72rem;
    color: #777;
    line-height: 1.35;
}

.tienda-precio-meta span {
    color: #555;
}

.tienda-financiacion {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.68rem;
    color: #666;
    line-height: 1.45;
    border-top: 1px dashed #eee;
    padding-top: 8px;
}

.tienda-financiacion li {
    margin-bottom: 4px;
}

.tienda-dias {
    font-style: normal;
    color: #888;
}

.tienda-precio-consultar {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #c81c24;
}

/* Vista lista compacta */
.catalogo-productos[data-vista="lista"].tienda-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.catalogo-productos[data-vista="lista"] .tienda-card {
    display: grid;
    grid-template-columns: 160px 1fr;
}

.catalogo-productos[data-vista="lista"] .tienda-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalogo-productos[data-vista="lista"] .tienda-card-img {
    width: 160px;
    min-height: 140px;
    flex-shrink: 0;
}

.catalogo-productos[data-vista="lista"] .tienda-card-body {
    border-top: none;
    border-left: 1px solid #f0f0f0;
}

@media (max-width: 1200px) {
    .catalogo-productos.tienda-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .catalogo-productos.tienda-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .catalogo-productos.tienda-grid {
        grid-template-columns: 1fr;
    }

    .catalogo-productos[data-vista="lista"] .tienda-card-link {
        flex-direction: column;
    }

    .catalogo-productos[data-vista="lista"] .tienda-card-img {
        width: 100%;
    }

    .catalogo-productos[data-vista="lista"] .tienda-card-body {
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }
}

/* --- catalogo-ficha-v9.css --- */
/* Ficha producto — Mostrador limpio (opción A refinada) */

.ficha-v9-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 14px;
    margin-top: 8px;
}

.ficha-v9-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ficha-v9-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 18px rgba(38, 37, 45, 0.07);
}

.ficha-v9-media-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 14px 12px;
    background: #f6f7f8;
    min-height: 0;
}

.ficha-v9-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 132px;
    text-decoration: none;
}

.ficha-v9-img-wrap img {
    width: auto;
    max-width: 88%;
    max-height: 148px;
    min-height: 96px;
    object-fit: contain;
}

.ficha-v9-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    max-width: 48%;
    min-width: 0;
    pointer-events: none;
}

.ficha-v9-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.94);
    color: #4b5563;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: none;
}

.ficha-v9-badge.badge-espacio {
    border-color: rgba(74, 222, 128, 0.45);
    color: #166534;
    background: rgba(240, 253, 244, 0.9);
}

.ficha-v9-badge.badge-brillo {
    border-color: rgba(248, 113, 113, 0.45);
    color: #991b1b;
    background: rgba(254, 242, 242, 0.9);
}

.ficha-v9-badge.badge-sistema,
.ficha-v9-badge.badge-secado {
    border-color: rgba(96, 165, 250, 0.45);
    color: #1e40af;
    background: rgba(239, 246, 255, 0.9);
}

.ficha-v9-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #f0f0f0;
}

.ficha-v9-title-link {
    text-decoration: none;
    color: inherit;
}

.ficha-v9-title {
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #26252d;
    text-transform: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ficha-v9-title-link:hover .ficha-v9-title {
    color: #c81c24;
}

.ficha-v9-sub {
    margin: 0 0 4px;
    font-size: 0.625rem;
    color: #6b7280;
    line-height: 1.3;
}

.ficha-v9-precios {
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ficha-v9-precio-consultar {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.ficha-v9-precio-actual {
    margin: 0 0 2px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #c81c24;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ficha-v9-por-litro {
    margin: 0 0 2px;
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.3;
    opacity: 1;
}

.ficha-v9-por-litro[hidden] {
    display: none;
}

.ficha-v9-precio-neto {
    margin: 0 0 8px;
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.3;
}

.ficha-v9-financia {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
    margin: 0 0 6px;
    padding: 8px 0 0;
    border-top: 1px solid #eef0f3;
}

.ficha-v9-cuota {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.ficha-v9-cuota[hidden] {
    display: none;
}

.ficha-v9-cuota strong {
    font-weight: 700;
    color: #26252d;
}

.ficha-v9-cuota-ico {
    flex: 0 0 auto;
    width: 14px;
    height: 11px;
    border: 1.5px solid #9ca3af;
    border-radius: 2px;
    position: relative;
    display: inline-block;
}

.ficha-v9-cuota-ico::before {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    top: 3px;
    height: 2px;
    background: #9ca3af;
}

.ficha-v9-ver-promos {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #07008a;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    flex: 0 0 auto;
    transition: color 0.15s;
}

.ficha-v9-ver-promos::after {
    content: "\2192";
    font-weight: 600;
}

.ficha-v9-ver-promos:hover {
    background: transparent;
    color: #c81c24;
    border-color: transparent;
    text-decoration: underline;
}

.ficha-v9-ref-web {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.62rem;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.3;
    white-space: nowrap;
}

.ficha-v9-envases,
.ficha-v9-brillos {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin: 0 0 8px;
    width: 100%;
}

.ficha-v9-brillo,
.ficha-v9-envase {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 4px;
    padding: 7px 11px;
    min-height: 36px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ficha-v9-brillo:hover:not(.ficha-v9-brillo--nat),
.ficha-v9-brillo.activo:not(.ficha-v9-brillo--nat),
.ficha-v9-envase:hover,
.ficha-v9-envase.activo {
    border-color: #07008a;
    color: #07008a;
    background: rgba(7, 0, 138, 0.05);
}

.ficha-v9-brillo--nat {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    padding: 5px 7px 6px;
    min-width: 60px;
    max-width: 78px;
    min-height: 0;
    text-align: center;
    border-radius: 4px;
    background: #fff !important;
    color: #374151 !important;
}

.ficha-v9-brillo--nat:hover,
.ficha-v9-brillo--nat.activo {
    border-color: #07008a;
    box-shadow: 0 0 0 1px rgba(7, 0, 138, 0.2);
    background: #f8fafc !important;
}

.ficha-v9-brillo-swatch {
    display: block;
    width: 100%;
    min-height: 32px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ficha-v9-brillo-cap {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.15;
    word-break: break-word;
}

.ficha-v9-colores {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px 6px;
    margin: 0 0 8px;
    width: 100%;
}

.ficha-v9-color-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    max-width: 52px;
    flex: 0 0 auto;
}

.ficha-v9-color-label {
    display: block;
    width: 100%;
    font-size: 0.58rem;
    font-weight: 500;
    line-height: 1.15;
    text-align: left;
    color: #6b7280;
    word-break: break-word;
    hyphens: auto;
}

.ficha-v9-color-item:has(.ficha-v9-color.activo) .ficha-v9-color-label {
    color: #07008a;
    font-weight: 700;
}

.ficha-v9-color {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45);
    background-color: var(--swatch, #eee);
    background-image: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

/* PNG de texturas (ej. tintas tipo madera): chip más grande + <img> nítido */
.ficha-v9-color--pic {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
}

.ficha-v9-color-chip {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.25),
        0 1px 3px rgba(15, 23, 42, 0.12);
    background: var(--swatch, #eee);
}

.ficha-v9-color-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.ficha-v9-color:not(.ficha-v9-color--pic).activo {
    border-color: #07008a;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 0 0 2px rgba(7, 0, 138, 0.2);
}

.ficha-v9-color--pic.activo .ficha-v9-color-chip {
    border-color: #07008a;
    outline: 2px solid rgba(7, 0, 138, 0.45);
    outline-offset: 1px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(7, 0, 138, 0.15);
}

.ficha-v9-litros-link {
    margin: 4px 0 8px;
    font-size: 0.65rem;
}

.ficha-v9-litros-link a {
    color: #07008a;
    text-decoration: none;
}

.ficha-v9-litros-link a:hover {
    text-decoration: underline;
    color: #c81c24;
}

.ficha-v9-cotizar,
.ficha-v9-cotizar.tienda-btn-cotizar {
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #c81c24 !important;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease;
}

.ficha-v9-cotizar i,
.ficha-v9-cotizar .fa,
.ficha-v9-cotizar svg {
    display: none !important;
}

.ficha-v9-cotizar:hover,
.ficha-v9-cotizar.tienda-btn-cotizar:hover {
    filter: none;
    background: #a60000 !important;
}

/* Tintas madera: mismo ancho que el resto; 5 colores en una fila dentro de la ficha */
.ficha-v9-card--maderas .ficha-v9-colores {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px 5px;
}

.ficha-v9-card--maderas .ficha-v9-color-item {
    max-width: none;
    width: 100%;
}

.ficha-v9-card--maderas .ficha-v9-color-chip {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

/* Notebook / tablet ancha: 3 columnas compactas */
@media (max-width: 1280px) {
    .ficha-v9-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .ficha-v9-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Móvil */
@media (max-width: 520px) {
    .ficha-v9-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ficha-v9-media-row {
        padding: 14px 12px 10px;
    }

    .ficha-v9-img-wrap {
        min-height: 120px;
    }

    .ficha-v9-img-wrap img {
        max-height: 130px;
        min-height: 90px;
    }

    .ficha-v9-title {
        font-size: 0.9rem;
    }

    .ficha-v9-precio-actual {
        font-size: 1.35rem;
    }

    .ficha-v9-color-chip {
        width: 36px;
        height: 36px;
    }

    .ficha-v9-color-item {
        max-width: 42px;
    }

    .ficha-v9-color-label {
        font-size: 0.52rem;
    }
}

/* Vista lista */
.catalogo-productos.ficha-v9-grid[data-vista="lista"] {
    grid-template-columns: 1fr;
    gap: 12px;
}

.catalogo-productos.ficha-v9-grid[data-vista="lista"] .ficha-v9-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

.catalogo-productos.ficha-v9-grid[data-vista="lista"] .ficha-v9-media-row {
    flex: 0 0 160px;
    border-radius: 0;
    border-right: 1px solid #f0f0f0;
}

.catalogo-productos.ficha-v9-grid[data-vista="lista"] .ficha-v9-body {
    flex: 1;
    min-width: 220px;
    border-top: none;
}

@media (max-width: 640px) {
    .catalogo-productos.ficha-v9-grid[data-vista="lista"] .ficha-v9-card {
        flex-direction: column;
    }

    .catalogo-productos.ficha-v9-grid[data-vista="lista"] .ficha-v9-media-row {
        flex: none;
        width: 100%;
        border-right: none;
    }

    .catalogo-productos.ficha-v9-grid[data-vista="lista"] .ficha-v9-body {
        border-top: 1px solid #f0f0f0;
    }
}

/* --- cotizador.css --- */
/* Cotizador / presupuesto — panel lateral */

.cotizador-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #a60000;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(166, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cotizador-fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 20px;
}

.cotizador-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: flex-end;
    padding: 0;
}

.cotizador-overlay[hidden],
.cotizador-fab[hidden] {
    display: none !important;
}

.cotizador-panel {
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    animation: cotiz-slide 0.25s ease;
}

.cotizador-panel-add {
    max-width: 400px;
}

@keyframes cotiz-slide {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cotizador-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.cotizador-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #1a1a1a;
}

.cotizador-cerrar {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

.cotizador-legal {
    flex-shrink: 0;
    padding: 8px 14px 10px;
    background: #fff8f0;
    border-bottom: 1px solid #f0e0d0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #4b5563;
}

.cotizador-legal-details {
    margin: 0;
}

.cotizador-legal-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.cotizador-legal-summary::-webkit-details-marker {
    display: none;
}

.cotizador-legal-summary::marker {
    content: '';
}

.cotizador-legal-tagline {
    margin: 0;
    flex: 1;
    font-size: 0.78rem;
    color: #9a3412;
    line-height: 1.35;
}

.cotizador-legal-chevron {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.85rem;
    color: #9a3412;
    transition: transform 0.2s ease;
}

.cotizador-legal-details[open] .cotizador-legal-chevron {
    transform: rotate(180deg);
}

.cotizador-legal-body {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0e0d0;
    max-height: 28vh;
    overflow-y: auto;
}

.cotizador-legal-body p {
    margin: 0 0 6px;
}

.cotizador-legal-refs {
    font-size: 0.68rem;
    color: #6b7280;
    font-style: italic;
}

.cotizador-legal-link {
    margin: 8px 0 0;
}

.cotizador-legal-link a {
    color: #a60000;
    font-weight: 600;
    text-decoration: underline;
}

.cotizador-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
}

.cotizador-vacio {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cotizador-linea {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fafafa;
}

.cotizador-linea-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.cotizador-linea-top img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}

.cotizador-linea-nombre {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.cotizador-linea-meta {
    margin: 0;
    font-size: 0.75rem;
    color: #888;
}

.cotizador-linea-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    border-top: 1px solid #e8e8e8;
    margin-top: 8px;
    padding-top: 10px;
}

.cotizador-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.cotizador-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
}

.cotizador-qty span {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.cotizador-linea-precio {
    font-size: 0.95rem;
    font-weight: 700;
    color: #a60000;
}

.cotizador-linea-remove {
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    padding: 0;
}

.cotizador-pago {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.cotizador-pago h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.cotizador-pago-opciones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cotizador-pago-opciones label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.cotizador-pago-opciones label:has(input:checked) {
    border-color: #a60000;
    background: #fff8f8;
}

.cotizador-promos {
    margin-top: 12px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #444;
}

.cotizador-promos ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.cotizador-totales {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px solid #1a1a1a;
}

.cotizador-total-line {
    display: flex;
    justify-content: space-between;
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.cotizador-total-line[hidden] {
    display: none !important;
}

.cotizador-total-final {
    font-size: 1.05rem;
}

.cotizador-total-final strong {
    color: #a60000;
    font-size: 1.2rem;
}

.cotizador-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cotiz-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cotiz-btn-primary {
    background: #25d366;
    color: #fff;
}

.cotiz-btn-primary:hover {
    filter: brightness(1.05);
}

.cotiz-btn-sec {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.cotiz-add-producto {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cotiz-add-producto img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cotiz-add-envases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.cotiz-envase-btn {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    font-size: 0.8rem;
    cursor: pointer;
}

.cotiz-envase-btn.activo {
    border-color: #a60000;
    color: #a60000;
    font-weight: 600;
    background: #fff5f5;
}

.cotiz-add-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.cotiz-add-precio {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cotizador-add-body {
    padding: 16px 18px;
    overflow-y: auto;
}

.cotizador-add-footer {
    padding: 14px 18px;
    border-top: 1px solid #eee;
}

.cotizador-linea-unit {
    margin: 4px 0 0;
    font-size: 0.72rem;
    color: #666;
}

.cot-linea-brillo {
    margin: 2px 0 0;
    font-size: 0.7rem;
    color: #6b7280;
}

.cot-linea-color-envase {
    font-weight: 500;
    color: #374151;
}

.cotiz-pago-grupo {
    margin-top: 4px;
    padding: 8px 0 0;
    border-top: 1px dashed #e5e7eb;
}

.cotiz-pago-grupo-tit {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
}

.cotiz-pago-opt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 6px;
}

.cotiz-pago-opt span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.cotiz-pago-opt small {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 400;
}

.cotiz-pago-opt-sub {
    margin-left: 8px;
}

.cotiz-pago-opt:has(input:checked) {
    border-color: #a60000;
    background: #fff8f8;
}

.cotiz-variant-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    margin: 8px 0 0;
    font-size: 0.75rem;
}

.cotiz-variant-detail dt {
    margin: 0;
    color: #6b7280;
    font-weight: 600;
}

.cotiz-variant-detail dd {
    margin: 0;
    color: #374151;
}

.cotiz-add-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}

.cotiz-chip-btn {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    font-size: 0.78rem;
    cursor: pointer;
}

.cotiz-chip-btn.activo {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 600;
}

.cotizador-linea-texto {
    flex: 1;
    min-width: 0;
}

.cotiz-linea-ficha-detalle {
    margin: 6px 0 4px;
    padding: 8px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    user-select: none;
    pointer-events: none;
}

.cotiz-linea-ficha-row {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 6px 10px;
    margin: 0 0 4px;
    font-size: 0.72rem;
    line-height: 1.35;
    align-items: start;
}

.cotiz-linea-ficha-row:last-child {
    margin-bottom: 0;
}

.cotiz-linea-ficha-lbl {
    color: #64748b;
    font-weight: 600;
}

.cotiz-linea-ficha-val {
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
}

.cotiz-pago-select-wrap {
    margin: 0;
}

.cotiz-pago-select-label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cotiz-pago-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.cotiz-pago-select:focus {
    outline: none;
    border-color: #a60000;
    box-shadow: 0 0 0 2px rgba(166, 0, 0, 0.12);
}

@media (max-width: 480px) {
    .cotizador-panel {
        max-width: 100%;
    }
}

/* --- embudo-captacion.css --- */
/* Modal embudo de captación por perfil — estética industrial Varnolac */

.vl-embudo-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(12, 12, 12, 0.72);
    backdrop-filter: blur(4px);
}

.vl-embudo-overlay[hidden] {
    display: none !important;
}

.vl-embudo-panel {
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d4d4d4;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.vl-embudo-header {
    position: relative;
    padding: 1.75rem 1.75rem 1rem;
    border-bottom: 1px solid #ececec;
}

.vl-embudo-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #737373;
}

.vl-embudo-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.02em;
}

.vl-embudo-cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #525252;
    cursor: pointer;
}

.vl-embudo-cerrar:hover {
    color: #111;
}

.vl-embudo-body {
    padding: 1.25rem 1.75rem 1.75rem;
}

.vl-embudo-intro {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #525252;
}

.vl-embudo-perfiles {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
}

@media (min-width: 520px) {
    .vl-embudo-perfiles {
        grid-template-columns: 1fr 1fr;
    }
}

.vl-embudo-perfil-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid #d4d4d4;
    background: #fafafa;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.vl-embudo-perfil-card:hover,
.vl-embudo-perfil-card:focus-visible {
    border-color: #111;
    background: #fff;
    outline: none;
}

.vl-embudo-perfil-card.activo {
    border-color: #111;
    background: #111;
    color: #fff;
}

.vl-embudo-perfil-card.activo .vl-embudo-perfil-text span {
    color: #d4d4d4;
}

.vl-embudo-perfil-icon {
    flex-shrink: 0;
    width: 2rem;
    font-size: 1.1rem;
    opacity: 0.85;
    padding-top: 0.1rem;
}

.vl-embudo-perfil-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.vl-embudo-perfil-text strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.vl-embudo-perfil-text span {
    font-size: 0.78rem;
    color: #737373;
    line-height: 1.4;
}

.vl-embudo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vl-embudo-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vl-embudo-field span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #525252;
}

.vl-embudo-field input {
    padding: 0.7rem 0.85rem;
    border: 1px solid #d4d4d4;
    font-size: 0.95rem;
    background: #fff;
}

.vl-embudo-field input:focus {
    outline: none;
    border-color: #111;
}

.vl-embudo-error {
    margin: 0;
    font-size: 0.85rem;
    color: #b91c1c;
}

.vl-embudo-submit {
    margin-top: 0.5rem;
    padding: 0.85rem 1.25rem;
    border: none;
    background: #111;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
}

.vl-embudo-submit:hover {
    background: #262626;
}

.vl-embudo-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.vl-embudo-exito {
    text-align: center;
    padding: 0.5rem 0 0;
}

.vl-embudo-exito-icon {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    color: #111;
}

.vl-embudo-exito h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.vl-embudo-exito p {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #525252;
}

.vl-embudo-exito-actions {
    margin: 0 0 0.75rem;
}

a.vl-embudo-submit.vl-embudo-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #128c7e;
    border: none;
    margin-bottom: 0.5rem;
}

a.vl-embudo-submit.vl-embudo-wa:hover {
    background: #0e6b60;
}

/* Precios protegidos en ficha */
.ficha-v9-precios--protegido {
    padding: 0.35rem 0 0.5rem;
}

.ficha-v9-precio-protegido {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #26252d;
}

.ficha-v9-precio-hint {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #6b7280;
}

.ficha-v9-ver-precio {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border: 1px solid #c81c24;
    border-radius: 4px;
    background: #c81c24;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ficha-v9-ver-precio:hover {
    background: #a60000;
    border-color: #a60000;
    color: #fff;
}

.ficha-v9-pending-banner {
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.65rem;
    border-left: 3px solid #07008a;
    background: rgba(7, 0, 138, 0.06);
    font-size: 0.72rem;
    line-height: 1.35;
    color: #26252d;
}

.ficha-v9-card[data-precio-protegido="1"] .ficha-v9-por-litro,
.ficha-v9-card[data-precio-protegido="1"] .ficha-v9-precio-neto,
.ficha-v9-card[data-precio-protegido="1"] .ficha-v9-financia,
.ficha-v9-card[data-precio-protegido="1"] .ficha-v9-cuota-row {
    display: none !important;
}

.cotizador-precios-bloqueados {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #525252;
}

.cotizador-precios-bloqueados strong {
    color: #111;
}

.cotiz-btn-ver-precios {
    width: 100%;
}

.cotizador-footer--gate .cotiz-btn-sec,
.cotizador-footer--gate #cotizador-wa-pedido {
    display: none;
}

.vl-embudo-varni-pending {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #737373;
}

.vl-embudo-wa-manual {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
}
