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: #000000;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/Banner_Header-maintenance.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 */
}



.custom-text-style {

    /* 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 a .special-hover-button:hover {
        color: rgb(0, 0, 0); /* Color del texto al pasar el mouse (negro en este caso) */
        box-shadow: 0 4px 16px rgb(0, 0, 0); /* Sombra con color negro */
        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 */
    }
    
    /* Específicamente para el texto dentro del span */
  
    
    
    /* 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: 30px !important;
        text-align: initial !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;
    }
    .maintenance-text1 h2 {
        font-size: 34px !important;
    }
    .maintenance-text1 p {
        font-size: 18px !important;
    }
    .maintenance-text h2 {
        font-size: 34px !important;
    }
    .maintenance-text p {
        font-size: 18px !important;
    }
    h2.text-center {
        font-size: 34px !important;
    }
    p.text-center {
        font-size: 18px !important;
    }
    .hero-content h1 {
        font-size:34px !important;
    }
    .hero-content p {
        font-size: 18px !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;
    line-height: 2rem;
    font-size: 54px;
    /* Tamaño de fuente predeterminado */
    margin-top: -10px;
    /* Margen superior ajustado */
    margin-left: 0px;
    /* Margen izquierdo ajustado */
}

/* end seccion1*/

/* seccion 2*/

.maintenance-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Cambiado de "center" a "flex-start" */
    padding: 150px;
}
.maintenance-section2 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Cambiado de "center" a "flex-start" */
    padding: 150px;
}

.maintenance-section img {
    max-width: 100%;
    height: auto;
}

/* Define estilos personalizados para los elementos h2 y p dentro de .maintenance-text1 */
.maintenance-text1 h2 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 44px;
    color: #ffffff;
    margin-bottom: 100px;
    margin-left: 16px;
}

.maintenance-text1 p {
    font-family: "Roboto", sans-serif;
    font-weight: 0; /*300*/
    font-size: 23px;
    color: #ffffff;
    padding-top: 9px;
    margin-left: 16px;
}

@media (max-width: 768px) {
    .maintenance-text {
        padding: 10px;
    }
}

.containers2 {
    background: #000000;
}

/* fin seccion 2*/

/* seccion 3*/
.containers3 {
    background: #eeeeee !important;
}



/* Estilos para el h2 dentro de .maintenance-text */
.maintenance-text h2 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 44px;
    color: #000000;
    margin-bottom: 100px;
    margin-left: 16px;
}

/* Estilos para el p dentro de .maintenance-text */
.maintenance-text p {
    font-family: "Roboto", sans-serif;
    font-weight: 0; /*300*/
    font-size: 21px;
    color: #000000;
    padding-top: 9px;
    margin-left: 16px;
}

/* fin  seccion 3*/

/* seccion 4*/
.move-right {
    margin-top: 60px;
    margin-left: 57px; /* Ajusta este valor según sea necesario */
}
.img-smaller {
    width: calc(100% - 40px);
}



/* fin seccion 4*/

/* seccion 5*/

.full-width-bg {
    background-color: #eeeeee;
    width: 100%;
    padding-bottom: 100px; /* Cambiar margin-bottom por padding-bottom */
}

.service-icon {
    width: 100%;
    height: auto;
}

.service-card {
    border: 100px solid #000000;
    border-radius: 0; /* Asegúrate de que esta sea la única declaración de border-radius aquí */
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0) !important; /* Ajusta el valor de opacidad según sea necesario */
}

.service-card .row {
    flex-wrap: nowrap;
}

.service-text {
    padding: 1rem;
}

.service-card img {
    border-radius: 0; /* Quita el borde redondeado de las imágenes */
}

/* 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 {
    justify-content: center;
    position: relative;
    display: inline-block;
}

#button-text {
    justify-content: center;
    position: relative;
    cursor: pointer;
}



#button-text {
    position: relative;
    cursor: pointer;
    display: inline-block;
    text-align: center; /* Centra el texto */
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    width: 100%; /* Asegura que el texto ocupe todo el ancho del contenedor */
}

.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 {
    justify-content: center;
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    /* 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;
}

/* Estilos personalizados para el h2 */
h2.text-center {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 40px;
    color: #404040;
    padding-top: 90px;
}

/* Estilos personalizados para el párrafo (p) */
p.text-center {
    font-family: "Roboto", sans-serif;
    font-weight: 0; /*300*/
    text-align: center;
    font-size: 20px;
    color: #404040;
    padding-top: 9px;
    margin-bottom: 90px;
}

/* fin seccion 5*/

/*seccion 6*/

.hero-content h1 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 35px !important;
    color: #ffffff;
    margin-bottom: 30px;
}

.hero-content p {
    font-family: "Roboto", sans-serif;
    font-weight: 0; /*300*/
    text-align: center;
    color: #ffffff;
}

.hero-section {
    position: relative;
    height: 58vh;
    background: url("../img/Maintenances-fondo-s4.png") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}



/*fin seccion 6*/

/*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;
}

/*seccion 2*/

.text1_s3 {
    opacity: 0;
}

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

/* Define la animación para texto */
@keyframes backInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplica la animación a los elementos */
.animate__backInRight {
    animation: backInRight 2s ease forwards;
}

/* animacion para iconos */
@keyframes backInUp {
    0% {
        opacity: 0;
        transform: translateY(2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(-30px);
    }
    80% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

.animate__backInUp {
    animation: backInUp 4s ease forwards;
}

/*iconos s3*/
@keyframes backInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate__backInLeft {
    animation: backInLeft 2.4s ease forwards;
}

/*  texto debajo de iconos*/
@keyframes backInUp {
    0% {
        opacity: 0;
        transform: translateY(2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(-30px);
    }
    80% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

.animate__backInUp {
    animation: backInUp 2.4s ease forwards;
}

/*botton seccion 6*/
.button-container {
  
    margin-left: -0px;
    margin-top: 43px;
    /* Ajusta el valor según sea necesario */
}

/* 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 botton seccion 6*/

@media (max-width: 2000px) {
    body, html {
        overflow-x: hidden; /* Evita el desplazamiento horizontal */
    }
    
    /* Asegúrate de que todos los elementos se ajusten dentro del viewport */
    .container {
        width: 100%;
        padding: 0 15px; /* Ajusta el padding según tus necesidades */
        box-sizing: border-box;
    }
    
    /* Otros ajustes específicos para asegurar que los elementos no se salgan del viewport */
    /* Por ejemplo, imágenes, tablas, etc. */
    img, table {
        max-width: 100%;
        height: auto;
    }
}


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