.aviso-legal {
    color: white;
    margin-top: 120px;
}

.aviso-legal li {
    height: auto;
}

.aviso-legal ul {
    height: auto;
}

.carousel {
    width: 100%; /* Ancho del 100% para ocupar toda la pantalla */
    height: 100vh; /* Altura del 100% de la altura del viewport */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#imagen {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%);
    z-index: 1;
}

.texto-carousel {
    position: relative;
    top: 75%;
    left: 20%;
    transform: translate(-20%, -20%); /* Ajusta según sea necesario para obtener el margen correcto */
    padding: 20px; /* Muestra un margen interno */
    color: #fff;
    width: 50%;
    z-index: 1; /* Asegura que esté por encima del contenedor padre */
}

.texto-carousel h2 {
    font-size: 56px;
    font-weight: bolder;
    letter-spacing: 1px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    text-shadow: black 5px 5px 10px;
}

.texto-carousel p {
    font-size: 26px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
}

.content {
    background-color: black;
    width: 100%;
    height: 2470px;
}

.demas {
    position: relative;
    top: 700px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    margin: 0;
    background-color: black;
    height: 1200px;
    width: 1200px;
}

.e-energetica .demas {
    position: relative;
    top: 0px;
    left: 0%;
    transform: translate(0, 0);
    padding-top: 100px;
    margin: 0 auto;
    background-color: black;
    height: 2200px;
    width: 1200px;
}

.servicios-asistencia-tecnica .demas {
    position: relative;
    top: 0px;
    left: 0%;
    transform: translate(0, 0);
    padding-top: 100px;
    margin: 0 auto;
    background-color: black;
    height: 3300px;
    width: 1200px;
}

.txt-animated {
    display: flex; /* Activa Flexbox */
    justify-content: flex-start; /* Alinea todos los elementos dentro del contenedor a la izquierda */
    flex-direction: column;
    height: 100%; /* Ocupa toda la altura */
    padding-left: 5%;
    padding-right: 5%;
    color: white;
    letter-spacing: 1px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    font-size: 18px;
    opacity: 0.5; /* Inicialmente invisible */
    transform: translateY(50px); /* Se mueve un poco hacia arriba */
    transition: opacity 2s ease, transform 2s ease; /* Transición para ambos efectos */
    text-align: left; /* Alinea todos los elementos dentro al lado izquierdo */
}

.txt-animated h2 {
    width: 100%;
    font-size: 28px;
    font-weight: bolder;
    text-shadow: black 5px 5px 10px;
}

.e-energetica .txt-animated {
    justify-content: center; /* Alinea todos los elementos dentro del contenedor a la izquierda */
}

.servicios-asistencia-tecnica .txt-animated {
    justify-content: center; /* Alinea todos los elementos dentro del contenedor a la izquierda */
}

@media(max-width: 991.98px) {
    .servicios-asistencia-tecnica .demas {
        height: 6200px;
    }

    .first-small {
        order: 0; /* Coloca este div en el segundo lugar */
    }
    .second-small {
        order: 1; /* Coloca este div en el primer lugar */
    }
    .third-small {
        order: 2; /* Coloca este div en el segundo lugar */
    }
    .fourth-small {
        order: 3; /* Coloca este div en el primer lugar */
    }
    .fifth-small {
        order: 4; /* Coloca este div en el segundo lugar */
    }
    .sixth-small {
        order: 5; /* Coloca este div en el primer lugar */
    }
    .seventh-small {
        order: 6; /* Coloca este div en el segundo lugar */
    }
    .eigth-small {
        order: 7; /* Coloca este div en el primer lugar */
    }
    .nineth-small {
        order: 8; /* Coloca este div en el segundo lugar */
    }
    .tenth-small {
        order: 9; /* Coloca este div en el primer lugar */
    }
    .eleventh-small {
        order: 10; /* Coloca este div en el primer lugar */
    }
    .twelveth-small {
        order: 11; /* Coloca este div en el primer lugar */
    }
    .thirteeth-small {
        order: 12; /* Coloca este div en el primer lugar */
    }
    .forteeth-small {
        order: 13; /* Coloca este div en el primer lugar */
    }
    .fifteeth-small {
        order: 14; /* Coloca este div en el primer lugar */
    }
    .sixteeth-small {
        order: 15;
    }
    
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    .demas {
        padding-left: 5%;
        padding-right: 5%;
        width: 100% !important;
    }

    .demas p {
        font-size: 15px;
    }
}

