/* ====== RESET BÁSICO ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: white;
    overflow-x: hidden;
}

.banner {
    background: url(../public/img/productos/banner/banner_prin.png);
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.banner-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.columna_vacia {
    width: 40%;
}

.columna-text {
    width: 60%;
    height: calc(100vh - 33vh);
    margin-top: 33vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    background-color: transparent;
    background-color: transparent;
}

.columna-text h1 {
    font-family: 'Poppins-SemiBold', sans-serif;
    font-size: 50px;
    color: #ffffff;
    text-align: center;
    width: auto;
}

.h1_linea {
    border-bottom: solid 2px #ffffff;
}

.h1_margin {
    margin-bottom: 3vh;
}

.columna-text p {
    width: auto;
    font-family: 'Cooper-Book', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

/*Slider*/
.slider_marcas {
    display: flex;
    gap: 40px;
    animation: scroll 20s linear infinite;
    /* animación infinita */
}

.slider_marcas .marca {
    flex: 0 0 auto;
}

.marca.calorex img {
    width: 150px;
    height: auto;
}

.marca.rheem img {
    width: 150px;
    height: auto;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/*Fin slider*/

.banner-cards {
    width: 100%;
    height: 35vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    gap: 20px;
    overflow: hidden;
}

.card {
    width: 250px;
    height: 250px;
    background-color: white;
    border-radius: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-img {
    width: 100px;
    height: auto;
    margin-bottom: 5px;
    margin-top: -60px;
}

.card h1 {
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 28px;
    color: #252a30;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 0.5px solid #252a30;
}

.card p {
    font-family: 'Poppins-Light', sans-serif;
    font-size: 12px;
    color: #252a30;
    text-align: center;
    margin-bottom: 20px;
}

.btn-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background-color: #252a30;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    width: 200px;
    height: 32px;
    font-family: 'Poppins-Regular', sans-serif;
    text-transform: uppercase;
    font-size: 10px;
    white-space: nowrap;
}

.btn-card .icon {
    width: 44px;
    height: auto;
}

/*Seccion de productos destacados*/

.productos_destacados {
    display: flex;
    height: 750px;
    width: 100%;
}

.col-left {
    width: 600px;
    background-color: #ffffff;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 50px;
}

.col-right {
    flex: 1;
    background-color: #000000;
    margin-top: 48px;
    margin-bottom: 48px;
    box-sizing: border-box;
}

.productos {
    background-color: #ffffff;
    display: grid;
    grid-template-rows: 160px 1fr auto;
    gap: 20px;
    height: 100%;
}

.fila1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.fila1 h1 {
    color: black;
    font-family: 'Poppins-light', sans-serif;
    font-size: 50px;
    border-bottom: 4px solid #878787;
}

.fila1 span {
    color: #878787;
    font-family: 'Poppins-bold', sans-serif;
}

.fila1 img {
    width: 150px;
    margin-bottom: -70px;
    margin-left: 40px;
    cursor: pointer;
}

.fila3 .button {
    margin-bottom: 0;
}

.fila3 .btn-explorar {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #252a30;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    width: 400px;
    text-align: center;
    font-family: 'Poppins-Regular', sans-serif;
    text-transform: uppercase;
    overflow: hidden;
}

.fila3 .btn-explorar .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: auto;
}

/*Seccion Banner Categorias*/
.banner_cat {
    margin-top: 3vh;
    background-color: #ffffff;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10vh;
}

.banner_cat h1 {
    font-family: 'Poppins-Ligth', sans-serif;
    font-size: 60px;
    color: #292929;
    text-align: center;
    font-weight: normal;
    border-bottom: 2px solid #878787;
}

.banner_cat span {
    color: #878787;
    font-family: 'Poppins-bold', sans-serif;
    font-size: 60px;
    font-weight: bold;
}

.div_cat {
    margin-top: 5vh;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
    background-color: #252a30;
    width: 90%;
    height: 18vh;
}

.div_cat .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.div_cat h1 {
    color: white;
    font-family: 'Cooper-Book', sans-serif;
    font-weight: normal;
    font-size: 22px;
    border-bottom: none;
}

.div_cat img {
    width: 2.6vw;
    height: auto;
}

/*Seccion de productos*/
.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(255, 255, 255);
    overflow: hidden;
}

.f1_p {
    width: 80%;
    display: flex;
    flex-direction: row;
    background-color: rgb(255, 255, 255);
}

.f1_p h1 {
    font-family: 'Poppins-light', sans-serif;
    font-size: 60px;
    font-weight: 100;
    color: #292929;
}

.f2_p {
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(255, 255, 255);
}

.f2_p h2 {
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 60px;
    font-weight: bold;
    margin: 0;
    color: #878787;
    border-bottom: 3px solid #878787;
}

