/**
 * Prodimac Advanced Filters - Frontend Styles
 * Compatible con Blocksy y Elementor
 */

/* =======================
   Contenedor Principal
   ======================= */
.prodimac-filters-wrapper {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.prodimac-filters-form {
    width: 100%;
    padding: 20px;
}

/* =======================
   Breadcrumbs / Migas de Pan
   ======================= */
.prodimac-breadcrumbs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0;
}

.prodimac-breadcrumbs {
    flex: 1;
}

.prodimac-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.prodimac-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prodimac-breadcrumb-item a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prodimac-breadcrumb-item a:hover {
    color: #005177;
    text-decoration: underline;
}

.prodimac-breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

.prodimac-breadcrumb-item svg {
    vertical-align: middle;
}

.prodimac-breadcrumb-separator {
    color: #999;
    font-weight: 300;
}

/* Botón Limpiar Filtros (arriba) */
.prodimac-clear-filters-top {
    flex-shrink: 0;
}

.prodimac-btn-clear-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f44336;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.prodimac-btn-clear-top:hover {
    background: #d32f2f;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.prodimac-btn-clear-top svg {
    vertical-align: middle;
}

/* =======================
   Filtros Activos (Chips)
   ======================= */
.prodimac-active-filters {
    margin: 0;
    padding: 15px 20px;
    background: #f0f6fc;
    border-bottom: 1px solid #d0e3f0;
}

.prodimac-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.prodimac-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #0073aa;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.prodimac-chip:hover {
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.prodimac-chip-label {
    color: #666;
    font-weight: 500;
}

.prodimac-chip-value {
    color: #0073aa;
    font-weight: 600;
}

.prodimac-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #0073aa;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    transition: all 0.2s ease;
    margin-left: 4px;
    padding: 0;
    text-align: center;
    flex-shrink: 0;
}

.prodimac-chip-remove:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.prodimac-no-filters {
    color: #999;
    font-style: italic;
    margin: 0;
    font-size: 13px;
}

/* =======================
   Secciones de Filtros
   ======================= */
.prodimac-filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.prodimac-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prodimac-filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding: 0;
}

.prodimac-filter-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding: 0;
}

/* =======================
   Atributos Colapsables
   ======================= */
.prodimac-collapsible .prodimac-collapsible-title {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.prodimac-collapsible .prodimac-collapsible-title:hover {
    background: #e9ecef;
}

.prodimac-toggle-arrow {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #666;
}

.prodimac-collapsible.expanded .prodimac-toggle-arrow {
    transform: rotate(90deg);
}

.prodimac-collapsible-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.prodimac-collapsible-content.collapsed {
    display: none;
}

.prodimac-collapsible .prodimac-collapsible-content {
    padding-top: 12px;
}

/* =======================
   Navegación de Categorías
   ======================= */
.prodimac-category-section {
    position: relative;
}

.prodimac-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prodimac-category-header .prodimac-filter-title {
    margin: 0;
}

.prodimac-category-toggle {
    display: inline-flex; /* Siempre visible si hay categoría */
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-items: center;
    gap: 6px;
}

.prodimac-category-toggle:hover {
    background: #005177;
    transform: translateY(-1px);
}

.prodimac-category-toggle .prodimac-toggle-icon {
    transition: transform 0.3s ease;
}

.prodimac-category-toggle.open .prodimac-toggle-icon {
    transform: rotate(180deg);
}

.prodimac-selected-category {
    display: block; /* Siempre visible si hay categoría */
    padding: 12px 16px;
    background: #e3f2fd;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.prodimac-selected-label {
    color: #666;
    font-weight: 500;
    margin-right: 8px;
}

.prodimac-selected-value {
    color: #0073aa;
    font-weight: 700;
}

.prodimac-category-navigation {
    position: relative;
    transition: all 0.3s ease;
}

.prodimac-category-navigation.collapsed {
    display: none;
}

.prodimac-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prodimac-category-list.prodimac-level-0 {
    margin-left: 0;
}

.prodimac-category-list.prodimac-level-1 {
    margin-left: 20px;
    margin-top: 8px;
    display: none;
}

.prodimac-category-list.prodimac-level-2 {
    margin-left: 20px;
    margin-top: 8px;
    display: none;
}

.prodimac-category-item {
    margin-bottom: 8px;
    position: relative;
}

.prodimac-category-item.has-children > .prodimac-category-list {
    display: none;
}

.prodimac-category-item.expanded > .prodimac-category-list {
    display: block;
}

.prodimac-category-link {
    display: inline-block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    position: relative;
}

.prodimac-category-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #0073aa;
    transition: width 0.3s ease;
}

