/* ========= VARIABLES ========= */
:root {
  --clr-primary: #1e5631;
  --clr-primary-dark: #164b2f;
  --clr-secondary: #1d3927;
  --clr-accent: #001d61;
  --clr-bg-light: #f9f9f9;
  --clr-text: #333;
  --clr-muted: #555;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-md: 0 6px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #e6f4ea;
  color: var(--clr-text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--clr-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--clr-primary);
}

/* ========= BOTÓN PRINCIPAL ========= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  color: #fff;
  background: var(--clr-primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn:hover { background: var(--clr-primary-dark); }

/* ========= HERO ========= */
.asesoria-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  padding: 2rem 5%;
  gap: 2rem;
  background: linear-gradient(135deg, #e6f4ea, var(--clr-bg-light));
  position: relative;
  overflow: hidden;
}
.asesoria-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 86, 49, 0.05);
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  animation: fadeInLeft 1s ease forwards;
}
.hero-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: calc(100% - 40px);
  background: var(--clr-accent);
  border-radius: 5px;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--clr-primary);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}
.hero-text p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: #2c3e50;
  text-align: justify;
  text-justify: inter-word;
}

.hero-image {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  animation: fadeInRight 1s ease forwards;
}
.hero-image img {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-lg);
  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: var(--clr-primary);
  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: var(--shadow-md);
  transition: var(--transition);
}
.edu-card {
  position: relative; /* necesario para que el logo se posicione dentro */
}

.edu-card .logo-card {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 150px; /* tamaño reducido */
  height: auto;
  border-radius: 8px; /* opcional */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* opcional */
}

.edu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.edu-card img {
  width: 180px;
  border-radius: 1rem;
  margin-bottom: 1rem;
  object-fit: cover;
}
.edu-card h3 { color: var(--clr-primary); margin-bottom: .3rem; }
.edu-card p { color: var(--clr-muted); margin-bottom: .8rem; }
.edu-card ul { list-style: none; padding: 0; text-align: left; }
.edu-card li { margin-bottom: .5rem; }
li.grano::before { content: "🌽"; margin-right:.5rem; }
li.alturaPlanta::before { content: "🌱"; margin-right:.5rem; }
li.alturaMazorca::before { content: "🌿"; margin-right:.5rem; }
li.floracion::before { content: "⏱️"; margin-right:.5rem; }
li.cosecha::before { content: "📅"; margin-right:.5rem; }
li.plantas::before { content: "🔢"; margin-right:.5rem; }

/* ========= VENTAJAS ========= */
.advantages {
  background: var(--clr-bg-light);
  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: var(--shadow-md);
  transition: var(--transition);
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.adv-card h4 { color: var(--clr-primary); 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: var(--shadow-sm);
}
.slides {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 100%;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide img {
  width: 100%;
  height: 90vh;
  object-fit: contain;
  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;
  transition: var(--transition);
}
.slider-buttons button:hover { background: rgba(0,0,0,0.8); }

/* ========= CTA FINAL ========= */
.asesoria-cta {
  background: linear-gradient(90deg, #2a7f62, #0d213b);
  color: #fff;
  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;
}

/* ========= COMPAÑÍA ========= */
.compania-full {
  width: 100%;
  background-color: #07501a21;
  padding: 100px 20px;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}
.compania-full .section-title {
  font-family: 'Arial', sans-serif;
  font-size: 2.2rem;
  color: #004d27c8;
  margin-bottom: 20px;
  position: relative;
  font-weight: bold;
}
.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: #000;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .asesoria-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .hero-image {
    order: -1;
    margin-bottom: 1.5rem;
  }
  .hero-text {
    padding: 1rem;
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }
}
