@import url('https://fonts.googleapis.com/css2?family=Aboreto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body{
    font-family: Poppins;
    margin: 0;
    font-size: 18px;
    background-color: #ffe9f9;
}
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}
:root{

    --w-image: 520px;
    --calculate: calc(3 / 2);
    
}


.carousel{
    margin-top: 0;
    width: 100%;
    height: 105vh;
    overflow: hidden;
}
.carousel .list{
    height: 100%;
    position: relative;
}
.carousel .list::before{
    position: absolute;
    width: var(--w-image);
    height: 100%;
    content: '';
    top: 0;
    left: calc(100% - calc(var(--w-image) * var(--calculate)));
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    z-index: 50;
    pointer-events: none;
}
.carousel .list::after{
    position: absolute;
    top: 50px;
    left: 50px;
    content: '';
    background-color: purple;
    width: 400px;
    height: 500px;
    z-index: 50;
    pointer-events: none;
    border-radius: 20px  50px 110px  230px;
    filter: blur(150px);
    opacity: .6;
}
.carousel .list .item{
    position: absolute;
    top: -99px;
    left: 0;
    width: 100%;
    height: 100%;
}
.carousel .list .item .image{
    width: var(--w-image);
    height: 100%;
    position: absolute;
    top: 0;
    left: calc(100% - calc(var(--w-image) * var(--calculate)));
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    font-weight: 500;
}
.carousel .list .item .image img{
    width: 90%;
    margin-bottom: 20px;
    filter: drop-shadow(0 75px 50px #6c4e74);
}
.carousel .list .item .image figcaption{
    font-family: 'Aboreto';
    font-weight: bold;
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 30px;
    width: 70%;
}
.carousel .list .item .main-content{
    height: 100%;
    display: grid;
    grid-template-columns: calc(100% - calc(var(--w-image) * var(--calculate)));
}




.carousel .list .item .main-content .content{
    padding: 150px 110px  20px 80px;
}

/*Color del gran titulo*/
.carousel .list .item .main-content .content h2{
    font-size: 2.3em;
    color: #0C113D;
     font-weight: 700;
    font-family: 'Aboreto';
}

/*Color del precio*/
.carousel .list .item .main-content .content .price{
    font-family: 'Aboreto';
    color: #0C113D;
    font-size: 1.5em;
     font-weight: 700;
    margin: 20px 0;
}


/*Color del texto*/
.carousel .list .item .main-content .content .description{
  
    color: #0C113D;
    padding: 7px 20px;
    font-family: Poppins;
    font-size: 1em;
    border-radius: 30px;
    border: none;
    margin-top: 20px;
}

.arrows{
    
    position: absolute;
    top: 90%;
    width: calc(100% - calc(var(--w-image) * var(--calculate)));
    display: grid;
    grid-template-columns: repeat(2, 50px);
    grid-template-rows: 50px;
    justify-content: center;
    gap: 20px;
 
    
}

.arrows button{
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: #831fad;
    font-family: monospace;
    font-size: large;
    font-weight: bold;
    line-height: 0;
    box-shadow: 0 10px 40px #831fad;
    cursor: pointer;
    transition: 0.5s;
       z-index:55;
}
.arrows button:hover{
    background-color: #c5b186;
}
.carousel .list .item{
    display: none;
}
.carousel .list .item.active,
.carousel .list .item.other_1,
.carousel .list .item.other_2{
    display: block;
}
.carousel .list .item.active{
    z-index: 30;
}
.carousel .list .item.other_1,
.carousel .list .item.other_2{
    pointer-events: none;
}
.carousel .list .item.active .main-content{
    animation: showContent 1s ease-in-out 1 forwards;
}
@keyframes showContent{
    from{
        clip-path: circle(0% at 70% 50%);
    }to{
        clip-path: circle(100% at 70% 50%);
    }
}
.next .item.other_1{
    z-index: 25;
}
.next .item .image img,
.next .item .image figcaption{
    animation: effectNext .5s ease-in-out 1 forwards;
}
@keyframes effectNext{
    from{
        transform: translateX(calc(var(--transform-from)));
    }to{
        transform: translateX(calc(var(--transform-from) - var(--w-image)));
    }
}
.next .item.active .image{
    --transform-from: var(--w-image);
}
.next .item.other_1 .image{
    z-index: 30;
    --transform-from: 0px;
    overflow: hidden;
}
.next .item.other_2 .image{
    z-index: 30;
    --transform-from: calc(var(--w-image) * 2);
}
.a{
     z-index:30;
}
/* prev */
.prev .list .item .image img,
.prev .list .item .image figcaption{
    animation: effectPrev 0.5s ease-in-out 1 forwards;
}
@keyframes effectPrev{
    from{
        transform: translateX(calc(var(--transform-from)));
    }to{
        transform: translateX(calc(var(--transform-from) + var(--w-image)));
    }
}
.prev .list .item.active .image{
    --transform-from: calc(var(--w-image) * -1);
    overflow: hidden;
}
.prev .list .item.other_1 .image{
    --transform-from: 0px;
    z-index: 30;
}
.prev .list .item.other_2 .image{
    z-index: 30;
    --transform-from: var(--w-image);
}
.prev .list .item.other_2 .main-content{
    opacity: 0;
}
@media screen and (max-width: 1023px){
    :root{
        --calculate: 1;
        --w-image: 400px; 
    }
    .carousel .list .item .main-content .content h2{
        font-size: 2em;
    }
    
   .description{
        font-size: 1em;
    }
}


@media screen and (max-width: 767px){
    
   .carousel .list .item .main-content .price {
        font-size: 1em; /* Reduce el tamaño de la fuente para el precio */
    }
    
    .carousel .list .item {
        display: flex;
        
        flex-direction: column; /* Coloca los elementos uno debajo del otro */
        width: 100vw;
        height: 100vh; /* Ajusta la altura automáticamente según el contenido */
        align-items: center; /* Centra todo el contenido horizontalmente */
    }
    
    .carousel .list .item .image {
        width: 100%; /* Ajusta al ancho completo */
        padding: 0px;
        margin: 25px;
        display: flex;
        flex-direction: column; /* Coloca la imagen y el caption uno encima del otro */
        align-items: center; /* Centra la imagen y el figcaption horizontalmente */
    }

    .carousel .list .item .image img {
        width: 40%; /* Reduce el ancho de la imagen */
        height: auto;
        margin: 5px; /* Elimina el margen adicional */
         padding: 15px; /* Reduce el padding vertical */
        display: block;
    }

    .carousel .list .item .image figcaption {
        color: #0C113D;
        font-size: 0.6em;
        width: auto; /* Ajusta el ancho del caption según el contenido */
        text-align: center;
        margin-top: 5px; /* Reduce el margen superior para acercar el caption a la imagen */
        padding: 5px 0; /* Reduce el padding vertical */
        display: block;
       justify-content: center;
       font-weight:bold;
    }

    .carousel .list .item .main-content {
        display: flex;
        flex-direction: column; /* Cambiado a columna para una mejor disposición vertical */
        flex: 1; /* Usa el espacio disponible */
        padding: 12px; /* Aumenta el padding para móviles */
        margin-top: 10px; /* Espacio entre la imagen y el contenido */
        width: 100vw; /* Asegura que el contenedor ocupe todo el ancho del viewport */
        box-sizing: border-box; /* Incluye padding en el cálculo del ancho total */
        position: relative; /* Permite ajuste adicional del contenido */
         
        min-height: 50px; /* Aumenta la altura mínima del contenedor */
    }

    .carousel .list .item .main-content .content {
        width: 100%; /* Ajusta al ancho completo */
        height: auto; /* Ajusta la altura automáticamente */
        padding: 5px 17px; /* Agrega padding para asegurar que el texto no toque los bordes */
        font-size: 14px; /* Reduce el tamaño de la fuente para el precio */
        text-align: left;
        line-height: 1.2; /* Ajusta la altura de la línea si es necesario */
    }
    
    .carousel .list .item .main-content a {
        font-size: 0.7em; /* Reduce el tamaño de la fuente del enlace */
        text-decoration: none; /* Opcional: Elimina el subrayado */
        color: #fff;
        position: relative;
    }
    
    .arrows {
        display: none;
    }
}



@media (max-width: 480px ){



 .carousel .list .item .image {

        padding: 10px;
        margin: 0px;
        display: flex;
        flex-direction: column; /* Coloca la imagen y el caption uno encima del otro */
        align-items: center; /* Centra la imagen y el figcaption horizontalmente */
    }
    
    
      .carousel .list .item .image figcaption {

       justify-content: center;
    }

    
 .carousel .list .item .main-content .content {
      
        padding: 5px; /* Agrega padding para asegurar que el texto no toque los bordes */
          font-size: 12px; /* Reduce el tamaño de la fuente para el precio */
    }
    

  
  
 .carousel .list .item .image img {
        width: 50%; /* Reduce el ancho de la imagen */
        height: auto;
        margin: 0; /* Elimina el margen adicional */
        display: block;
    }




}



@media (max-width: 380px ){



 .carousel .list .item .image {

        padding: 50px;
        margin: 40px;
        display: flex;
        flex-direction: column; /* Coloca la imagen y el caption uno encima del otro */
        align-items: center; /* Centra la imagen y el figcaption horizontalmente */
    }
    
    
      .carousel .list .item .image figcaption {

       justify-content: center;
    }

    
 .carousel .list .item .main-content .content {
      
        padding: 5px 10px; /* Agrega padding para asegurar que el texto no toque los bordes */
          font-size: 11px; /* Reduce el tamaño de la fuente para el precio */
    }
    

  
  
 .carousel .list .item .image img {
        width: 55%; /* Reduce el ancho de la imagen */
        height: auto;
        margin: 0; /* Elimina el margen adicional */
        display: block;
    }




}