@media (max-width: 850px) {
    .demas p {
        font-size: 11px;
    }
}

@media (max-width: 767.98px) {
    .demas {
        padding-left: 5%;
        padding-right: 5%;
        width: 100%;
        height: 1700px;
    }
    .e-energetica .demas {
        padding-top: 20px;
        padding-left: 5%;
        padding-right: 5%;
        width: 100%;
        height: 3700px;
    }
    .e-energetica .txt-animated {
        justify-content: flex-end; /* Alinea todos los elementos dentro del contenedor a la izquierda */
    }
    .e-energetica .demas div {
        margin: 0 auto;
    }
    .servicios-asistencia-tecnica .demas {
        padding-top: 20px;
        padding-left: 5%;
        padding-right: 5%;
        width: 100%;
        height: 6200px;
    }

    .servicios-asistencia-tecnica h3 {
        font-size: 20px !important;
    }
    .servicios-asistencia-tecnica .txt-animated {
        justify-content: flex-end; /* Alinea todos los elementos dentro del contenedor a la izquierda */
    }
    .servicios-asistencia-tecnica .demas div {
        margin: 0 auto;
    }
    .first-small {
        order: 0; /* Coloca este div en el segundo lugar */
    }
    .second-small {
        order: 1; /* Coloca este div en el primer lugar */
    }
    .third-small {
        order: 2; /* Coloca este div en el segundo lugar */
    }
    .fourth-small {
        order: 3; /* Coloca este div en el primer lugar */
    }
    .fifth-small {
        order: 4; /* Coloca este div en el segundo lugar */
    }
    .sixth-small {
        order: 5; /* Coloca este div en el primer lugar */
    }
    .seventh-small {
        order: 6; /* Coloca este div en el segundo lugar */
    }
    .eigth-small {
        order: 7; /* Coloca este div en el primer lugar */
    }
    .nineth-small {
        order: 8; /* Coloca este div en el segundo lugar */
    }
    .tenth-small {
        order: 9; /* Coloca este div en el primer lugar */
    }
    .txt-animated {
        max-height: 250px !important;
    }
}

.demas img {
    height: 100%;
    width: 100%;
}

.demas div {
    max-height: 350px;
}

.demas .txt-animated {
    padding-left: 3%;
}

.demas .txt-animated h2 {
    text-decoration-style: solid;
    font-size: 40px;
}

.eficiencia-energetica {
    background-color: rgb(7, 7, 7);
    height: 560px;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 991.98px) {
    .eficiencia-energetica {
        height: 1120px; /* Solo afecta entre 768px y 992px */
    }

    .eficiencia-energetica > * {
        max-height: 560px; /* Los elementos hijos no superan esta altura */
    }
}

.img-eficiencia {
    height: 100%;
    position: relative; /* Asegura un contexto posicional */
    display: flex;
    overflow: hidden; /* Oculta cualquier desbordamiento */
    padding: 0; /* Elimina el padding que podría estar afectando el tamaño de la imagen */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
}

.eficiencia-energetica .img-eficiencia img {
    width: 100%; /* La imagen ocupa el ancho completo */
    height: 100%; /* La imagen ocupa la altura completa */
    object-fit: cover; /* La imagen se ajusta al contenedor sin deformarse */
    object-position: center; /* Asegura que esté centrada */
}

.img-eficiencia img {
    width: 100%; /* La imagen ocupa el ancho completo */
    height: 75%; /* La imagen ocupa la altura completa */
    object-fit: cover; /* La imagen se ajusta al contenedor sin deformarse */
    object-position: center; /* Asegura que esté centrada */
}

.e-energetica .img-eficiencia img {
    width: 100%; /* La imagen ocupa el ancho completo */
    height: 100%; /* La imagen ocupa la altura completa */
    object-fit: cover; /* La imagen se ajusta al contenedor sin deformarse */
    object-position: center; /* Asegura que esté centrada */
}

.servicios-asistencia-tecnica .img-eficiencia img {
    width: 100%; /* La imagen ocupa el ancho completo */
    height: 100%; /* La imagen ocupa la altura completa */
    object-fit: cover; /* La imagen se ajusta al contenedor sin deformarse */
    object-position: center; /* Asegura que esté centrada */
}

@media(max-width: 767.98px) and (min-width: 576px) {
    .img-eficiencia img {
        height: 100%;
    }

    .content {
        height: 4900px;
    }

    .eficiencia-energetica {
        display: flex;
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
    }
}

