

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
:root {
  --verde-principal: #00a86b; 
  --verde-oscuro: #007a4d;
  --gris-suave: #f8f9fa;
}

body{
  font-family: 'Poppins', sans-serif;
  background:#ececec;
  color:#111;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px; 
    }

body{
  background:#f7f7f7;
  color:#111;
  line-height:1.6;
  overflow-x:hidden;
}

/* HR */

.header{
    width:100%;
    height:90px;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 5%;
    position:fixed;
    top:0;
    left:0;
    z-index:9999;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.logo{
    width:90px;
}

.logo img{
    width:100%;
}

/* MENU */

.menu-toggle{
    display:none;
    font-size:2rem;
    cursor:pointer;
    color:#1ca701;
}

.navbar a {
    text-decoration: none;
    color: #1ca701;
    font-weight: 600;
    position: relative;
    padding: 5px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: black;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1ca701;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar a:hover::after {
    transform: scaleX(1);
}

/* REDES */

.socials{
    display:flex;
    gap:10px;
}

.socials a{
    width:22px;
    height:22px;
    border-radius:50%;
    background:#1ca701;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size: 0.75rem; 
    transition: transform 0.3s ease, background 0.3s ease;
}


.socials a:hover{
    transform: scale(1.15);
    background: #000000;
}


h1{
  font-size: 4rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif; 

  color: white;
}

img{
  width:100%;
  display:block;
  object-fit:cover;
}

section{
  padding:90px 8%;
  scroll-margin-top:100px;
}

h2{
  font-weight:800;
  color:#1ca701;
}
h3{
  font-weight:800;
  color:#0f172a;
}

p{
  color:#666;
  font-size:16px;
}

.section-title{
  font-size:48px;
  margin-bottom:15px;
}

.section-subtitle{
  margin-bottom:60px;
  max-width:700px;
  margin-inline:auto;
}

/* HERO */

.hero{
  width:100%;
  min-height:100vh;

  background-image:url(../Galeria/Imagenes/Banner1-1-3.jpg);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;

  position:relative;

  display:flex;
  justify-content:center;
  align-items:center;

  padding:120px 8%;
}

.overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.45);
  top:0;
  left:0;
}

.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
  max-width:800px;
}

.hero-content h1{
  font-size:72px;
  color:#fff;
  margin-bottom:25px;
  line-height:1.1;
}

.hero-content p{
  color:#f1f1f1;
  font-size:18px;
}

.services{
  background:#fff;
  text-align:center;
}

.service-container{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
  gap:30px;
}

.service-box{
  background:#f9fafb;
  padding:40px 30px;
  border-radius:20px;
  transition:0.3s;
}

.service-box:hover{
  transform:translateY(-8px);
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.service-box i{
  font-size:45px;
  color:#1ca701;
  margin-bottom:20px;
}

.service-box h3{
  font-size:26px;
  margin-bottom:15px;
}

.about{
  background:#1ca701;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:60px;
  flex-wrap:wrap;
}

.about-img{
  flex:1;
  min-width:300px;
}

.about-img img{
  border-radius:25px;
  object-fit:cover;
}

.about-text {
  flex:1;
  min-width:300px;
  color: #feffff;
}
.about-text p{
  color: #eef5ff;
  
}

.about-text span{
  color:#eef5ff;
  font-weight:bold;
  text-transform:uppercase;
  letter-spacing:1px;
}

.about-text h2{
  font-size:52px;
  line-height:1.1;
  margin:20px 0;
  color: #eef5ff;
}

.btn-catalogo {
    display: inline-block; 
    margin-top: 40px;
    padding: 15px 40px;
    border: none;
    background: white;
    color: #1ca701;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none; 
    transition: background 0.3s, transform 0.3s;
}

.btn-catalogo:hover {
  color: #2f3030;
    background: #baf5ba;
    transform: translateY(-2px);
}

.mission{
  background:#fff;
  text-align:center;
}

.mission-container{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:30px;
  margin-top:50px;
}

.mission-box{
  background:#f8fafc;
  padding:40px 30px;
  border-radius:20px;
  transition:0.3s;
}

.mission-box:hover{
  transform:translateY(-8px);
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.mission-box i{
  font-size:45px;
  color:#1ca701;
  margin-bottom:20px;
}

.mission-box h3{
  font-size:28px;
  margin-bottom:15px;
}

.final-section{
  background:#1ca701;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:60px;
  flex-wrap:wrap;
}

.final-text{
  color:#eef5ff;
  flex:1;
  min-width:300px;
}
.final-text p{
  color: #ececec;
}

.final-text h2{
  color: #ececec;
  font-size:52px;
  line-height:1.1;
  margin-bottom:20px;
}

.final-img{
  flex:1;
  min-width:300px;
  display:flex;
  justify-content:center;
}

.final-img img{
  max-width:550px;
  border-radius:25px;
  object-fit:cover;
}

/*==========================
==========================*/
.historia{

    width:min(1400px,90%);
    margin:auto;
    padding:80px 0;

}

.timeline{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;

}

.left h3{
    font-size:clamp(2rem,4vw,3.2rem);
    color:#1ca701;
    font-style:italic;
    margin-bottom:15px;

}

.linea{

    width:120px;
    height:2px;
    background:#4CAF50;
    margin:25px 0;

}

.year{ 
  text-align:center; 
  font-size: 4rem; 
  color:#1ca701; 
  margin-bottom:60px; 
  font-weight:200; }

.left p{

    font-size:1.1rem;
    line-height:1.9;
    color:#555;

}


.image-card{

    width:100%;
    height:480px;

    border-radius:18px;
    overflow:hidden;
    border-radius:20px;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);

  transition: transform .5s ease, box-shadow .5s ease;

}

.image-card img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:opacity .45s ease;

}

