@import url("https://fonts.googleapis.com/css2?family=Limelight&display=swap");

/* SECCION HERO PRINCIPAL DE NOSOTROS */
.hero-nosotros {
  position: relative;
  background-image: url("../images/DSC2376.webp");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 1rem;
  overflow: hidden;
  transition: background-image 0.3s, transform 0.3s;
}

.hero-nosotros:hover{
    transform: scale(1.03);
}

.hero-nosotros::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* cuánto ocupa el degradado */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

/* Tarjeta o contenedor de contenido */
.hero-content {
  position: relative;
  z-index: 2; /* se asegura que quede por encima del overlay */
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding: 2rem;
}

.hero-content h2 {
  color: #ffffff;
  font-family: "cambria", cambria;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem); /* más fluido y responsive */
  letter-spacing: 0.5px;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 2.8);
}

.hero-content p {
  font-size: 1.2rem;
  color: #f0f0f0; /* lo cambio a claro para que contraste con la sombra */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.text-description {
  text-align: center;       /* Centra el párrafo */
  font-size: 1.3rem;        /* Tamaño más grande */
  font-weight: 600;         /* Semi-negrita */
  line-height: 1.8;         /* Espaciado entre líneas */
  color: #444;              /* Gris oscuro para legibilidad */
  max-width: 1000px;         /* Limita el ancho */
  margin: 0 auto;           /* Centra el bloque */
  padding: 10px 20px;       /* Espaciado interno */
}

@media (max-width: 600px) {
  .hero-content {
    padding: 1rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
  .text-description {
    font-size: 0.9rem;
  }
}
/* SECCION NUESTRA HISTORIA */
/* ==== Sección Historia ==== */
.historia {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

/* ==== Fondo animado con formas ==== */
.decor-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.decor-bg span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(105, 181, 23, 0.2);
  animation: float 10s infinite ease-in-out;
}

/* Variaciones de tamaño y posición */
.decor-bg span:nth-child(1) {
  top: 10%;
  left: 5%;
  width: 150px;
  height: 150px;
  animation-duration: 12s;
}
.decor-bg span:nth-child(2) {
  top: 70%;
  left: 15%;
  width: 100px;
  height: 100px;
  animation-duration: 14s;
}
.decor-bg span:nth-child(3) {
  top: 40%;
  left: 60%;
  width: 250px;
  height: 250px;
  animation-duration: 16s;
}
.decor-bg span:nth-child(4) {
  top: 80%;
  left: 80%;
  width: 120px;
  height: 120px;
  animation-duration: 18s;
}
.decor-bg span:nth-child(5) {
  top: 20%;
  left: 85%;
  width: 180px;
  height: 180px;
  animation-duration: 20s;
}

/* Animación flotante */
@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-40px) scale(1.05);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
}

/* ==== Contenido principal ==== */
.historia .container {
  position: relative;
  z-index: 1;
}

.historia img {
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 450px;
  object-fit: cover;
}

/* Subtítulo h3 */
.historia h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4d7c0f;
  text-align: center;
}

/* Párrafo */
.historia p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.2;
  color: #374151;
  text-align: justify;
}

/* ==== Responsivo ==== */
@media (max-width: 768px) {
  .historia img {
    max-height: 300px;
    margin-bottom: 1rem;
  }
  .historia h3 {
    text-align: center;
  }
}

/* SECCION MISION Y VISION */
.section-nosotros {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
}
.card-mv {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  color: #d8d8d8;
  padding: 2rem 1.5rem;
  height: 100%;
  overflow: hidden;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-mv .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.7)
  );
  transition: background 0.4s ease;
  z-index: 1;
}

.card-mv .icon-mv,
.card-mv h2,
.card-mv p {
  position: relative;
  z-index: 2;
}

.card-mv .icon-mv {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Efecto Hover */
.card-mv:hover .overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.8)
  );
}

.card-mv:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-mv:hover h2,
.card-mv:hover p,
.card-mv:hover .icon-mv {
  color: #ffffff;
  transition: color 0.4s ease;
}

/* Valores */

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.valor-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-bottom: 4px solid #66b511;
}

.valor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  background: #e9f7ef;
  color: #66b511;
  font-size: 1.8rem;
  padding: 0.8rem;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 1rem;
}

.valor-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.valor-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

/* SECCION TESTIMONIOS */
.testimonios {
  padding: 20px;
  background-color: #f9f9f9;
}

.testimonios {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

.text-green {
  color: #28a745;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonio-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonio-card::before {
  content: "❝";
  position: absolute;
  font-size: 4rem;
  color: rgba(40, 167, 69, 0.1);
  top: 10px;
  left: 20px;
  pointer-events: none;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.testimonio-card .mensaje {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.testimonio-card .autor {
  font-size: 0.95rem;
  font-weight: 600;
  color: #28a745;
  text-align: right;
}

/* SECCION STATS */
.stats-agro {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: url("images/green-landscape.png") no-repeat bottom center;
  background-size: cover;
  background-color: #fefefc;
}

.stat-item h2 {
  font-family: "Limelight", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 3.5rem;
  color: #2d6a4f;
  margin: 0;
  line-height: 1;
}

.stat-item h2 .suffix {
  font-size: 3.8rem;
  color: #2d6a4f;
  margin-left: 4px;
}

.stat-item p {
  font-size: 1.1rem;
  color: #495057;
  margin-top: 10px;
}

/* === VERSIÓN MÓVIL === */
@media (max-width: 768px) {
  .stats-agro {
    flex-direction: column;
    gap: 30px;
    padding: 40px 10px;
    background-size: cover;
  }

  .stat-item h2 {
    font-size: 2.5rem;
  }

  .stat-item h2 .suffix {
    font-size: 2.8rem;
  }

  .stat-item p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-agro {
    padding: 30px 5px;
    gap: 20px;
  }

  .stat-item h2 {
    font-size: 2rem;
  }

  .stat-item h2 .suffix {
    font-size: 2.3rem;
  }

  .stat-item p {
    font-size: 0.9rem;
  }
}
