/* Estilos mejorados del banner */
.banner {
    position: relative;
   /*  overflow: hidden;*/
    height: 600px; /* Aumenté la altura del banner para que los botones sean visibles */
    margin-bottom: 0 ;
    padding-bottom: 0 ;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

/* Imágenes del slider */
.slide img {
    width: 100%;
    height: 104%;
    object-fit: cover;
}

/* Texto del banner */
.banner-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    max-width: 70%;
    background-color: rgba(0, 0, 0, 0.21);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Título del banner */
.banner-text h1 {
    font-size: 2rem; /* Tamaño del título */
    margin-bottom: 10px; /* Reduje el margen inferior para juntarlo con la descripción */
    line-height: 1.2; /* Ajusta el interlineado para compactar el texto */
}

/* Descripción del banner */
.banner-text p {
    font-size: 1.2rem; /* Tamaño de la descripción */
    margin-top: 0; /* Eliminé el margen superior para juntarlo con el título */
    line-height: 1.4; /* Ajusta el interlineado */
}

.slide.active .banner-text {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de entrada del texto */
.animated-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.slide.active .animated-text {
    opacity: 1;
    transform: translateY(0);
}

/* Botones del banner */
.banner-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.banner-buttons .btn {
    padding: 12px 25px;
    background-color: #0db3de;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.banner-buttons .btn:hover {
    background-color: #096f8a;
    transform: scale(1.05);
}

/* Botones de navegación del banner */
.prev-slide, .next-slide {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%; /* Hace que los botones sean completamente circulares */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Efecto hover para los botones */
.prev-slide:hover, .next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1); /* Hace que el botón crezca ligeramente */
}

/* Posiciones de los botones */
.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

/* Indicadores del slider */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-indicators .dot {
    width: 12px;
    height: 12px;
    background-color: white;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.banner-indicators .dot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Media Queries para Responsive Design */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .banner {
        height: 500px; /* Altura aumentada para tablets */
    }

    .banner-text {
        left: 5%;
        max-width: 80%;
        padding: 20px;
    }

    .banner-text h1 {
        font-size: 1.8rem; /* Tamaño de título más pequeño para tablets */
    }

    .banner-text p {
        font-size: 1rem; /* Tamaño de descripción más pequeño para tablets */
    }

    .banner-buttons .btn {
        padding: 10px 20px; /* Botones más pequeños para tablets */
    }

    .prev-slide, .next-slide {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Celulares (480px - 767px) */
@media (max-width: 767px) {
    .banner {
        height: 500px; /* Altura aumentada para celulares */
    }

    .banner-text {
        left: 5%;
        max-width: 90%;
        padding: 15px;
    }

    .banner-text h1 {
        font-size: 1.5rem; /* Tamaño de título más pequeño para celulares */
    }

    .banner-text p {
        font-size: 0.9rem; /* Tamaño de descripción más pequeño para celulares */
    }

    .banner-buttons {
        flex-direction: column; /* Botones en columna para celulares */
        gap: 10px;
    }

    .banner-buttons .btn {
        padding: 8px 16px; /* Botones más pequeños para celulares */
    }

    .prev-slide, .next-slide {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .banner-indicators .dot {
        width: 10px;
        height: 10px;
    }
}

/* Celulares pequeños (menos de 480px) */
@media (max-width: 480px) {
    .banner {
        height: 450px; /* Altura aumentada para celulares pequeños */
    }

    .banner-text h1 {
        font-size: 1.3rem; /* Tamaño de título más pequeño para celulares pequeños */
    }

    .banner-text p {
        font-size: 0.8rem; /* Tamaño de descripción más pequeño para celulares pequeños */
    }

    .banner-buttons .btn {
        padding: 6px 12px; /* Botones más pequeños para celulares pequeños */
    }

    .prev-slide, .next-slide {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .banner-indicators .dot {
        width: 8px;
        height: 8px;
    }
}