/* ============================
Header
============================= */

header {
    margin: 0;
    padding: 0;
}

.contenedor-header-contacto {
    display: flex;
    flex-direction: row;
    background-color: #0F1A22;
    margin: 0px;
    padding: 0px;
    justify-content: space-between;
    color: aliceblue;
    font-size: 14px;
}

.contenedor-header-contacto-izquierdo {
    width: 50%;
    display: flex;
    align-content: center;
    justify-content: center;
}

.contenedor-header-contacto-derecho {
    display: flex;
    align-content: center;
    justify-content: center;
    gap: 10px;
    width: 50%;
}

.contenedor-header-contacto-derecho p {
    transition: 0.2s;
}

.contenedor-header-contacto-derecho p:hover {
    color: orange;
}

.contenedor-header-menu-buscador {
    display: flex;
    justify-content: space-between;
}

.contenedor-header-menu-buscador-izquierdo {
    width: 50%;
    display: flex;
    align-content: center;
    justify-content: center;
}

.contenedor-header-menu-buscador-derecho {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 999;
}

.contenedor-header-menu-buscador-derecho ul {
    display: flex;
    justify-content: center;
    padding: 0px;
    margin: 0px;
    position: relative;
    z-index: 999;
}

.menu-principal li {
    position: relative;
}

.menu-principal ul,
li {
    display: flex;
    flex-direction: column;
    margin: 0px;
    padding: 0px;
    list-style: none;
    position: relative;
    z-index: 999;
}

.menu-principal li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #EDF5FA;
    border-radius: 5px;
    padding: 0;
    min-width: 140px;
}

.menu-principal li a {
    color: #263238;
    text-decoration: none;
    margin: 5px;
    padding: 15px;
}

.cabecera-menu {
    transition: 0.3s;
}

.menu-principal li ul li {
    position: relative;
}

.menu-principal li ul li ul {
    left: 100%;
    margin: 5px;
    top: 0;
}

.cabecera-menu:hover,
.menu-principal li:hover>ul {
    display: block;
    border-radius: 5px;
    background-color: #EDF5FA;
    color: cornflowerblue;
}

.contenedor-header-menu-buscador-derecho input {
    background-color: #EDF5FA;
    color: cornflowerblue;
    width: 200px;
    border-radius: 15px;
    height: 30px;
    border-style: none;
}

/* =================================
Main
================================= */

body {
    margin: 0px;
    padding: 0px;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =================================
Footer
================================= */
footer {
    margin: 0px;
    padding: 0px;
    gap: 0px;
}

.contenedor-footer-contatactanos {
    background-color: #EF6112;
    color: aliceblue;
    text-align: center;
    padding-left: 100px;
    padding-right: 100px;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0px;
}

.contenedor-footer-contatactanos p {
    margin: 8px;
}

.contenedor-footer-contatactanos h2 {
    font-size: 40px;
}

.contacta-ahora {
    font-size: 12px;
}

.contenedor-footer-contatactanos button {
    margin-top: 40px;
    padding: 12px 15px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
}

.llamanos {
    border-style: none;
    color: #EF6112;
    margin-right: 15px;
    transition: 0.2s;
}

.llamanos:hover {
    transform: translateY(-5px);
    text-shadow: 0px 0px 5px #E36D00;
}

.llamanos a {
    text-decoration: none;
    color: #E36D00;
}

.escribenos {
    position: relative;
    overflow: hidden;
    border-style: groove;
    background-color: #E36D00;
    border-color: #EDF5FA;
    color: #EDF5FA;
    margin-left: 12px;
    z-index: 2;
    transition: 0.2s;
    cursor: pointer;
}

.escribenos a {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: #E1F5FE;
}

.escribenos::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #0F1A22;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.75s ease;
    z-index: 0;
}

.escribenos:hover {
    transform: translateY(-5px);
}

.escribenos p:hover {
    color: #fff;
}

