.img-fixed-height {
    height: 500px;
    object-fit: cover;
}

/* Contenedor principal del caption */
.carousel-caption-container {
    position: absolute;
    bottom: -100px; /* Comienza fuera de vista (abajo) */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: all 0.5s ease;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cuando el item está activo, muestra el contenido */
.carousel-item.active .carousel-caption-container {
    bottom: 30%; /* Posición vertical */
    opacity: 1;
}

/* Estilo del texto */
.caption-text {
    /*background-color: rgba(0, 0, 0, 0.6);*/
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.5rem;
    margin-bottom: 15px; /* Espacio entre texto y botón */
    width: fit-content;
}


.caption-text h1 {
    color: #fff;
    font-size: 40px;
    text-transform: capitalize;
    text-shadow: 0 3px 3px #000;
    line-height: 58px;
    font-weight: 700;
    margin: 0;
}

/* Estilo del botón */
.caption-btn {
    background-color: #0d6efd; /* Color primary de Bootstrap */
    color: white;
    padding: 8px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    width: fit-content;
}

.caption-btn:hover {
    background-color: #0b5ed7;
    transform: scale(1.05);
}



/* Reducir z-index del carousel completo */
.carousel {
    z-index: 1 !important;
}

.carousel-inner {
    z-index: 1 !important;
}

.carousel-item {
    z-index: 1 !important;
}

/* Asegurar que los controles del carousel estén debajo del menú */
.carousel-control-prev,
.carousel-control-next {
    z-index: 2 !important;
}




/* Responsive */
@media (max-width: 768px) {
    .img-fixed-height {
        height: 300px;
    }
    .caption-text {
        font-size: 1.2rem;
    }
    .carousel-item.active .carousel-caption-container {
        bottom: 25%;
    }
}

