@import url('fonts.css');

/* Propiedades Globales (Filtros) */
.modulo-filt1 {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    font-family: 'Outfit', sans-serif;
}

.bloque-filt11, .bloque-filt12, .bloque-filt13, .bloque-filt14, .bloque-filt15 {
    display: flex;
    flex-direction: column;
}

.texto-filt111 {
    color: #213242;
    font-weight: 700;
}

.texto-filt121, .texto-filt131, .texto-filt141, .texto-filt151 {
    color: #213242;
    font-weight: 600;
}

.lista-filt122, .lista-filt132 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.contenido-filt1221, .contenido-filt1321 {
    text-decoration: none;
    color: #555555;
    transition: color 0.2s;
}

.contenido-filt1221:hover, .contenido-filt1321:hover {
    color: #003cff;
}

.bloque-filt133 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-filt1331 {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 8px;
    outline: none;
    color: #555;
}

.input-filt1331:focus {
    border-color: #003cff;
}

.texto-filt1332 {
    color: #777;
}

.boton-filt1333 {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 16px;
    color: #213242;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.boton-filt1333:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.contenido-filt142, .contenido-filt152 {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-filt1421, .radio-filt1521 {
    cursor: pointer;
    accent-color: #003cff;
}

.texto-filt1422, .texto-filt1522 {
    color: #555555;
}

.linea-filt100 {
    width: 100%;
    height: 1px;
    background-color: #eaeaea;
}

/* MQ1 */
@media (min-width: 1367px) {
    .modulo-filt1 { gap: 20px; }
    .texto-filt111 { font-size: 16px; }
    .texto-filt121, .texto-filt131, .texto-filt141, .texto-filt151 { font-size: 14px; margin-bottom: 12px; }
    .lista-filt122, .lista-filt132 { gap: 8px; }
    .contenido-filt1221, .contenido-filt1321 { font-size: 13px; }
    .bloque-filt133 { margin-top: 15px; width: 100%; gap: 5px; }
    .input-filt1331 { width: 60px; height: 30px; font-size: 12px; }
    .boton-filt1333 { width: 40px; height: 30px; font-size: 12px; }
    .contenido-filt142, .contenido-filt152 { gap: 8px; margin-bottom: 8px; }
    .checkbox-filt1421, .radio-filt1521 { width: 14px; height: 14px; }
    .texto-filt1422, .texto-filt1522 { font-size: 13px; }
    .linea-filt100 { margin: 10px 0; }
}

/* MQ2 */
@media (min-width: 1281px) and (max-width: 1366px) {
    .modulo-filt1 { gap: 18px; }
    .texto-filt111 { font-size: 15px; }
    .texto-filt121, .texto-filt131, .texto-filt141, .texto-filt151 { font-size: 13px; margin-bottom: 10px; }
    .lista-filt122, .lista-filt132 { gap: 8px; }
    .contenido-filt1221, .contenido-filt1321 { font-size: 12px; }
    .bloque-filt133 { margin-top: 12px; width: 100%; gap: 5px; }
    .input-filt1331 { width: 55px; height: 28px; font-size: 11px; }
    .boton-filt1333 { width: 35px; height: 28px; font-size: 11px; }
    .contenido-filt142, .contenido-filt152 { gap: 8px; margin-bottom: 8px; }
    .checkbox-filt1421, .radio-filt1521 { width: 13px; height: 13px; }
    .texto-filt1422, .texto-filt1522 { font-size: 12px; }
    .linea-filt100 { margin: 8px 0; }
}

/* MQ3 */
@media (min-width: 1025px) and (max-width: 1280px) {
    .modulo-filt1 { gap: 15px; }
    .texto-filt111 { font-size: 14px; }
    .texto-filt121, .texto-filt131, .texto-filt141, .texto-filt151 { font-size: 12px; margin-bottom: 8px; }
    .lista-filt122, .lista-filt132 { gap: 6px; }
    .contenido-filt1221, .contenido-filt1321 { font-size: 11px; }
    .bloque-filt133 { margin-top: 10px; width: 100%; gap: 4px; }
    .input-filt1331 { width: 50px; height: 26px; font-size: 10px; }
    .boton-filt1333 { width: 32px; height: 26px; font-size: 10px; }
    .contenido-filt142, .contenido-filt152 { gap: 6px; margin-bottom: 6px; }
    .checkbox-filt1421, .radio-filt1521 { width: 12px; height: 12px; }
    .texto-filt1422, .texto-filt1522 { font-size: 11px; }
    .linea-filt100 { margin: 8px 0; }
}

/* MQ4 */
@media (min-width: 768px) and (max-width: 1024px) {
    .modulo-filt1 { gap: 15px; }
    .texto-filt111 { font-size: 14px; }
    .texto-filt121, .texto-filt131, .texto-filt141, .texto-filt151 { font-size: 12px; margin-bottom: 8px; }
    .lista-filt122, .lista-filt132 { gap: 6px; }
    .contenido-filt1221, .contenido-filt1321 { font-size: 11px; }
    .bloque-filt133 { margin-top: 10px; width: 100%; gap: 4px; }
    .input-filt1331 { width: 48px; height: 24px; font-size: 10px; }
    .boton-filt1333 { width: 30px; height: 24px; font-size: 10px; }
    .contenido-filt142, .contenido-filt152 { gap: 6px; margin-bottom: 6px; }
    .checkbox-filt1421, .radio-filt1521 { width: 12px; height: 12px; }
    .texto-filt1422, .texto-filt1522 { font-size: 11px; }
    .linea-filt100 { margin: 8px 0; }
}