.escribenos:hover::after {
    clip-path: circle(100% at 50% 50%);
}

.contenedor-footer-pie-final {
    background-color: #0F1A22;
    padding: 20px;
    padding-left: 300px;
    padding-right: 300px;
    display: flex;
    justify-content: space-between;
}

.contenedor-footer-pie-final-izquierda-carrusel {
    width: 280px;
    height: 280px;
    background-color: #EDF5FA;
    border-radius: 10px;
    margin: 50px auto 0;
    overflow: hidden;
}

.contenedor-footer-pie-final-izquierda-carrusel ul {
    display: flex;
    padding: 0;
    width: 600%;
    align-items: center;
    animation: slide 20s infinite alternate ease-in-out;
}

.contenedor-footer-pie-final-izquierda-carrusel li {
    width: calc(100% / 6);
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    padding: 20px;
    box-sizing: border-box;
}

.contenedor-footer-pie-final-izquierda-carrusel img {
    width: 100%;
    display: block;
}

@keyframes slide {
    0%   { margin-left: 0; }
    13%  { margin-left: 0; }

    17%  { margin-left: -100%; }
    30%  { margin-left: -100%; }

    34%  { margin-left: -200%; }
    47%  { margin-left: -200%; }

    51%  { margin-left: -300%; }
    64%  { margin-left: -300%; }

    68%  { margin-left: -400%; }
    81%  { margin-left: -400%; }

    85%  { margin-left: -500%; }
    100% { margin-left: -500%; }
}

.contenedor-footer-pie-final-izquierda h2,
.contenedor-footer-pie-final-izquierda p {
    color: #EDF5FA;
}

.contenedor-footer-pie-final-derecha h2,
.contenedor-footer-pie-final-derecha p {
    color: #EDF5FA;
}

/* ===== IDIOMAS =====*/
.selector-idioma {
    display: flex;
    gap: 8px;
    align-items: center;
}

.idioma img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 3px;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.idioma:hover img {
    opacity: 1;
}

.idioma.activo img {
    opacity: 1;
    border: 2px solid #e8720c;
    border-radius: 3px;
}

/* ============================
FOOTER DERECHO
============================ */

.contenedor-footer-pie-final-derecha {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 220px;
}

.footer-links-rapidos h2 {
    color: #EDF5FA;
    font-weight: bold;
}

.footer-links-rapidos ul {
    list-style: none;
}

.footer-links-rapidos li {
    margin: 10px;
}

.footer-links-rapidos a {
    text-decoration: none;
    color: #d0dde6;
    transition: 0.2s;
}

.footer-links-rapidos a:hover {
    font-size: 25px;
    color: #e8720c;
}

/* ============================
INICIO
============================ */
.contenedor-main-carrusel {
    display: flex;
    justify-content: space-between;
    background-image:
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.07) 8px,
            rgba(255, 255, 255, 0.07) 9px),
        linear-gradient(135deg, #0F1A22 0%, #0D5C7D 50%, #E1F5FE 100%);
    color: #EDF5FA;
    padding: 50px;
}

.contenedor-main-carrusel-izquierda {
    display: flex;
    flex-direction: column;
    padding-left: 200px;
}

.contenedor-main-carrusel-izquierda h2,
p {
    text-align: center;
}

.contenedor-main-carrusel-izquierda-botones {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contenedor-main-carrusel-izquierda-botones button {
    margin-top: 40px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
}

.contenedor-main-carrusel-izquierda-datos-empresa {
    display: flex;
    gap: 20px;
}

.contenedor-main-carrusel-izquierda-datos-empresa .valor {
    text-align: center;
}

.ver-proyectos {
    width: auto;
    height: auto;
    border-style: none;
    color: #EF6112;
    margin-right: 15px;
    transition: 0.2s;
}

.ver-proyectos a {
    text-decoration: none;
    color: #E36D00;
}

.ver-proyectos:hover {
    transform: translateY(-5px);
    text-shadow: 0px 0px 5px #E36D00;
}

.nuestros-servicios {
    position: relative;
    overflow: hidden;
    border-style: groove;
    background-color: #E36D00;
    border-color: #EDF5FA;
    color: #EDF5FA;
    margin-left: 12px;
    z-index: 2;
    transition: 0.2s;
    cursor: pointer;
    width: auto;
    height: auto;
}

.nuestros-servicios a {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: #EDF5FA;
}

.nuestros-servicios::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #0F1A22;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.75s ease;
    z-index: 0;
}

