:root{
    --radius: calc(100vh /8);
}

.slider{
    width: 100%;
    height: 40vh;
    overflow: hidden;
    position: relative;
    background-image: radial-gradient(#fff3, transparent 50%);
    margin-top: 1rem;
}

.slider .list{
    position: absolute;
    width: max-content;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    transition: transform 0.6s;
    gap: 50px; /*Este gap es importante para el calculo del carrusel*/
}

.slider .list .item{
    width: calc(var(--radius) * 2);
    overflow: hidden;
    text-align: center;
    transform: rotate(45deg);
    transition: transform 1s;
    /* Crea un círculo */
    clip-path: circle(40%);
}

.slider .list .item.active{
    transform: rotate(0deg);
}

.slider .list .item img{
    width: 100%;
    filter: drop-shadow(0 0 20px #000) brightness(1.2);
    border-radius: 50%;
}

.slider .content{
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    bottom: 8%;
    width: 80px;
    height: 90px;
    content: '';
    background-image: url('../storage/img/acagrill_blanco.png');
    background-size: cover;
    background-repeat: no-repeat;
}

#prev,
#next{
    position: absolute;
    top: 62%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eeee;
    background-color: #eee9;
    color: #000;
    font-size: x-large;
    font-family: monospace;
    cursor: pointer;
    z-index: 15;
}
#prev{
    left: 15px;
}
#next{
    right: 15px;
}

.circle{
    pointer-events: none;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    mask: radial-gradient(var(--radius), #0000 98%, #000);
    backdrop-filter: blur(10px);
}

.circle span {
    display: block;
    position: absolute;
    height: calc(var(--radius) * 2 + 50px); /* Ajusta si es necesario, pero --radius es clave */
    top: 50%;
    left: 50%;
    --rotate: 0deg; /* Establece un valor predeterminado, aunque JS lo sobrescribirá */
    transform: translate(-50%, -50%) rotate(var(--rotate));
    text-transform: uppercase;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

@media screen and (min-width: 580px){
    :root{
        --radius: calc(1680px / 15);
    }
}

@media screen and (min-width: 768px) and (min-height: 832px ) {
    :root {
        --radius: calc(100vh/ 6);
    }

    .slider {
        height: 45vh;
    }

    .slider .content{
        bottom: 5%;
        width: 90px;
        height: 100px;
    }

    #prev,
    #next{
        width: 50px;
        height: 50px;
        transition: width 0.2s ease-in-out, height 0.2s ease-in-out; /* Define la transición */
        background-color: #eee5;
        color: #eee;
        border: 1px solid #eee9;
    }

    #prev:hover,
    #next:hover{

        width: 60px;
        height: 60px;
    }

    #prev{
        left: 15%;
    }
    #next{
        right: 15%;
    }
}

@media screen and (min-width: 853px) and (min-height: 832px ) {
    :root {
        --radius: calc(100vh / 8);
    }

    .slider {
        height: 35vh;
    }

    .slider .content{
        width: 75px;
        height: 85px;
    }
}

@media screen and (min-width: 1024px) and (min-height: 600px ) {
    :root {
        --radius: calc(100vh / 6);
    }

    .slider {
        height: 50vh;
    }

    .slider .content{
        left: 50%;
        bottom: 10%;
        width: 90px;
        height: 100px;
    }
}

@media screen and (min-width: 1025px){
    :root {
        --radius: calc(1680px / 12);
    }

    .slider {
        height: 45vh;
    }

    .slider .content{
        bottom: 5%;
        width: 100px;
        height: 110px;
    }

    #prev{
        left: 25%;
    }
    #next{
        right: 25%;
    }
}

@media screen and (min-width: 2200px){
    :root {
        --radius: calc(1680px / 10);
    }

    .slider {
        height: 40vh;
    }
}
