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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


/* CONTENEDOR DEL SLIDER */

.slider {
    position: relative;

    width: 100%;
    height: 100vh;

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

    overflow: hidden;
}
.slider {
    touch-action: pan-y pinch-zoom;
}
.slider img {
    touch-action: pinch-zoom;
}

/* SLIDES */

.slide {
    position: absolute;

    width: 100%;
    height: 100%;

    display: none;

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

.slide.active {
    display: flex;
}


/* IMAGEN */

.slide img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    display: block;
}


/* FLECHAS */

.arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.5);

    color: white;

    font-size: 30px;

    cursor: pointer;

    z-index: 10;

    transition: 0.3s;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


/* PUNTOS */

.dots {
    position: absolute;

    bottom: 25px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 10px;

    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);

    cursor: pointer;

    transition: 0.3s;
}

.dot.active {
    background: white;

    transform: scale(1.3);
}


/* CELULAR */

@media (max-width: 600px) {

    .arrow {
        width: 40px;
        height: 40px;

        font-size: 22px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .dots {
        bottom: 15px;
    }

}