p {
    line-height: 25px;
}
/* seccion 1 */
.container-main {
    background-color: black; /* Fondo negro */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden; /* Evita que la animación afecte al contenido superpuesto */
}

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

.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;
}
#icon-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 blanco y opacidad */
    transition: box-shadow 0.3s ease; /* Efecto de transición suave */
    border-radius: 100% !important; /* Redondear bordes */
}
.special-hover-button:hover {
    color: rgb(0, 0, 0) !important; /* Color del texto al pasar el mouse (negro en este caso) */
    box-shadow: 0 4px 16px rgb(0, 0, 0) !important; /* 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 */

    /* Se mueve hacia arriba */
}

#button-text::after {
    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;
    /* 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 */
}

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

    .row-project {
        padding: 0px !important;
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }

    .text1_s2_responsive {
        font-size: 35px !important;
    }

    .text2_s2 {
        font-size: 35px !important;
    }

    .ps2 {
        font-size: 18px !important;
    }

    #icon-button {
        display: flex;
        justify-content: center;
        margin-right: 0px !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: 3.8rem;
    font-size: 60px; /* Tamaño de fuente predeterminado */
    margin-top: -70px; /* Margen superior ajustado */
    margin-left: 0px; /* Margen izquierdo ajustado */
}
/* fin seccion 1 */

/* seccion 2 */

.custom-container {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}
.background-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Esto hace que el contenedor tenga la altura del viewport */
    background: url("../img/seccion_3-service.png") no-repeat center center;
    background-size: 500px; /* Asegura que la imagen cubra todo el contenedor */
}

.text1_s2 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 40px;
    color: #ffffff;
    padding-top: 40px;
    padding-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ajusta la altura al 100% del contenedor */
    text-align: center; /* Centra el texto horizontalmente */
}

.text2_s2 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 40px;
    color: #ffffff;
    padding-top: 30px;

    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: flex-start; /* Alinea a la izquierda horizontalmente */
    height: 100%; /* Ajusta la altura al 100% del contenedor */
}

.custom-icon-container img {
    width: 90px; /* Tamaño del ícono */
    height: 90px; /* Tamaño del ícono */
    margin-right: 40px; /* Margen de separación entre el ícono y el texto */
}

.custom-text-container {
    flex: 1; /* Para ocupar el espacio restante */
}

@media (max-width: 768px) {
    #titulo_s1 {
        font-size: 30px;
        line-height: 2rem;
    }
    #button-text {
        font-size: 14px;
    }
    .custom-icon-container img {
        margin-right: 0; /* Quitar el margen derecho en pantallas pequeñas */
        margin-bottom: 10px; /* Añadir espacio debajo del ícono en pantallas pequeñas */
    }
    .custom-icon-container,
    .custom-text-container {
        text-align: center;
    }
    .d-flex {
        flex-direction: column; /* Colocar el icono arriba del texto en pantallas pequeñas */
    }
    .title-responsive-s4 {
        font-size: 38px !important;
    }
    .ps3 {
        font-size: 18px !important;
    }
}

.h5s2 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 32px;
    color: #ffffff;
    padding-top: 30px;
    padding-bottom: 5px;
}

.ps2 {
    font-family: "Roboto", sans-serif;
    font-weight: 0; /*300*/
    font-size: 20px;
    color: #ffffff;
    padding-top: 9px;
    /* Puedes ajustar este valor según sea necesario */
}

/* Estilos para el contenedor principal */
.button-text-container {
    display: flex;
    align-items: center;
}

#icon-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-right: 10px; /* Espacio entre el icono y el texto */
}

#icon-button img {
    width: 50%;
    height: auto;
}

/* Contenedor del texto */
.button-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Estilos para el texto principal */
#button-text {
    position: relative;
    display: inline-block;
    color: #ffffff;
    cursor: pointer;
}

