/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Arial, sans-serif;
  height: 100vh;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  font-size: 2rem;
}
.logo img {
  width: 20%;
  margin-right: 10px;
}

/* BOTÓN HAMBURGUESA */
.menu-btn {
  background-color: rgba(0,0,0,0.0);
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}
.menu-btn div {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}
.menu-btn {
  position: relative;
  z-index: 900; /* menor que el sidebar */
}
.sidebar {
  z-index: 1000; /* siempre encima */
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  background-color: #fbfbfb;
  right: -300px;
  width: 280px;
  height: 100%;
  padding: 40px 20px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.5);
  transition: 0.3s;
  border-radius: 20px 0 0 20px;
}

.sidebar.active {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.0);
  color: #121212;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/* LISTA DE MENÚ */
.sidebar ul {
  list-style: none;
  margin-top: 60px;
}

.sidebar ul li {
  margin: 20px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.sidebar ul li i {
  margin-right: 10px;
  color: #648D3A;
}

.sidebar ul li a {
  text-decoration: none;
  color: #648D3A;
  font-weight: bold;
  transition: 0.2s;
}

.sidebar ul li a:hover {
  color: #2d7035;
}

.hero {
  width: 100%;
  height: 100vh; 
  background-image: url('/img/tractor-trabajando-en-un-campo-verde.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-texto {
  position: absolute;
  bottom: 3rem;    
  left: 1.7rem;
  top: auto;  
  color: white;
  font-family: 'Georgia', serif;
  z-index: 10;
}

.hero-texto h1 {
  font-size: 3rem;
  font-weight: 600;
  margin: 0;
}

.hero-texto p {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}
.quienes-somos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5rem 2rem;
  background-color: #f1edea;
  font-family: 'Georgia', serif;
  gap: 4rem;
  width: 100%;
  height: 30rem;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.contenido-derecha {
  flex: 1;
  max-width: 600px;
}

.contenido-izquierda h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: bold;
  color: #648D3A;
}

.contenido-derecha a {
  display: block;
  color: black;
  text-decoration: none;
  margin-bottom: 1rem;
  border-bottom: 1px solid black;
  padding-bottom: 0.4rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.contenido-derecha a i {
  float: right;
  transition: transform 0.3s ease;
}

.contenido-derecha a:hover span {
  transform: translateX(4px);
}

.contenido-izquierda {
  flex: 2;
  max-width: 600px;
}

.contenido-izquierda p {
  font-size: 2rem;
  line-height: 1.6;
}

.objetivo {
  position: relative;
  background-image: url("/img/ObjetivosSeccion.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem;
  color: white;
  font-family: 'Georgia', serif;
}

.objetivo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.objetivo-texto {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.objetivo-texto h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.objetivo-texto p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.objetivo-texto a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid white;
  padding-bottom: 4px;
  display: inline-block;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.objetivo-texto a i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.objetivo-texto a:hover span {
  transform: translateX(4px);
}

.trabajo {
  display: flex;
  flex-wrap: wrap;       /* permite que se apile en mobile */
  width: 100%;
  min-height: 100vh;
}

/* Columna izquierda (texto) */
.trabajo-texto {
  flex: 1;
  background-color: #648D3A;
  color: white;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trabajo-texto h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.trabajo-texto p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.trabajo-texto a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid white;
  padding-bottom: 4px;
  display: inline-block;
  font-size: 1.6rem;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.trabajo-texto a i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}
.trabajo-texto a:hover i {
  transform: translateX(4px);
}

/* Columna derecha (imagen) */
.trabajo-imagen {
  flex: 1;
}

.trabajo-imagen img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.quienes-somos a:hover i {
  transform: translateX(4px);
}
.objetivo-texto a:hover i {
  transform: translateX(4px);
}

.productos {
  text-align: center;
  padding: 2rem 1rem;
  background: #f8f8f8;
}

.productos h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.productos hr {
  width: 80%;
  margin: 0 auto 1.5rem auto;
  border: 1px solid #ddd;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.carousel button {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.carousel-items {
  display: flex;
  overflow: hidden;
  width: 80%;
  justify-content: center;
}

.item {
  min-width: 250px;
  padding: 1rem;
  background: #d4e3d4;
  border-radius: 12px;
  text-align: center;
  margin: 0 0.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.item i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.item .rating {
  color: orange;
  font-size: 1.2rem;
}

.item.active {
  transform: scale(1.2);
  background: #a9cfa9;
}

.categoria {
  font-size: 0.9rem;
  color: green;
}

.descripcion {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #444;
}

.estaca {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5rem 2rem;
  background-image: url(/img/Frame\ 1.svg);
  font-family: 'Georgia', serif;
  gap: 4rem;
  width: 100%;
  margin: 0; 
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  text-align: center;
  padding: 4rem 1rem 8rem 1rem;
  background-color: #ffffff;
  background-image: url("/img/Frame\ 2.svg"); 
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover; 
}
.estaca h3{
  margin: 0rem 0rem 0rem 3rem;
  text-align: center;
  font-size: 2.5rem
}

.estaca-izquierda {
  flex: 1;
  max-width: 500px;
  text-align: center;
  
}

.estaca-izquierda h3 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: bold;
}

.estaca-izquierda a {
  
  color: black;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.estaca-izquierda img {
  height: 30rem;

}


.estaca-izquierda a span {
  float: right;
  transition: transform 0.3s ease;
}

.estaca-izquierda a:hover span {
  transform: translateX(4px);
}

.estaca-derecha {
  flex: 2;
  align-items: center;
  max-width: 600px;
  text-align: center;
  display: flex;
  position: relative;
  top: 8rem;
}

.estaca-derecha p {
  font-size: 1.7rem;
  line-height: 1.6;
}

.footer {
  position: relative;
  background-color: #648D3A;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  overflow: hidden;
}

/* Nubes */
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.2;
  z-index: 0;
}

.footer::before {
  top: 20%;
  left: -60px;
  width: 220px;
  height: 160px;
  background-image: url("/img/nube1.png");
}

.footer::after {
  top: 35%;
  right: -70px;
  width: 250px;
  height: 180px;
  background-image: url("/img/nube2.png");
}

/* Contenedor */
.footer-contenedor {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Formulario --- */
.footer-form {
  background: #fff;
  padding: 3rem;
  border-radius: 19px;
  box-shadow: 0px 6px 12px rgba(0,0,0,0.5);
  max-width: 450px;
  margin: 0 auto 3rem;
}

.footer-form h2 {
  color: #2b2b2b;
  margin-bottom: 1rem;
  font-weight: bold;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #aaa;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 1rem;
  outline: none;
}

.footer-form textarea {
  resize: none;
  height: 80px;
}

.footer-form button {
  background: #648D3A;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.footer-form button:hover {
  background: #4e6d2d;
}

/* --- Parte inferior --- */
.footer-bottom {
  margin-top: 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
}

.footer-logo img {
  height: 35px;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.7);
}

.footer-redes {
  display: flex;
  gap: 1.2rem;
  font-size: 1.4rem;
}

.footer-redes a {
  color: white;
  transition: color 0.3s ease;
}

.footer-redes a:hover {
  color: #ddd;
}

.footer-copy {
  font-size: 0.8rem;
  margin-top: 1.5rem;
  opacity: 0.9;
}




@media (max-width: 768px) {
  .logo img {
        width: 35%;
        margin-right: 10px;
    }
  .quienes-somos {
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
    font-size: 2rem;
    
  }

  .contenido-izquierda h3{
    font-size: 1.8rem;
  }

  .contenido-derecha a{
    font-size: 1rem;
  }

  .contenido-izquierda, .contenido-derecha {
    max-width: 100%;
    font-size: 0.95rem;
  }
  .contenido-izquierda p{
    font-size: 1.5rem;
  
  }

  .contenido-derecha p{
    font-size: 1.4rem;
  }

  .contenido-derecha a i {
    float: none;
    display: inline-block;
    margin-left: 0;
    font-size: 1rem;
  }
  .objetivo {
    padding: 2rem;
    justify-content: center;
    text-align: center;
    height: auto;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .objetivo-texto h2 {
    font-size: 1.8rem;
  }

  .objetivo-texto p {
    font-size: 0.95rem;
  }

  .objetivo-texto a {
    font-size: 0.95rem;
  }
   .trabajo {
    flex-direction: column;
    height: auto;
    background-image: url("/img/equipo-de-empresarios-durante-una-reunion.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }
  .trabajo-texto {
    padding: 2rem;
    text-align: center;
    background-color: rgba(0,0,0,0.4);
  }
  .trabajo-texto h2 {
    font-size: 1.8rem;
  }
  .trabajo-texto p {
    font-size: 1rem;
  }
  .trabajo-texto a {
    font-size: 1rem;
  }
  .trabajo-imagen {
    display: none;
    order: -1; /* imagen arriba en móvil */
    height: 300px;
  }
  .estaca {
    align-items: center;
    flex-direction: column;
    margin: auto;
    display: flex;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .estaca-izquierda, .estaca-derecha {
    max-width: 100%;
  }

  .estaca-derecha {
    top: 0px; 
  }

  .estaca-izquierda a span {
    float: none;
    display: inline-block;
    margin-left: 4px;
  }
  .footer-info {
    flex-direction: row;
    justify-content: center;
  }

  .footer-divider {
    height: 40px;
    width: 2px;
  }
        
}
