﻿/* =========================================================
   CALOT - buscar.html
   CSS independiente
   ========================================================= */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
}
/* =========================================================
   HEADER
   ========================================================= */
.header-superior {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.marca {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo_calot {
    display: block;
    width: 125px;
    height: auto;
    object-fit: contain;
}
.marca p {
    margin: 0;
    color: #222;
    font-size: 16px;
    font-weight: 500;
}
.botones-header {
    display: flex;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
}
.btn.whatsapp {
    background: #25d366;
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 7px;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn.whatsapp:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
/* =========================================================
   HERO
   ========================================================= */
.hero {
    background: linear-gradient(135deg, #0A2540 0%, #123B63 55%, #0A2540 100%);
    color: #ffffff;
    text-align: center;
    padding: 30px 20px 10px;
}
.hero .logo {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.subtitulo {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 18px;
}
.hero h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
}
.hero>p {
    margin: 0 auto 28px;
    font-size: 16px;
    opacity: 0.95;
}
/* =========================================================
   BUSCADOR
   ========================================================= */
.buscador {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}
.buscador input,
.buscador select {
    height: 46px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    font-size: 15px;
    padding: 0 13px;
    outline: none;
}
.buscador input {
    flex: 1;
    min-width: 180px;
}
.buscador select {
    min-width: 190px;
}
.buscador input:focus,
.buscador select:focus {
    border-color: #d71920;
}
.buscador button {
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #0A2540;
    color: #ffffff;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.buscador button:hover {
    background: #06182B;
}
.boton-mapa {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 6px;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.boton-mapa:hover {
    background: #222222;
}
.boton-busqueda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    background: #6C9BD2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.boton-busqueda:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
/* =========================================================
   ESTADISTICAS
   ========================================================= */
.stats {
    width: min(100%, 700px);
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.stat {
    padding: 12px 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.stat:first-child {
    border-left: 0;
}
.stat strong {
    display: block;
    font-size: 25px;
    margin-bottom: 4px;
}
.stat span {
    display: block;
    font-size: 13px;
    opacity: 0.9;
}
/* =========================================================
   GRID DE PROPIEDADES
   ========================================================= */
.grid {
    width: min(1400px, calc(100% - 40px));
    margin: 35px auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.grid:not(:has(.card)) {
    display: none;
}
/* =========================================================
   CARD
   ========================================================= */
.card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.card-imagen {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #eeeeee;
}
.card-body {
    padding: 17px;
}
.card-body h2 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.3;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-body p {
    margin: 6px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}
.codigo-aviso {
    margin: 4px 0 6px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}
.datos-propiedad {
    color: #666;
}
.precio-card {
    margin-top: 15px;
    color: #222222;
    font-size: 20px;
    font-weight: 700;
}
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 9px 15px;
    border-radius: 6px;
    background: #6C9BD2;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}
/* =========================================================
   PAGINACION
   ========================================================= */
.paginacion {
    width: min(1400px, calc(100% - 40px));
    margin: 10px auto 45px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.paginacion-info {
    color: #666;
    font-size: 14px;
}
.paginacion-botones {
    display: flex;
    gap: 10px;
}
.pagina-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.pagina-boton:hover {
    background: #222222;
}
/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    margin-top: 0;
    padding: 32px 20px;
    background: linear-gradient(135deg, #0A2540 0%, #123B63 100%);
    color: #ffffff;
    border-radius: 0;
}
.footer-contactos {
    width: min(1000px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-contactos a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.92;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
.footer-contactos a:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.footer-contactos svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}
.footer-marca {
    margin-top: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.72;
}
.footer-marca strong {
    font-size: 12px;
    font-weight: 700;
}
.footer-marca span {
    font-weight: 400;
}
/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */
@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .card-imagen {
        height: 220px;
    }
    .buscador {
        flex-wrap: wrap;
    }
    .buscador input {
        flex: 1 1 250px;
    }
    .buscador select {
        flex: 1 1 190px;
    }
    .buscador button,
    .boton-mapa {
        flex: 1 1 150px;
    }
}
/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */
@media (max-width: 760px) {
    .header-superior {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .marca {
        justify-content: center;
        flex-direction: column;
        gap: 7px;
    }
    .logo_calot {
        width: 135px;
    }
    .marca p {
        font-size: 13px;
    }
    .botones-header {
        justify-content: center;
    }
    .btn.whatsapp {
        width: 100%;
    }
    .hero {
        padding: 35px 15px 32px;
    }
    .hero .logo {
        font-size: 42px;
    }
    .subtitulo {
        font-size: 18px;
    }
    .hero h2 {
        font-size: 25px;
    }
    .hero>p {
        font-size: 14px;
    }
    .buscador {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    .buscador input,
    .buscador select,
    .buscador button,
    .boton-mapa {
        width: 100%;
        min-width: 0;
        flex: none;
    }
    .boton-busqueda {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .stats {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .stat {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        padding: 10px;
    }
    .stat:first-child {
        border-top: 0;
    }
    .grid {
        width: calc(100% - 24px);
        margin: 24px auto;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .card-imagen {
        height: 240px;
    }
    .paginacion {
        width: calc(100% - 24px);
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        margin-bottom: 30px;
    }
    .paginacion-botones {
        justify-content: center;
    }
    .pagina-boton {
        flex: 1;
    }
    .footer-contactos {
        flex-direction: column;
        gap: 18px;
    }
}
/* =========================================================
   RESPONSIVE - MOBILE PEQUEÑO
   ========================================================= */
@media (max-width: 420px) {
    .hero .logo {
        font-size: 36px;
    }
    .subtitulo {
        font-size: 16px;
    }
    .hero h2 {
        font-size: 22px;
    }
    .card-imagen {
        height: 210px;
    }
    .card-body h2 {
        font-size: 17px;
    }
}
.btn.whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-right: 8px;
}
/* =========================================================
   BUSQUEDA INTERACTIVA — NUEVO DISEÑO
   ========================================================= */
.panel-busqueda {
    width: min(100%, 900px);
    margin: 18px auto 0; margin-bottom: 18px;
    animation: aparecerBusqueda 0.35s ease;
}
.paso-busqueda {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}
.paso-busqueda h3 {
    margin: 0 0 16px;
    color: #0A2540;
    font-size: 20px;
}
.paso-busqueda input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #d9e1ea;
    border-radius: 9px;
    font-size: 16px;
    outline: none;
}
.paso-busqueda input:focus {
    border-color: #6C9BD2;
}
.acciones-busqueda {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}
.acciones-busqueda button,
.acciones-busqueda .boton-mapa {
    min-height: 48px;
}
.boton-busqueda {
    display: flex;
    width: fit-content;
    margin: 18px auto 0;
}
@keyframes aparecerBusqueda {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 760px) {
    .boton-comenzar-busqueda {
        width: 100%;
        font-size: 17px;
        padding: 16px 18px;
    }
    .panel-busqueda {
        width: 100%;
    }
    .paso-busqueda {
        padding: 18px;
    }
    .acciones-busqueda {
        flex-direction: column;
    }
    .acciones-busqueda button,
    .acciones-busqueda .boton-mapa {
        width: 100%;
    }
    .boton-busqueda {
        width: 100%;
    }
}
.inicio-busqueda {
    margin: 20px auto;
}
/* =========================================================
   BOTÓN PRINCIPAL — COMENZÁ TU BÚSQUEDA
   ========================================================= */
.boton-comenzar-busqueda {
    position: relative;
    display: block;
    width: min(100%, 700px);
    margin: 0 auto;
    padding: 20px 30px;
    border: 2px solid #0A2540;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 50%, #ffffff 100%);
    color: #0A2540;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 0 rgba(255, 255, 255, 0);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    overflow: hidden;
}
.boton-comenzar-busqueda::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    transform: skewX(-20deg);
    animation: brilloBoton 3s infinite;
}
.boton-comenzar-busqueda span {
    position: relative;
    display: block;
    margin-top: 7px;
    color: #456;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}
.boton-comenzar-busqueda:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.30),
        0 0 22px rgba(255, 255, 255, 0.35);
}
.boton-comenzar-busqueda:active {
    transform: translateY(-1px) scale(0.995);
}
@keyframes brilloBoton {
    0% {
        left: -100%;
    }
    35%,
    100% {
        left: 140%;
    }
}
@media (max-width: 760px) {
    .boton-comenzar-busqueda {
        width: 100%;
        padding: 18px 18px;
        font-size: 18px;
    }
    .boton-comenzar-busqueda span {
        font-size: 12px;
    }
}
/* =========================================================
   BUSQUEDA INTERACTIVA — 4 OPCIONES INICIALES
   ========================================================= */
.opciones-busqueda {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px; margin-bottom: 4px;
}
.opcion-busqueda {
    position: relative;
    min-height: 145px;
    padding: 20px 14px;
    border: 1px solid #c9d9ea;
    border-radius: 16px;
    background: #ffffff;
    color: #0A2540;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}
.opcion-busqueda:hover {
    transform: translateY(-6px);
    box-shadow: 0 13px 28px rgba(0, 0, 0, 0.23);
    background: #f7faff;
}
.opcion-busqueda:active {
    transform: translateY(-2px) scale(0.98);
}
.opcion-icono {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 5px;
}
.opcion-busqueda strong {
    display: block;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.4px;
}
.opcion-busqueda > span:last-child {
    display: block;
    color: #607080;
    font-size: 12px;
    line-height: 1.35;
}
/* CONTENIDO DE CADA OPCIÓN */
.contenido-opcion {
    margin-top: 16px;
}
.contenido-opcion:empty {
    display: none;
}
.opciones-secundarias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.opciones-secundarias button {
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    background: #eef5ff;
    color: #0A2540;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}
.opciones-secundarias button:hover {
    transform: translateY(-2px);
    background: #dceaff;
}
/* TABLET */
@media (max-width: 900px) {
    .opciones-busqueda {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* MOBILE */
@media (max-width: 520px) {
    .opciones-busqueda {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .opcion-busqueda {
        min-height: 105px;
        padding: 16px;
    }
    .opcion-icono {
        font-size: 30px;
    }
    .opcion-busqueda strong {
        font-size: 16px;
    }
}
/* AUTOCOMPLETADO DE BARRIOS */
.sugerencias-barrio {
    width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sugerencia-barrio {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #ffffff;
    color: #0A2540;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.sugerencia-barrio:hover {
    background: #eef5ff;
}
/* =========================================================
   CONTROLES DE BÚSQUEDA — RESULTADOS
   ========================================================= */
.controles-busqueda {
    width: min(100%, 1200px);
    margin: 24px auto 30px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    background: linear-gradient(135deg, #c9ddf5 0%, #b7d0ed 100%);
    border: 1px solid #b8d0ea;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.14);
}
.control-busqueda {
    min-height: 72px;
    padding: 12px 18px;
    text-align: center;
    border: 1px solid #d9e1ea;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 100%);
    color: #0A2540;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.control-busqueda span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.65;
}
.control-busqueda:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.12);
    border-color: #b8c9da;
}
.control-busqueda.reiniciar {
    background: #f8fafc;
}
/* MOBILE */
@media (max-width: 700px) {
    .controles-busqueda {
        grid-template-columns: 1fr;
        margin: 18px auto 24px;
    }
    .control-busqueda {
        min-height: 64px;
    }
}
/* =========================================================
   BORDE VISIBLE — 4 OPCIONES INICIALES
   ========================================================= */
.opciones-busqueda > .opcion-busqueda {
    border: 2px solid #9bb9d8 !important;
    box-shadow: 0 5px 14px rgba(10, 37, 64, 0.14) !important;
}
.opciones-busqueda > .opcion-busqueda:hover {
    border-color: #6f9fcf !important;
    box-shadow: 0 7px 18px rgba(10, 37, 64, 0.20) !important;
    transform: translateY(-2px);
}
/* =========================================================
   PANEL DE ORDENAMIENTO
   ========================================================= */
.panel-ordenar {
    width: 100%;
    margin-top: 16px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: linear-gradient(135deg, #c9ddf5 0%, #b7d0ed 100%);
    border: 1px solid #b8d0ea;
    border-radius: 16px;
}
.grupo-ordenar {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #b8d0ea;
    border-radius: 12px;
}
.grupo-ordenar h3 {
    margin: 0 0 12px;
    color: #0A2540;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}
.opcion-ordenar {
    width: 100%;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid #b8d0ea;
    border-radius: 9px;
    background: linear-gradient(135deg, #c9ddf5 0%, #b7d0ed 100%);
    color: #0A2540;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}
.opcion-ordenar:hover {
    transform: translateY(-1px);
    border-color: #7fa8d0;
    box-shadow: 0 3px 10px rgba(10, 37, 64, 0.12);
}
@media (max-width: 700px) {
    .panel-ordenar {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 10px;
    }
}
/* =========================================================
   FILTROS — MENU DESPLEGABLE
   ========================================================= */

.zona-filtros {
    position: relative;
    display: inline-block;
    z-index: 2000;
}

.zona-filtros .control-busqueda {
    position: relative;
    z-index: 2100;
}

.zona-filtros .panel-filtros {
    position: absolute;
    top: 100%;
    left: 0;
    width: 560px;
    max-width: calc(100vw - 30px);
    margin: 0;
    padding: 14px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #c9ddf5 0%, #b7d0ed 100%);
    border: 1px solid #b8d0ea;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(10, 37, 64, 0.18);
    display: none;
    z-index: 2200;
}

/* EL PANEL SE ABRE AL PASAR POR FILTROS */
.zona-filtros:hover .panel-filtros {
    display: block;
}

.zona-filtros .lista-filtros {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zona-filtros .item-filtro {
    position: relative;
    min-height: 46px;
    padding: 12px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #b8d0ea;
    border-radius: 10px;
    color: #0A2540;
    font-size: 14px;
    font-weight: 900;
    cursor: default;
}

.zona-filtros .flecha-filtro {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    margin-left: auto;
}

/* SUBMENU PEGADO AL ITEM: SIN HUECO */
.zona-filtros .subfiltros {
    position: absolute;
    top: -1px;
    left: 100%;
    min-width: 210px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #b8d0ea;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.18);
    z-index: 2300;
}

/* PUENTE INVISIBLE PARA QUE EL MOUSE NO PIERDA EL MENU */
.zona-filtros .item-filtro::after {
    content: "";
    position: absolute;
    top: 0;
    right: -14px;
    width: 14px;
    height: 100%;
}

.zona-filtros .item-filtro:hover .subfiltros {
    display: flex;
}

.zona-filtros .subfiltros button {
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;
    box-sizing: border-box;
    border: 1px solid #b8d0ea;
    border-radius: 7px;
    background: linear-gradient(135deg, #c9ddf5 0%, #b7d0ed 100%);
    color: #0A2540;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.zona-filtros .subfiltros button:hover {
    border-color: #7fa8d0;
    transform: translateX(2px);
}

/* =========================================================
   FILTROS ACTIVOS — CHIPS
   ========================================================= */

#filtros-activos.filtros-activos {
    position: relative;
    z-index: 100;
    display: flex;
    width: min(100%, 1200px);
    min-height: 0;
    margin: 8px auto 18px;
    padding: 0;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    clear: both;
}

#filtros-activos .chip-filtro {
    display: inline-flex;
    visibility: visible;
    opacity: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px 6px 12px;
    box-sizing: border-box;
    border: 1px solid #b8d0ea;
    border-radius: 999px;
    background: #eaf2fb;
    color: #0A2540;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

#filtros-activos .chip-filtro strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b8d0ea;
    color: #0A2540;
    font-size: 15px;
    line-height: 1;
}

#filtros-activos .chip-filtro:hover {
    border-color: #7fa8d0;
    background: #dceafa;
}

#filtros-activos .chip-filtro:hover strong {
    background: #7fa8d0;
    color: #ffffff;
}

/* =========================================================
   FILTROS — PANTALLAS PEQUEÑAS
   ========================================================= */

@media (max-width: 700px) {

    .zona-filtros .panel-filtros {
        width: min(560px, calc(100vw - 30px));
    }

    .zona-filtros .subfiltros {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 6px;
    }

    .zona-filtros .item-filtro {
        flex-wrap: wrap;
    }

    .zona-filtros .item-filtro::after {
        display: none;
    }

    #filtros-activos.filtros-activos {
        width: 100%;
        margin: 8px 0 14px;
    }

}

/* =========================================================
   FILTROS — RECUPERAR ANCHO COMPLETO DEL BOTON
   ========================================================= */

.zona-filtros {
    display: block;
    width: 100%;
}

.zona-filtros .control-busqueda {
    width: 100%;
}

