/* Estilos para carrusel de círculos destacados */
.carousel-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    touch-action: pan-x;
}

.carousel-container .carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container .carousel::-webkit-scrollbar {
    display: none;
}

.carousel-container .carousel .carousel-item {
    flex: 0 0 16.66%;
    text-align: center;
    padding: 10px;
    padding-bottom: 0px;
    box-sizing: border-box;
}

.carousel-container .carousel .carousel-item .circle {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    background-color: white;
    padding: 15px;
    border-radius: 50% !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ccc;
    cursor: pointer;
}

.carousel-container .carousel .carousel-item .circle img {
    width: 100%;
    height: auto;
    touch-action: pan-x pan-y; /* Permitir scroll vertical en imágenes */
}

.carousel-container .carousel .carousel-item .circle a {
    touch-action: pan-x pan-y; /* Permitir scroll vertical en enlaces */
}

.carousel-container .carousel .carousel-item .title-item {
    margin-top: 10px;
    font-size: 16px;
    color: #303030;
}

.carousel-container .carousel-button {
    background-color: white;
    border-radius: 50%;
    font-weight: normal;
    font-size: 2em;
    color: #344488;
    cursor: pointer;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.carousel-container .carousel-button.prev {
    left: 10px;
}

.carousel-container .carousel-button.prev:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
}

.carousel-container .carousel-button.next {
    right: 10px;
}

.carousel-container .carousel-button.next:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
}

/* Estilos para carrusel de ofertas imperdibles */
.carousel-container-ofertas {
    position: relative;
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
    touch-action: pan-x;
}

.ofertas-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ofertas-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item-ofertas {
    flex: 0 0 calc(25% - 10px);
    text-align: center;
    padding: 0 5px;
    box-sizing: border-box;
}

.carousel-cartilla-ofertas {
    overflow: hidden;
    margin: 0;
    width: 270px;
    height: 485px;
    border-radius: 4px;
    background-color: white;
}

.carousel-cartilla-ofertas:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}

.ofertas-carousel-button {
    background-color: white;
    border-radius: 50%;
    font-weight: normal;
    font-size: 2em;
    color: #344488;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.ofertas-carousel-button.ofertas-prev {
    left: 4px;
}

.ofertas-carousel-button.ofertas-prev:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
}

.ofertas-carousel-button.ofertas-next {
    right: 5px;
}

.ofertas-carousel-button.ofertas-next:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
}

.carousel-item-ofertas:first-child {
    margin-left: 42px;
}

.carousel-item-ofertas:last-child {
    margin-right: 50px;
}

.carousel-item-ofertas figure.figureGrid0 {
    overflow: hidden;
    margin: 0;
    width: auto;
    height: 272px;
    border-radius: 3px;
}

.carousel-item-ofertas figure.figureGrid0 img {
    width: 100%;
    height: auto;
    touch-action: pan-x pan-y; /* Permitir scroll vertical en imágenes */
}

.carousel-item-ofertas figure.figureGrid0 a {
    touch-action: pan-x pan-y; /* Permitir scroll vertical en enlaces */
}

.carousel-item-ofertas figure.figureGrid0 img.imgCuota {
    position: absolute;
    top: 48%;
    right: 4.5%;
    width: 4%;
    background-color: transparent;
}

.carousel-item-ofertas figure.figureGrid0 img.imgAvisoStock {
    position: absolute;
    top: 48%;
    left: 3%;
    width: 30%;
    background-color: transparent;
}

.carousel-item-ofertas figure.figureGrid0 img.imgEnvioGratis {
    position: absolute;
    top: 1.5%;
    left: 4%;
    width: 4%;
    z-index: 999;
    background-color: transparent;
}

.carousel-item-ofertas div.informacionCartilla div.cadenaDescripcion h4 a {
    color: black;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-weight: light;
    touch-action: pan-x pan-y; /* Permitir scroll vertical en enlaces */
}

.carousel-item-ofertas div.informacionCartilla div.cadenaDescripcion {
    height: 75px;
    width: 270px;
    padding-right: 5%;
}

.carousel-item-ofertas div.informacionCartilla p {
    text-align: center;
    color: black;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: small;
}

.carousel-item-ofertas div.informacionCartilla div.ultimoParrafo p.cadenaCuotas {
    color: #344488;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-weight: 400;
    margin-top: 6px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    bottom: 0;
    line-height: 50%;
}

.carousel-item-ofertas div.informacionCartilla div.ultimoParrafo p.montoCuotas {
    color: #344488;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-weight: 700;
    font-size: xx-large;
    margin-top: 0px;
    padding-top: 0px;
    top: 0;
}

.carousel-item-ofertas div.informacionCartilla {
    position: absolute;
    padding-bottom: 0;
    height: 210px;
}

