.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 10px;
    bottom: 50%;
    transform: translateY(50%);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Imágenes más pequeñas */
.custom-carousel .carousel-inner {
    height: 900px; /* Contenedor más pequeño */
    width: 100%;
}

.custom-carousel .carousel-item img {
    height: 900px; /* Imágenes más pequeñas */
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 25px;
    bottom: 50%;
    transform: translateY(50%);
    max-width: 650px;
    margin: 0 auto;
}

.carousel-caption h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    animation: titleAnimation 1s ease-in-out;
    color: #00BFFF;
}

.carousel-caption p {
    text-align: justify;
    line-height: 1.4;
    font-size: 1.1rem;
    margin-bottom: 0;
    animation: paragraphAnimation 1s ease-in-out 0.3s both;
}

@keyframes titleAnimation {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes paragraphAnimation {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}



