@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --padding-container: 100px 0;
    --color-title: #679211;
    --color-subtitle: #FBBC39;
}

body {
    font-family: 'Poppins', sans-serif;
}

a {
    color: inherit; 
    text-decoration: none;
}

#servicios a {
    color: black;
    text-decoration: none;
    font-weight: bold; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

.hero {
    background-image: url(../images/fondo.jpg);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 20vh;
    display: flex;
    align-items: center;
}

/* Hero container */

.hero__container {
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding-bottom: 100px;
    text-align: center;
}

.cta {
    display: inline-block;
    background-color: #FBBC39;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}

/* Nav */

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__title {
    padding-top: 10px;
    width: 300px;
}

.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}

.nav__items {
    list-style: none;
}

.nav__links {
    font-size: 20px;
    font-weight: 600;
    color: #679211;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav__links:hover{
    color: #FBBC39;
}

.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav__img {
    display: block;
    width: 30px;
}


.nav__close {
    display: var(--show, none);
}

/* SLIPER */
/* Testimony */

.testimony {
    background-color: #e5e5f7;
}

.testimony__container {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 1em;
    align-items: center;
}

.testimony__body {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}

.testimony__body--show {
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.testimony__img {
    width: 100%;
    height: auto;
    max-height: 500px; /* puedes ajustar el alto máximo si quieres */
    object-fit: cover;
    border-radius: 0; /* quitamos forma redonda */
}

.testimony__arrow {
    width: 90%;
    cursor: pointer;
}

/* Intermedio */

.inter{
    padding:  15px 0;
    background-color: #ecb910;
    position: relative;
}

/* Inicio IHF Presentación */
/* Knowledge */

.knowledge {
    background-color: #e5e5f7;
    background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: hidden;
}

.knowledge__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}

.knowledge__picture{
    max-width: 600px;
}

.knowledge__paragraph{
    line-height: 1.7;
    margin-right: 40px;
    margin-bottom: 40px;
    text-align: justify;
}

.knowledge__img{
    width: 100%;
    display: block;
}

/* Lista Servicios */
.services{
    background-image: linear-gradient(
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.8)),
        url(../images/portada-grupo-grasa.jpeg);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        padding: 60px 0;
}

