body {
    margin: 0;
    font-family: Roboto, sans-serif;
}


.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}
.logo img {
    max-height: 50px;
}
.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.menu ul li {
    margin: 0 25px;
}
.menu ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}
.menu ul li a:hover {
    color: #006F64;
    text-decoration: underline;
}
.social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}
.social img {
    max-height: 35px;
}
.iconos {
    margin-left: 20px;
    width: 40px;
    height: auto;
}

.hamburger-menu {
    display: none; 
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    padding-top: 60px;
}
.modal-contenido {
    background-color: #fefefe;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 550px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}



@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.cerrar-btn {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 18px;
}

.cerrar-btn:hover, .cerrar-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}
.modal-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.columna-texto {
    flex: 3;
    padding-right: 10px;
    text-align: justify;
}
.columna-texto h3 {
    margin-top: 0;
    padding-top: 0;
}
.columna-imagen {
    flex: 1;
    text-align: center;
}
.imagen-modal {
    padding-top: 10px;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
#entendidoBtn {
    background-color: #00737C;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 20px;
    font-size: 1em;
    transition: background-color 0.3s;
}
#entendidoBtn:hover {
    background-color: orange;
}



.banner {
    position: relative;
    width: 100%;
    height: 535px;
    overflow: hidden;
}
.banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



.main{
    width: 1000px;
    margin: 50px auto;
    text-align: center;
}
.main p{
    margin: auto;
    text-align: justify;
    font-family: "merriweather";
    font-size: 18px;
    line-height: 2;
}
.main a button{
    background-color: #006F64;
    color:white;
    font-family: sans-serif;
    font-size: 16px;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
}
.main a button:hover{
    background-color: orange;
}



.lineasdenegocio {
    background-image: url("/media/Media/FONDO.png");
    background-size: cover;
    padding: 20px 120px;
    min-height: 1500px;
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lineasdenegocio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}
.lineasdenegocio h1{
    font-family: "montserrat";
    font-size: 25px;
    text-align: center;
    color: #006F64;
    z-index: 1;
}
.lineasdenegocio h2{
    font-family: "montserrat";
    font-size: 45px;
    text-align: center;
    color: black;
}
.descripcionnegocio{
    font-family: "Roboto";
    font-size: 20px;
    font-weight: bold;
    text-align: justify;
    line-height: 2;
}
.lineasdenegocio h1,h2,p,div, button{
    position: relative;
    z-index: 2;
}

.contenedor1, .contenedor3{
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    align-items: center;
}
.contenedor2{
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: center;
}
.columna1, .columna4, .columna5{
    grid-column: 1;
}
.columna1 img{
    width: 100%;
    height: 280px;
    border-radius: 10px;
}
.columna3 img, .columna5 img{
    width: 100%;
    height: 300px;
    border-radius: 10px;
}
.columna2, .columna3, .columna6{
    grid-column: 2;
}
.columna2 p, .columna4 p, .columna6 p{
    font-family: "merriweather";
    font-size: 18px;
    text-align: justify;
    line-height: 2;
}
.lineasdenegocio a button{
    background-color: #006F64;
    color:white;
    font-family: sans-serif;
    font-size: 16px;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
}
.lineasdenegocio a button:hover{
    background-color: orange;
}



