* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #e9e9e9;
    color: #111;
    font-family: 'Oswald', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background-color: rgba(0, 77, 48, 0.88);
    z-index: 1000;
}

.logo-menu img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.menu a {
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: 0.3s;
}

.menu a:hover {
    color: #00c95a;
}
/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    min-height: 520px;
    width: 100%;
    overflow: hidden;
    align-items: center;
    display: flex;
    box-sizing: border-box;
}
.hero::before{
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("../img/Hero.jpeg");
    background-size: cover;
    background-position: center;

    filter: grayscale(100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(38, 38, 63, 0.62);
    z-index: 1;
}
    
.hero-contenido {
    position: relative;
    width: 100%;
    max-width: none;
    padding: 70px 5%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    box-sizing: border-box;
    z-index: 2;
}

.hero-texto {
    flex: 1;
    color: white;
    margin: 0;
    box-sizing: border-box;
    text-align: justify;
}

.hero-texto p {
    margin: 0;
    font-size: clamp(16px, 1.3vw, 24px);
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: 2px;
    
}

.hero-logo {
    flex: 1;
    text-align: center;
}

.hero-logo img {
    display: block;
    width: min(520px, 100%);
    height: auto;
    margin: 0 auto;
}

.hero-logo h1 {
    margin-top: 5px;
    font-family: Georgia, serif;
    font-size: 20px;
    letter-spacing: 3.5px;
}
/* =====================================================
   SECCIÓN INSTITUCIONAL
===================================================== */

.institucional {
    margin: 24px 35px;
}

.institucional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
}

.foto {
    min-height: 190px;
    overflow: hidden;
}

.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.foto-verde img {
    filter: grayscale(500%) sepia(50%) hue-rotate(90deg) saturate(100%);
    opacity: 0.8;
}

.texto-box {
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.texto-box h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: 2px;
}

.texto-box p {
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.45;
    text-align: justify;
    font-weight: 600;
}

.valores ul {
    columns: 2;
    padding-left: 20px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.45;
    font-weight: bold;
}
/* =====================================================
   IMAGEN GRANDE
===================================================== */