.services-content{
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-content h1{
    margin-top: -40px;
    font-size: 60px;
    font-weight: bold;
    color: #ecb910;
    margin-bottom: 30px;
}

.lista-services{
    color: #e5fcef;
    list-style: none;
    margin-top: 10px;
    max-width: 600px;
    width: 100%;
    padding: 0 15px;
}

.lista-services li{
    font-size: 25px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.lista-services li::before{
    content: "▶";
    color: #ecb910;
    margin-right: 20px;
    font-size: 18px;
}

.lista-services li a {
    color: #e5fcef; /* Blanco verdoso */
    text-decoration: none; /* Sin línea debajo */
    display: inline-block;
    width: 100%;
}

.lista-services li a:hover {
    color: #ecb910; /* Cambia de color al pasar el mouse */
}

.boton-services {
    display: block; 
    background-color: #FFC107;
    color: #e5fcef;
    padding: 12px 20px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    margin: 30px auto -10px auto; /* Centra horizontalmente */
    text-align: center;
    width: fit-content;
}

.boton-services:hover{
    background-color: #E0A800;
}

/* SERVICIOS*/
/* About */

.about {
    text-align: center;
}

.subtitle {
    color: var(--color-title);
    font-size: 60px;
    margin-bottom: 25px;
}


.about__paragraph {
    line-height: 1.7;
}

.about__main {
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}

.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about__icon {
    width: 100px;
}

/* Formulario */

.formularios{
    background-image: linear-gradient(
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.2)),
    url(../images/IMG_3257.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.int_formulario{
    margin-top: 40px;
    display: flex;
    width: 700px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.info_form{
    width: 60%;
    background: #F7C948;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info_form h2{
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 100px;
}

.info_form p{
    font-size: 16px;
    margin-bottom: 100px;
}

.whatsapp_form{
    font-weight: bold;
    color: #0ba70b;
    display: flex;
    align-items: center;
}

.whatsapp_form img{
    width: 20px;
    margin-left: 5px;
}

.formulario{
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.formulario form .campo, textarea{
    width: 100%;
    padding: 15px 10px;
    font-size: 14px;
    border: 1px solid #F7C948;
    margin-bottom: 10px;
    border-radius: 3px;
    outline: 0px;
}

.formulario form textarea{
    max-width: 400px;
    min-width: 400px;
    min-height: 150px;
    max-height: 150px;
}

.checkbox{
    display: flex;
    align-items: center;
    font-size: 25px;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox input{
    width: 16px;
    height: 16px;
    accent-color: #F7C948;
}

.checkbox a{
    color: #F7C948;
    font-size: 18px;
    cursor: pointer;
}

.boton_form{
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.boton_form img {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease;
}

.boton_form:hover img {
    transform: scale(1.1);
}

/* Nosotros Mision y Vision */

.general{
    display: flex;
}

.general-1{
    width: 50%;
    padding: 100px 100px 100px 100px;
    background-color: #a1c557;
}

.general-2{
    background-image: linear-gradient(
    rgba(247,201,72,0.82),
    rgba(247,201,72,0.82)),
    url(images/bg1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 50%;
}

.general-2 h2{
    text-align: center;
    font-size: 150px;
    line-height: 300px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: -100px;
}

.general-2 h3{
    text-align: center;
    font-size: 50px;
    line-height: 250px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.general-1 h2{
    font-size: 90px;
    line-height: 70px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.general-1 p{
    font-size: 20px;
    color: #000000;
    text-align: justify;
}

/* CONTACTENOS INFO */

.info_contac {
    background-image: linear-gradient(
        rgba(196, 191, 191, 0.849),
        rgba(196, 191, 191, 0.849)),
        url(../images/IMG_3257.jpeg);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;  
}

.info{
    text-align: center;
}

.info h2{
    font-size: 75px;
}

.info__paragraph {
    line-height: 1.7;
}

.info__main {
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}

.info__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.info__icon {
    width: 50px;
}

/* Proyectos */
.proyectos {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
.proyectos h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #679211;
}
  
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
  
.proyecto-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
  
.proyecto-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.proyecto-card .proyecto-info h3 {
    color: #679211; 
    font-weight: bold; 
}

.proyecto-card .proyecto-info h3:hover {
    color: #4c6b0e; 
    cursor: pointer;
}
.proyectos.fade-out {
    opacity: 0;
    visibility: hidden;
}

.imagen-container {
    position: relative;
    overflow: hidden;
}
  
.imagen-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}
  
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Color oscuro semitransparente */
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
  
.imagen-container:hover img {
    transform: scale(1.05); /* Pequeño zoom */
}
  
.imagen-container:hover .overlay {
    opacity: 1;
}
  
.proyecto-info {
    padding: 20px;
}
  
  .proyecto-info h3 {
    margin-bottom: 10px;
    color: #005bab;
    font-size: 1.5rem;
  }
  
  .proyecto-info p {
    color: #555;
    font-size: 1rem;
  }

/* Detalle Proyectos */

.detalle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  .detalle-imagen-principal {
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
  }

  .detalle-imagen-principal img {
    width: 100%;
    height: auto;
    object-fit: contain; 
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .detalle-texto {
    margin-bottom: 40px;
  }
  
  .detalle-texto h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #679211;
    margin-top: 40px;;
  }
  
  .detalle-texto p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000;
  }
  
  .detalle-galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
  }
  
  .detalle-galeria img {
    width: 250px; 
    height: 180px;
    object-fit: cover; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease;
  }
  
  .detalle-galeria img:hover {
    transform: scale(1.05); 
  }

  .boton-regresar {
    display: inline-block;
    background-color: #FFC83D; 
    color: white; 
    padding: 10px 30px;
    border: none;
    border-radius: 30px; 
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 40px;
  }
  
  .boton-regresar:hover {
    background-color: #e6b635;
  }

/* Footer */

footer{
    background-color: #6D6666;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-footer{
    width: 300px;
    filter: invert(100%);
    transition: 0.5s;
}

.logo-footer:hover{
    filter: grayscale(0%);
}

.info_footer{
    max-width: 400px;
}

.info_footer h3{
    color: #FFC107;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.super{
    vertical-align: super;
    font-size: 0.8em;
}

.info_footer p{
    font-size: 14px;
    margin-bottom: 3px;
}

.redes{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.redes h4{
    color: #FFC107;
    font-size: 18px;
    margin-bottom: 5px;
}

.iconos{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.facebook{
    width: 33px;
    height: 33px;
}

.instagram{
    margin-top: -10px;
    width: 55px;
    height: 55px;
}

.twitter{
    width: 35px;
    height: 35px;
}

.whatsapp{
    margin-left: 5px;
    margin-top: -3px;
    width: 40px;
    height: 40px;
}

.facebook, .instagram, .twitter, .whatsapp {
    cursor: pointer;
}

#proy2{
    display: none;
}

/* Media queries */

@media (max-width:1919px){

}

@media (max-width:1439px){

}

@media (max-width:1023px){

}

@media (max-width:800px){

    .nav__menu{
        display: block;
    }

    .nav__link--menu{
        position: fixed;
        background-color: #000;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }

    .nav__link--show{
        --show: block;
        opacity:1 ;
        pointer-events: unset;
    }

    .nav__close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
    }

    /* Inicio IHF */

    .knowledge__container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }

    .knowledge__picture{
        grid-row: 1/2;
        justify-self: center;
    }

    .knowledge__paragraph{
        margin-right: 0;
    }

    .knowledge a{
        font-size: 18px;
        width: 80%;
        margin: 20px auto 0 auto;
        text-align: center;
    }

    /*Lista Servicios */

    .services-content{
        max-width: 100%;
        margin: 0  auto;
        padding: 0 20px;
    }

    .services-content h1{
        font-size: 45px;
        text-align: center;
        margin-bottom: 20px;
        margin-top: 0;
        display: block;
    }

    .lista-services li{
        padding-left: 20%;
        font-size: 18px;
    }

    .lista-services li::before {
        font-size: 16px;
        margin-right: 8psx;
    }
    
    .boton-services {
        font-size: 18px;
        width: 40%;
        margin: 20px auto 0 auto; /* Centrado */
        text-align: center;
        display: block;
    }

    /*Servicios */

    .about__main{
        gap: 2em;
    }

    .about__icons:last-of-type{
        grid-column: 1/-1;
    }

    .about h2{
        font-size: 40px;
        margin-top: -30px;
        margin-bottom: -40px;
    }

    /*Formulario */

    .int_formulario{
        width: 95%;
    }

    .info_form{
        width: 43%;
    }

    .info_form h2{
        font-size: auto;
        text-align: left;
    }

    .info_form p{
        font-size: auto;
    }

    .whatsapp_form{
        font-size: auto;
    }

    .whatsapp_form img{
        width: 25px;
    }

    .formulario{
        padding-left: 10px;
        width: 60%;
    }

    .formulario form textarea{
        max-width: auto;
        min-width: 150px;
    }

    .checkbox a{
        font-size: auto;
    }

    .boton_form img{
        padding-top: 10px;
        padding-left: 0;
        width: 35px;
    }

    /* Mision y Vision */

    .general-1{
        padding: 30px 30px 30px 30px;
    }

    .general-1 h2{
        text-align: center;
        font-size: 45px;
    }

    .general-1 p{
        font-size: 10px;
    }

    .general-2 h2{
        margin-top: -70px;
        font-size: 100px;
    }

    .general-2 h3{
        font-size: 25px;
        line-height: 50px;
    }

    /* Contactenos */

    .info h2{
        font-size: 55px;
        margin-top: -40px;
        margin-bottom: -40px;
    }

    .info__main{
        gap: 2em;
    }

    .info__icons:last-of-type{
        grid-column: 1/-1;
    }

    /*Footer */

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-footer {
        width: 200px;
    }

    .info {
        max-width: 100%;
    }

    .info h3, .info p {
        font-size: 16px;
    }

    .redes {
        margin-top: 10px;
    }

    .detalle-imagen-principal {
        padding: 0 10px; 
    }

    .detalle-galeria img {
        width: 60%; 
        height: auto; /* Mantienen proporción */
    }

}

@media (max-width:600px){

    /*Formulario */

    .info_form h2{
        font-size: 19px;
        text-align: left;
    }

    .info_form p{
        font-size: 15px;
    }

    .whatsapp_form{
        font-size: 15px;
    } 

    .checkbox a{
        font-size: 12px;
    }

    /*Lista Servicios*/
    .lista-services{
        padding-left: 10px;
    }

    .boton-services{
        width: 50%;
    }

    /*Mision y Vision*/
    .general-1{
        padding: 30px 30px 30px 30px;
    }

    .general-1 h2{
        text-align: center;
    }
    .general-2 h2{
        margin-top: -60px;
        font-size: 100px;
    }
}

@media (max-width:424px){

    .subtitle{
        font-size: 1.8rem;
    }

    .testimony{
        --padding-container: 60px 0;
    }

    .testimony__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony__arrow{
        width: 100%;
    }

    .testimony__course{
        margin-top: 15px;
    }

    /*Lista Servicios*/

    .services-content {
        max-width: 100%; /* que use más espacio en pantallas pequeñas */
        padding-left: 5px;
    }

    .lista-services {
        padding-left: 0; /* sin extra espacio */
    }

    .lista-services li {
        justify-content: flex-start; /* aseguramos que todo vaya a la izquierda */
    }

    .lista-services li::before {
        margin-right: 8px;
    }
    
    .boton-services {
        width: 60%;
    }

    /*Formulario */

    .info_form h2{
        font-size: 16px;
    }

    .info_form p{
        font-size: 12px;
    }

    .whatsapp_form{
        font-size: 12px;
    } 

    .checkbox a{
        font-size: 10px;
    }

    /*Mision y Vision*/
    .general-1{
        padding: 20px 20px 20px 20px;
    }

    .general-1 h2{
        font-size: 40px;
    }

    .general-2 h2{
        margin-top: -75px;
        font-size: 90px;
    }

    /*Contactanos*/
    .info h2{
        font-size: 40px;
    }

}

@media (max-width:374px){

    /*Hero*/
    .nav__title{
        width: 250px;
        padding-top: 5px;
    }

    /*Formulario */

    .formulario form .campo, textarea {
        font-size: 12px;
    }

    .info_form h2{
        font-size: 14px;
    }

    .info_form p{
        font-size: 10px;
    }

    .whatsapp_form{
        font-size: 10px;
    } 

    .checkbox a{
        font-size: 9px;
    }

    /*Mision y Vision*/
    .general-1 h2{
        font-size: 35px;
    }

    .general-1 p{
        font-size: 9px;
    }

    .general-2 h2{
        font-size: 80px;
    }

    .general-2 h3{
        font-size: 22px;
    }

    /*Contactanos*/
    .info h2{
        font-size: 35px;
    }
}

@media (max-width:340px){

    /*Mision y Vision*/
    .general-1 p{
        font-size: 8px;
    }

    /*Footer*/
    .footer{
        padding: 0;
        align-items: center;
    }
}

.lista-services li a,
.lista-services li a:visited {
    color: #e5fcef !important;
    text-decoration: none !important;
}