.clientes {
    background-image: url("/media/Media/clinetes.png");
    background-size: cover;
    background-position: center;
    height: 600px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.eco, .eco2, .eco3{
    width: 1000px;
    padding-bottom: 70px;
}
.clientes h2{
    font-family: "montserrat";
    font-size: 45px;
    text-align: center;
    color: #FFB347;
}
.clientes p{
    font-family: "merriweather";
    font-size: 18px;
    line-height: 2;
    text-align: justify;
    color: white;
}
.logosclientes{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    justify-content: center;
    align-items: center;
}
.orv{
    grid-column: 1;
    width: 250px;
    height: 50px;
    margin: auto;
}
.per{
    grid-column: 2;
    width: 280px;
    height: 80px;
    margin: auto;
}
.ptp{
    grid-column: 3;
    width: 250px;
    height: 40px;
    margin: auto;
    margin-top: 30px;
}
.petrex{
    grid-column: 1;
    width: 270px;
    height: 80px;
    margin: auto;
}
.toz{
    grid-column: 2;
    width: 280px;
    height: 40px;
    margin: auto;
    margin-top: 25px;
}
.stp{
    grid-column: 3;
    width: 250px;
    height: 55px;
    margin: auto;
}



.certificados{
    background-color: white;
    height: 600px;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.certificados h2{
    padding-top: 50px;
    font-family: "montserrat";
    font-size: 45px;
    text-align: center;
    color: black;
}
.certificados p{
    font-family: "merriweather";
    font-size: 18px;
    line-height: 2;
    text-align: justify;
    color: black;
}
.isos{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.a, .b, .c, .d{
    width: 200px;
    height: 200px;
}
.a{
    grid-column: 1;
}
.b{
    grid-column: 2;
}
.c{
    grid-column: 3;
}
.d{
    grid-column: 4;
}
.certificados a button{
    margin: 30px;
    background-color: black;
    color:white;
    font-family: sans-serif;
    font-size: 16px;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
}
.certificados a button:hover{
    background-color: orange;
}



.proyetos{
    background-color: black;
    height: 700px;
    padding: 20px 120px;
    position: relative;
    align-items: center;
    text-align: center;
}
.proyetos h2{
    font-family: "montserrat";
    font-size: 45px;
    text-align: center;
    color: orange;
}
.galeria {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.imagen{
    position: relative;
    width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.imagen:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.imagen:hover .image-overlay {
    opacity: 1;
}
.piefoto{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    color: white;
    text-align: center;
}
.project1, .project2, .project3{
    font-family: "merriweather";
    font-size: 18px;
    line-height: 1.5;
}
.project1{
    grid-column: 1;
}
.project2{
    grid-column: 2;
    margin-right: 30px;
}
.project3{
    grid-column: 3;
    margin-right: 20px;
}
.proyetos a button{
    margin: 30px;
    background-color: #006F64;
    color:white;
    font-family: sans-serif;
    font-size: 16px;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
}
.proyetos a button:hover{
    background-color: orange;
}



.contacto{
    height: 650px;
    padding: 20px 120px;
    position: relative;
    align-items: center;
    text-align: center;
}
.contacto h1{
    font-family: "montserrat";
    font-size: 45px;
    text-align: center;
    color: black;
}
.contenform{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.formulario{
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 8px;
    max-width: 500px;
    grid-column: 1;
}
.formulario label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 18px;
    text-align: left;
}
.formulario input, textarea {
    width: 100%;
    height: 30px;
    padding: 10px;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    font-family: "inter";
}
.formulario textarea {
    height: 100px;
    resize: none;
}
.formulario button {
    padding: 15px 20px;
    background-color: #006F64;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.formulario button:hover {
    background-color: orange;
}
.mapa{
    grid-column: 2;
    margin-top: 20px;
    width: 100%;
    height: 300px;
}



footer{
    background-image: url('/media/Media/footer.png');
    height: 450px;
    width: 100%;
    margin-top: auto;
}
.footerr{
    height: 380px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.pie img{
    padding-top: 30px;
    padding-left: 45px;
    width: 240px;
    height: 60px;
    grid-column: 1;
}
.pie h3{
    margin-top: 42px;
    margin-left: 45px;
    color: orange;
    grid-column: 1;
}
.pie p{
    color: white;
    margin-left: 45px;
    margin-top: 0;
    grid-column: 1;
}
.indice{
    padding: 25px;
    grid-column: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.indice a{
    color: white;
    text-decoration: none;
}
.indice a+a{
    margin-top: 15px;
}
.indice a:hover{
    text-decoration: underline;
}
.indice h3{
    color: orange;
}
.indice p{
    color: white;
    grid-column: 3;
}
.cont{
    grid-column: 3;
    padding: 25px;
    padding-left: 150px;
}
.cont h3{
    color: orange;
}
.sec1{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.img{
    width: 22px;
    height: auto;
    margin-right: 10px;
}
.sec1 p {
    color: white;
    margin: 0;
    font-size: 16px;
}
.sec2{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.sec2 p{
    color: white;
    margin: 0;
    font-size: 16px;
}
.sec2 img{
    width: 20px;
    height: auto;
    margin-right: 10px;
}
.cierre{
    text-align: center;
    color: white;
}
.cierre p{
    font-weight: bold;
    margin: 0;
}




@media screen and (max-width: 500px) {
    
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none; /* Esto resetea bordes en elementos como botones o inputs */
    }
    
    .header {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        padding: 10px 15px;
    }
    .logo img {
        max-height: 40px; 
    }
    .social {
        display: none; 
    }
    .hamburger-menu {
        display: block; 
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        color: #000;
        z-index: 1000; 
    }
    .menu {
        display: none; 
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        background-color: #fff; 
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 900;
        padding-bottom: 10px;
    }
    
    .menu.active {
        display: block; 
    }
    .menu ul {
        flex-direction: column; 
        text-align: center;
    }
    .menu ul li {
        margin: 10px 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
    .menu ul li:last-child {
        border-bottom: none;
    }


    .main {
        width: 90%; 
        margin: 20px auto;
        padding: 0 10px;
    }
    .main p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    
    .banner {
        height: 300px; 
    }


    .lineasdenegocio {
        padding: 20px 10px; 
        min-height: auto; 
    }
    .lineasdenegocio p{
        font-size: 16px;
    }
    .lineasdenegocio h1{
        font-size: 24px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    .lineasdenegocio h2 {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .lineasdenegocio button{
        margin-top: 15px;
    }
    .contenedor1, .contenedor2, .contenedor3 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .contenedor1, .contenedor3 {
        flex-direction: column-reverse;
    }
    .contenedor1 div[class^="columna"], .contenedor2 div[class^="columna"], .contenedor3 div[class^="columna"] {
        width: 100%;
    }
    .columna1 img, .columna3 img, .columna5 img {
        height: auto;
        max-height: 250px;
        margin-bottom: 20px;
    }
    .columna2 p, .columna4 p, .columna6 p {
        font-size: 16px;
        line-height: 1.6;
    }

    
    
    .eco, .eco2, .eco3 {
        width: 90%; 
        margin: auto;
        padding-bottom: 20px;
    }
    .clientes {
        height: auto;
        padding: 40px 10px;
    }
    .clientes h2 {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .logosclientes {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .orv, .per, .ptp, .petrex, .toz, .stp {
        grid-column: auto;
        width: 100%; 
        max-width: 150px;
        margin: auto;
        margin-top: 0;
    }


    .certificados {
        height: auto;
        padding: 40px 10px;
    }
    .certificados h2 {
        font-size: 30px;
    }
    .isos {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        justify-items: center;
    }
    .a, .b, .c, .d {
        grid-column: auto;
        width: 120px; 
        height: 120px;
    }


    .proyetos {
        padding: 20px 10px;
        height: auto;
    }
    .proyetos h2 {
        font-size: 30px;
    }
    .galeria {
        flex-direction: column; 
        align-items: center;
    }
    .imagen {
        width: 100%; 
        height: 200px;
    }
    .piefoto {
        display: block;
        padding: 10px 0;
    }
    .project1, .project2, .project3 {
        margin: 10px 0;
        font-size: 16px;
    }


    .contacto {
        height: auto;
        padding: 20px 10px;
    }
    .contacto h1 {
        font-size: 30px;
    }
    .contenform {
        grid-template-columns: 1fr;
    }
    .mapa {
        height: auto;
    }
    .mapa iframe {
        width: 100%; 
        height: 250px; 
    }
    .formulario {
        max-width: 100%;
        padding: 15px;
    }


    footer {
        height: auto; 
        padding: 20px 10px 0 10px;
    }
    .footerr {
        grid-template-columns: 1fr;
        height: auto;
    }
    .pie, .indice, .cont {
        grid-column: 1;
        padding: 15px 0;
        text-align: center;
    }
    .pie h3, .indice h3, .pie p, .cont h3 {
        margin-bottom: 15px;
        margin-left: 0;
        text-align: center;
    }
    .pie img {
        width: 150px;
        margin: 10px auto;
        padding-left: 0;
    }
    .cont {
        padding-left: 0;
    }
    .sec1, .sec2 {
        justify-content: center;
    }
    .mapa{
        display: none;
    }
    
    
    
    .modal {
        padding: 10px; /* Evita que el modal pegue a los bordes de la pantalla */
        padding-top: 30px; 
    }
    .modal-contenido {
        width: 95%;        /* Aprovecha el ancho */
        padding: 20px;     /* Reduce el padding para ganar espacio */
        margin-top: 20px;
        overflow: hidden;   /* Evita desbordes visuales */
    }
    .modal-contenido h3{
        margin-bottom: 10px;
    }
    .modal-grid {
        display: block;    /* Cambia flex por block para que el texto use todo el ancho */
    }
    .columna-texto {
        padding-right: 0;  /* Quita el padding lateral en móvil */
        text-align: left;  /* A veces el justify en pantallas muy pequeñas se ve mal */
        width: 100%;
    }
    /* ESTO ARREGLA EL EMAIL QUE SE SALE */
    .columna-texto strong {
        display: block;      /* Lo pone en su propia línea */
        word-break: break-all; /* Rompe el email si es más ancho que el celular */
        text-align: center;
        margin: 10px 0;
        font-size: 0.9em;    /* Un poco más pequeño para que quepa mejor */
    }
    .columna-imagen{
        display: none;
    }
}