:root {
    --bg1: #081220;
    --bg2: #32206f;
    --glass:rgba(18, 20, 30, .58);
    --accent: #8de4ff;
    --radius: 380px;
    --slide-width: 240px;
    --slide-height: 280px;
    --transition: .6s cubic-bezier(.25, .8, .25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Los estilos de body solo aplican en index.html standalone */
.carousel-standalone body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
}

.carousel-container {
    position: relative;
    width: 100%;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    perspective: 1200px;
    padding: 20px 0;
}

#carousel {
    position: relative;
    width: 100%;
    height: 500px;
    /* Give the carousel a fixed height */
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.carousel-slide {

    position: absolute;

    width: var(--slide-width);
    height: var(--slide-height);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-radius: 28px;

    background: var(--glass);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border: 2px solid rgba(75, 204, 255, 0.45);

    overflow: hidden;

    opacity: .45;

    isolation: isolate;

    transition:
        transform .65s cubic-bezier(.22, .61, .36, 1),
        opacity .55s ease,
        border-color .55s ease,
        filter .55s ease;

    box-shadow:

        0 25px 50px rgba(0, 0, 0, .75),

        0 0 20px rgba(100, 190, 200, .18),

        0 0 45px rgba(100, 190, 200, .12),

        inset 0 1px 0 rgba(255, 255, 255, .12),

        inset 0 -1px 0 rgba(255, 255, 255, .06),

        inset 0 0 70px rgba(100, 190, 200, .06);

}

.carousel-slide::before {

    content: "";

    position: absolute;

    inset: -2px;

    border-radius: inherit;

    pointer-events: none;

    opacity: 0;

    transition:
        opacity .65s ease,
        filter .65s ease;

    box-shadow:

        0 -1px 1px rgba(255, 255, 255, .9),

        -1px 1px 1px #64BEC8,

        0 0 8rem -20px #64BEC8,

        inset 0 0 76px -10px #64BEC8,

        inset 0 0 5.6rem -10px #64BEC8;

    filter: blur(10px);

}

.carousel-slide.active::before {

    opacity: 1;

    filter: blur(0);

}

.carousel-slide::after {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:

        linear-gradient(125deg,
            rgba(255, 255, 255, .18) 0%,
            rgba(255, 255, 255, .09) 28%,
            transparent 55%),

        radial-gradient(circle at top center,
            rgba(120, 240, 255, .18),
            transparent 40%),

        radial-gradient(circle at bottom,
            rgba(0, 140, 255, .10),
            transparent 65%);

}

.carousel-slide.active {

    opacity: 1;

    filter: none;

    border-color: #56dcff;



}



.slide-img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 26px;

    display: block;

    padding: 10px;

}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.nav {
    width: 55px;
    height: 55px;

    border: 1px solid rgba(75, 204, 255, 0.45);
    border-radius: 50%;

    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);

    color: #fff;
    font-size: 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    transition: .3s;

    box-shadow:

        inset 0 0 20px -6px #64BEC8,

        inset 0 0 .5rem -10px #64BEC8;
}

.nav:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.08);
}

#dots {
    display: flex;
    align-items: center;
    gap: 12px;
}


.dot {

    width: 14px;

    height: 14px;

    border-radius: 50%;

    border: none;

    cursor: pointer;

    background: rgba(255, 255, 255, .25);

    transition: .3s;

}

.dot.active {

    background: var(--accent);

    transform: scale(1.25);

    box-shadow: 0 0 10px var(--accent);

}

@media(max-width:768px) {

    :root {

        --slide-width: 220px;
        --slide-height: 140px;
        --radius: 260px;

    }

    .nav {

        width: 46px;
        height: 46px;
        font-size: 28px;

    }

}

@media(max-width:480px) {

    :root {

        --slide-width: 170px;
        --slide-height: 110px;
        --radius: 190px;

    }

    .slide-title {

        font-size: 18px;

    }

    .slide-desc {

        font-size: 12px;

    }

    .slide-icon {

        font-size: 36px;

    }

}