.nuestros-servicios:hover {
    transform: translateY(-5px);
}

.nuestros-servicios:hover::after {
    clip-path: circle(100% at 50% 50%);
}

.contenedor-main-carrusel-derecha {
    width: 50%;
    display: flex;
    justify-content: center;
}

.contenedor-main-carrusel-derecha-carrusel {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.carrusel {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 .25rem .5rem #21212126;
    border-radius: .5rem;
}

.carrusel img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-position: center center;
    scroll-snap-align: start;
    object-fit: cover;
}

.carrusel-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.carrusel-nav a {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: .75;
    transition: opacity ease 150ms;
}

.carrusel-nav a:hover {
    opacity: 1;
}

.contenedor-main-datos-basicos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #0F1A22;
    color: white;
    padding: 10px;
    margin: 0px;
    text-align: center;
}

.contenedor-main-ofrecemos {
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
    font-size: 25px;
    background-color: #E1F5FE;
}

.titulo {
    color: #E36D00;
    font-size: 15px;
}

.contenedor-main-ofrecemos-tarjetas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-size: 20px;
    padding-top: 100px;
    justify-items: center;
    padding-left: 350px;
    padding-right: 350px;
}

.imagen-representativa {
    font-size: 25px;
}

.tarjetas-ofrecemos {
    background-color: #ffffff;
    box-shadow: 0px 0px 10px 0px #0F1A22;
    border-radius: 10px;
    margin: 20px;
    padding-bottom: 30px;
    padding-top: 30px;
    transition: 0.5s;
}

.contenedor-main-ofrecemos-tarjetas {
    padding-bottom: 200px;
}

.contenedor-main-ofrecemos-tarjetas div:hover {
    transform: translateY(-15px);
    background: linear-gradient(135deg, #E1F5FE 0%, #0D5C7D 50%, #0F1A22 100%);
    color: #ffffff;
}

.contenedor-main-Galeria-trabajos-datos {
    text-align: center;
    font-size: 20px;
    padding: 100px;
}

.imagenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 100px;
    gap: 10px;
}

.imagenes img {
    width: 400px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    justify-self: center;
    transition: 0.5s;
}

.modalDialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: all;
}

.modalDialog>div {
    display: flex;
    background: #fff;
    border-radius: 12px;
    max-width: 760px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.modalDialog>div .parte-izquierda-modal {
    width: 45%;
    flex-shrink: 0;
    min-height: 300px;
    overflow: hidden;
}

.modalDialog>div .parte-izquierda-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modalDialog>div .parte-derecha-modal {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.modalDialog .close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    text-decoration: none;
    color: #fff;
    background-color: #E36D00;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 2px 8px;
    transition: 0.5s;
}

.modalDialog .close:hover {
    background: #e18128;
}

.imagenes img:hover {
    width: 420px;
    height: 240px;
}

.contenedor-ventajas {
    background-color: #E1F5FE;
    text-align: center;
    padding: 100px;
    font-size: 25px;
}

.contenedor-ventajas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 100px;
    gap: 20px;
    font-size: 20px;
}

.tarjeta-ventajas {
    background-color: #ffffff;
    box-shadow: 0px 0px 10px 0px #0F1A22;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px;
    padding-top: 40px;
    padding-bottom: 40px;
    transition: 0.5s;
}

