/* =============================================
   REPTILUR FILTROS - Estilos
   ============================================= */

.rf-filtros-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
}

.rf-titulo-principal {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c10016;
}

/* Header de cada filtro */
.rf-filtro-header {
    background-color: #c10016;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    margin-bottom: 0;
    border-radius: 4px 4px 0 0;
}

/* Body de cada filtro */
.rf-filtro-body {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 10px 15px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.rf-filtro-body::-webkit-scrollbar {
    width: 6px;
}

.rf-filtro-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.rf-filtro-body::-webkit-scrollbar-thumb {
    background: #c10016;
    border-radius: 3px;
}

/* Grupo de filtro */
.rf-filtro-grupo {
    margin-bottom: 0;
}

/* Checkbox labels */
.rf-checkbox-label {
    display: flex;
    align-items: center;
    padding: 7px 5px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #ececec;
    font-size: 14px;
    color: #333;
    gap: 8px;
}

.rf-checkbox-label:last-child {
    border-bottom: none;
}

.rf-checkbox-label:hover {
    background-color: #f0f0f0;
}

.rf-checkbox-label.rf-active {
    background-color: #fef0f0;
}

/* Ocultar checkbox nativo */
.rf-checkbox {
    display: none !important;
}

/* Checkbox personalizado */
.rf-checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.rf-checkbox:checked + .rf-checkbox-custom {
    background-color: #c10016;
    border-color: #c10016;
}

.rf-checkbox:checked + .rf-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Texto del checkbox */
.rf-checkbox-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
}

/* Contador */
.rf-checkbox-count {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

/* =============================================
   BÚSQUEDA
   ============================================= */
.rf-busqueda-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.rf-busqueda-input:focus {
    border-color: #c10016;
}

.rf-filtro-busqueda {
    margin-bottom: 0;
}

.rf-filtro-busqueda .rf-filtro-body {
    padding: 12px 15px;
}

/* =============================================
   PRECIO
   ============================================= */
.rf-precio-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rf-precio-min,
.rf-precio-max {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    -moz-appearance: textfield;
}

.rf-precio-min::-webkit-inner-spin-button,
.rf-precio-max::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.rf-precio-min:focus,
.rf-precio-max:focus {
    border-color: #c10016;
}

.rf-precio-sep {
    color: #999;
    font-size: 16px;
}

.rf-precio-btn {
    width: 100%;
    padding: 10px;
    background-color: #c10016;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rf-precio-btn:hover {
    background-color: #a0000f;
}

/* =============================================
   BOTÓN LIMPIAR
   ============================================= */
.rf-limpiar-filtros {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.rf-limpiar-filtros:hover {
    background-color: #555;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .rf-filtro-body {
        max-height: 180px;
    }

    .rf-titulo-principal {
        font-size: 20px;
    }

    .rf-checkbox-label {
        padding: 8px 5px;
        font-size: 13px;
    }

    .rf-checkbox-text {
        font-size: 13px;
    }
}

/* =============================================
   LOADING STATE
   ============================================= */
.rf-loading .rf-filtros-container {
    opacity: 0.6;
    pointer-events: none;
}

/* =============================================
   ANIMACIÓN
   ============================================= */
.rf-filtro-grupo {
    animation: rfFadeIn 0.3s ease;
}

@keyframes rfFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