.prodimac-category-link:hover {
    background: #f5f5f5;
    color: #0073aa;
    transform: translateX(3px);
}

.prodimac-category-link:hover::before {
    width: 100%;
}

.prodimac-category-item.active > .prodimac-category-link {
    background: #0073aa;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.25);
}

.prodimac-category-item.active > .prodimac-category-link::before {
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.prodimac-count {
    color: #999;
    font-size: 13px;
}

.prodimac-category-item.active .prodimac-count {
    color: rgba(255, 255, 255, 0.8);
}

.prodimac-category-item.disabled {
    pointer-events: none;
}

.prodimac-category-item.disabled .prodimac-category-link {
    cursor: not-allowed;
    color: #999;
}

.prodimac-category-item.disabled .prodimac-count {
    color: #bbb;
}

.prodimac-toggle-children {
    position: absolute;
    right: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    color: #666;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.prodimac-toggle-children:hover {
    background: #f5f5f5;
    color: #0073aa;
}

.prodimac-category-item.expanded > .prodimac-toggle-children {
    transform: rotate(45deg);
}

/* =======================
   Filtro de Precio
   ======================= */
.prodimac-price-filter {
    margin-bottom: 20px;
}

.prodimac-price-slider-wrapper {
    padding: 10px;
}

.prodimac-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.prodimac-price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prodimac-price-input-group label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.prodimac-price-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.prodimac-price-input:focus {
    outline: none;
    border-color: #0073aa;
}

.prodimac-price-separator {
    color: #999;
    font-weight: bold;
    margin-top: 20px;
}

/* Slider de Rango */
.prodimac-range-slider {
    position: relative;
    height: 6px;
    margin: 25px 0 20px;
}

.prodimac-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    top: 0;
}

.prodimac-slider-range {
    position: absolute;
    height: 6px;
    background: #0073aa;
    border-radius: 3px;
    top: 0;
}

.prodimac-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    top: 0;
}

.prodimac-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #0073aa;
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.prodimac-range-input::-webkit-slider-thumb:hover {
    background: #005177;
    transform: scale(1.1);
}

.prodimac-range-input::-webkit-slider-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.prodimac-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #0073aa;
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.prodimac-range-input::-moz-range-thumb:hover {
    background: #005177;
    transform: scale(1.1);
}

.prodimac-range-input::-moz-range-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.prodimac-price-display {
    text-align: center;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.prodimac-currency {
    font-weight: bold;
    color: #0073aa;
    margin-right: 5px;
}

/* =======================
   Buscador de Productos
   ======================= */
/* =======================
   Buscador de Productos
   ======================= */
.prodimac-search-filter {
    margin-bottom: 20px;
}

.prodimac-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.prodimac-search-wrapper:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
    transform: translateY(-1px);
}

.prodimac-search-wrapper:focus-within {
    border-color: #0073aa;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.25);
    transform: translateY(-2px);
}

.prodimac-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 2px 0;
    font-size: 14px;
    color: #333;
    font-family: inherit;
    font-weight: 400;
}

