/* ==========================================================================
   CARRUSEL COOPERATIVA - 
   ========================================================================== */

.carousel {
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1em;
    /*background-color: green; /* Tu color de fondo */
    height: 64vh;
}

/* 1. ESTADO BASE DE LOS ITEMS */
.carousel-inner > .item {
    position: relative;
    display: none; /* Oculto por defecto */
    -webkit-transition: 0.6s ease-in-out transform;
    transition: 0.6s ease-in-out transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}


.carousel-inner > .item.active,
.carousel-inner > .item.next,
.carousel-inner > .item.prev {
    display: block !important;
}

.carousel-inner > .next,
.carousel-inner > .prev {
    position: absolute;
    top: 0;
    width: 100%;
}

/* 3. LÓGICA DE MOVIMIENTO (TRANSFORMACIONES) 
   Anulamos el uso de 'left' para evitar parpadeos */

.carousel-inner > .item.next,
.carousel-inner > .item.active.right {
    left: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
}

.carousel-inner > .item.prev,
.carousel-inner > .item.active.left {
    left: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
}

.carousel-inner > .item.next.left,
.carousel-inner > .item.prev.right,
.carousel-inner > .item.active {
    left: 0;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* 4. ESTILOS DE IMÁGENES Y CONTENIDO */
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
    display: block;
    max-width: 100%;
    height: auto;
    line-height: 1;
}

/* 5. CONTROLES (FLECHAS) */
.carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 15%;
    font-size: 20px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0);
    opacity: 0.5;
    z-index: 10;
}

.carousel-control.right {
    right: 0;
    left: auto;
}

.carousel-control:hover {
    opacity: 0.9;
    color: #fff;
}

/* 6. INDICADORES (BOLITAS) */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 15;
    width: 60%;
    margin-left: -30%;
    padding-left: 0;
    list-style: none;
    text-align: center;
}

.carousel-indicators li {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 1px;
    cursor: pointer;
    border: 1px solid #fff;
    border-radius: 10px;
}

.carousel-indicators .active {
    width: 12px;
    height: 12px;
    background-color: #fff;
}

/* 7. RESPONSIVE */
@media screen and (min-width: 768px) {
    .carousel-control .icon-prev, .carousel-control .icon-next {
        width: 30px;
        height: 30px;
        font-size: 30px;
    }
}