body {
    background-color: var(--light);
}

/* filtros */
.filtros-productos {
    padding: 1rem;
}

.filtros-productos h5 {
    color: #000;
    font-family: Urbanist, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.filtro-opcion {
    cursor: pointer;
    font-family: Urbanist, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    position: relative;
    user-select: none;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.filtro-opcion input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    display: flex;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    aspect-ratio: 1/1;
    border-radius: 4px;
    border: 2px solid var(--secundario);
}

/* Icono SVG oculto por defecto */
.checkmark .check-icon {
    width: 12px;
    height: 12px;
    color: var(--blanco);
    display: none;
    z-index: 2;
}

/* Mostrar check-icon y fondo al marcar */
.filtro-opcion input:checked ~ .checkmark {
    background-color: var(--secundario); /* Fondo del marcado */
    border-color: var(--secundario);
}

.filtro-opcion input:checked ~ .checkmark .check-icon {
    display: block;
}

.filtro-opcion input:checked ~ .checkmark .check-icon {
    display: block;
}

.filtro-opcion .label {
    margin-left: 4px;
}

/* cards */

.card-producto {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: 1px solid var(--gris);
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    max-height: 300px;
    position: relative;
}

.card-producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.card-producto-enlace {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background-color: #b09fcc;
}

.card-producto-imagen-wrapper {
    background-color: #fff;
    /* padding: 0.5rem; */
    /* flex-grow: 1; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 210px;
}

.card-producto img {
    /*max-height: 100%;*/
    /*min-height: 290px;*/
    /*max-width: 100%;*/
    /*min-width: 100%;*/
    object-fit: cover;
    object-position: center;
}

.card-producto-info {
    background-color: var(--principal);
    padding: 0.75rem;
    text-align: center;
    flex-shrink: 0;
    height: 90px;
}

.card-producto-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--blanco);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}


/* Paginacion */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    list-style: none;
}

.page-item {
    display: inline-block;
}

.page-link {
    border: 1px solid var(--gris);
    background-color: #fff;
    color: var(--secundario) !important;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    min-width: 40px;
    text-align: center;
    cursor: pointer;
}

.page-link:hover {
    background-color: var(--principal);
    color: #fff !important;
    border-color: var(--principal);
}

.page-item.active .page-link {
    background-color: var(--principal);
    color: #fff !important;
    border-color: var(--principal);
    cursor: default;
}

.page-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: var(--secundario);
    border-color: var(--secundario);
}

/* Filtros */
/* Estilo base del checkbox */
/* Wrapper del input */
.checkbox-color-box {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.checkbox-color-box input[type="checkbox"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 2;
}

.checkbox-color-box .checkmark {
    color: white;
    font-size: 20px;
    font-weight: bold;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
    border: none;
}

.checkbox-color-box input[type="checkbox"]:checked + .checkmark {
    opacity: 1;
}

.titulo-filtro{
    font-size: 14px;
    cursor: pointer;
}
