.banner {
    position: relative;
    height: 74vh;
    background: transparent; /* Asegúrate de que el fondo sea transparente */
    margin-top: 9rem !important;
}
  
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/home02.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1; /* El z-index debe ser menor para que el contenido aparezca encima */
}
  
.banner-content {
    position: relative;
    z-index: 1; /* Mayor z-index para que esté por encima del fondo */
    /* Otros estilos para centrar y decorar el contenido del banner */
    color: white;
    height: 74vh;
}

@keyframes zoomInEffect {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#div_titulo {
    padding-top: 8%;
    padding-left: 5%;
}

#div_titulo h1 {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.25);
    color: rgb(255, 255, 255);
    font-size: 34pt;
    line-height: 52px;
    font-weight: bold;
    animation: zoomInEffect 1.3s ease forwards;
}

#div_boton_servicios {
    padding-left: 5%;
}

#div_boton_servicios a {
    font-weight: bold;
    background-color: blue;
    color: white;
    padding: 0.8rem;
    transition: background-color 0.3s ease, color 0.3s ease; /* Suave transición para los efectos hover */
    animation: zoomInEffect 1.3s ease forwards;
}

#div_boton_servicios a:hover {
    background-color: #e5e5e5; 
    color: #333;
}

#div_boton_contacto a:hover {
    background-color: #e5e5e5; 
    color: #333;
}

#div_boton_contacto a:hover .icono-calendario {
    color: #333; /* Cambia el color del ícono al hacer hover en el botón */
    margin-right: 12px; /* Aumenta el margen para hacer un pequeño "push" al ícono */
    transition: color 0.3s ease, margin-right 0.3s ease; /* Suave transición para los efectos hover */
}

#div_boton_contacto {
    position: absolute;
    right: 0;    /* Alineado al lado derecho */
    bottom: 0;   /* Alineado al final del banner */
    margin-right: 5%;
    z-index: 1; /* Asegúrate de que esté por encima del fondo */
}

#div_boton_contacto a {
    font-size: 14pt;
    background-color: blue;
    color: white;
    padding-top: 0.5rem;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 0.5rem;
}

.icono-calendario {
    margin-right: 8px; /* Ajusta este valor según necesites */
    color: #ffffff; /* Si quieres mantener el color definido en CSS */
}

#img_home {
    max-width: 100%;
    height: 85%;
    border-radius: 10px;
}

/* #bienvenida {
    height: 25rem;
} */

#bienvenida h2 {
    font-weight: bold;
    font-size: 22pt;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animación Bienvenida */
#bienvenida_texto {
    opacity: 0;
}

#bienvenida_texto.animate-entrada-izquierda {
    animation: bienvenida_texto 0.6s ease-out forwards;
}

@keyframes bienvenida_texto {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

#bienvenida_imagen {
    opacity: 0;
} 

#bienvenida_imagen.animate-entrada-derecha {
    animation: bienvenida_img 0.6s ease-out forwards;
}

@keyframes bienvenida_img {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* RESPONSIVE NOTEBOOK */
@media only screen and (max-width: 1025px) {
    .banner {
        height: 70vh;
    }

    .banner-content {
        height: 70vh;
    }
}

@media only screen and (max-width: 992px) {
    #bienvenida_imagen {
        justify-content: center !important;
    }
}

/* RESPONSIVE TABLETS */
@media only screen and (max-width: 769px) {
    .banner {
        height: 70vh;
    }

    .banner-content {
        height: 70vh;
    }

    #div_titulo h1 {
        font-size: 30pt;
    }

    #div_boton_servicios a {
        font-size: 11pt;
    }

    #bienvenida_imagen {
        margin-top: 20px;
        height: 300px;
    }

    #img_home {
        height: 100%;
    }
}

/* RESPONSIVE CELULAR */
@media only screen and (max-width: 526px) { /* 426 */
    #div_titulo {
        padding-left: 0%;
    }

    #div_titulo h1 {
        font-size: 22pt;
        text-align: center;
    }

    #div_boton_servicios {
        position: absolute;
        left: 0;
        bottom: 0;
        margin-left: 5%;
        z-index: 1;
        padding-left: 0%;
    }

    #div_boton_servicios a {
        font-size: 12pt;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    #div_boton_contacto a {
        font-size: 12pt;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    #bienvenida h2 {
        font-size: 18pt;
    }

    #bienvenida_texto {
        padding-right: 20px;
        padding-left: 20px;
    }

    #bienvenida_imagen {
        margin-top: 20px;
        height: 260px;
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media only screen and (max-width: 410px) { /* 376 */
    #div_titulo h1 {
        font-size: 20pt;
    }

    #div_boton_servicios a {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #div_boton_contacto a {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #bienvenida h2 {
        font-size: 15pt;
    }
}

@media only screen and (max-width: 340px) { /* 321 */

    #div_titulo h1 {
        font-size: 18pt;
    }

    #div_boton_servicios a {
        font-size: 10pt;
    }

    #div_boton_contacto a {
        font-size: 10pt;
    }

    #bienvenida_imagen {
        height: 220px;
    }

}