/* ==========================================================================
   1. VARIABLES Y ESTILO BASE (AGRI-GARDEN THEME)
   ========================================================================== */

:root {
  --primary: #1B8A5A;      /* Verde agro */
  --primary-dark: #146c45;
  --secondary: #0F4C81;    /* Azul ingeniería */
  --accent: #F4B400;       /* CTA / energía */
  --bg: #0B1220;
  --card: #111827;
  --border: #1F2937;
  --text: #ffffff;
  --muted: #94a3b8;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--text);
}

.section-header p {
  color: var(--muted);
}

/* ==========================================================================
   2. HERO AGRI-GARDEN
   ========================================================================== */

.hero-premium {
  padding: 80px 0;
  background: linear-gradient(135deg, #0B1220, #0F1E2D);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-left {
  flex: 1;
  max-width: 550px;
}

.hero-right {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(27, 138, 90, 0.15);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-left h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-left h1 span {
  color: var(--primary);
}

.hero-left p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

/* SLIDER */
.hero-slider {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27, 138, 90, .25);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 76, 129, .7);
  color: white;
  cursor: pointer;
  z-index: 10;
}

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: .4;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  background: var(--primary);
}

/* ==========================================================================
   3. SECCIONES
   ========================================================================== */

/* BRANDS */
.brands {
  padding: 80px 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.brand-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  transition: .3s;
  color: var(--text);
}

.brand-item:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(27, 138, 90, 0.2);
}

/* BENEFITS */
.benefits {
  padding: 90px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.benefit-card {
  background: var(--card);
  border-radius: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  transition: .3s;
  color: var(--text);
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(27, 138, 90, 0.15);
}

.benefit-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* STATS */
.stats {
  padding: 90px 0;
  background: #0F1E2D;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-item p {
  color: var(--muted);
}

/* TESTIMONIALS */
.testimonials {
  padding: 90px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: var(--card);
  border-radius: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  transition: .3s;
  color: var(--text);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
}

.testimonial-card p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-card strong {
  color: var(--primary);
}

/* NEWSLETTER */
.newsletter {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #0B1220, #0F1E2D);
}

.newsletter h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--text);
}

.newsletter-form {
  max-width: 700px;
  margin: auto;
  display: flex;
  gap: 15px;
}

.newsletter-form input {
  flex: 1;
  height: 55px;
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  background: #fff;
  color: #000;
}

/* ==========================================================================
   4. BOTONES AGRI-GARDEN
   ========================================================================== */

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.btn-secondary:hover {
  opacity: .9;
}

/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {

  .hero-premium {
    padding: 60px 24px;
  }

  .hero-content {
    flex-direction: column;
    gap: 40px;
  }

  .hero-left {
    text-align: center;
    max-width: 100%;
  }

  .hero-buttons,
  .hero-features {
    justify-content: center;
  }

  .hero-left h1 {
    font-size: 38px;
  }

  .hero-slider {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .brands-grid,
  .benefits-grid,
  .stats-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .hero-left h1 {
    font-size: 30px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-slider {
    aspect-ratio: 4 / 3;
  }

  .brands-grid,
  .benefits-grid,
  .stats-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .stat-item h3 {
    font-size: 36px;
  }
}