.maquinaria-grid {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-image: url("../img/Maquinaria.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.maquinaria-texto {
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;
    height: 100%;
    background: rgba(55, 55, 68, 0.78);
    padding: 30px 20px;
    display: flex;
    align-items:normal;
    color: white;
    text-align: justify;
}

.principal-grid {
    padding: 45px 35px 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.institucional-grid,
.maquinaria-grid {
    height: 100%;

}

/* =====================================================
   CERTIFICADOS
===================================================== */

.certificados {
    margin: 10px 35px 20px;
    background: white;
    position: relative;
}

.certificados h2 {
    text-align: center;
    font-size: 28px;
    letter-spacing: 3px;
    padding: 20px 5px 20px;
}

.certificados-descripcion {
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    font-weight: bold;
    text-align: center;
    margin: 0 0 35px;
    text-align: justify;
}

.certificados-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    gap: 30px;
    padding: 10px 20px;
}

.certificados-logos img {
    width: 150px;
    height: 120px;
    object-fit: contain;
}
.linea-verde {
    position: absolute;
    top: 0;
    right: 50px;
    width: 135px;
    height: 100%;
    background: rgba(110, 208, 163, 0.40);
    z-index: 10;
    pointer-events: none;
}

/* =====================================================
   UBICACIÓN + FORMULARIO
===================================================== */
.ubicacion{
    position: relative;
    
}
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ubicacion,
.formulario {
    margin: 24px 35px;
    background: white;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(1,1fr);
}

.ubicacion h2,
.formulario h2 {
    text-align: center;
    font-size: 25px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.mapa {
  position: relative;
  width: 100%;
  height: 300px;
  border: 0; 
  z-index: 1;
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.fondo-mapa {
    position: absolute;
    top: 170px;
    left: 0;
    width: 100%;
    height: 140px;
    background: #858594;
    z-index: 0;
}


/* =====================================================
   FORMULARIO
===================================================== */

.formulario form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.formulario label {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.formulario input,
.formulario textarea {
    width: 100%;
    border: 1.5px solid #111;
    padding: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    outline: none;
}

.formulario input {
    height: 35px;
}

.formulario textarea {
    height: 90px;
    resize: none;
}

.formulario input:focus,
.formulario textarea:focus {
    border-color: #00a84f;
}

.formulario button {
    width: 100px;
    margin: 12px auto 0;
    padding: 8px;
    border: 1px solid #111;
    border-radius: 6px;
    background-color: #83d8aa;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.formulario button:hover {
    background-color: #00a84f;
    color: white;
}
/* =====================================================
   DECORACION
===================================================== */

.dato-decoracion{
    position: relative;
    display: flex;
    width: 80px;
    height: 180px;
    
}

/* =====================================================
   Primer elemento verde
===================================================== */

.dato-decoracion::before{
    content: "";
    position: absolute;
    inset: 0;
    
    width: 200px;
    height: 100%;
    background: #00c95a;

    clip-path: polygon(
        0 0,
        60% 0,
        35% 35%,
        80% 100%,
        0 100%
    );
    z-index: 0;
}

/* =====================================================
   segundo elemento negro
===================================================== */
.dato-decoracion::after {
    content: "";
    position: absolute;

    width: 50px;
    height: 150%;

    margin-left: 39px;
    top: -20px;

    background: #303236;
    transform:skewX(-27deg);
    z-index: 1;
}
/* =====================================================
   Triangulo blanco 
===================================================== */
.triangulo-banco {
    position: absolute;

    width: 50px;
    height: 35%;

    left: 3px;
    bottom: 0;

    background: white;

    clip-path: polygon(
        63% 0%,
        100% 100%,
        0% 100%
    );
    transform:rotate(8deg);
    transform: translateY(6px);

    z-index: 2;
}

/* =====================================================
   DATOS DE CONTACTO
===================================================== */

.datos-contacto {
    display: grid;
    padding: 20px 35px 40px;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dato {
    position: relative;
    width: auto;
    background: white;
    overflow: hidden;
    display:flex;
    text-align: center;
}

.dato-telefono {
    grid-column: 1 / 3;
    width: 50%;
    justify-self: center;
    text-align: center;
}

.dato-contenido {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 90px;
    align-items:end;
    padding: 20px 25px;
}
.dato-texto{ 
    font-family: Arial, sans-serif;
    font-size: 13px;
    color:#555;
    transform: translateY(15px);
    transform: translateX(20px);
    
}

.dato-icono {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 70px;
    height: 55px;

    color: #555;
    text-align: center;
    transform: translateX(30px);
}

.dato-icono svg {
    width: 60px;
    height: 60px;

    fill: none;
    stroke: #555;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translate(22px);

}


.dato-contenido span {
    grid-column: 2;
    position: relative;
    top: -25px;
    text-align: center;
    font-size: 15px;
    color: #555;
    transform: translateX(-5px);
}

.dato-contenido img {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    width: 150%;
    height: 100%;
    transform: translateY(15px);
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
    min-height: 180px;
    padding: 60px 10% 25px;
    background-image:
        linear-gradient(
            rgba(55, 54, 73, 0.80),
            rgba(55, 54, 73, 0.80)
        ),
        url("../img/Hero.jpeg");

    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.footer p {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 1px;
    margin-bottom: 20px;
    flex: 1;
    margin: 0;
    box-sizing: border-box;
    text-align: justify;
}

.footer .copyright {
    margin-top: 25px;
    font-size: 10px;
    text-align: center;
}
/* =====================================================
   RESPONSIVE - CELULAR
===================================================== */

@media (max-width: 600px) {

    /* ==============================
       HEADER
    ============================== */

    .header {
        height: auto;
        min-height: 65px;
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .menu a {
        font-size: 9px;
    }


    /* ==============================
       HERO
    ============================== */

    .hero {
        min-height: 650px;
    }

    .hero-contenido {
        margin-top: 100px;
    }

    .hero-texto p {
        font-size: 15px;
        line-height: 1.4;
    }

    .hero-logo h2 {
        font-size: 17px;
    }


    /* ==============================
       VISIÓN / MISIÓN / VALORES
    ============================== */

    .principal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }

    .institucional-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }


    /* ==============================
       IMAGEN DE MAQUINARIA
    ============================== */

    .maquinaria-grid {
        width: 100%;
        height: 400px;
        min-height: 400px;

        position: relative;

        background-size: cover;
        background-position: center;
    }


    /* ==============================
       TEXTO SOBRE MAQUINARIA
    ============================== */

    .maquinaria-texto {
        position: absolute;

        top: 0;
        right: 0;
        left: auto;

        width: 45%;
        height: 100%;

        padding: 20px;

        box-sizing: border-box;

        display: flex;
        align-items: center;
    }

    .maquinaria-texto p {
        font-size: 11px;
        line-height: 1.5;
    }


    /* ==============================
       CERTIFICADOS
    ============================== */

    .certificados {
        width: 95%;
        margin: 20px auto;
        padding: 25px 15px;
    }

    .certificados-logos {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .certificados-logos img {
        width: 110px;
        height: 90px;
    }


    /* ==============================
       UBICACIÓN + FORMULARIO
    ============================== */

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* ==============================
       DATOS DE CONTACTO
    ============================== */
    .datos-contacto {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .dato {
        height: 110px;
    }

    .dato-telefono {
        grid-column: auto;
        grid-row: auto;

        width: 100%;
    }
    
    .dato-contenido {
        padding-left: 70px;
        grid-template-columns: 1fr 80px;
    }

    .dato-contenido strong {
        font-size: 12px;
    }

    .dato-contenido span {
        font-size: 17px;
    }

    /* ==============================
       FOOTER
    ============================== */

    .footer {
        padding: 30px 20px;
    }

}