@media(max-width: 575.98px) {
    .img-eficiencia img {
        height: 70%;
    }

    .content {
        height: 4950px;
    }

    .eficiencia-energetica {
        padding-top: 25%;
        display: flex;
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
    }
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
    .demas {
        padding-left: 5%;
        padding-right: 5%;
    }
}

.btn-eficiencia {
    padding: 10px 20px; /* Espaciado interno del botón */
    border: 2px solid white; /* Borde transparente */
    border-radius: 25px 25px 25px 25px; /* Redondeo en los bordes izquierdo y derecho */
    background-color: transparent; /* Fondo transparente */
    color: #fff; /* Color del texto */
    cursor: pointer; /* Apunta que es clicable */
    transition: background-color 0.3s ease; /* Transición para el cambio de color */
    width: 230px;
    position: relative; /* Posicionamiento relativo para el icono */
}

.btn-text {
    font-size: 16px;
}

.btn-eficiencia a {
    display: block; /* Hace que el enlace ocupe toda la anchura disponible del botón */
    width: 100%; /* Asegura que el enlace cubra toda la anchura del botón */
    text-decoration: none; /* Quita el subrayado */
    color: inherit; /* Mantiene el color original del enlace */
}

.btn-eficiencia i {
    display: none; /* Oculto por defecto */
    position: relative; /* Posición relativa al botón padre */
    margin-left: auto; /* Alinea el icono a la derecha */
}

.btn-eficiencia .fa-share {
    font-size: 22px; /* Ajusta el tamaño del icono */
}

.btn-eficiencia:hover .btn-text {
    display: none; /* Oculta el texto */
}

.btn-eficiencia:hover i {
    display: inline-block; /* Muestra el icono */
}

.servicios-adicionales {
    height: 560px;
    background-color: rgb(7, 7, 7);
    margin-top: 150px;
    display: flex; /* Activa Flexbox para el centrado */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente (si es necesario) */
    margin-left: 0;
    margin-right: 0;
}

.container-adicionales {
    height: 90%;
    width: 90%; /* Ocupa el 90% del ancho del padre */
    display: flex; /* Activa Flexbox para el centrado */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente (si es necesario) */
}

.content-adicionales {
    height: 100%;
}

.content-adicionales div {
    display: flex; /* Habilita flexbox en los divs */
    justify-content: center; /* Opcional: centra el contenido horizontalmente */
    align-items: center; /* Opcional: centra el contenido verticalmente */
}

.content-adicionales div img {
    width: 100%; /* La imagen ocupa el ancho completo del div */
    height: 100%; /* La imagen ocupa la altura completa del div */
    object-fit: cover; /* Ajusta la imagen sin deformarla, puede recortar partes */
}

.container-adicionales h2 {
    width: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Esconde cualquier contenido fuera del contenedor */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta para que cubra completamente */
    object-position: center; /* Centra la imagen */
}

.overlay-text {
    font-size: 24px;
    font-weight: bolder;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* El texto ocupa el ancho de la imagen */
    height: 20%; /* Ocupa inicialmente el 10% de la altura de la imagen */
    background-color: rgb(11, 11, 11);
    color: white;
    display: flex; /* Centra el texto horizontal y verticalmente */
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out; /* Suaviza el cambio de tamaño */
    z-index: 2; /* Mantiene el texto por encima de la imagen */
    text-align: center;
}

.content-adicionales h2 {
    font-size: 38px;
    font-weight: bolder;
    color: white;
    text-align: center;
}

@media(max-width: 1399.98px) and (min-width: 1200px) {
    .overlay-text {
        font-size: 20px;
    }
}

@media(max-width: 1199.98px) and (min-width: 992px) {
    .overlay-text {
        font-size: 17px;
    }

    .content-adicionales h2 {
        font-size: 33px;
    }
}

@media(max-width: 991.98px) and (min-width: 768px) {
    .servicios-adicionales {
        height: 800px;
    }

    .content {
        height: 3270px;
    }
}

@media(max-width: 767.98px) {
    .servicios-adicionales {
        height: 2000px;
    }

    .container-adicionales {
        width: 80%;
    }

    .content-adicionales h2 {
        font-size: 28px;
        font-weight: bolder;
        color: white;
        text-align: center;
    }
}

.ver-mas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(11, 11, 11);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0; /* Inicialmente oculto */
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s; /* Se muestra después de la animación */
    z-index: 3; /* Mantiene el texto por encima de la imagen */
  }

