/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin-top: 50px;
}

/* Estilos específicos para el texto del carousel */
.hero .caption {
    color: white; /* Color blanco para mayor contraste sobre imágenes oscuras */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* Sombra para mejorar la legibilidad */
}

.hero .caption h1 {
    font-size: 3rem;
    margin: 0;
}

.hero .caption p {
    font-size: 1.2rem;
    margin-top: 10px;
    line-height: 1.6;
}

/* Estilos para las diapositivas */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1; /* Mostrar solo la imagen activa */
}

/* Estilo para las imágenes */
.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto superpuesto */
.caption {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    font-family: 'Sora', sans-serif;
}

.caption h1 {
    font-size: 3rem;
    margin: 0;
}

.caption p {
    font-size: 1.2rem;
}

/* Botones del carrusel */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.5s;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 10px;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    /* Texto superpuesto */
    .caption {
        position: absolute;
        bottom: 50px;
        left: 20px;
        color: white;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    }

    .caption h1 {
        font-size: 3rem;
        margin: 0;
    }

    .caption p {
        font-size: 1.2rem;
    }

}