p {
    line-height: 25px;
}
.container-main {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    /* Ajusta este valor dependiendo de tus necesidades */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: black;
}
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/banner_Header.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: animate__backInUp 4s forwards; /* Animación para el fondo */
    
}

@keyframes animate__backInUp {
    0% {
        opacity: 0;
        transform: translateY(630px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
#titulo_s1, #titulo_s2 {
    opacity: 0; /* Oculta el elemento inicialmente */
    animation: fadeIn 3s ease-in-out forwards;
    animation-delay: 3s!important; /* Retrasa la animación 3 segundos */
    
}

.img-fluid {
    width: 100%;
    height: auto;
}

.overlay-content {
    width: 100%;
    padding: 20px;
    /* Fondo semitransparente opcional */
    color: white;
    /* Color de texto */
    box-sizing: border-box;
    /* Asegura que el padding no desborde el contenedor */
}

.overlay-content h1 {
    text-align: justify;
    /* Justificar el texto */
}

.custom-text-style {
    text-align: justify;
    /* Justificar el texto */
    top: 30vh;
    /* Mover el texto hacia arriba */
    left: 50%;
    /* Centrar el texto horizontalmente */
    transform: translateX(-50%);
    /* Centrar el texto horizontalmente */
    width: 81.5%;
    /* Ancho del contenedor */
    font-size: 18px;
    /* Tamaño del texto por defecto */
    margin-top: -24px;
}
.roboto-thin {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-style: normal;
}
#titulo_s2 {
    font-size: 25.7px;
    /* Tamaño del texto */
    margin-top: 60px;
    /* Margen superior */
    margin-bottom: 10px;
    /* Margen inferior */
    text-align: left !important;
    /* Alineación del texto */
}

/* Media query para dispositivos móviles en resolución Mobil M (375px) */

/* Media query para dispositivos móviles en resolución Mobil L (425px) */

/* Media query para dispositivos con una anchura máxima de 768px (tabletas en orientación vertical y otros dispositivos móviles) */

/* Estilos del logo */
.logo-container {
    position: absolute;
    top: 12vh;
    margin-top: -27px;
    /* Ajusta el valor según lo necesario usando unidades relativas */
    left: 10.5vw;
    /* Ajusta el valor según lo necesario usando unidades relativas */
}

.logo {
    max-width: 200px;
    /* Tamaño máximo del logo para pantallas grandes */
    width: 100%;
    height: auto;
}

/* Media queries para ajustar el tamaño del logo en pantallas más pequeñas */

/* Media queries para ajustar la posición del logo en pantallas más pequeñas */

/* titulo2 */

/* Media query para ajustar el tamaño del título en dispositivos muy pequeños */



    /* todo el contenido del boton*/

    .button-container {
        display: flex;
        margin-left: -0px;
        margin-top: 43px;
        /* Ajusta el valor según sea necesario */
    }
    .button-container {
        display: inline-block; /* Ajusta el display según tu diseño */
    }
    
    .button-container a button:hover {
        color: rgb(255, 255, 255); /* Color del texto al pasar el mouse (blanco en este caso) */
        box-shadow: 0 4px 16px rgb(255, 255, 255); /* Sombra con color rojo (255, 0, 0) y opacidad 0.5 */
        transition: box-shadow 0.3s ease; /* Efecto de transición suave */
        border-radius: 100%!important;
    }
    
    .button-container {
        color: rgba(255, 255, 255, 0); /* Color del texto inicial */
        padding: 10px 10px; /* Añadir algo de padding */
        border: none; /* Quitar bordes */
        cursor: pointer; /* Cambiar el cursor al pasar el mouse */
        text-align: center; /* Centrar el texto */
        display: inline-block; /* Hacer que el botón sea un bloque en línea */
        transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; /* Efecto de transición suave para fondo, sombra y color del texto */
    }
    
    /* Aumentar la especificidad del selector */
    .button-container:hover {
        background: rgba(255, 255, 255, 0); /* Color de fondo al pasar el mouse (blanco) */
        color: rgb(255, 255, 255) !important; /* Color del texto al pasar el mouse (negro) con !important para asegurar la prioridad */
        box-shadow: inset 0 0 30px rgba(255, 11, 11, 0.5), 0 4px 16px rgb(255, 0, 0); /* Sombra interna y externa */
    }
    
    
    
    /* Estilos para el botón */
    #icon-button {
        background-color: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    
    #icon-button img {
        width: 50%;
        /* Ajusta la imagen del botón al 100% del ancho del botón */
        height: auto;
        /* Altura automática */
    }
    
    .button-text-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #button-text {
        position: relative;
        cursor: pointer;
        font-family: "Roboto", sans-serif;
        font-weight: bold;
    }
    
    .button-container {
        position: relative;
        /* Necesario para posicionar el seudoelemento */
    }
    
    #button-text {
        position: relative;
        display: inline-block;
        /* Para que el hover funcione correctamente */
        transition:
            opacity 0.3s ease,
            transform 0.3s ease;
    }
    
    .button-container:hover #button-text {
        opacity: 1;
        /* Cuando el mouse está encima, se vuelve visible */
        transform: translateY(-100%);
        /* Se mueve hacia arriba */
    }
    
    #button-text::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: rgb(194, 16, 16);
        /* Por defecto, la barra estará transparente */
        transition: background-color 0.3s ease;
    }
    
    .button-container:hover #button-text::after {
        background-color: rgb(194, 16, 16);
        /* Cambia el color de la línea al pasar el mouse */
    }
    
    #button-text:hover::after {
        background-color: transparent;
        /* Color de la línea cuando se pasa el ratón */
    }
    
    .containerre {
        max-width: 100%;
        /* Ajusta el ancho máximo del contenedor */
        width: 550px;
        /* Ancho del contenedor en tamaño predeterminado */
        /* Centra el contenedor horizontalmente */
    }
    /* fin de Estilos apra boton */
