/* Contenedor principal */
.banner {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden; /* 🔥 Mantiene tamaño fijo aunque haya zoom */
}

/* Carrusel */
.carousel {
    height: 100%;
    position: relative;
}

/* Slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* Imagen */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* 🔥 Zoom suave */
    transform: scale(1);
    transition: transform 6s ease-in-out;
}

/* Slide activo */
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Solo la imagen activa hace zoom */
.slide.active img {
    transform: scale(1.5); /* Ajustable */
}

/* Overlay oscuro */
.banner::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /*background: rgba(35, 75, 111, 0.2);*/
	background: rgba(0, 0, 255, 0.1);
    z-index: 2;
}

/* Texto */
.banner-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 3;
    padding: 20px;
}

.banner-overlay h1 {
    font-size: 3.0rem;
    margin-bottom: 10px;
}

.banner-overlay p {
    font-size: 1.5rem;
}

/* Botones */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 4;
    transition: background 0.3s ease;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}


/* Responsive */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .banner-overlay h1 {
        font-size: 1.5rem;
    }

    .banner-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 250px;
    }

    .banner-overlay h1 {
        font-size: 1.5rem;
    }

    .banner-overlay p {
        font-size: 0.9rem;
    }
}


/* Estado inicial del texto */
.banner-overlay h1,
.banner-overlay p {
    opacity: 0;
    transform: translateY(30px);
}

/* Animación cuando el slide está activo */
.banner-overlay.animate h1 {
    animation: fadeUp 1s ease forwards;
}

.banner-overlay.animate p {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s; /* pequeño desfase elegante */
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}