.prodimac-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.prodimac-search-icon {
    flex-shrink: 0;
    color: #0073aa;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    transition: all 0.3s ease;
    background: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prodimac-search-wrapper:focus-within .prodimac-search-icon {
    color: #ffffff;
    background: #0073aa;
    transform: scale(1.1);
}

.prodimac-search-wrapper:hover .prodimac-search-icon {
    transform: scale(1.05);
}

.prodimac-search-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* =======================
   Filtros de Checkbox
   ======================= */
.prodimac-checkbox-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
}

.prodimac-checkbox-label {
    display: block;
    padding: 8px 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    line-height: 1.4;
    border-left: 3px solid transparent;
    position: relative;
}

.prodimac-checkbox-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 3px;
    height: 60%;
    background: #0073aa;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.prodimac-checkbox-label:hover {
    background: #f5f5f5;
    transform: translateX(2px);
}

.prodimac-checkbox-label:hover::after {
    transform: translateY(-50%) scaleX(1);
}

/* Estilos para checkboxes seleccionados */
.prodimac-checkbox-label input[type="checkbox"]:checked + span {
    color: #0073aa;
    font-weight: 600;
}

.prodimac-checkbox-label.is-checked {
    background: #e8f4f8;
    border-left-color: #0073aa;
    padding-left: 7px;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.1);
}

.prodimac-checkbox-label.is-checked::after {
    transform: translateY(-50%) scaleX(1);
}

.prodimac-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0073aa;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.prodimac-checkbox-label input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.prodimac-checkbox-label span {
    vertical-align: middle;
}