/* Estilos del logo */
.logo-container {
    position: absolute;
    top: 12vh;
    /* Ajusta el valor según lo necesario usando unidades relativas */
    left: 10.5vw;
    /* Ajusta el valor según lo necesario usando unidades relativas */
}

.logo {
    max-width: 200px;
    /* Tamaño máximo del logo para pantallas grandes */
    width: 100%;
    height: auto;
}

/* Media queries para ajustar el tamaño del logo en pantallas más pequeñas */
@media (max-width: 768px) {


    .custom-text-style{
            left: 45% !important;
    }
    #titulo_s1 {
        font-weight: bold;
        font-size: 35px !important;
        line-height: 34.4px !important;
    }
    #titulo_s2 {
        font-size: 18px !important;
    }
    #button-text {
        font-size: 14px;
    }
    .row-project {
        padding: 0px !important;
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
}

/* Media queries para ajustar la posición del logo en pantallas más pequeñas */
@media (max-width: 320px) {
    .logo-container {
        top: 12%;
        /* Ajustamos la posición vertical del contenedor del logo */
        left: 11%;
        /* Ajustamos el tamaño máximo del logo */
    }
}

@media (max-width: 425px) {
    .logo-container {
        top: 12%;
        /* Ajustamos la posición vertical del contenedor del logo */
        left: 11%;
        /* Ajustamos el tamaño máximo del logo */
    }
}

/* titulos s1 */

/* Estilos base */

/* Estilos para todas las pantallas */

/* Estilos base para todas las pantallas */
#titulo_s1 {
    line-height: 3rem;
    font-size: 57px; /* Tamaño de fuente predeterminado */
    margin-top: -50px; /* Margen superior ajustado */
    margin-left: 0px; /* Margen izquierdo ajustado */
}

/*seccion2*/

/* Carrucel*/
.carousel-indicators [data-bs-target] {
    width: 15px !important; /* Ajusta el tamaño del círculo */
    height: 15px !important; /* Ajusta el tamaño del círculo */
    border-radius: 100%; /* Hace que los botones sean redondos */
    background-color: #ff0000; /* Ajusta el color de fondo de los círculos */
    border: none; /* Elimina cualquier borde */
    margin: 10px !important;
}

.parent-container {
    margin-left: -20px;
    margin-top: 80px;
}

.carousel {
    width: 70%; /* Modifica este valor según lo que desees */
    margin: auto; /* Esto centrará el carrusel horizontalmente en la página */
}

.container-fluid {
    background-color: black; /* Establece el color de fondo negro */
}

/* Estilos para el botón */
#icon-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