/* BOTONES */

.btn{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:48px;
    height:48px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.45);

    color:#fff;

    font-size:1.4rem;

    cursor:pointer;

    transition:.3s;

    z-index:10;

}

.btn:hover{

    background:#1ca701;

}

.prev{

    left:18px;

}

.next{

    right:18px;

}




.miniaturas{

    margin-top:50px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));

    gap:18px;

}

.thumb{

    width:100%;
    aspect-ratio:16/9;

    object-fit:cover;

    border-radius:12px;

    cursor:pointer;

    opacity:.65;

    transition:.35s;

    border:3px solid transparent;

}

.thumb:hover{

    transform:translateY(-8px);

    opacity:1;

}

.thumb.active{

    opacity:1;

    border-color:#1ca701;

    transform:translateY(-8px);

}

/* ========================= */
/* SECCIÓN CON IMAGEN */
/* ========================= */

.imagen{

    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}



.imagen img:hover{
  transform: translateY(-15px);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

.imagen img{

    width:100%;
    max-width:600px;
    border-radius:8px;
    object-fit:cover;

  border-radius:20px;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);

  transition: transform .5s ease, box-shadow .5s ease;

}

/* Invertir columnas */

.historia-invertida .timeline{

    grid-template-columns:1fr 2px 1fr;

}

.historia-invertida .imagen{

    order:1;

}

.historia-invertida .divider{

    order:2;

}

.historia-invertida .left{

    order:3;

}

/**/

.catalogo{
  padding:80px 7%;
  text-align:center;
  background:#f5f5f5;
}

.catalogo h2{
  font-size:3rem;
  margin-bottom:50px;
}

.catalogo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.producto{
  background:#fff;
  padding:25px;
  border-radius:20px;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);

  transition: transform .5s ease, box-shadow .5s ease;
}