/* MQ5 */
@media (min-width: 481px) and (max-width: 767px) {
    /* No display none, as it is now inside the modal */
}

/* MQ6 */
@media (min-width: 320px) and (max-width: 480px) {
    /* Adaptaciones de móvil se heredan del layout offcanvas */
}

/* =========================================================
   POP-UP FILTROS FULL-SCREEN (ESTILO DE LUJO ZARA)
   ========================================================= */

/* Botón flotante naranja */
.boton-filtros-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ff6600; /* Naranja Emphorio */
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    z-index: 999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.boton-filtros-flotante:hover {
    transform: scale(1.05) translateY(-3px);
    background-color: #e65c00;
}

.icono-filtro {
    width: 16px;
    height: 16px;
}

/* Overlay Pantalla Completa */
.modal-filtros-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98); /* Sólido como Zara */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-filtros-overlay.activo {
    opacity: 1;
    pointer-events: auto;
}

/* Contenido del modal */
.modal-filtros-contenido {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    overflow-y: auto;
    position: relative;
    padding: 80px 10%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-filtros-overlay.activo .modal-filtros-contenido {
    transform: translateY(0);
}

/* Botón cerrar elegante */
.boton-cerrar-filtros {
    position: absolute;
    top: 60px;
    right: 10%;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    color: #213242;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: transform 0.2s ease;
}

.boton-cerrar-filtros:hover {
    transform: scale(1.1);
    color: #ff3b30;
}

/* Wrapper del modulo filtros */
.modal-filtros-contenido .modulo-filt1 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Cabecera del filtro */
.bloque-filt11 {
    width: 100%;
    border-bottom: 2px solid #213242;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.texto-filt111 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #213242;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Cuerpo en columnas */
.bloque-filt10-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    width: 100%;
    flex: 1;
}

/* Títulos de las columnas */
.texto-filt121, .texto-filt131, .texto-filt141, .texto-filt151 {
    font-size: 16px !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    color: #213242;
    margin-bottom: 24px !important;
    letter-spacing: 0.5px;
}

/* Lista de filtros en columna */
.lista-filt122, .lista-filt132 {
    gap: 12px !important;
}

.contenido-filt1221, .contenido-filt1321 {
    font-size: 14px !important;
    color: #555555;
    transition: color 0.2s, padding-left 0.2s;
}

.contenido-filt1221:hover, .contenido-filt1321:hover {
    color: #003cff;
    padding-left: 5px;
}

/* Inputs de precio */
.bloque-filt133 {
    margin-top: 20px !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.input-filt1331 {
    width: 75px !important;
    height: 35px !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
}

.boton-filt1333 {
    width: 50px !important;
    height: 35px !important;
    border-radius: 4px !important;
    background-color: #213242 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
}

/* Opciones de Estado y Ubicación */
.contenido-filt142, .contenido-filt152 {
    gap: 10px !important;
    margin-bottom: 12px !important;
    font-size: 14px !important;
}

.checkbox-filt1421, .radio-filt1521 {
    width: 16px !important;
    height: 16px !important;
    accent-color: #ff6600 !important;
}

/* Footer con Botones */
.bloque-filt16-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    border-top: 1px solid #eeeeee;
    padding-top: 30px;
    margin-top: 40px;
}

.boton-filt161 {
    background: none;
    border: 1.5px solid #213242;
    padding: 16px 32px;
    color: #213242;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, color 0.2s;
}

.boton-filt161:hover {
    background-color: #213242;
    color: #ffffff;
}

.boton-filt162 {
    background-color: #ff6600;
    border: none;
    padding: 16px 48px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.boton-filt162:hover {
    background-color: #e65c00;
}

/* =========================================================
   ADAPTATIVO RESPONSIVO PARA EL MODAL FILTROS
   ========================================================= */

/* MQ2: Desktop Medium */
@media (min-width: 1281px) and (max-width: 1366px) {
    .modal-filtros-contenido { padding: 60px 8%; }
    .bloque-filt10-grid { gap: 40px; }
}

/* MQ3: Laptop */
@media (min-width: 1025px) and (max-width: 1280px) {
    .modal-filtros-contenido { padding: 50px 6%; }
    .bloque-filt10-grid { gap: 30px; }
}

/* MQ4, MQ5, MQ6: Tablets y Móviles */
@media (max-width: 1024px) {
    .modal-filtros-contenido {
        padding: 80px 5%;
        justify-content: flex-start;
    }
    .boton-cerrar-filtros {
        top: 30px;
        right: 5%;
    }
    .bloque-filt10-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
        gap: 40px;
    }
    .bloque-filt16-footer {
        flex-direction: column;
        gap: 10px;
    }
    .boton-filt161, .boton-filt162 {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bloque-filt10-grid {
        grid-template-columns: 1fr; /* 1 sola columna en móviles */
        gap: 30px;
    }
}
