main {
    width: 100%;
}

.contenedor-principal-productos {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    align-items: center;
    position: relative;

    padding: 60px 30px 0 30px;
    font-family: var(--fuente-marca);
}

.contenedor-popup-imagen {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: none;

    z-index: 1;
}

.fondo-popup-clickeable {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: rgb(from var(--color-primario) r g b / 0.7);
}

.fondo-popup-clickeable img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width:50vw;
    height:50vw;
    max-width: 600px;
    max-height: 600px;
}

.icono-retorno {
    width: 20px;
    height: 20px;
    padding-right: 10px;
}

.contenedor-superior {
    width: 100%;
    display: flex;
    flex-direction: column;

}

.link-volver, .filtro-producto {
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    color: var(--color-primario);
}

.link-volver {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 5px;
    margin-top: 30px;
    width: max-content;
    font-size: 24px;

    border: 1px solid;
    border-color: var(--color-primario);
    border-radius: 12px;
}

.contenedor-superior h1 {
    text-align: center;

    font-size: 48px;
    font-weight: 700;
}

.contenedor-filtros {
    width: 100%;
    display: flex;
    align-content: center;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.filtro-producto {
    font-size: 1rem;
    display: block;
    width: max-content;
    height: max-content;
    padding: 10px;

    border: 1px solid;
    border-color: var(--color-primario);
}

.filtro-producto.filtro-activo {
    background-color: var(--color-primario);
    color: var(--color-secundario);
}

/** -----------------Cartas-------------- */

.contenedor-medio {
    width: 100%;
    max-width: 1500px;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-items: center;


    column-gap: 1rem;
}

.producto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 300px;
    height: min-content;
    background-color: var(--color-primario);
    margin: 15px;
    align-items: center;

    border-radius: 12px;
    box-shadow: 0 4px 8px 0 rgb(0, 0, 0, 0.2), 0 4px 8px 0 rgb(0, 0, 0, 0.2);
}

.imagen-producto {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;

    border-radius: 12px 12px 0 0;
}

.imagen-producto img {
    width: 100%;
    height: 300px;
    object-fit: cover;

    border-radius: 12px 12px 0 0;
}

.producto-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    transition: opacity 0.5s ease, display 0s linear 0.3s;
}

.galeria-producto {
    width: 100%;
    height: 300px;
}

.imagen-no-encontrada {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secundario);
    
    
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.seccion-texto {
    display: flex;
    flex-direction: row;
    width: 100%;
    text-align: start;
    align-items: center;
    justify-content: space-between;
    position: relative;

    color: var(--color-secundario);
    border-radius: var(--button-radius);
}

.precio {
    margin: 0;
    padding: 10px 10px 10px 10px;
    font-size: 1rem;

    position: absolute;
    transform: translateY(-100%);
    top: 0;
    right: 0;

    border-radius: 12px 0 0 0;
    background-color: var(--color-primario);

}

.contenedor-titulo-descripcion {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px;

    border-radius: var(--button-radius);
}

.contenedor-titulo-descripcion h3 {
    margin: 0;
    padding-bottom: 5px;
    font-size: 1.2rem;
    line-height: 1.5rem;
    height: 3rem;
    overflow: hidden;
}

.descripcion {
    margin-top: 10px;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1rem;
    height: 2rem;
    overflow: hidden;
}

.whatsapp-button {
    width: 80%;
    height: 40px;
    background-color: var(--color-acento);
    color: var(--color-primario);
    margin-bottom: 15px;
    padding: 10px 0;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;

    font-weight: 600;
    border-radius: 12px;
    border: none;
}

.whatsapp-button p {
    margin: 0;
    font-size: 1.3rem;
}

.whatsapp-button span {
    width: 35px;
    height: 35px;
    font-size: 1.6rem;
    align-items: center;
    align-content: center;
}

.botones-carrusel {
    width: 100%;
    display: flex;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    justify-content: space-between;
}