.image-container:hover .overlay-text {
    height: 100%; /* El texto ocupa todo el alto de la imagen al hacer hover */
    bottom: 0;
}

.image-container:hover img {
    opacity: 0; /* La imagen se oculta al hacer hover */
    transition: opacity 0.5s ease-in-out; /* Suaviza la transición de opacidad */
}

.image-container:hover .ver-mas {
    height: 40%; /* El texto ocupa todo el alto de la imagen al hacer hover */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0s 0.3s;
    transition-delay: 0.3s; /* Aparece después de que la overlay-text haya terminado su transición */
}

.formulario-footer {
    width:100%;
    height: 50%;
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/pantalla-smart-casa-inteligente.jpg');
    background-size: 100%;  /* Hace un zoom del 200% en la imagen */
    background-position: center;  /* Centra la imagen, ajusta para mover el zoom */
    background-repeat: no-repeat;
    margin: 0;
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    justify-content: center;  /* Centra los elementos verticalmente */
    align-items: center;  /* Centra los elementos horizontalmente */
    text-align: center;  /* Opcional, alinea el texto en el centro */
}

.formulario-footer .txt-animated {
    margin-top: 0;
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    justify-content: center;  /* Centra los elementos verticalmente */
    align-items: center;  /* Centra los elementos horizontalmente */
    text-align: center;  /* Opcional, alinea el texto en el centro */
    max-width: 90%;
}

.formulario-footer .txt-animated p {
    font-size: 28px;
}

@media(max-width: 1399.98px) {
    .formulario-footer .txt-animated p {
        font-size: 24px;
    }
}

@media(max-width: 991.98px) {
    .formulario-footer .txt-animated p {
        font-size: 20px;
    }
}

@media(max-width: 767.98px) {
    .formulario-footer{
        background-image: 
            linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 80%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
            linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 80%),  /* Degradado de transparente a negro */
            url('imagenes/pantalla-smart-casa-inteligente.jpg');
    }

    .formulario-footer .txt-animated p {
        font-size: 18px;
    }
}

@media(max-width: 575.98px) {
    .formulario-footer .txt-animated p {
        font-size: 14px;
    }

    .formulario-footer .txt-animated h3 {
        font-size: 24px;
    }
}

.formulario-footer .txt-animated button {
    background-color: rgb(22, 22, 22);
}

h3 {
    font-size: 36px;
    font-weight: bolder;
    letter-spacing: 1px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    text-shadow: black 5px 5px 10px;
}

.cabecera {
    height: 50%;
    width: 100%;
    background-size: 100%;  /* Hace un zoom del 200% en la imagen */
    background-position: center;  /* Centra la imagen, ajusta para mover el zoom */
    background-repeat: no-repeat;
}

body.nuestro-equipo .cabecera {
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/calefaccion_aire_acondicionado.jpg');
}

body.e-energetica .cabecera {
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/hombre-instalando-paneles-solares.jpg');
        background-position: top;
}

body.placas-solares .cabecera {
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/instalacion_placas_solares.jpg');
}

body.ascensores .cabecera {
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/ascensor-mantenimiento-ascensor.jpg');
}

body.ingenieria .cabecera {
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/mantenimiento_electrico_cables.jpg');
}

body.extintores .cabecera {
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/extintor-bomberos-incendio-camion.jpg');
}

body.servicios-asistencia-tecnica .cabecera {
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/ayudante-instalacion-panel-solar-tejado.jpg');
        background-position: top;
}

