/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

/* ===== TEXTOS ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #1d3927;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== BOTÓN PRINCIPAL ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  color: #fff;
  background: #1e5631;
  transition: all 0.3s ease;
}
.btn:hover { background: #164b2f; }

/* ===== HERO ===== */
.asesoria-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  padding: 2rem 5%;
  gap: 2rem;

  /* Fondo dinámico */
  background: linear-gradient(135deg, #e6f4ea, #f9f9f9);
  position: relative;
  overflow: hidden;
}

/* Overlay sutil para destacar el texto */
.asesoria-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 86, 49, 0.05); /* verde muy suave */
  pointer-events: none;
  z-index: 0;
}

/* ================= TEXTO ================= */
.hero-text {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  animation: fadeInLeft 1s ease forwards;

  /* Fondo sutil para resaltar el texto */
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e5631;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.05); /* ligero relieve */
}

.hero-text p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: #2c3e50; /* color más elegante y suave */
  text-align: justify;
  text-justify: inter-word;
}

/* Detalle visual: barra lateral */
.hero-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: calc(100% - 40px);
  background: #001d61;
  border-radius: 5px;
}


/* ================= IMAGEN ================= */
.hero-image {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: fadeInRight 1s ease forwards;
}

.hero-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* ================= ANIMACIONES ================= */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
/* ===== VARIEDADES ===== */
#variedades { padding: 4rem 8%; text-align: center; }
#variedades h2 { color: #1e5631; margin-bottom: 2rem; }
.education {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.edu-card {
  background: #e6f4ea;
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card {
  position: relative; /* necesario para que el logo se posicione dentro */
}

.edu-card .logo-card {
  display: block;
  margin: 0 auto 1rem auto; /* centrado con espacio inferior */
  width: 110px; /* tamaño más visible */
  height: auto;

  padding: 8px 12px; /* espacio alrededor */
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card .logo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}


.edu-card:hover { transform: translateY(-6px); box-shadow:0 10px 25px rgba(0,0,0,0.15);}
.edu-card img {
  width: 140px; height:140px; object-fit:cover;
  border-radius: 1rem; margin-bottom:1rem;
}
.edu-card h3 { color:#1e5631; margin-bottom:.3rem;}
.edu-card p { color:#555; margin-bottom:.8rem;}
.edu-card ul { list-style:none; padding:0; text-align:left;}
.edu-card li { margin-bottom:.5rem; }
.edu-card li::before { margin-right:.5rem; }
li.grano::before {content:"🌽";}
li.alturaPlanta::before {content:"🌱";}
li.alturaMazorca::before {content:"🌿";}
li.floracion::before {content:"⏱️";}
li.cosecha::before {content:"📅";}
li.plantas::before {content:"🔢";}

/* ===== VENTAJAS ===== */
.advantages {
  background:#f9f9f9;
  padding:4rem 8%;
  text-align:center;
}
.adv-list {
  display:grid;
  gap:2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
}
.adv-card {
  background:#fff;
  border-radius:1rem;
  padding:2rem 1.5rem;
  box-shadow:0 6px 15px rgba(0,0,0,0.08);
  transition:transform .3s, box-shadow .3s;
}
.adv-card:hover {transform:translateY(-6px); box-shadow:0 10px 25px rgba(0,0,0,0.15);}
.adv-card h4 { color:#1e5631; margin-bottom:.8rem;}

/* ===== SLIDER ===== */
#resultados {padding:4rem 8%; text-align:center;}
.slider {
  max-width:900px; margin:2rem auto; overflow:hidden;
  border-radius:1rem; position:relative;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
.slides {display:flex; transition:transform .5s ease;}
.slide {
  min-width:100%; height:550px;
  display:flex; justify-content:center; align-items:center;
}
.slide img {
    width: 100%;
    height: 90vh;              /* más bajo en vista normal */
    object-fit: contain;       /* mostrar imagen completa */
    object-position: center;
    filter: brightness(75%);
    border-radius: 12px;
    background: #000;
}
.slider-buttons {
  position:absolute; top:50%; left:0; width:100%;
  display:flex; justify-content:space-between; transform:translateY(-50%);
}
.slider-buttons button {
  background:rgba(0,0,0,0.5); border:none; color:#fff;
  padding:1rem; border-radius:50%; cursor:pointer; font-size:1.5rem;
}
.slider-buttons button:hover {background:rgba(0,0,0,0.8);}

/* ======== CTA FINAL ======== */
.asesoria-cta {
  background: linear-gradient(90deg, #2a7f62, #0d213b);
  color: #ffffff;
  text-align: center;
  padding: 50px 10%;
}

.asesoria-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.asesoria-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .asesoria-hero {
    display: flex;
    flex-direction: column; /* Column normal */
    text-align: center;
    padding: 1.5rem;
  }

  .hero-image {
    order: -1; /* Hace que la imagen se muestre primero */
    margin-bottom: 1.5rem; /* Espacio entre imagen y texto */
  }

  .hero-text {
    order: 0; /* Texto abajo */
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* asesoria compuesta */
.compania-full {
  width: 100%; /* Ocupa todo el ancho */
  background-color: #07501a21; /* Fondo suave */
  padding: 100px 20px; /* Espacio superior e inferior */
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05); /* Sutil sombreado interior */
}

.compania-full .section-title {
  font-family: 'Arial', sans-serif;
  font-size: 2.2rem;
  color: #004d27c8; /* Verde natural */
  margin-bottom: 20px;
  position: relative;
  font-weight: bold; /* Negrita */
}


.compania-full .section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: #a2d5a1;
  margin: 10px auto 0;
  border-radius: 2px;
}

.compania-full .section-description {
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  color: #000000;
  line-height: 1.8;
  max-width: 900px; /* Para que el texto no sea demasiado ancho */
  margin: 0 auto;
}