.carrusel-prev,
.carrusel-next {
    border-radius: var(--button-radius);

    font-size: 1.5rem;
    font-weight: 600;

    z-index: 2;

    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;

    width: 40px;
    height: 40px;

    cursor: pointer;

    transition: 0.2s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.carrusel-prev {
    margin-left: 15px;
}

.carrusel-next {
    margin-right: 15px;
}

.carrusel-prev:hover,
.carrusel-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor-inferior {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: auto 0 20px 0;
    padding-top: 30px;
}

.page-numbers, .next-page-number, .previous-page-number {
    text-decoration: none;
    color: var(--color-secundario);
    font-family: var(--fuente-cuerpo);
    -webkit-tap-highlight-color: transparent;
    font-size: 1.3rem;

    margin: 5px;
    padding: 5px 12px;
    border-radius: 16px;
}


.page-numbers {
    background-color: var(--color-primario);
}

.current {
    font-size: 1.6rem;
    background-color: var(--color-acento);
    border: 2px solid;
    border-color: var(--color-primario);
    color: var(--color-primario);
}

@media (max-width: 700px) {

    .contenedor-principal-productos {
        padding-left: 0;
        padding-right: 0;
    }
    
    .fondo-popup-clickeable img {
        width: calc(250px + 20vw);
        height: calc(300px + 20vw);
    }

    .contenedor-filtros {
        margin-bottom: 20px;
    }

    .link-volver {
        padding: 8px;
    }

    .contenedor-medio {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        column-gap: 1;
        row-gap: 1.5rem;
    }

    .producto-card {
        width: 250px;
        margin: 0;
    }

    .galeria-producto {
        height: 200px;
    }

    .imagen-producto img {
        height: 200px;
    }

    .imagen-no-encontrada {
        height: 200px;
    }

    .whatsapp-button {
        height: 30px;
        margin-bottom: 10px;
    }

    .whatsapp-button p {
        font-size: 1rem;
    }

    .whatsapp-button span {
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }

    .carrusel-prev,
    .carrusel-next {
        font-size: 1.2rem;

        width: 30px;
        height: 30px;
    }

    .page-numbers, .next-page-number, .previous-page-number {
        font-size: 0.8rem;
    }

    .current {
        font-size: 1rem;
    }

}

@media (max-width: 600px) {

    .link-volver {
        width: max-content;
        font-size: 1rem;
        margin-left: 15px;
        padding: 6px;
    }

    .contenedor-superior h1 {
        font-size: 2.5rem;
    }


    .contenedor-medio {
        grid-template-columns: repeat(2, 1fr);
    }

    .producto-card {
        width: 220px;
    }

    .imagen-no-encontrada {
        height: 200px;
    }

    .imagen-no-encontrada p {
        font-size: 0.6rem;
    }

    .precio {
        margin: 0;
        padding: 10px 10px 10px 10px;
        font-size: 0.8rem;
    }

    .contenedor-titulo-descripcion {
        padding: 10px;
    }

    .contenedor-titulo-descripcion h3 {
        padding-bottom: 5px;
        font-size: 1rem;
    }

    .descripcion {
        overflow: hidden;
        font-size: 0.8rem;
    }

    .whatsapp-button {
        width: 75%;
    }

    .carrusel-prev,
    .carrusel-next {
        font-size: 1rem;

        width: 25px;
        height: 25px;
    }

    .carrusel-prev {
        margin-left: 10px;
    }

    .carrusel-next {
        margin-right: 10px;
    }
}

@media (max-width: 470px) {
    
    .contenedor-superior h1 {
        font-size: 2rem;
    }

    .link-volver {
        font-size: 1.2rem;
    }

    .contenedor-filtros p {
        display: none;
    }

    .filtro-producto {
        font-size: 0.8rem;
        padding: 8px;
    }

    .producto-card {
        width: 190px;
    }

    .galeria-producto {
        height: 180px;
    }

    .imagen-producto img {
        height: 180px;
    }

    .producto-slide {
        height: 180px;
    }

    .imagen-no-encontrada {
        height: 180px;
    }

    .imagen-no-encontrada p {
        font-size: 0.6rem;
    }

    .precio {
        font-size: 0.6rem;
    }

    .contenedor-titulo-descripcion h3 {
        font-size: 0.8rem;
    }

    .whatsapp-button {
        height: 20px;
    }

    .whatsapp-button p {
        font-size: 0.8rem;
    }

    .whatsapp-button span {
        width: 15px;
        height: 15px;
    }

    .carrusel-prev,
    .carrusel-next {
        font-size: 1rem;

        width: 25px;
        height: 25px;
    }

    .carrusel-prev {
        margin-left: 10px;
    }

    .carrusel-next {
        margin-right: 10px;
    }
}

@media (max-width: 400px) {
    .contenedor-medio {
        grid-template-columns: 1fr;
    }
}