/* Contador de seleccionados en título colapsado */
.prodimac-selected-count {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Scrollbar personalizado */
.prodimac-checkbox-list::-webkit-scrollbar {
    width: 8px;
}

.prodimac-checkbox-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.prodimac-checkbox-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.prodimac-checkbox-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* =======================
   Filtros de Atributos
   ======================= */
.prodimac-attributes-container {
    margin-top: 15px;
}

.prodimac-attribute-filter {
    margin-bottom: 20px;
}

.prodimac-no-options {
    color: #999;
    font-style: italic;
    font-size: 14px;
    margin: 10px 0;
}

/* =======================
   Estados de Carga
   ======================= */
.prodimac-filters-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.prodimac-filters-wrapper.updating-filters .prodimac-contextual-filters {
    opacity: 0.7;
    position: relative;
}

.prodimac-filters-wrapper.updating-filters .prodimac-contextual-filters::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: prodimac-spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes prodimac-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =======================
   Transiciones
   ======================= */
.elementor-widget-container .prodimac-filters-wrapper {
    margin: 0;
}

/* =======================
   Compatibilidad Blocksy
   ======================= */
.ct-container .prodimac-filters-wrapper {
    max-width: 100%;
}

/* =======================
   Responsive Design
   ======================= */

/* Botón Toggle para Móvil */
.prodimac-mobile-toggle {
    display: none; /* Oculto por defecto en desktop */
    width: 100%;
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.prodimac-mobile-toggle:hover {
    background: #005177;
}

.prodimac-mobile-toggle:active {
    background: #004060;
}

.prodimac-mobile-toggle svg {
    flex-shrink: 0;
}

.prodimac-mobile-toggle .prodimac-toggle-arrow {
    transition: transform 0.3s ease;
}

.prodimac-mobile-toggle.active .prodimac-toggle-arrow {
    transform: rotate(180deg);
}

/* Contenido de filtros - visible por defecto en desktop */
.prodimac-filters-content {
    display: block;
}

/* Tablets */
@media (max-width: 768px) {
    .prodimac-filters-wrapper {
        padding: 0;
    }
    
    .prodimac-filters-form {
        padding: 15px;
    }
    
    .prodimac-breadcrumbs-header {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .prodimac-breadcrumbs {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    
    .prodimac-clear-filters-top {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .prodimac-btn-clear-top {
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .prodimac-breadcrumb-list {
        font-size: 13px;
        gap: 6px;
    }
    
    .prodimac-category-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .prodimac-category-toggle {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .prodimac-selected-category {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .prodimac-active-filters {
        padding: 12px 15px;
    }
    
    .prodimac-chips-container {
        gap: 6px;
    }
    
    .prodimac-chip {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .prodimac-chip-remove {
        width: 16px;
        height: 16px;
        font-size: 13px;
        line-height: 16px;
    }
    
    .prodimac-filter-title {
        font-size: 16px;
    }
    
    .prodimac-filter-group-title {
        font-size: 15px;
    }
    
    .prodimac-category-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .prodimac-checkbox-list {
        max-height: 200px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Mostrar botón toggle en móvil */
    .prodimac-mobile-toggle {
        display: flex;
    }
    
    /* Ocultar contenido de filtros por defecto en móvil */
    .prodimac-filters-content {
        display: none;
    }
    
    /* Mostrar contenido cuando el toggle está activo */
    .prodimac-filters-content.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .prodimac-filters-wrapper {
        padding: 0;
        border-radius: 6px;
    }
    
    .prodimac-filters-form {
        padding: 12px;
    }
    
    .prodimac-breadcrumbs-header {
        padding: 8px 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .prodimac-breadcrumbs {
        margin-bottom: 8px;
    }
    
    .prodimac-btn-clear-top {
        width: 100%;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .prodimac-breadcrumb-list {
        font-size: 12px;
        gap: 4px;
    }
    
    .prodimac-breadcrumb-item svg {
        width: 12px;
        height: 12px;
    }
    
    .prodimac-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .prodimac-category-toggle {
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .prodimac-selected-category {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .prodimac-active-filters {
        padding: 10px 12px;
    }
    
    .prodimac-chips-container {
        gap: 5px;
    }
    
    .prodimac-chip {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .prodimac-chip-remove {
        width: 16px;
        height: 16px;
        font-size: 12px;
        line-height: 16px;
    }
    
    .prodimac-filter-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .prodimac-filter-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .prodimac-filter-group-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .prodimac-category-link {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .prodimac-category-list.prodimac-level-1,
    .prodimac-category-list.prodimac-level-2 {
        margin-left: 15px;
    }
    
    .prodimac-price-input {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .prodimac-search-input {
        font-size: 13px;
        padding: 10px 40px 10px 12px;
    }
    
    .prodimac-checkbox-label {
        font-size: 13px;
        padding: 6px 8px;
    }
    
    .prodimac-checkbox-list {
        max-height: 180px;
    }
}

/* =======================
   Estados de Carga
   ======================= */
.prodimac-filters-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.prodimac-filter-group.loading {
    position: relative;
}

.prodimac-filter-group.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =======================
   Transiciones
   ======================= */
.prodimac-category-list,
.prodimac-filter-group,
.prodimac-checkbox-label {
    transition: all 0.3s ease;
}

/* =======================
   Accesibilidad
   ======================= */
.prodimac-category-link:focus,
.prodimac-btn:focus,
.prodimac-checkbox-label:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* =======================
   Print Styles
   ======================= */
@media print {
    .prodimac-filters-wrapper {
        display: none;
    }
}

/* ========================================================================
   ESTILOS VISUALES - TEMAS
   ======================================================================== */

/* =======================
   ESTILO: AZUL DEGRADADO
   ======================= */
.prodimac-style-gradient .prodimac-filters-wrapper {
    background: linear-gradient(135deg, #005a9c 0%, #0073aa 100%);
    border: none;
    border-radius: 12px;
    padding: 3px;
    box-shadow: 0 8px 24px rgba(0, 115, 170, 0.3);
}

.prodimac-style-gradient .prodimac-filters-form {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.prodimac-style-gradient .prodimac-filter-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 115, 170, 0.1);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.08);
    transition: all 0.3s ease;
}

.prodimac-style-gradient .prodimac-filter-group:hover {
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
    transform: translateY(-1px);
}

.prodimac-style-gradient .prodimac-filter-title,
.prodimac-style-gradient .prodimac-filter-group-title {
    color: #0073aa;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.prodimac-style-gradient .prodimac-checkbox-label {
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: white;
    border: 1px solid rgba(0, 115, 170, 0.1);
    transition: all 0.3s ease;
}

.prodimac-style-gradient .prodimac-checkbox-label:hover {
    background: rgba(0, 115, 170, 0.05);
    border-color: rgba(0, 115, 170, 0.3);
    transform: translateX(3px);
}

.prodimac-style-gradient .prodimac-checkbox-label.is-checked {
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 115, 170, 0.15) 100%);
    border-color: #0073aa;
    border-width: 2px;
}

.prodimac-style-gradient .prodimac-checkbox-label input[type="checkbox"] {
    accent-color: #0073aa;
}

/* Estilos de categorías gradient */
.prodimac-style-gradient .prodimac-category-link {
    background: white;
    border: 1px solid rgba(0, 115, 170, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.prodimac-style-gradient .prodimac-category-link:hover {
    background: rgba(0, 115, 170, 0.05);
    border-color: rgba(0, 115, 170, 0.3);
    transform: translateX(3px);
}

.prodimac-style-gradient .prodimac-category-item.active > .prodimac-category-link {
    background: linear-gradient(135deg, #0073aa 0%, #005a9c 100%);
    color: white;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Buscador gradient */
.prodimac-style-gradient .prodimac-search-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7fa 100%);
    border-color: rgba(0, 115, 170, 0.2);
}

.prodimac-style-gradient .prodimac-search-wrapper:hover {
    border-color: #0073aa;
}

.prodimac-style-gradient .prodimac-search-icon {
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, rgba(0, 115, 170, 0.15) 100%);
}

.prodimac-style-gradient .prodimac-search-wrapper:focus-within .prodimac-search-icon {
    background: linear-gradient(135deg, #0073aa 0%, #005a9c 100%);
}

/* =======================
   ESTILO: AZUL LUMINOSO
   ======================= */
.prodimac-style-neon .prodimac-filters-wrapper {
    background: #f8f9fa;
    border: 2px solid #0073aa;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 115, 170, 0.2),
                0 4px 12px rgba(0, 115, 170, 0.1);
}

.prodimac-style-neon .prodimac-filters-form {
    padding: 20px;
}

.prodimac-style-neon .prodimac-filter-group {
    background: white;
    border: 1px solid rgba(0, 115, 170, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 0 15px rgba(0, 115, 170, 0.05);
    transition: all 0.3s ease;
}

.prodimac-style-neon .prodimac-filter-group:hover {
    box-shadow: 0 0 20px rgba(0, 115, 170, 0.12);
    border-color: rgba(0, 115, 170, 0.4);
}

.prodimac-style-neon .prodimac-filter-title,
.prodimac-style-neon .prodimac-filter-group-title {
    color: #0073aa;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prodimac-style-neon .prodimac-checkbox-label {
    color: #333;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: white;
    border: 1px solid rgba(0, 115, 170, 0.2);
    transition: all 0.3s ease;
}

.prodimac-style-neon .prodimac-checkbox-label:hover {
    background: rgba(0, 115, 170, 0.05);
    border-color: #0073aa;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.15);
}

.prodimac-style-neon .prodimac-checkbox-label.is-checked {
    background: rgba(0, 115, 170, 0.1);
    border-color: #0073aa;
    color: #0073aa;
    box-shadow: 0 0 15px rgba(0, 115, 170, 0.2);
    font-weight: 600;
}

.prodimac-style-neon .prodimac-checkbox-label input[type="checkbox"] {
    accent-color: #0073aa;
}

.prodimac-style-neon .prodimac-price-input,
.prodimac-style-neon .prodimac-search-input {
    background: white;
    border: 1px solid rgba(0, 115, 170, 0.3);
    color: #333;
}

.prodimac-style-neon .prodimac-price-input:focus,
.prodimac-style-neon .prodimac-search-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.3);
}

/* Estilos de categorías neon */
.prodimac-style-neon .prodimac-category-link {
    background: white;
    border: 1px solid rgba(0, 115, 170, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.prodimac-style-neon .prodimac-category-link:hover {
    background: rgba(0, 115, 170, 0.05);
    border-color: #0073aa;
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.15);
    transform: translateX(2px);
}

.prodimac-style-neon .prodimac-category-item.active > .prodimac-category-link {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    box-shadow: 0 0 20px rgba(0, 115, 170, 0.3);
}

/* Buscador neon */
.prodimac-style-neon .prodimac-search-wrapper {
    background: white;
    border-color: rgba(0, 115, 170, 0.3);
    box-shadow: 0 0 15px rgba(0, 115, 170, 0.08);
}

.prodimac-style-neon .prodimac-search-wrapper:hover,
.prodimac-style-neon .prodimac-search-wrapper:focus-within {
    box-shadow: 0 0 20px rgba(0, 115, 170, 0.2);
}

.prodimac-style-neon .prodimac-search-icon {
    background: rgba(0, 115, 170, 0.15);
}

.prodimac-style-neon .prodimac-search-wrapper:focus-within .prodimac-search-icon {
    box-shadow: 0 0 10px rgba(0, 115, 170, 0.4);
}

/* =======================
   ESTILO: SUAVE AZUL
   ======================= */
.prodimac-style-soft .prodimac-filters-wrapper {
    background: #e8f4f8;
    border: none;
    border-radius: 16px;
    box-shadow: 6px 6px 12px rgba(0, 115, 170, 0.1),
                -6px -6px 12px rgba(255, 255, 255, 0.7);
}

.prodimac-style-soft .prodimac-filters-form {
    padding: 25px;
}

.prodimac-style-soft .prodimac-filter-group {
    background: #e8f4f8;
    border: none;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: inset 3px 3px 6px rgba(0, 115, 170, 0.1),
                inset -3px -3px 6px rgba(255, 255, 255, 0.5);
}

.prodimac-style-soft .prodimac-filter-title,
.prodimac-style-soft .prodimac-filter-group-title {
    color: #0073aa;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.prodimac-style-soft .prodimac-checkbox-label {
    color: #333;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #e8f4f8;
    border: none;
    box-shadow: 3px 3px 6px rgba(0, 115, 170, 0.1),
                -3px -3px 6px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.prodimac-style-soft .prodimac-checkbox-label:hover {
    box-shadow: 2px 2px 4px rgba(0, 115, 170, 0.1),
                -2px -2px 4px rgba(255, 255, 255, 0.5);
}

.prodimac-style-soft .prodimac-checkbox-label.is-checked {
    box-shadow: inset 2px 2px 4px rgba(0, 115, 170, 0.15),
                inset -2px -2px 4px rgba(255, 255, 255, 0.3);
    color: #0073aa;
    font-weight: 600;
}

.prodimac-style-soft .prodimac-checkbox-label input[type="checkbox"] {
    accent-color: #0073aa;
}

.prodimac-style-soft .prodimac-price-input,
.prodimac-style-soft .prodimac-search-input {
    background: #e8f4f8;
    border: none;
    box-shadow: inset 2px 2px 4px rgba(0, 115, 170, 0.1),
                inset -2px -2px 4px rgba(255, 255, 255, 0.3);
    color: #333;
}

/* Estilos de categorías soft */
.prodimac-style-soft .prodimac-category-link {
    background: #e8f4f8;
    border: none;
    border-radius: 10px;
    box-shadow: 3px 3px 6px rgba(0, 115, 170, 0.1),
                -3px -3px 6px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.prodimac-style-soft .prodimac-category-link:hover {
    box-shadow: 2px 2px 4px rgba(0, 115, 170, 0.1),
                -2px -2px 4px rgba(255, 255, 255, 0.5);
}

.prodimac-style-soft .prodimac-category-item.active > .prodimac-category-link {
    box-shadow: inset 2px 2px 4px rgba(0, 115, 170, 0.15),
                inset -2px -2px 4px rgba(255, 255, 255, 0.3);
    color: #0073aa;
    font-weight: 600;
}

/* Buscador soft */
.prodimac-style-soft .prodimac-search-wrapper {
    background: #e8f4f8;
    border: none;
    box-shadow: 4px 4px 8px rgba(0, 115, 170, 0.12),
                -4px -4px 8px rgba(255, 255, 255, 0.6);
}

.prodimac-style-soft .prodimac-search-wrapper:hover {
    box-shadow: 3px 3px 6px rgba(0, 115, 170, 0.12),
                -3px -3px 6px rgba(255, 255, 255, 0.6);
}

.prodimac-style-soft .prodimac-search-wrapper:focus-within {
    box-shadow: inset 2px 2px 4px rgba(0, 115, 170, 0.15),
                inset -2px -2px 4px rgba(255, 255, 255, 0.3);
}

.prodimac-style-soft .prodimac-search-icon {
    background: #e8f4f8;
    box-shadow: 2px 2px 4px rgba(0, 115, 170, 0.1),
                -2px -2px 4px rgba(255, 255, 255, 0.5);
}

.prodimac-style-soft .prodimac-search-wrapper:focus-within .prodimac-search-icon {
    box-shadow: inset 1px 1px 2px rgba(0, 115, 170, 0.15),
                inset -1px -1px 2px rgba(255, 255, 255, 0.3);
}

/* =======================
   ESTILO: AZUL FUERTE
   ======================= */
.prodimac-style-bold .prodimac-filters-wrapper {
    background: white;
    border: 3px solid #0073aa;
    border-radius: 8px;
    box-shadow: 6px 6px 0px #0073aa;
}

.prodimac-style-bold .prodimac-filters-form {
    padding: 20px;
}

.prodimac-style-bold .prodimac-filter-group {
    background: white;
    border: 2px solid #0073aa;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
}

.prodimac-style-bold .prodimac-filter-title,
.prodimac-style-bold .prodimac-filter-group-title {
    color: #0073aa;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
}

.prodimac-style-bold .prodimac-checkbox-label {
    color: #333;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #0073aa;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.prodimac-style-bold .prodimac-checkbox-label:hover {
    background: #e8f4f8;
    transform: translateX(4px);
    box-shadow: 4px 4px 0px #0073aa;
}

.prodimac-style-bold .prodimac-checkbox-label.is-checked {
    background: #0073aa;
    color: white;
    box-shadow: 4px 4px 0px #005a9c;
}

.prodimac-style-bold .prodimac-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: white;
}

.prodimac-style-bold .prodimac-checkbox-label.is-checked input[type="checkbox"] {
    accent-color: white;
}

.prodimac-style-bold .prodimac-price-input,
.prodimac-style-bold .prodimac-search-input {
    background: white;
    border: 2px solid #0073aa;
    color: #333;
    font-weight: 600;
}

.prodimac-style-bold .prodimac-price-input:focus,
.prodimac-style-bold .prodimac-search-input:focus {
    outline: none;
    box-shadow: 4px 4px 0px #0073aa;
}

/* Estilos de categorías bold */
.prodimac-style-bold .prodimac-category-link {
    background: white;
    border: 2px solid #0073aa;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.prodimac-style-bold .prodimac-category-link:hover {
    background: #e8f4f8;
    transform: translateX(4px);
    box-shadow: 4px 4px 0px #0073aa;
}

.prodimac-style-bold .prodimac-category-item.active > .prodimac-category-link {
    background: #0073aa;
    color: white;
    box-shadow: 4px 4px 0px #005a9c;
}

/* Buscador bold */
.prodimac-style-bold .prodimac-search-wrapper {
    border-width: 3px;
    box-shadow: 4px 4px 0px #0073aa;
}

.prodimac-style-bold .prodimac-search-wrapper:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px #0073aa;
}

.prodimac-style-bold .prodimac-search-wrapper:focus-within {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #0073aa;
}

.prodimac-style-bold .prodimac-search-icon {
    background: #0073aa;
    color: white;
    border: 2px solid #0073aa;
}

.prodimac-style-bold .prodimac-search-wrapper:focus-within .prodimac-search-icon {
    background: #005a9c;
    border-color: #005a9c;
    box-shadow: 2px 2px 0px #003d6b;
}

.prodimac-style-neon .prodimac-checkbox-label.is-checked {
    background: rgba(0, 217, 255, 0.1);
    border-color: #00d9ff;
    color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    font-weight: 600;
}

.prodimac-style-neon .prodimac-checkbox-label input[type="checkbox"] {
    accent-color: #00d9ff;
}

.prodimac-style-neon .prodimac-price-input,
.prodimac-style-neon .prodimac-search-input {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #b8c5d6;
}

.prodimac-style-neon .prodimac-price-input:focus,
.prodimac-style-neon .prodimac-search-input:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* =======================
   ESTILO: SOFT UI
   ======================= */
.prodimac-style-soft .prodimac-filters-wrapper {
    background: #e0e5ec;
    border: none;
    border-radius: 20px;
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6),
                -9px -9px 16px rgba(255, 255, 255, 0.5);
}

.prodimac-style-soft .prodimac-filters-form {
    padding: 25px;
}

.prodimac-style-soft .prodimac-filter-group {
    background: #e0e5ec;
    border: none;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.4),
                inset -5px -5px 10px rgba(255, 255, 255, 0.7);
}

.prodimac-style-soft .prodimac-filter-title,
.prodimac-style-soft .prodimac-filter-group-title {
    color: #5a6b7f;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.prodimac-style-soft .prodimac-checkbox-label {
    color: #5a6b7f;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #e0e5ec;
    border: none;
    box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4),
                -4px -4px 8px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.prodimac-style-soft .prodimac-checkbox-label:hover {
    box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.4),
                -2px -2px 4px rgba(255, 255, 255, 0.5);
}

.prodimac-style-soft .prodimac-checkbox-label.is-checked {
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.4),
                inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    color: #0073aa;
    font-weight: 600;
}

.prodimac-style-soft .prodimac-checkbox-label input[type="checkbox"] {
    accent-color: #0073aa;
}

.prodimac-style-soft .prodimac-price-input,
.prodimac-style-soft .prodimac-search-input {
    background: #e0e5ec;
    border: none;
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.4),
                inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    color: #5a6b7f;
}

/* =======================
   ESTILO: BOLD & STRONG
   ======================= */
.prodimac-style-bold .prodimac-filters-wrapper {
    background: #ffffff;
    border: 4px solid #000000;
    border-radius: 8px;
    box-shadow: 8px 8px 0px #000000;
}

.prodimac-style-bold .prodimac-filters-form {
    padding: 20px;
}

.prodimac-style-bold .prodimac-filter-group {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
}

.prodimac-style-bold .prodimac-filter-title,
.prodimac-style-bold .prodimac-filter-group-title {
    color: #000000;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 4px solid #ffdd00;
}

.prodimac-style-bold .prodimac-checkbox-label {
    color: #000000;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 2px solid #000000;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.prodimac-style-bold .prodimac-checkbox-label:hover {
    background: #ffdd00;
    transform: translateX(4px);
    box-shadow: 4px 4px 0px #000000;
}

.prodimac-style-bold .prodimac-checkbox-label.is-checked {
    background: #ffdd00;
    border-width: 3px;
    box-shadow: 4px 4px 0px #000000;
}

.prodimac-style-bold .prodimac-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #000000;
}

.prodimac-style-bold .prodimac-price-input,
.prodimac-style-bold .prodimac-search-input {
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    font-weight: 600;
}

.prodimac-style-bold .prodimac-price-input:focus,
.prodimac-style-bold .prodimac-search-input:focus {
    outline: none;
    border-color: #ffdd00;
    box-shadow: 4px 4px 0px #000000;
}