#icon-button img {
    width: 50%;
    /* Ajusta la imagen del botón al 100% del ancho del botón */
    height: auto;
    /* Altura automática */
}

.button-text-container {
    position: relative;
}

#button-text {
    position: relative;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.button-container {
    position: relative;
    /* Necesario para posicionar el seudoelemento */
}

#button-text {
    position: relative;
    display: inline-block;
    /* Para que el hover funcione correctamente */
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.button-container:hover #button-text {
    opacity: 1;
    /* Cuando el mouse está encima, se vuelve visible */
    transform: translateY(-100%);
    /* Se mueve hacia arriba */
}

#button-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(194, 16, 16);
    /* Por defecto, la barra estará transparente */
    transition: background-color 0.3s ease;
}

.button-container:hover #button-text::after {
    background-color: rgb(194, 16, 16);
    /* Cambia el color de la línea al pasar el mouse */
}

#button-text:hover::after {
    background-color: transparent;
}

.padres2 {
    background-color: black;
    overflow: hidden;
}

#titulos {
    font-family: "Roboto", sans-serif;
    /*nuemero*/
    font-weight: bold;
    font-size: 40px;
}

#parrafos h4 {
    font-family: "Roboto", sans-serif;
    font-weight: 0; /*300*/
    font-style: normal;
    text-align: justify; /* Alinea el texto justificado */
    font-size: 19px;
}

#parrafos h4:first-child {
    /* Estilos para el primer elemento h4 dentro del contenedor #parrafos */
    margin-top: 70px;
}

#parrafos h4:last-child {
    /* Estilos para el último elemento h4 dentro del contenedor #parrafos */
    margin-top: 30px;
}

/* seccion 3 */
.custom-container {
    background-color: #d30f16;
    padding: 20px;
    color: white; /* para que el texto se vea bien sobre el fondo rojo */
    display: flex;
    flex-direction: column; /* Cambia la dirección a columna */
    align-items: center; /* Centrar elementos horizontalmente */
}

.text1_s3 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 40px;
    color: #ffffff;
    padding-top: 90px;
    /* Puedes ajustar este valor según sea necesario */
}

.text2_s3 {
    font-family: "Roboto", sans-serif;
    font-weight: 0; /*300*/
    text-align: center;
    font-size: 20px;
    color: #ffffff;
    padding-top: 19px;
    padding-bottom: 90px;
    /* Puedes ajustar este valor según sea necesario */
}

/* seccion 4 */

.text1_s4 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 40px;
    color: #404040;
    padding-top: 90px;
    /* Puedes ajustar este valor según sea necesario */
}
.text2_s4 {
    font-family: "Roboto", sans-serif;
    font-weight: 0; /*300*/
    text-align: center;
    font-size: 20px;
    color: #404040;
    padding-top: 19px;
    /* Puedes ajustar este valor según sea necesario */
    margin-bottom: 100px;
}

.card {
    width: 220px;
    border: none !important;
    box-shadow: none !important; /* Ajusta el ancho de la tarjeta */
}

/*seccion 5 */

.fondo-foto {
    background-image: url("../img/About-fondo2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50vh;
    /* Ajusta este valor dependiendo de tus necesidades */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.text1_s5 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 40px;
    color: #404040;
    margin: 0; /* Elimina el margen predeterminado */
}

/*Animaciones*/

#titulo_s1 {
    line-height: 3.5rem;
    animation: fadeIn 6s ease-in-out forwards;
}

#titulo_s2 {
    animation: fadeIn 7s ease-in-out forwards;
}
.logo {
    animation: animateFromTop 1s ease forwards;
    animation-delay: 1s;
    /* retraso de 0.5 segundos */
}
/* Estilo inicial para .animate */
.s2 {
    opacity: 0;
}

/* Estilo cuando la animación se activa */
.animate {
    opacity: 1;
    animation: fadeIn 3.3s ease-in-out forwards;
}

.text1_s3 {
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Define la animación */
@keyframes backInUp {
    0% {
        opacity: 0;
        transform: translateY(2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(-30px);
    }
    80% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Aplica la animación a los elementos */
.animate__backInUp {
    animation: backInUp 7s ease forwards;
}


.button-container * {
    text-transform: uppercase!important;
}