/* Estilos para el texto adicional */
#additional-texts2 {
    text-align: center;
    color: #ffffff;
    margin-left: 28px;
    margin-top: 5px;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-style: normal;
    font-size: 19px;
}
/* Estilos para la línea roja debajo del texto */
#button-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(194, 16, 16);
}

/* Efectos de hover para el texto */
.button-container:hover #button-text::after {
    background-color: rgb(194, 16, 16); /* Sin cambio en hover, ya es rojo */
}

#button-text:hover::after {
    background-color: rgb(194, 16, 16); /* Sin cambio en hover, ya es rojo */
}

.container-fluid {
    background-color: black;
    padding-bottom: 50px; /* Ajusta el valor según tus necesidades */
    color: rgb(255, 254, 254); /* Solo para ver el texto en el fondo negro */
    position: relative; /* Necesario para que el pseudo-elemento se posicione correctamente */
}

.container-fluid::after {
    content: "";
    display: block;
    height: 50px; /* Ajusta este valor al mismo que el margin-bottom */
    background-color: black;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50px; /* Ajusta este valor al mismo que el margin-bottom */
    z-index: -1; /* Asegura que el pseudo-elemento esté detrás del contenido */
}

/* fin seccion 2 */

/* seccion 3 */

.icon img {
    width: 80px;
    /* Ajusta el tamaño del icono según sea necesario */
}
.section-title {
    text-align: left;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 53px;
    color: #404040;
    padding-top: 40px;
    padding-bottom: 30px;
    display: flex;
    justify-content: left;
    height: 100%; /* Ajusta la altura al 100% del contenedor */
    text-align: left; /* Centra el texto horizontalmente */
}
.info-box {
    text-align: center;
    padding: 2rem; /* Aumenta el padding para agrandar el contenedor */
}
.info-box h5 {
    margin-top: 1rem; /* Aumenta el margen superior del título */
}
.info-box p {
    margin-top: 0.5rem; /* Aumenta el margen superior del párrafo */
}

.small-img {
    width: 75%; /* Ajusta el tamaño según sea necesario, puedes usar porcentajes o valores fijos */
    max-width: 0px; /*300*/ /* Puedes limitar el tamaño máximo */
    height: auto; /* Mantiene la proporción de la imagen */
}

.h5s3 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 32px;
    color: black;
    padding-top: 30px;
    text-align: left;
}

.h5s3 {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    font-size: 32px;
    color: black;
    padding-top: 30px;
    text-align: left;
}

.ps3 {
    font-family: "Roboto", sans-serif;
    font-weight: 0;
    font-size: 20px;
    color: black;
    padding-top: 9px;
    text-align: left;
}

.icon {
    text-align: left; /* Alinea el icono a la izquierda */
}

.button-texts3 {
    color: black;
}

additional-texts3 {
    color: black;
}

.margin-top-custom {
    margin-top: -90px !important; /* Ajusta el valor según tus necesidades */
}

/*seccion 5*/

.card-header {
    background-color: #d30f16 !important;
    color: white;
    border-radius: 0 !important;
}
.card {
    border: none !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important; /* Fondo transparente */
}
.ppadre {
    background-color: #1e1e1e;
    padding: 20px;
}
.container {
    max-width: 1200px;
}
.row > .col {
    padding: 0;
}
.card-body,
.card-text,
.card-header h5,
.card-header small {
    color: white;
}
.card {
    border: 0.1px solid white !important; /* Agregar borde blanco de 3px */
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important; /* Fondo transparente */
}

.padreboton {
    margin-top: 80px;
    display: flex; /* Utiliza flexbox para centrar vertical y horizontalmente */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    margin-bottom: 80px;
}

/* seccion 5 final */

/*Animaciones*/

#titulo_s1 {
    line-height: 3.8rem;
    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;
}

#titulo_s1,
#titulo_s2 {
    opacity: 0; /* Oculta el elemento inicialmente */
    animation: fadeIn 3s ease-in-out forwards;
    animation-delay: 3s; /* Retrasa la animación 3 segundos */
}

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

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