.tarjeta-ventajas:hover {
    transform: translateY(-15px);
    background: linear-gradient(135deg, #E1F5FE 0%, #0D5C7D 50%, #0F1A22 100%);
    color: #ffffff;
}

/*=======================
Galería
====================== */

.simple-titulo {
    background-color: #E36D00;
    padding: 40px;
    margin: 0px;
    text-align: center;
}

.medio-titulo {
    background-color: #0D5C7D;
    padding: 40px;
    color: #fff;
    margin: 0px;
    text-align: center;
}

.complejo-titulo {
    background-color: #afe3fa;
    padding: 40px;
    margin: 0px;
    text-align: center;
}

.simple,
.medio,
.complejo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.simple,
.complejo {
    background-color: #E1F5FE;
    padding: 0px;
    margin: 0px;
}

.imagen-galeria {
    width: 80%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    justify-self: center;
    padding: 20px;
    transition: 0.2s;
}

.imagen-galeria:hover {
    width: 90%;
    height: 350px;
}

/* ============================
Distintos estilos que se han planteado para el JavaScript
============================ */

.buscador-desactivado {
    display: none;
}

/* ===== NOSOTROS ===== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Barlow:wght@400;500;600&display=swap');

.mapa {
    padding: 2rem 2rem 3rem;
}

.mapa iframe {
    width: 1000px;
    height: 800px;
    display: flex;
    justify-self: center;
    border-radius: 10px;
}

.video {
    width: 1000px;
    height: 800px;
    display: flex;
    justify-self: center;
    border-radius: 20px;
    margin-right: 100px;
    padding: 20px;
}

.foto img {
    width: 500px;
    height: 800px;
    display: flex;
    justify-self: center;
    border-radius: 10px;
    margin-left: 150px;
    padding: -20px;
}

.seccion-nosotros {
    background: linear-gradient(135deg, #0B2545 0%, #1B4F8A 60%, #2D7DD2 100%);
    padding: 5rem 2.5rem 6rem;
    display: flex;
    justify-content: center;
}

.bloque-texto {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bloque-texto h1 {
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: #FFFFFF;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    justify-content: center;
}

.bloque-texto p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    max-width: 600px;
    justify-content: center;
}

.bloque-texto p strong {
    color: #FF8C42;
    font-weight: 700;
}

.seccion-detalles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: -3rem auto 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 10;
}

.caja-info {
    background: #ffffff;
    border-radius: 14px;
    padding: 2.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
    border-top: 3px solid #ff7f32;
}

.caja-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
    transform: scale(1.05);
    background-color: #E36D00;
}

.caja-info:hover h2,
.caja-info:hover p {
    color: #FFFFFF;
}

.caja-info h2 {
    font-weight: 800;
    font-size: 1.6rem;
    color: #0B2545;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.caja-info p {
    color: black;
    line-height: 1.75;
    font-size: 0.97rem;
    margin-bottom: 0.5rem;
}

.caja-info strong {
    color: #0B2545;
    font-weight: 600;
}

/* ===== SERVICIOS ===== */
.bloque-servicio {
    margin-bottom: 40px;
}

.cabecera-servicio {
    background: #1B4F8A;
    text-align: center;
    padding: 50px 20px 70px;
}

.cabecera-servicio h1 {
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.cabecera-servicio p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    margin: 0 auto;
}

.contenedor-tarjetas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: -40px auto 0;
    padding: 0 20px 20px;
}

.tarjeta-servicio {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #ff7f32;
    transition: transform 0.2s;
}

.tarjeta-servicio:hover {
    transform: scale(1.05);
    background-color: #E1F5FE;
}

.tarjeta-servicio h2 {
    font-size: 0.95rem;
    color: #000000;
    text-transform: uppercase;
    margin: 0 0 10px;
    transition: 0.2s;
}

.tarjeta-servicio p {
    color: #000000;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.2s;
}

