/* ==========================================================================
   Estilos para Slider con Texto Alineado a la Izquierda y Centrado Verticalmente
   ========================================================================== */

/* Contenedor principal del carrusel */
.carousel-custom {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 2rem 0;
}

/* Imágenes del carrusel */
.img-custom {
    border-radius: 15px 15px 0 0;
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay lateral oscuro */
.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.8) 20%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.3) 60%,
        rgba(0,0,0,0.1) 80%,
        rgba(0,0,0,0) 100%
    );
    border-radius: 15px;
    z-index: 1;
}

/* Caption alineado a la izquierda y centrado verticalmente */
.caption-left {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado verticalmente */
    align-items: flex-start; /* Alineado a la izquierda */
    padding: 3rem 2rem 3rem 3rem;
    text-align: left;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    width: 50%;
    max-width: 600px;
    margin: 0;
}

.caption-left h3 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: left;
}

.caption-left p {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    width: 100%;
    text-align: left;
}

/* Botón alineado a la izquierda */
.btn-custom {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    align-self: flex-start;
    text-align: left;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: white;
}

/* Indicadores centrados */
.indicators-centered {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.indicators-centered li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin: 0 5px;
    cursor: pointer;
}

.indicators-centered li.active {
    background-color: #ffffff;
    width: 14px;
    height: 14px;
    border-color: #007bff;
    transform: scale(1.2);
}

/* Controles Bootstrap */
.control-custom {
    background-image: none;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.carousel-custom:hover .control-custom {
    opacity: 1;
}

.control-custom:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.left.carousel-control {
    left: 15px;
}

.right.carousel-control {
    right: 15px;
}

/* Iconos de los controles */
.left.carousel-control .glyphicon-chevron-left,
.right.carousel-control .glyphicon-chevron-right {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
    .carousel-custom {
        border-radius: 12px;
        margin: 1.5rem 0;
    }
    
    .img-custom {
        border-radius: 12px 12px 0 0;
    }
    
    .item::before {
        border-radius: 12px;
        background: linear-gradient(
            to right,
            rgba(0,0,0,0.8) 0%,
            rgba(0,0,0,0.7) 20%,
            rgba(0,0,0,0.5) 40%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.05) 80%,
            rgba(0,0,0,0) 100%
        );
    }
    
    .caption-left {
        padding: 2rem 1.5rem 2rem 2rem;
        width: 60%;
    }
    
    .caption-left h3 {
        font-size: 2rem;
    }
    
    .caption-left p {
        font-size: 1.1rem;
    }
    
    .indicators-centered {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .carousel-custom {
        border-radius: 10px;
        margin: 1rem 0;
    }
    
    .img-custom {
        border-radius: 10px 10px 0 0;
    }
    
    .item::before {
        border-radius: 10px;
        background: linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.6) 25%,
            rgba(0,0,0,0.4) 50%,
            rgba(0,0,0,0.1) 75%,
            rgba(0,0,0,0) 100%
        );
    }
    
    .caption-left {
        padding: 1.5rem;
        width: 70%;
        align-items: center;
        text-align: center;
    }
    
    .caption-left h3 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .caption-left p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .btn-custom {
        align-self: center;
        text-align: center;
    }
    
    .indicators-centered {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .indicators-centered li {
        width: 10px;
        height: 10px;
    }
    
    .indicators-centered li.active {
        width: 12px;
        height: 12px;
    }
    
    .control-custom {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .carousel-custom {
        border-radius: 8px;
        margin: 0.5rem 0;
    }
    
    .img-custom {
        border-radius: 8px 8px 0 0;
    }
    
    .item::before {
        border-radius: 8px;
        background: linear-gradient(
            to right,
            rgba(0,0,0,0.8) 0%,
            rgba(0,0,0,0.6) 30%,
            rgba(0,0,0,0.3) 60%,
            rgba(0,0,0,0) 100%
        );
    }
    
    .caption-left {
        padding: 1rem;
        width: 80%;
        align-items: center;
        text-align: center;
    }
    
    .caption-left h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .caption-left p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .btn-custom {
        padding: 10px 25px;
        font-size: 0.9rem;
        align-self: center;
        text-align: center;
    }
    
    .indicators-centered {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .control-custom {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}

/* Efecto hover para todo el carrusel */
.carousel-custom:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease;
}