/*Custom css*/

.cat-active {
    font-weight: bold !important;
    color: #ff6600 !important; 
}

/* Botón flotante */
.btn-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel lateral */
.panel-filtros {
    position: fixed;
    top: 0;
    right: -300px; /* Oculto inicialmente */
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 6px rgba(0,0,0,0.3);
    z-index: 1060;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.panel-filtros.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.panel-body {
     padding: 10px;
     overflow-y: auto;
}

/* Fondo oscuro */
.overlay-filtros {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1055;
}

.overlay-filtros.active {
    display: block;
}


/* Contenedor en grid o wrap */
#categorias-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Cada categoría como chip */
#categorias-container ul li {
    margin: 0;
}

#categorias-container ul li a.cat {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

/* Activo */
#categorias-container ul li a.cat.cat-active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Hover */
#categorias-container ul li a.cat:hover {
    background-color: #e9ecef;
}


/*Categorias*/

.categorias-limitadas li:nth-child(n+7) {
    display: none;
}

.categorias-limitadas.expanded li {
    display: list-item;
}

.btn-ver-mas {
    display: block;
    text-align: center;
    color: #007bff;
    cursor: pointer;
    margin-top: 5px;
}