.producto:hover{
  transform: translateY(-15px);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

.producto img{
  width:100%;
  height:250px;
  object-fit:contain; /*T*/
  border-radius:15px;
  margin-bottom:20px;
  transition: transform 0.5s ease;
}


.producto h4{
  margin-bottom:10px;
}

.producto a{
  background:linear-gradient(
        135deg,
        #1ca701,
        #78f100
    );
  text-decoration:none;
}




/* FOOTER */

.footer{
  background:#111;
  color:#fff;
  padding:70px 7%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

.footer-logo{
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.footer-logo img{
    width: 100%;
    object-fit: contain;
    border-radius:50%;
}

.footer-info h2{
  margin-bottom:10px;
  color: white;

  font-size:2.5rem;
}

.footer-info{
    display:flex;
    flex-direction:column;
}


/*  */

.footer-links, .footer-text{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:5px;
    
}

.footer-links a{
    text-decoration:none;
    color:white;
    transition:0.3s;
}
.footer-links a:hover{
    color:#4cff4c;
    transform:translateX(5px);
    text-decoration:none;
}

.footer-lists{
    display:flex;
    gap:60px;  
    align-items:flex-start;
    margin:25px 0;
}


.footer-socials{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; 
    flex-wrap: nowrap !important; 
    margin-bottom: 25px;
    text-decoration:none;
    
}

.footer-socials a{
    width:32px;
    height:32px;
    border-radius:50%;
    background:#1ca701;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    transition:0.3s;
}

.footer-socials a:hover{
    transform:scale(1.15);
    color: #000000;
    background:#78f100;
}

@media(max-width:992px){

    /* HR */

  .menu-toggle{
        display:block;
    }

    .header{
        width:100%;
        height:90px;
        background:#fff;
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:0 5%;
        position:fixed;
        overflow:visible;
    }

    .socials a{
        width:22px;
        height:22px;
        font-size:0.75rem;
    }

    .socials {
        gap: 5px;
    }

    .navbar{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:white;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:5px;
        height:0;
        overflow:hidden;
        transition:height 0.35s ease;
        box-shadow:0 10px 20px rgba(0,0,0,0.08);
    }
 
    .navbar a{
        font-size:12px;
        padding:5px 0;
    }

    .navbar.active{
        height:170px;
    }
    
    .navbar:not(.active){
        pointer-events:none;
    }

  section{
    padding:70px 6%;
  }

  .timeline{

    grid-template-columns:1fr;
    gap:50px;

}
/**/
.historia-invertida .timeline{

    grid-template-columns:1fr;

}

.historia-invertida .divider{

    display:none;

}

.historia-invertida .imagen{

    order:1;

}

.historia-invertida .left{

    order:2;
    text-align:center;

}

.historia-invertida .linea{

    margin:25px auto;

}

.historia-invertida .left p{

    margin:auto;

}

.imagen img{

    max-width:100%;

}

/**/

.divider{

    display:none;

}

.left{

    text-align:center;
    margin:auto;

}

.left p{

    margin:auto;

}

.linea{

    margin:25px auto;

}

.gallery{

    grid-template-columns:repeat(2,1fr);
    grid-template-rows:auto;

}

.item{

    grid-column:auto !important;
    grid-row:auto !important;
    aspect-ratio:4/3;

}

  .hero,
  .about,
  .final-section{
    flex-direction:column;
    text-align:center;
  }

   .hero{
    background-attachment:scroll;
  }

  .hero-content h1{
    font-size:55px;
  }
  .about-text h2,
  .final-text h2,
  .section-title{
    font-size:42px;
  }

/**/

   .timeline{

        grid-template-columns:1fr;

    }

    .left{

        text-align:center;

    }

    .linea{

        margin:25px auto;

    }

    .image-card{

        height:350px;

    }


.catalogo{
        padding:50px 20px;
    }


    .catalogo h2{
        font-size:2rem;
        margin-bottom:30px;
    }


    .catalogo-grid{
        grid-template-columns:1fr;
        gap:25px;
    }


    .producto{
        padding:18px;
        border-radius:15px;
    }


    .producto img{
        height:200px;
        border-radius:12px;
    }


    .producto h4{
        font-size:1.2rem;
    }


    .producto p{
        font-size:.95rem;
        line-height:1.6;
    }
  
  .footer{
        text-align:center;
        justify-content:center;
        gap:40px;
    }

}



/* ========================= */
/* RESPONSIVE MOBILE */
/* ========================= */

@media(max-width:600px){

  section{
    padding:60px 5%;
  }

   .hero{
    min-height:80vh;
    padding:100px 5%;
  }

  .hero-content h1{
    font-size:42px;
  }

  .hero-content p{
    font-size:15px;
  }


  .section-title{
    font-size:34px;
  }

  .about-text h2,
  .final-text h2{
    font-size:34px;
  }

  p{
    font-size:15px;
  }

  .service-box,
  .mission-box{
    padding:35px 25px;
  }

  .service-box h3,
  .mission-box h3{
    font-size:24px;
  }

  .historia{

    width:92%;
    padding:50px 0;

}
 .image-card{

        height:260px;

    }

.year{

    margin-bottom:40px;

}

.gallery{

    grid-template-columns:1fr;

}

.item{

    aspect-ratio:16/10;

}

.left h2{

    text-align:center;

}

.left p{

    text-align:center;

}

  /* HR */

  .menu-toggle{
        display:block;
    }

    .header{
        width:100%;
        height:90px;
        background:#fff;
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:0 5%;
        position:fixed;
        overflow:visible;
    }

    .socials a{
        width:18px;
        height:18px;
        font-size:0.45rem;
    }

    .socials{
        gap:4px;
        padding:0;
    }

    .navbar{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:white;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:5px;
        height:0;
        overflow:hidden;
        transition:height 0.35s ease;
        box-shadow:0 10px 20px rgba(0,0,0,0.08);
    }
 
    .navbar a{
        font-size:12px;
        padding:5px 0;
    }

    .navbar.active{
        height:170px;
    }
    
    .navbar:not(.active){
        pointer-events:none;
    }


    .historia{

    width:92%;
    padding:50px 0;

}

.year{

    margin-bottom:40px;

}

.gallery{

    grid-template-columns:1fr;

}

.item{

    aspect-ratio:16/10;

}

.left h2{

    text-align:center;

}

.left p{

    text-align:center;

}

    .footer-info{
        align-items:center;
        text-align:center;
    }

    .footer-lists{
        width:100%;
        display:flex;
        flex-direction:row;
        justify-content:center;
        align-items:flex-start;
        gap:35px;
        text-align:left;
    }

    .footer-links,
    .footer-text{
        align-items:flex-start;
        text-align:left;
    }

    .footer-socials{
        width:100%;
        justify-content:center;
    }
}