/* CSS Document */
.t1{
	color: orangered;
	font-weight: bold;
}
.carrusel {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.carrusel__visor {
    position: relative;
    width: 100%;
    overflow: hidden;

    border-radius: 15px;
    background: #f2f2f2;
}

.carrusel__slides {
    position: relative;
    width: 100%;
    height: 500px;
}

.carrusel__slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .6s ease,
        visibility .6s ease;
}

.carrusel__slide.activo {
    opacity: 1;
    visibility: visible;
}

.carrusel__slide img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}


/* FLECHAS */

.carrusel__flecha {
    position: absolute;
    top: 50%;
    z-index: 8;

    width: 48px;
    height: 48px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;

    background: rgba(6, 44, 84, .85);
    color: #fff;

    font-size: 28px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: background .2s ease;
}

.carrusel__flecha:hover {
    background: #bd1824;
}

.carrusel__flecha--anterior {
    left: 20px;
}

.carrusel__flecha--siguiente {
    right: 20px;
}


/* MINIATURAS */

.carrusel__miniaturas {
    display: flex;
    gap: 12px;

    margin-top: 15px;
    padding: 10px 4px;

    overflow-x: auto;

    scroll-behavior: smooth;
}

.carrusel__thumb {
    flex: 0 0 150px;

    height: 85px;

    padding: 0;

    border: 3px solid transparent;
    border-radius: 9px;

    overflow: hidden;

    background: transparent;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease;
}

.carrusel__thumb:hover {
    transform: translateY(-2px);
}

.carrusel__thumb.activo {
    border-color: #bd1824;
}

.carrusel__thumb img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}


/* TABLET */

@media (max-width: 991px) {

    .carrusel__slides {
        height: 380px;
    }

}


/* MÓVIL */

@media (max-width: 600px) {

    .carrusel {
        margin: 20px auto;
    }

    .carrusel__slides {
        height: 260px;
    }

    .carrusel__flecha {
        width: 38px;
        height: 38px;

        font-size: 20px;
    }

    .carrusel__flecha--anterior {
        left: 10px;
    }

    .carrusel__flecha--siguiente {
        right: 10px;
    }

    .carrusel__thumb {
        flex-basis: 110px;
        height: 65px;
    }

}