.filtro_ordenar {
    display: flex;
    align-items: center;
    font-family: 'Cooper-Book', sans-serif;
    font-size: 16px;
}

.filtro_ordenar select {
    font-family: 'Cooper-Bold', sans-serif;
    font-size: 16px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.conteo_p {
    display: flex;
    align-items: center;
    font-family: 'Cooper-Book', sans-serif;
    font-size: 16px;
}

.paginas_p {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.paginas_p .btn_atras {
    width: 36px;
    height: 36px;
}

.btn_pages_p {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 1vw;
    margin-right: 1vw;
    gap: 20px;
}

.btn_pages_p p {
    font-family: 'Cooper-Book', sans-serif;
    cursor: pointer;
}

.active {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #252a30;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
}

.paginas_p .btn_siguiente {
    width: 80px;
    height: auto;
}

.paginas_p img {
    cursor: pointer;
}

/*Contenedor de los filtros y productos*/
.container_p {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    align-content: start;
    width: 80%;
    background-color: rgb(255, 255, 255);
    margin-top: 7vh;
    flex-direction: row;
}

.sidebar {
    width: 20%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.content {
    flex-grow: 1;
    height: 100%;
}

.container_productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas iguales */
    grid-template-rows: repeat(4, auto);
    /* 4 filas, altura automática según contenido */
    gap: 20px;
    /* espacio entre filas y columnas */
    padding: 20px;
    /* opcional, para separar del borde */
    background-color: rgb(255, 255, 255);
}

.paginas2_p {
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    background-color: rgb(255, 255, 255);
}

.paginas2_p .btn_atras {
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.paginas2_p .btn_siguiente {
    width: 80px;
    height: auto;
    cursor: pointer;
}

/*Filtro categorias*/
.categorias {
    width: 250px;
    padding-bottom: 30px;
    border-bottom: 2px solid #878787;
}

.categoria-item {
    margin-bottom: 10px;
}

.label_cat {
    font-size: 16px !important;
    font-family: 'Cooper-Bold', sans-serif !important;
}

.subcategorias {
    padding-left: 10px;
}

/*Filtro sub_categorias*/
.sub_categorias {
    width: 250px;
    padding-bottom: 30px;
    border-bottom: 2px solid #878787;
}

/*Filtro marcas*/
.marcas {
    width: 250px;
    padding-bottom: 30px;
    border-bottom: 2px solid #878787;
}

.toggle {
    width: 100%;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    font-family: 'Cooper-Bold', sans-serif;
    font-size: 25px;
}

.arrow {
    transition: transform 0.3s;
}

.contenido {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
    margin-left: 15px;
}

.contenido label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Cooper-light', sans-serif;
    font-size: 15px;
}

.contenido label:hover {
    color: #ffa200;
    cursor: pointer;
}

/* Cuando el toggle está activo, ocultamos el contenido */
.toggle.toggle_active+.contenido {
    display: none;
}

.toggle.toggle_active .arrow {
    transform: rotate(180deg);
}

/*Banner de las marcas con las que trabaja la empresa*/
.banner_marcas {
    margin-top: 30px;
    background-color: #ffffff;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 40px;
}

.banner_marcas .titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner_marcas .titulo h1 {
    font-family: 'Poppins-Ligth', sans-serif;
    font-size: 60px;
    color: #292929;
    text-align: center;
    font-weight: 100;
    border-bottom: 3px solid #878787;
}

.banner_marcas .titulo h2 {
    color: #878787;
    font-family: 'Poppins-bold', sans-serif;
    font-size: 60px;
    font-weight: bold;
}

.content_marcas {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background-color: #f2f2f2;
}

.marca img {
    width: 200px;
    height: auto;
}

.slider_marcas {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 100px;
    background-color: transparent;
}

/*Seccion de productos en descuento*/

.productos_descuento {
    display: flex;
    height: auto;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}


.col-right-desc {
    flex: 1;
    margin-bottom: 3.5vh;
    box-sizing: border-box;
}

.productos-desc {
    background-color: #bbff0000;
    display: grid;
    grid-template-rows: auto 41vh auto auto;
    gap: 20px;
    height: 100%;
}

.fila1-desc,
.fila2-desc,
.fila3-desc,
.fila4-desc {
    padding-left: 5.2vw;
}

.fila2 {
    width: 100%;
    overflow: hidden;
    /* oculta las cards que se salen */
    position: relative;
}

.fila3-desc img {
    cursor: pointer;
}

.fila1-desc {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.fila1-desc h1 {
    color: black;
    font-family: 'Poppins-light', sans-serif;
    font-size: 50px;
    border-bottom: 4px solid #878787;
}

.fila1-desc span {
    color: #878787;
    font-family: 'Poppins-bold', sans-serif;
}

.fila1-desc img {
    width: 7.8vw;
    margin-bottom: -7vh;
    margin-left: 46.9vw;
    cursor: pointer;
}

.fila4-desc {
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.fila4-desc .button {
    margin: 0;
}

.fila4-desc .btn-explorar-desc {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #252a30;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    width: 400px;
    text-align: center;
    font-family: 'Poppins-Regular', sans-serif;
    text-transform: uppercase;
    overflow: hidden;
}

.fila4-desc .btn-explorar-desc .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: auto;
}

.contenedor_produc_descuentos .card-product-descuentos {
    background-color: #f2f2f2 !important;
}

/*Banner de informacion de envio, garantia etc*/
.banner_info {
    margin-top: 3vh;
    background-color: #252a30;
    width: 100%;
    height: 13.9vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 3vh;

}

.info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.info .col {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.info .col h1 {
    color: rgb(255, 255, 255);
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 20px;
}

.info .col p {
    color: rgb(255, 255, 255);
    font-family: 'Cooper-light', sans-serif;
    font-size: 12px;
    width: 14vw;
}

.info .col img {
    width: 2.6vw;
    height: auto;
}

/* Sin resultados Filtros */
.sin-resultados {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    color: #666;
}

.lottie-container {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

@media screen and (max-width:1366px) {
    .columna-text h1 {
        font-size: 40px;
    }

    .columna-text p {
        font-size: 18px;
    }

    /*Baner categorias*/
    .banner_cat h1 {
        font-size: 50px;
    }

    .banner_cat span {
        font-size: 50px;
    }

    .div_cat h1 {
        font-size: 18px;
    }

    /*Seccion de productos*/
    .f1_p h1 {
        font-size: 50px;
    }

    .f2_p h2 {
        font-size: 50px;
    }

    .filtro_ordenar {
        font-size: 14px;
    }

    .filtro_ordenar select {
        font-size: 14px;
    }

    .conteo_p {
        font-size: 14px;
    }

    /*Slider producos con descuento*/
    .productos-desc {
        grid-template-rows: auto 43vh auto auto;
    }

    .fila1-desc h1 {
        font-size: 40px;
    }

    /*Baner info*/
    .info .col h1 {
        font-size: 16px;
    }

    .info .col p {
        font-size: 10px;
    }
}

@media screen and (max-width:500px) {

    .banner {
        background-size: cover;
        background-position: -250vw top;
    }

    .columna_vacia {
        display: none;
    }

    .columna-text {
        width: 100%;
    }


    /*Seccion Banner Categorias*/
    .banner_cat {
        margin-bottom: 5vh;
    }

    .div_cat {
        gap: 10px;
        width: 100%;
        height: 15vh;
    }

    .div_cat .col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .div_cat h1 {
        font-size: 16px;
    }

    .div_cat img {
        width: 6vw;
    }

    /*Seccion de productos*/
    .f1_p {
        display: none;
    }

    .f2_p h2 {
        display: none;
    }

    .f2_p {
        width: 90%;
    }

    .paginas_p {
        display: none;
    }

    .sidebar {
        display: none;
    }

    /*Contenedor de los filtros y productos*/
    .container_p {
        width: 100%;
        margin-top: 4vh;
    }

    .content {
        flex-grow: 1;
        height: auto;
    }

    .container_productos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas iguales */
        grid-template-rows: repeat(7, auto);
        /* 7 filas, altura automática según contenido */
        gap: 10px;
        /* espacio entre filas y columnas */
        padding: 0;
        justify-items: center;
        align-items: center;
    }

    /*Seccion de productos en descuento*/
    .productos-desc {
        grid-template-rows: auto auto auto auto;
    }

    .fila1-desc h1 {
        font-size: 30px;
    }

    .fila1-desc img {
        width: 14vw;
        margin-bottom: 0;
        margin-left: 23vw;
    }

    .fila4-desc {
        display: none;
    }

    .fila3-desc img {
        width: 10vw;
        cursor: pointer;
    }

    /*Banner de informacion de envio, garantia etc*/
    .banner_info {
        height: auto;
    }

    .info {
        width: 100%;
        flex-direction: column;
    }

    .info .col {
        width: 90%;
    }

    .info .col h1 {
        color: rgb(255, 255, 255);
        font-family: 'Poppins-Bold', sans-serif;
        font-size: 20px;
    }

    .info .col p {
        color: rgb(255, 255, 255);
        font-family: 'Cooper-light', sans-serif;
        font-size: 12px;
        width: 100%;
    }

    .info .col img {
        width: 6vw;
        height: auto;
    }
}