/* ===== CONTACTO ===== */
.cabecera-contacto {
    background: linear-gradient(135deg, #E1F5FE 0%, #0D5C7D 25%, #0D5C7D 75%, #E1F5FE 100%);
    padding: 4rem 2.5rem 5rem;
    text-align: center;
}

.cabecera-contacto h1 {
    .bloque-texto {
        max-width: 820px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    .bloque-texto h1 {
        font-weight: 900;
        font-size: clamp(2.8rem, 6vw, 4.5rem);
        color: #FFFFFF;
        line-height: 1.05;
        text-transform: uppercase;
        margin-bottom: 1.25rem;
        padding-left: 1rem;
    }
}

.cabecera-contacto p {
    color: white;
    font-size: 0.97rem;
    max-width: 700px;
    line-height: 1.75;
    margin: 0 auto;
}

.contenedor-contacto {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 860px;
    margin: -2rem auto 0;
    padding: 0 2rem 3rem;
}

.tarjeta-contacto {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #FF8C42;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tarjeta-contacto:hover {
    background: #E1F5FE;
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.icono-contacto {
    width: 52px;
    height: 52px;
    background: #F0F4F8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-bottom: 0;
}

.tarjeta-contacto:hover .icono-contacto {
    background: rgba(0, 0, 0, 0.1);
}

.tarjeta-contacto-texto {
    flex: 1;
}

.tarjeta-contacto h2 {
    font-size: 0.78rem;
    color: #0B2545;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.tarjeta-contacto p {
    font-size: 0.88rem;
    color: black;
    line-height: 1.6;
    margin: 0 0 5px;
}

.info-contacto {
    font-size: 1rem !important;
    font-weight: 700;
    text-decoration: none;
    color: #FF8C42 !important;
}

/* ===== SOSTENIBILIDAD ===== */
.seccion-sostenibilidad {
    background: linear-gradient(135deg, #0B3A2F 0%, #1A5C4A 60%, #2A8C72 100%);
    padding: 5rem 2.5rem 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    color: white;
}

.bloque-texto {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.bloque-texto h1 {
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: #FFFFFF;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
}

.bloque-texto .subtitulo {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    line-height: 1.3;
    margin-bottom: 1.4rem;
    font-weight: 500;
    opacity: 0.95;
}

.bloque-texto p {
    font-size: 1.12rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    margin: 0 auto;
}

.bloque-texto p strong {
    color: #4ade80;
    font-weight: 700;
}

/* ===== GRID ===== */

.seccion-compromiso {
    padding: 90px 20px;
    background: #f8f9fa;
    text-align: center;
}

.seccion-compromiso h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    color: #1a3c34;
}

.seccion-compromiso p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.contenedor-sostenibilidad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 90px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.tarjeta-sostenibilidad {
    background: white;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-sostenibilidad:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.tarjeta-sostenibilidad .icono {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.tarjeta-sostenibilidad h2 {
    font-size: 1.55rem;
    margin-bottom: 18px;
    color: #1a3c34;
}

.tarjeta-sostenibilidad p {
    color: #555;
    line-height: 1.65;
}

.contenedor-sostenibilidad-metrica {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding: 80px 20px;
    background: #1a3c34;
    color: white;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.cifra-sostenible .valor {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #4ade80;
}

.cifra-sostenible .etiqueta {
    font-size: 1.1rem;
    opacity: 0.9;
}

.seccion-beneficios {
    padding: 100px 20px;
    background: #f8f9fa;
    text-align: center;
}

.seccion-beneficios h2 {
    font-size: 2.5rem;
    margin-bottom: 55px;
    color: #1a3c34;
    font-weight: 700;
}

.contenedor {
    max-width: 1100px;
    margin: 0 auto;
}

.lista-beneficios {
    max-width: 680px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lista-beneficios li {
    font-size: 1.18rem;
    color: #333;
    padding: 16px 0 16px 50px;
    position: relative;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

/*===== LISTA ===== */
.lista-beneficios li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1;
    top: 14px;
}

/* =====================================================
    GLOBAL ANTI-OVERFLOW — evita barra blanca lateral
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Logo del header: tamaño controlado siempre */
.contenedor-header-menu-buscador-izquierdo img {
    max-height: 80px;
    width: auto;
    display: block;
}

/* Imágenes galería: nunca fijas, siempre fluidas */
.imagenes img {
    width: 100%;
    max-width: 400px;
    height: 220px;
    object-fit: cover;
}

/* Mapa y video: nunca más anchos que su contenedor */
.mapa iframe,
.video {
    max-width: 100%;
}

/* =====================================================
   RESPONSIVE — ESCRITORIO MEDIO (max 1440px)
===================================================== */
@media (max-width: 1440px) {

    .contenedor-main-ofrecemos-tarjetas {
        padding-left: 100px;
        padding-right: 100px;
    }

    .contenedor-footer-pie-final {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* =====================================================
   RESPONSIVE — PORTÁTIL (max 1280px)
===================================================== */
@media (max-width: 1280px) {

    .contenedor-main-ofrecemos-tarjetas {
        padding-left: 60px;
        padding-right: 60px;
    }

    .contenedor-footer-pie-final {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* =====================================================
   RESPONSIVE — TABLET GRANDE (max 1180px)
===================================================== */
@media (max-width: 1180px) {

    /* Header: logo más pequeño, menú más compacto */
    .contenedor-header-menu-buscador-izquierdo {
        width: 35%;
    }

    .contenedor-header-menu-buscador-derecho {
        width: 65%;
    }

    .contenedor-header-menu-buscador-izquierdo img {
        max-height: 65px;
    }

    .menu-principal li a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .contenedor-header-menu-buscador-derecho input {
        width: 120px;
    }

    /* Ofrecemos */
    .contenedor-main-ofrecemos-tarjetas {
        padding-left: 30px;
        padding-right: 30px;
    }

    /* Footer */
    .contenedor-footer-pie-final {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* =====================================================
   RESPONSIVE — TABLET (max 1024px)
===================================================== */
@media (max-width: 1024px) {

    /* ---- Header ---- */
    .contenedor-header-contacto {
        font-size: 12px;
        padding: 4px 10px;
    }

    .contenedor-header-menu-buscador-izquierdo {
        width: 30%;
        min-width: 120px;
    }

    .contenedor-header-menu-buscador-derecho {
        width: 70%;
        flex-wrap: wrap;
        gap: 4px;
    }

    .contenedor-header-menu-buscador-izquierdo img {
        max-height: 60px;
    }

    .menu-principal li a {
        padding: 6px 8px;
        font-size: 13px;
    }

    .contenedor-header-menu-buscador-derecho input {
        width: 110px;
        font-size: 12px;
    }

    /* ---- Footer pie ---- */
    .contenedor-footer-pie-final {
        padding-left: 30px;
        padding-right: 30px;
        gap: 30px;
    }

    /* ---- Hero ---- */
    .contenedor-main-carrusel {
        padding: 30px 20px;
    }

    .contenedor-main-carrusel-izquierda {
        padding-left: 10px;
    }

    /* ---- Ofrecemos ---- */
    .contenedor-main-ofrecemos-tarjetas {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .contenedor-main-ofrecemos {
        padding-top: 50px;
    }

    /* ---- Galería imágenes ---- */
    .imagenes img {
        width: 100%;
        max-width: 100%;
        height: 180px;
    }

    .imagenes img:hover {
        height: 200px;
    }

    /* ---- Ventajas: 3 columnas ---- */
    .contenedor-ventajas-grid {
        grid-template-columns: repeat(3, 1fr);
        padding-top: 60px;
    }

    .contenedor-ventajas {
        padding: 60px 40px;
    }

    /* ---- Galería simple/medio/complejo ---- */
    .simple,
    .medio,
    .complejo {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ---- Tarjetas catálogo y servicios ---- */
    .contenedor-tarjetas {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    /* ---- Nosotros ---- */
    .mapa iframe {
        width: 100%;
        height: 400px;
    }

    .video {
        width: 100%;
        height: 400px;
        margin-right: 0;
        padding: 10px;
    }

    .foto img {
        width: 100%;
        height: auto;
        margin-left: 0;
    }

    /* ---- Noticias ---- */
    .rejilla-noticias-secundarias {
        grid-template-columns: repeat(2, 1fr);
    }

    .noticia-destacada-imagen {
        width: 280px;
    }

    /* ---- Modal galería ---- */
    .modalDialog>div {
        flex-direction: column;
    }

    .modalDialog>div .parte-izquierda-modal {
        width: 100%;
        min-height: 200px;
    }
}


/* =====================================================
   RESPONSIVE — TABLET PEQUEÑO (max 850px)
===================================================== */
@media (max-width: 850px) {

    .contenedor-main-ofrecemos {
        padding-top: 40px;
    }

    .contenedor-main-ofrecemos-tarjetas {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .contenedor-main-carrusel-izquierda {
        padding-left: 0;
    }

    .contenedor-main-carrusel {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .contenedor-main-carrusel-derecha {
        width: 100%;
    }
}

/* =====================================================
   RESPONSIVE — MÓVIL (max 768px)
===================================================== */
@media (max-width: 768px) {

    .contenedor-header-contacto {
        font-size: 11px;
        padding: 4px 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        line-height: 1.3;
    }

    /* Menú y logo apilados */
    .contenedor-header-menu-buscador {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 10px;
    }

    .contenedor-header-menu-buscador-izquierdo,
    .contenedor-header-menu-buscador-derecho {
        width: 100%;
        justify-content: center;
    }

    /* Menú en columna */
    .contenedor-header-menu-buscador-derecho ul {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .menu-principal ul,
    li {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contenedor-header-menu-buscador-derecho input {
        width: 90%;
        max-width: 300px;
    }

    /* ---- Footer contacto ---- */
    .contenedor-footer-contatactanos {
        padding: 40px 20px;
    }

    .contenedor-footer-contatactanos h2 {
        font-size: 26px;
    }

    .contenedor-footer-contatactanos button {
        display: block;
        width: 100%;
        margin-top: 15px;
    }

    .llamanos {
        margin-right: 0;
    }

    /* ---- Footer pie ---- */
    .contenedor-footer-pie-final {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .contenedor-footer-pie-final-izquierda-carrusel {
        width: 100%;
        max-width: 300px;
        height: 220px;
    }

    /* ---- Inicio: hero ---- */
    .contenedor-main-carrusel {
        flex-direction: column;
        padding: 30px 16px;
        gap: 30px;
    }

    .contenedor-main-carrusel-izquierda {
        padding-left: 0;
        width: 100%;
    }

    .contenedor-main-carrusel-derecha {
        width: 100%;
    }

    .contenedor-main-carrusel-izquierda-botones {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contenedor-main-carrusel-izquierda-botones button {
        width: 100%;
        max-width: 280px;
        margin-top: 15px;
    }

    .contenedor-main-carrusel-izquierda-datos-empresa {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* ---- Datos básicos ---- */
    .contenedor-main-datos-basicos {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* ---- Ofrecemos ---- */
    .contenedor-main-ofrecemos {
        padding-top: 50px;
        font-size: 20px;
    }

    .contenedor-main-ofrecemos-tarjetas {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        padding-bottom: 60px;
    }

    /* ---- Galería trabajos ---- */
    .contenedor-main-Galeria-trabajos-datos {
        padding: 40px 16px;
        font-size: 16px;
    }

    .imagenes {
        grid-template-columns: 1fr;
        padding-top: 30px;
    }

    .imagenes img {
        width: 100%;
        height: 200px;
    }

    .imagenes img:hover {
        width: 100%;
        height: 220px;
    }

    /* ---- Ventajas ---- */
    .contenedor-ventajas {
        padding: 50px 16px;
        font-size: 18px;
    }

    .contenedor-ventajas-grid {
        grid-template-columns: 1fr;
        padding-top: 30px;
        gap: 15px;
    }

    /* ---- Galería (simple/medio/complejo) ---- */
    .simple,
    .medio,
    .complejo {
        grid-template-columns: 1fr;
    }

    .imagen-galeria {
        width: 90%;
        height: 220px;
    }

    .imagen-galeria:hover {
        width: 95%;
        height: 240px;
    }

    /* ---- Catálogo / Servicios ---- */
    .contenedor-tarjetas {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .cabecera-producto h1,
    .cabecera-servicio h1 {
        font-size: 1.8rem;
    }

    /* ---- Nosotros ---- */
    .seccion-nosotros {
        padding: 3rem 1.25rem 4rem;
    }

    .bloque-texto h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        padding-left: 0;
    }

    .seccion-detalles {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding: 0 1rem 2rem;
    }

    .mapa {
        padding: 1rem;
    }

    .mapa iframe {
        width: 100%;
        height: 280px;
    }

    .video {
        width: 100%;
        height: 220px;
        margin-right: 0;
        padding: 8px;
        border-radius: 10px;
    }

    .foto img {
        width: 100%;
        height: auto;
        margin-left: 0;
        border-radius: 10px;
    }

    /* ---- Contacto ---- */
    .cabecera-contacto {
        padding: 2.5rem 1.25rem 3.5rem;
    }

    .contenedor-contacto {
        padding: 0 1rem 2rem;
        margin-top: -1rem;
    }

    .tarjeta-contacto {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* ---- Noticias ---- */
    .cabecera-noticias {
        padding: 2.5rem 1.25rem 3.5rem;
    }

    .seccion-noticias {
        padding: 0 1rem 2rem;
        margin-top: -1rem;
    }

    .noticia-destacada {
        flex-direction: column;
    }

    .noticia-destacada-imagen {
        width: 100%;
        height: 200px;
    }

    .noticia-destacada-contenido {
        padding: 1.25rem 1.5rem;
    }

    .noticia-destacada-titulo {
        font-size: 1.1rem;
    }

    .rejilla-noticias-secundarias {
        grid-template-columns: 1fr;
    }

    /* ---- Modal galería ---- */
    .modalDialog>div {
        flex-direction: column;
        width: 95%;
    }

    .modalDialog>div .parte-izquierda-modal {
        width: 100%;
        min-height: 180px;
    }

    .modalDialog>div .parte-derecha-modal {
        padding: 1.5rem 1.25rem;
    }

    /* ---- Modal noticias ---- */
    .modal {
        max-width: 100%;
        border-radius: 12px;
    }

    .modal-cuerpo {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .modal-pie {
        flex-direction: column;
    }

    .modal-btn-principal,
    .modal-btn-cerrar {
        width: 100%;
        text-align: center;
    }
}

/* =====================================================
   RESPONSIVE — MÓVIL PEQUEÑO (max 480px)
===================================================== */
@media (max-width: 480px) {

    .contenedor-footer-contatactanos h2 {
        font-size: 20px;
    }

    .contenedor-main-carrusel {
        padding: 20px 12px;
    }

    .contenedor-ventajas-grid {
        grid-template-columns: 1fr;
    }

    .noticia-destacada-titulo {
        font-size: 1rem;
    }

    .cabecera-producto h1,
    .cabecera-servicio h1 {
        font-size: 1.5rem;
    }

    .bloque-texto h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .caja-info h2 {
        font-size: 1.2rem;
    }
}

/*
Ultima version 15/05/2026
*/