/* -- SECCIÓN DE FILTROS -- */

.category-page {
    padding-top: 90px; 
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px; 
}

.header-content {
    margin-bottom: 30px;
}

.header-content .breadcrumb {
    color: var(--acc2);
    font-weight: 600;
    margin-bottom: 5px;
}

.header-content h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--texto);
    margin-bottom: 10px;
}

.header-content p {
    color: rgba(0,0,0,0.7);
    max-width: 1150px;
}


.content-grid-wrap {
    display: flex;
    gap: 30px; 
}

/* -- BARRA LATERAL DE FILTROS */

.sidebar-filters {
    flex: 0 0 220px; 
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    height: fit-content; 
    position: sticky; 
    top: 90px; 
}

.filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--acc1);
}

.filter-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.filter-group {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-left: 0;
}

.filter-group:first-of-type {
    border-top: none; 
    padding-top: 0;
}

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;

}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 15px;
    display: flex; 
    align-items: center;
    gap: 8px;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    accent-color: var(--dom);
}

/* -- CONTENT CARDS -- */

.content-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* -- CARDS -- */

.content-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.1s ease, box-shadow 0.1s ease; 
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
}

.content-card .card-image {
    height: 150px; 
    background-color: #e9ecef; 
}

.content-card .card-body {
    padding: 15px;
}

.content-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

.content-card p {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(0,0,0,0.7);
}

.content-card .read-more {
    display: inline-block;
    color: var(--acc1);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.content-card .read-more:hover {
    color: var(--dom);
}

:root {
    --green-base: #28a745;
    --green-hover: #1e7e34;
}

/* -- LEER MÁS -- */

.read-more {
    text-decoration: none; 
    color: var(--green-base);
    font-size: 16px; 
    font-weight: 500; 
    display: inline-flex; 
    align-items: center; 
    transition: color 0.3s ease; 
}

.read-more i {
    color: #0556D2;
    margin-left: 6px; 
    transform: translateY(1px);
    transition: transform 0.2s ease, color 0.3s ease; 
}

.read-more:hover {
    color: var(--green-hover);
}

.read-more:hover i {
    color: #00FE83;
    transform: translateX(2px) translateY(1px); 
}

/* -- RESPONSIVE -- */


/* En pantallas medianas/tabletas (Max-width 1000px) */
@media (max-width: 1000px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* En pantallas pequeñas/móviles (Max-width 768px) */
@media (max-width: 768px) {
    .content-grid-wrap {
        flex-direction: column;
        gap: 20px; 
    }
    
    .sidebar-filters {
        position: static; 
        flex: auto;
        width: auto; 
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px; 
    }

    .category-page {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}