/* Estilos para carrusel de nuevo diseño (ahora apilado en móvil) */
.carousel-container-nuevo-disenio {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
    min-height: 0;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.carousel-nuevo-disenio {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.carousel-item-nuevo-disenio {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-item-nuevo-disenio figure.figureNuevoDisenio {
    overflow: hidden;
    margin: 0;
    width: 100%;
    border-radius: 4px;
}

.carousel-item-nuevo-disenio figure.figureNuevoDisenio img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.carousel-item-nuevo-disenio .texto-nuevo-disenio {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Estilos para carrusel de marcas */
.carousel-marcas-container {
    position: relative;
    width: 75%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-marcas {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin-left: 30px;
    margin-right: 20px;
}

.carousel-marcas-item {
    flex: 0 0 20%;
    text-align: center;
    padding: 10px;
    padding-bottom: 0px;
}

.recuadro-marcas {
    width: 205px;
    height: 83px;
    margin: 0 auto;
    background-color: white;
    padding: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ccc;
    cursor: pointer;
}

.recuadro-marcas img {
    width: 100%;
    height: auto;
}

.carousel-marcas-button {
    background-color: white;
    border-radius: 50%;
    font-weight: normal;
    font-size: 2em;
    color: #344488;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.carousel-marcas-button.prev-marcas {
    left: 10px;
}

.carousel-marcas-button.prev-marcas:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
}

.carousel-marcas-button.next-marcas {
    right: 10px;
}

.carousel-marcas-button.next-marcas:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
}

/* Estilos para productos destacados */
.tituloDestacado {
    background-color: #f0f0f0;
}

.tituloDestacado h1 {
    margin-top: -5px;
}

.bold-text {
    font-weight: bold;
}

.semi-bold-text {
    font-weight: 500;
}

.productosDestacados {
    background-color: #f0f0f0;
}

.productosDestacados ul li figure.figureGrid0 {
    overflow: hidden;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    width: auto;
    height: 272px;
    border-radius: 3px;
}

.productosDestacados ul li figure.figureGridTemporal {
    overflow: hidden;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
    width: auto;
    height: 500px;
    border-radius: 3px;
}

.productosDestacados ul li figure.figureGridTemporal img.imgCuota {
    position: absolute;
    top: 48%;
    right: 3%;
    width: 23%;
    background-color: transparent;
}

.productosDestacados ul li figure.figureGridTemporal img.imgAvisoStock {
    position: absolute;
    top: 48%;
    left: 3%;
    width: 30%;
    background-color: transparent;
}

.productosDestacados ul li figure.figureGridTemporal img.imgEnvioGratis {
    position: absolute;
    top: 1.5%;
    left: 2%;
    width: 23%;
    z-index: 999;
    background-color: transparent;
}

.productosDestacados ul li p.lineaClasificacion {
    position: absolute;
    top: 1%;
    right: 1%;
    color: #777;
    font-size: x-small;
    cursor: default;
    background-color: transparent;
}

.productosDestacados ul li p.lineaClasificacion:hover {
    right: 4%;
    transform: scale(1.3, 1.3);
}

.productosDestacados ul li figure.figureGrid0 img.imgCuota {
    position: absolute;
    top: 48%;
    right: 3%;
    width: 23%;
    background-color: transparent;
}

.productosDestacados ul li figure.figureGrid0 img.imgAvisoStock {
    position: absolute;
    top: 48%;
    left: 3%;
    width: 30%;
    background-color: transparent;
}

.productosDestacados ul li figure.figureGrid0 img.imgEnvioGratis {
    position: absolute;
    top: 1.5%;
    left: 2%;
    width: 23%;
    z-index: 999;
    background-color: transparent;
}

.productosDestacados ul li.liGrid0 {
    background-color: white;
    border: 1px solid #E2E4EB;
    border-radius: 5px;
    margin: 6px;
    margin-bottom: 20px;
    padding: 10px;
    position: relative;
    width: 280px;
    height: 491px;
}

.productosDestacados ul li.liGrid0:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
    border-radius: 7px;
}

.productosDestacados ul li.liGrid0NuevoDisenio {
    background-color: white;
    border: 1px solid #E2E4EB;
    border-radius: 5px;
    margin: 16px;
    margin-bottom: 20px;
    padding: 0px;
    position: relative;
    width: 350px;
    height: 446px;
}

.productosDestacados ul li.liGrid0NuevoDisenio:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
    border-radius: 7px;
}

.productosDestacados ul li.liGrid0Tarjetas {
    background-color: white;
    border: 1px solid #E2E4EB;
    border-radius: 5px;
    margin: 16px;
    margin-bottom: 20px;
    padding: 0px;
    position: relative;
    width: 550px;
    height: 167px;
}

.productosDestacados ul li.liGrid0Tarjetas:hover {
    border: 1px solid #c5c5c5;
    box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
    border-radius: 7px;
}

.productosDestacados ul li div.informacionCartilla div.cadenaPrecioAlFinal {
    position: absolute;
    bottom: 2%;
    left: 0%;
    right: 3%;
    margin: auto;
    text-align: center;
    height: 12%;
}

.productosDestacados ul li div.informacionCartilla div.cadenaPrecioAlFinal span strong {
    vertical-align: middle;
    color: black;
    margin-left: 7px;
    font-family: 'Poppins', sans-serif;
}

.productosDestacados ul li div.informacionCartilla div.ultimoParrafo {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    margin-top: 0;
    text-align: center;
    height: 28%;
}

.productosDestacados h1 small {
    text-transform: uppercase;
}

.productosDestacados ul li h4 {
    color: #848688;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-weight: light;
}

.productosDestacados ul li div.informacionCartilla div.cadenaDescripcion h4 a {
    color: black;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-weight: light;
}

.productosDestacados ul li div.informacionCartilla div.cadenaDescripcion {
    height: 75px;
    width: 270px;
    padding-right: 5%;
}

.productosDestacados ul li div.informacionCartilla p {
    text-align: center;
    color: black;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: small;
}

.productosDestacados ul li div.informacionCartilla div.ultimoParrafo p.cadenaCuotas {
    color: #344488;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-weight: 400;
    margin-top: 6px;
    margin-bottom: 0px;
    padding-bottom: 0px;
    bottom: 0;
    line-height: 50%;
}

.productosDestacados ul li div.informacionCartilla div.ultimoParrafo p.montoCuotas {
    color: #344488;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-weight: 700;
    font-size: xx-large;
    margin-top: 0px;
    padding-top: 0px;
    top: 0;
}

.productosDestacados ul li div.informacionCartilla {
    position: absolute;
    padding-bottom: 0;
    height: 210px;
}

.productosDestacados ul li h5 {
    color: #848688;
    font-family: 'Open Sans', sans-serif;
    font-size: medium;
    text-align: center;
    font-weight: lighter;
}

.productosDestacados ul li h4 a {
    color: white;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-weight: bold;
    font-size: medium;
}

.productosDestacados ul li div.precio {
    padding: 0;
    margin-top: -30px;
    padding-bottom: 20px;
}

.productosDestacados ul li div.enlaces {
    padding: 0;
    padding-bottom: 20px;
}

.productosDestacados ul li div.enlaces button {
    margin: 2px;
}

.productosDestacados ul li div.enlaces button i {
    color: #999;
    font-size: 12px;
}

/* Media queries */
@media (min-width: 1200px) {
    .carousel-container-ofertas h1 {
        font-size: 1.5em;
    }
}

@media (max-width: 412px) {
    .carousel-container {
        width: 100%;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-container .carousel .carousel-item {
        flex: 0 0 33.33%;
        padding: 8px;
    }

    .carousel-container .carousel .carousel-item .circle {
        width: 105px;
        height: 105px;
    }

    .carousel-container .carousel .carousel-item .title-item {
        font-size: 0.92em;
        line-height: 1;
    }

    .carousel-container .carousel-button {
        display: none !important;
    }

    .carousel-container-ofertas {
        max-width: 100%;
        width: auto;
        height: auto;
        overflow-x: auto;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .ofertas-carousel {
        display: flex;
        content: center; align-items: center;
        padding-left: 0px;
        margin-left: 0px;
    }

    .carousel-container-ofertas h1 {
        font-size: 0.50em;
    }

    .carousel-item-ofertas {
        flex: 0 0 auto;
        text-align: center;
        padding-left: 5px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .ofertas-carousel-button {
        display: none !important;
    }

    .carousel-item-ofertas figure.figureGrid0 img.imgEnvioGratis {
        left: 14%;
        width: 15%;
    }

    .carousel-item-ofertas figure.figureGrid0 img.imgCuota {
        right: 1%;
        width: 14%;
    }

    .carousel-container-nuevo-disenio {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow: visible;
        min-height: 0;
        padding-bottom: 20px;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;

        padding-left: 0px;
        height: auto;
    }

    .carousel-nuevo-disenio {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        
        content: center; align-items: center;
    }

    .carousel-item-nuevo-disenio {
        flex: 0 0 auto;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .carousel-item-nuevo-disenio figure.figureNuevoDisenio img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }

    .carousel-item-nuevo-disenio .texto-nuevo-disenio {
        font-size: 0.9em;
    }

    .carousel-marcas-button.prev-marcas, .carousel-marcas-button.next-marcas {
        display: none !important;
    }

    .carousel-marcas-container {
        width: 100%;
        margin-bottom: 30px;;
    }

    #tituloMarca {
        width: 98%;
        margin: 0 auto;
        
    }

    #tituloMarca h1 {
        text-align: center;
        font-size: 0.50em;
    }

    /* Ocultar elementos con clase ocultar-por-el-momento en móviles */
    .ocultar-por-el-momento {
        display: none !important;
    }

    
}

@media (min-width: 413px) {
    .carousel-container-nuevo-disenio {
        width: 100%;
        max-width: 80%;
        margin: 0 auto;
        overflow: hidden;
    }

    .carousel-nuevo-disenio {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .carousel-item-nuevo-disenio {
        flex: 0 0 calc(33.33% - 10px);
        padding: 0 5px;
    }
}