body.contacto .cabecera {
    background-image: 
        linear-gradient(to top, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de negro a transparente desde los bordes hacia el centro (de abajo hacia arriba) */
        linear-gradient(to bottom, rgb(11, 11, 11, 1) 0%, rgb(11, 11, 11, 0) 60%),  /* Degradado de transparente a negro */
        url('imagenes/pantalla-smart-casa-inteligente.jpg');
}

.texto-cabecera {
    height: 100%;
    padding-top: 200px; /* Muestra un margen interno */
    color: #fff;
    width: 100%;
    z-index: 1; /* Asegura que esté por encima del contenedor padre */
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    justify-content: center;  /* Centra los elementos verticalmente */
    align-items: center;  /* Centra los elementos horizontalmente */
    text-align: center;  /* Opcional, alinea el texto en el centro */    
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 2.0s ease, transform 2.0s ease;
}

.texto-cabecera.animated {
    opacity: 1;
    transform: translateY(0);
}

.texto-cabecera h2 {
    font-size: 56px;
    font-weight: bolder;
    letter-spacing: 1px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    text-shadow: black 5px 5px 10px;
}

.introduccion {
    width: 100%;
    height: 540px;
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    justify-content: center;  /* Centra los elementos verticalmente */
    align-items: center;  /* Centra los elementos horizontalmente */ 
    font-size: 18px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    color: white;
    background-color: rgb(7, 7, 7);
    margin: 0 auto;
}

.introduccion .container {
    width: 1200px;
    max-width: 90vw;
    height: 50%;
}

.placas-solares .introduccion {
    height: 820px;
}

.placas-solares .introduccion .container {
    width: 1600px;
    max-width: 90vw;
    height: 75%;
}

.placas-solares .introduccion .container h3 {
    font-size: 28px;
}

.placas-solares h2 {
    font-size: 36px;
    font-weight: bolder;
    padding-bottom: 20px;
}

.ascensores .introduccion {
    height: 820px;
}

.ascensores .introduccion .container {
    width: 1600px;
    max-width: 90vw;
    height: 75%;
}

.ascensores .introduccion .container h3 {
    font-size: 28px;
}

.ascensores h2 {
    font-size: 36px;
    font-weight: bolder;
    padding-bottom: 20px;
}

.ascensores .mantenimiento-placas .container h3 {
    font-size: 28px;
}


.ascensores .imagen-introduccion img {
    margin-top: 20%;
    width: 100%;
    height: 60%;
}

.ascensores a {
    color: inherit; /* Hereda el color del texto del elemento padre */
    text-decoration: none; /* Elimina el subrayado */
    transition: color 0.5s ease; /* Transición suave del color */
}

/* Cambia el color al hacer hover */
.ascensores a:hover {
    color: orange; /* Color naranja en hover */
}

.mantenimiento-placas {
    width: 100%;
    height: 1100px;
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    justify-content: center;  /* Centra los elementos verticalmente */
    align-items: center;  /* Centra los elementos horizontalmente */ 
    font-size: 18px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    color: white;
    background-color: black;
    margin: 0 auto;
}

.ascensores .mantenimiento-placas {
    height: 1350px;
}

.mantenimiento-placas .container {
    width: 1600px;
    max-width: 90vw;
    height: 50%;
}

.ascensores .container {
    width: 1600px;
    max-width: 90vw;
    height: 80%;
}

.placas-solares .mantenimiento-placas .container {
    width: 1600px;
    max-width: 90vw;
    height: 75%;
}

.placas-solares .texto-cabecera h2 {
    font-size: 56px;
}

@media(max-width: 991.98px) {
    .placas-solares .imagen-introduccion {
        display: flex;
        flex-direction: column;  /* Apila los elementos verticalmente */
        justify-content: center;  /* Centra los elementos verticalmente */
        align-items: center;  /* Centra los elementos horizontalmente */ 
    }

    .ascensores .first-small {
        order: 0; /* Coloca este div en el segundo lugar */
    }
    .ascensores .second-small {
        order: 1; /* Coloca este div en el primer lugar */
    }

    .placas-solares .first-small {
        order: 0; /* Coloca este div en el segundo lugar */
    }
    .placas-solares .second-small {
        order: 1; /* Coloca este div en el primer lugar */
    }

    .placas-solares .introduccion {
        height: 1600px;
    }

    .placas-solares .mantenimiento-placas {
        height: 2100px;
    }

    .placas-solares .mantenimiento-placas .container {
        height: 95%;
    }

    .placas-solares .introduccion .container {
        height: 95%;
    }
    
}

@media(max-width: 991.98px) {
    .ascensores .imagen-introduccion {
        display: flex;
        flex-direction: column;  /* Apila los elementos verticalmente */
        justify-content: center;  /* Centra los elementos verticalmente */
        align-items: center;  /* Centra los elementos horizontalmente */ 
    }

    .ascensores .introduccion {
        height: 1600px;
    }

    .ascensores .mantenimiento-placas {
        height: 2600px;
    }

    .ascensores .mantenimiento-placas .container {
        height: 95%;
    }

    .ascensores .introduccion .container {
        height: 95%;
    }
    
}

.placas-solares .imagen-introduccion img {
    height: 80% !important;
    max-height: 75vh;
    max-width: 75vw;
}

.placas-solares .mantenimiento-placas .container h3 {
    font-size: 28px;
}

.imagen-introduccion img {
    width: 100%;
    height: 100%;
}

.introduccion h2 {
    font-size: 36px;
    font-weight: bolder;
    padding-bottom: 20px;
}

@media(max-width: 1199.98px) {
    .introduccion .container {
        height: 75%;
    }
}

.iconos {
    width: 100%;
    height: 865px;
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    justify-content: center;  /* Centra los elementos verticalmente */
    align-items: center;  /* Centra los elementos horizontalmente */ 
    text-align: center;
    font-size: 18px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    color: white;
    background-color: black;
    margin: 0 auto;
}

.iconos .container {
    width: 1400px;
    max-width: 90vw;
    height: 50%;
}

.iconos .container h2, .iconos .container p {
    font-weight: bolder;
}

.iconos .container div {
    padding: 20px;
}

.iconos .container img {
    max-height: 130px;
    max-width: 130px;
}

@media(max-width: 991.98px) {
    .introduccion {
        height: 1290px;
    }

    .contacto .introduccion {
        height: 540px;
    }

    .contacto .introduccion .container {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    .contacto .introduccion .container p {
        font-size: 14px !important;
    }

    .iconos .container img {
        max-height: 90px;
        max-width: 90px;
    }

    .iconos {
        font-size: 14px;
    }
}

@media(max-width: 767.98px) {
    .iconos.txt-animated {
        height: 1140px;
        max-height: 1140px !important;
    }

    .contacto .introduccion {
        height: 1000px;
    }

    .contacto .introduccion .container .redes-sociales-text {
        margin-top:0% !important;
        margin-left: 0px;
    }

    .iconos .container {
        height: 100%;
    }

    .iconos h2 {
        font-size: 20px;
    }
}

@media(max-width: 799.98px) {
    .cabecera {
        margin-top: 120px;
        height: 25vh;
    }

    .texto-cabecera {
        padding-top: 0;
    }

    .cabecera h2 {
        font-size: 40px;
    }
}

.final-equipo {
    height: 825px;
    width: 100%;
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    justify-content: center;  /* Centra los elementos verticalmente */
    align-items: center;  /* Centra los elementos horizontalmente */ 
    font-size: 18px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    color: white;
    background-color: rgb(11, 11, 11);
    margin: 0 auto;
}

@media(max-width: 991.98px) {
    .final-equipo {
        font-size: 16px;
    }
}

.final-equipo .container {
    width: 1400px;
    max-width: 90vw;
}

.final-equipo .container .parte-arriba {
    display: grid; /* Activa el grid layout */
    place-items: center; /* Centra horizontal y verticalmente */
}

.mision-vision {
    width: 98%;
    margin-left: 1%;
    padding-top: 50px;
}

@media(max-width: 767.98px) {
    .final-equipo.txt-animated {
        height: 1100px;
        max-height: 1000px !important;
    }

    .final-equipo {
        font-size: 14px;
    }

    .iconos .container {
        height: 100%;
    }

    .iconos h2 {
        font-size: 20px;
    }
}

@media(max-width: 575.98px) {
    .final-equipo.txt-animated {
        height: 1100px;
        max-height: 1100px !important;
    }
}

.asesoria {
    width: 100%;
    height: 340px;
    display: flex;
    flex-direction: column;  /* Apila los elementos verticalmente */
    justify-content: center;  /* Centra los elementos verticalmente */
    align-items: center;  /* Centra los elementos horizontalmente */ 
    text-align: center;
    font-size: 22px;
    margin-block-end: 11px;
    margin-block-start: 22px;
    margin-bottom: 11px;
    color: white;
    background-color: rgb(7, 7, 7);
    margin: 0 auto;
}

.asesoria h2 {
    font-weight: bolder;
    font-size: 32px;
    margin-bottom: 2%
}

.asesoria .container {
    width: 55%
}

.ingenieria .introduccion {
    background-color: black;
    height: 1200px;
}

.ingenieria .introduccion .container {
    width: 1500px;
    max-width: 90vw;
    height: 80%;
}

.ingenieria .introduccion h2 {
    font-size: 24px;
    font-weight: bolder;
}

.ingenieria .introduccion .container .text-introduccion {
    margin-top: 5%;
}

.extintores .introduccion {
    background-color: black;
    height: 1300px;
}

.extintores .introduccion .container {
    width: 1500px;
    max-width: 90vw;
    height: 90%;
}

.extintores .introduccion h2 {
    font-size: 24px;
    font-weight: bolder;
}

.extintores .introduccion .container .text-introduccion {
    margin-top: 5%;
}

.extintores .imagen-introduccion img {
    margin-top: 25%;
    width: 100%;
    height: 60%;
}

.fa-regular.fa-square-check, .fa-solid.fa-bullseye.fa-2x, .fa-solid.fa-eye.fa-2x {
    color: orange; /* Cambia el color del icono a naranja */
}

p.col-6 {
    font-size: 20px;
    font-weight: bolder;
}

@media(max-width: 991.98px) {
    .ingenieria .introduccion {
        height: 2000px;
    }

    .ingenieria .introduccion .container {
        height: 95%;
    }

    .ingenieria .first-small {
        order: 0; /* Coloca este div en el segundo lugar */
    }
    .ingenieria .second-small {
        order: 1; /* Coloca este div en el primer lugar */
    }

    .extintores .introduccion {
        height: 3000px;
    }

    .extintores .introduccion .container {
        height: 95%;
    }

    .extintores .first-small {
        order: 0; /* Coloca este div en el segundo lugar */
    }
    .extintores .second-small {
        order: 1; /* Coloca este div en el primer lugar */
    }

    .asesoria .container {
        width: 90%
    }
}

@media(max-width: 575.98px) {
    .asesoria h2 {
        font-size: 26px;
    }

    .asesoria {
        font-size: 16px;
    }

    .placas-solares .texto-cabecera h2 {
        font-size: 50px;
    }
}

.servicios-asistencia-tecnica h3 {
    font-size: 26px;
    font-weight: bolder;
}

.servicios-asistencia-tecnica .txt-animated {
    margin: 0 auto;
}

.contacto .final-contacto .formulario-contacto a {
    color: inherit; /* Hereda el color del texto circundante */
    text-decoration: none; /* Sin subrayado */
}

/* Cambia el color al hacer hover (opcional) */
.contacto .final-contacto .formulario-contacto a:hover {
    color: orange; /* Color naranja en hover */
}

.contacto .introduccion .container a {
    color: inherit; /* Hereda el color del texto circundante */
    text-decoration: none; /* Sin subrayado */
}

/* Cambia el color al hacer hover (opcional) */
.contacto .introduccion .container a:hover {
    color: orange; /* Color naranja en hover */
}

/* Estilo para los h4 dentro de la clase .container */
.contacto .introduccion .container h4 {
    font-size: 28px;
    font-weight: bolder;
    color: orange; /* Texto naranja para los h4 */
}

.contacto .introduccion .container strong {
    font-size: 18px;
}

.contacto .introduccion .container p {
    font-size: 15px;
}

.contacto .introduccion .container {
    width: 1400px;
    max-width: 90vw;
    height: 65%;
}

/* Fondo naranja y texto blanco del formulario */
.formulario-contacto {
    background-color: #d56514;
    color: white;
}

/* Inputs transparentes con línea blanca */
.input-transparente {
    background: transparent;
    border: none;
    border-bottom: 2px solid white;
    border-radius: 0;
    color: white;
    width: 95%;
}

/* Placeholder blanco */
.input-transparente::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Quitar enfoque azul en inputs */
.input-transparente:focus {
    background: transparent; /* No cambia el fondo */
    outline: none;
    border-bottom: 2px solid lightblue; /* Cambia solo el borde inferior */
    box-shadow: none;
}

/* Etiquetas con márgenes consistentes */
.form-label {
    font-weight: bold;
    color: white;
}

.final-contacto {
    height: 700px;
}

.final-contacto div {
    padding: 0px;
    height: 100%;
}

.form-check {
    margin-left: 2%;
}

@media(max-width: 991.98px) {
    .final-contacto {
        height: 1400px;
    }

    .final-contacto .col-lg-6.col-12 {
        height: 50%;
    }
}

@media(max-width: 575.98px) {
    .final-contacto {
        height: 2100px;
    }

    .final-contacto .col-lg-6.col-12 {
        height: 50%;
    }
}

html,
body {
    font-family: "Century Gothic";
    height: 100%;
    background-color: black;
}

* {
    font-family: century-gothic;
    box-sizing: border-box;
}

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #00BAF0;
    background: transparent;
    color: #FFF;
    height: 120px;
    padding: 1em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.5s ease;
}

ul, ul li, ul li a {
    height: 120px;
}

.top-nav.scrolled {
    background-color: rgb(22, 22, 22);
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu a {
    font-size: 14px;
}

.menu>li {
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.menu li a {
    width: 100%;
    color: white;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
}

.menu li:hover a {
    color: orange;
}

.menu li:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: orange;
    transition: transform 0.3s, background-color 0.3s ease;
}

.menu li:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.menu li a:focus,
.menu li a:active,
.menu li a.selected {
    color: orange;
}

.menu li a:focus::after,
.menu li a:active::after,
.menu li a.selected::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: orange;
    text-underline-offset: 10px;
    transform: scaleX(1);
    transform-origin: bottom right;
    transition: transform 0.3s, background-color 0.3s ease;
}

.menu-button-container {
    display: none;
    height: 45%;
    width: 45px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: orange;
    border-radius: 10%;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: black;
    position: absolute;
    height: 3px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

.img-logo {
    width: 100%;
    height: 100%;
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

footer {
    background-color: rgb(11, 11, 11);
    color: white;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
}

footer img {
    width: 100%;
    height: 100%;
    max-width: 196px;
    max-height: 196px;
    width: auto;
    height: auto;
    object-fit: contain;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: orange;
    text-decoration: none;
}

.col-lg-3 {
    font-size: 12px;
    margin-bottom: 5%;
}

.col-md-12 {
    display: flex;
    justify-content: center; /* Alinea los elementos horizontalmente en el centro */
    align-items: center; /* Alinea los elementos verticalmente en el centro */
}

.fa-facebook {
    background: transparent;
    color: white;
}

.fa-twitter {
    background: transparent;
    color: white;
}

.redes-sociales-text {
    margin-left: 20px;
}

.credits {
    display: flex;
    justify-content: center;  
    align-items: center;      
    text-align: center;       
    padding: 20px;            
    font-size: 12px;
}

.primera-red {
    margin-left: 10px;
}

@media (min-width:1280px) and (max-width:1400px) {
    .top-nav a{
        font-size: 12px;
    }
}

@media (min-width:1200px) and (max-width:1279px) {
    .top-nav a{
        font-size: 11.5px;
    }
}

@media (max-width: 1199px) {
    ul, ul li, ul li a {
        height: auto;
    }

    ul li a {
        width: 100%;
    }

    .menu li a {
        display: flex;
        justify-content: flex-start;
    }

    .top-nav {
        background-color: black;
    }

    .menu-button-container {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 120px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        background-color: black;
        border-top: 0;
        transition: border-top 0.3s ease;
    }

    #menu-toggle:checked~.menu {
        border-top: 1px solid white;
    }

    #menu-toggle~.menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #menu-toggle:checked~.menu li {
        border: 0;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu>li {
        display: flex;
        justify-content: flex-start;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: black;
    }

    .menu>li:not(:last-child) {
        border-bottom: none;
    }
}

@media (max-width: 991px) {
    .primera-red {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .col-xs-1 {
        width: 15%;
        padding: 10px;
        margin-left: 10px;
    }

    .margen-xs {
        padding-left: 30px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .carousel {
        width: 100vw; /* Ancho del 100% para ocupar toda la pantalla */
        height: 60vh;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-color: #000; /* Color de fondo en caso de que no haya imagen cargada */
        margin-top: 120px;
    }
    
    .texto-carousel {
        position: relative;
        top: 15%;
        left: 22%;
        transform: translate(-20%, -20%); /* Ajusta según sea necesario para obtener el margen correcto */
        padding: 20px; /* Muestra un margen interno */
        color: #fff;
        width: 95%;
        z-index: 1; /* Asegura que esté por encima del contenedor padre */
    }
}

@media (max-width: 767.98px) {
    .carousel {
        width: 100vw; /* Ancho del 100% para ocupar toda la pantalla */
        height: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-color: #000; /* Color de fondo en caso de que no haya imagen cargada */
        margin-top: 120px;
    }
    
    .texto-carousel {
        text-align: center;
        position: relative;
        top: 15%;
        left: 22%;
        transform: translate(-20%, -20%); /* Ajusta según sea necesario para obtener el margen correcto */
        padding: 20px; /* Muestra un margen interno */
        color: #fff;
        width: 95%;
        z-index: 1; /* Asegura que esté por encima del contenedor padre */
    }

    .texto-carousel h2 {
        font-size: 26px;
        text-align: center;
    }
}