.contenedor-general-search {
    width: 98%;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}
.contenedor-indice-filtros {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}
.icono-abrir-menu-filtros {
    height: 1.1rem;
    width: 1.1rem;
    color: rgba(0,0,0,0.8);
    cursor: pointer;
}
.icono-cerrar-menu-filtros {
    height: 1.4rem;
    width: 1.4rem;
    color: rgba(0,0,0,0.8);
    cursor: pointer;
}
.contenedor-indice-filtros label {
    font-family: var(--font2);
    font-size: 1rem;
    cursor: pointer;
    color: rgba(0,0,0,0.8);
    margin-top: 0.1rem;
}
.contenedor-menu-filtros {
    position: absolute;
    left: -1rem;
    right: -1rem;
    top: -1rem;
    bottom: 0;
    background-color: rgba(0,0,0,0);
    z-index: 500;
    transition: background-color 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
    padding-left: 0.5rem;
}
.contenedor-menu-filtros.visible {
    background-color: rgba(0,0,0,0.4); /* Termina oscuro */
    opacity: 1;
    pointer-events: auto;
}
.contenedor-general-filtros2 {
    width: 60%;
    height: 100%;
    background-color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.contenedor-menu-filtros.visible .contenedor-general-filtros2 {
    transform: translateX(0);
}
.box-labels-filtros {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.label-filtros {
    font-family: var(--font2);
    font-size: 1.4rem;
    font-weight: bold;
    color: rgba(0,0,0,0.8);
}
.box-inputs-filtros {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}
.label-filtro {
    font-family: var(--font2);
    font-size: 1rem;
    font-weight: bold;
    color: rgba(0,0,0,0.8);
}
.container-tipo-productos {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}
.box-tipo-producto, .box-marca-producto {
    width: 100%;
    display: flex;
    gap: 0.3rem;
    align-items: center;
}
.input-check {
    border: 1px solid rgba(0,0,0,0.4);
    width: 0.8rem;
    height: 0.8rem;
    cursor: pointer;
}
.input-check:checked {
    background-color: var(--rojo-secundario);
    border: none;
}
input[type="radio"] {
  accent-color: var(--rojo-base);
}
.label-tipo-producto, .label-marca-producto {
    font-family: var(--font2);
    font-size: 1rem;
    color: rgba(0,0,0,0.7);
    margin-top: 2px;
    cursor: pointer;
}
.contenedor-general-filtros {
    display: none;
}
.contenedor-general-productos {
    width: 100%;
    background-color: white;
    padding: 1rem;
    border-radius: 0.2rem;
    display: flex;
    flex-direction: column;
}
.label-search {
    font-family: var(--font2);
    font-weight: bold;
    font-size: 0.9rem;
}
.contenedor-productos {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 1rem;
    place-items: center;
    margin-top: 1rem;
}
.box-producto {
    flex: 0 0 auto;
    padding: 0.4rem;
    background-color: white;
    position: relative;
}
.box-img {
    width: 100%;
    height: 12rem;
    cursor: pointer;
}
.box-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}
.container-info-producto {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}
.label-producto {
    font-family: var(--font2);
    font-size: 0.8rem;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* número de líneas visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;           /* oculta el resto del texto */
    text-overflow: ellipsis;    /* agrega "..." */
    white-space: normal; 
    height: 3.5rem;
}
.box-precios {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.label-precio {
    font-family: var(--font2);
    font-weight: bold;
}
.label-precio2 {
    color: grey;
    text-decoration: line-through;
    font-family: var(--font2);
    font-size: 0.8rem;
}
.container-variedades {
    width: 100%;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    height: 3.6rem;
}
.box-variedades {
    font-family: var(--font2);
    color: grey;
    font-size: 0.7rem;
    height: 1.8rem;
    padding: 0.3rem;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 0.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box-variedad-agotado { 
    border: 1px solid rgba(0,0,0,0.3);
    color: rgba(0,0,0,0.3);
    text-decoration: line-through;
}
.box-variedad-select {
    border: 1px solid var(--rojo-secundario);
    color: var(--rojo-secundario);
    font-weight: bold;
}
.div-unidades {
    width: 100%;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    font-family: var(--font2);
    color: var(--verde);
    font-size: 0.7rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.div-unidades i {
    font-size: 0.4rem;
    margin-top: 0.1rem;
}
.producto-agotado {
    color: grey;
}
.input-agregar {
    width: 100%;
    height: 2rem;
    border: none;
    border-radius: 0.3rem;
    background-color: var(--rojo-secundario);
    color: white;
    cursor: pointer;
    font-family: var(--font2);
    font-size: 0.8rem;
}
.input-agregar:disabled {
    background-color: var(--rojo-rgba);
    color: white;
    cursor: not-allowed;
}

.non-result {
    font-family: var(--font2);
    color: rgba(0,0,0,0.6);
    font-size: 0.8rem;
}




@media (min-width: 480px) {
    .contenedor-productos {
        grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    }
}
@media (min-width: 768px){
    .contenedor-general-search {
        flex-direction: row;
    }
    .contenedor-menu-filtros, .contenedor-indice-filtros {
        display: none;
    }
   .contenedor-general-filtros {
        display: block;
        width: 16rem;
        padding: 1rem;
        background-color: white;
        border-radius: 0.2rem;
        position: relative;
    }
    .label-filtros {
        font-size: 1.2rem;
    }
    .container-inputs-filtros {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .box-inputs-filtros {
        width: 100%;
    }
    .label-filtro {
        font-size: 0.8rem;
    }
    .input-check {
        width: 0.7rem;
        height: 0.7rem;
    }
    .label-tipo-producto, .label-marca-producto {
        font-size: 0.9rem;
    }
    .contenedor-general-productos {
        width: 55rem;
    }
    .input-agregar {
        font-size: 0.9rem;
    }
}
@media (min-width: 1024px) {
    .box-producto {
        width: 13rem;
    }
}
@media (min-width: 1400px){

}
@media (min-width: 1600px){

}





.hidd {
    display: none;
}