/* ═══════════════════════════════════════════════════════════════
   BioAgro Elementor — Frontend Styles
   Paleta: #0c4a15 verde | #E76F51 naranja | #f7fffc hueso
   Fuente: Inter (body) + Newsreader italic (headlines)
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ba-green:       #0c4a15;
  --ba-green-light: #1a6b22;
  --ba-green-pale:  #e8f5ea;
  --ba-orange:      #E76F51;
  --ba-orange-dark: #cf5f41;
  --ba-cream:       #f7fffc;
  --ba-bg-section:  #f0f4f8;
  --ba-white:       #ffffff;
  --ba-text:        #1a1a2e;
  --ba-text-muted:  #5a6577;
  --ba-border:      #dde3ec;
  --ba-shadow:      0 4px 24px rgba(0,0,0,.08);
  --ba-shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --ba-radius:      16px;
  --ba-radius-sm:   10px;
}

/* ── Tipografía base ─────────────────────────────────────── */
.ba-section {
  font-family: 'Inter', sans-serif;
  color: var(--ba-text);
  line-height: 1.6;
}
.ba-headline {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.ba-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Container ────────────────────────────────────────────── */
.ba-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ══════════════════════════════════════════════════════════
   1. HERO
══════════════════════════════════════════════════════════ */
.ba-hero {
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}
.ba-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .ba-hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
.ba-hero__title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin: 0 0 20px;
}
.ba-hero__sub {
  font-size: 1.1rem;
  color: var(--ba-text-muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.ba-hero__checks {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ba-hero__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: .97rem;
}
.ba-hero__checks .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
  font-size: 22px;
}
.ba-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.ba-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
}
.ba-btn--primary {
  background: var(--ba-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(231,111,81,.35);
}
.ba-btn--primary:hover { background: var(--ba-orange-dark); transform: translateY(-2px); }
.ba-btn--outline {
  background: transparent;
  color: var(--ba-text);
  border: 2px solid var(--ba-border);
}
.ba-btn--outline:hover { border-color: var(--ba-green); color: var(--ba-green); }

/* Imagen hero */
.ba-hero__img-wrap {
  position: relative;
}
.ba-hero__img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--ba-shadow-lg);
  display: block;
}
.ba-hero__img-placeholder {
  width: 100%;
  height: 520px;
  border-radius: 20px;
  background: var(--ba-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-hero__img-placeholder .material-symbols-outlined { font-size: 80px; color: var(--ba-green); opacity: .4; }
.ba-hero__img-small {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 160px;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: var(--ba-shadow-lg);
}
.ba-hero__badge {
  position: absolute;
  bottom: -12px;
  right: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--ba-shadow-lg);
  max-width: 180px;
  border: 1px solid var(--ba-border);
}
.ba-hero__badge-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.ba-hero__badge-top .material-symbols-outlined { font-size: 18px; }
.ba-hero__badge-title { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ba-text-muted); }
.ba-hero__badge-text { font-size: .82rem; font-weight: 600; color: var(--ba-text); }

/* ══════════════════════════════════════════════════════════
   2. MAIN BENEFIT
══════════════════════════════════════════════════════════ */
.ba-main-benefit {
  padding: 80px 0;
  text-align: center;
}
.ba-main-benefit__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 56px;
}
.ba-main-benefit__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 700px) { .ba-main-benefit__grid { grid-template-columns: 1fr; } }
.ba-benefit-card {
  padding: 36px 28px;
  border-radius: var(--ba-radius);
  background: #fff;
  box-shadow: var(--ba-shadow);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ba-benefit-card:hover { transform: translateY(-4px); box-shadow: var(--ba-shadow-lg); }
.ba-benefit-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--ba-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.ba-benefit-card__icon .material-symbols-outlined { font-size: 32px; color: var(--ba-green); }
.ba-benefit-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.ba-benefit-card__text { color: var(--ba-text-muted); font-size: .93rem; }

/* ══════════════════════════════════════════════════════════
   3. PROBLEM
══════════════════════════════════════════════════════════ */
.ba-problem {
  padding: 80px 0;
}
.ba-problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .ba-problem__grid { grid-template-columns: 1fr; } }
.ba-problem__img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--ba-radius);
  box-shadow: var(--ba-shadow-lg);
  display: block;
}
.ba-problem__img-placeholder {
  width: 100%;
  height: 440px;
  border-radius: var(--ba-radius);
  background: var(--ba-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-problem__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 40px;
}
.ba-problem__list { display: flex; flex-direction: column; gap: 28px; }
.ba-problem__item { display: flex; gap: 16px; }
.ba-problem__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fde8e2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ba-problem__item-icon .material-symbols-outlined { font-size: 20px; color: #c0392b; }
.ba-problem__item-label { font-weight: 700; font-size: .97rem; margin-bottom: 4px; }
.ba-problem__item-text { color: var(--ba-text-muted); font-size: .9rem; }

/* ══════════════════════════════════════════════════════════
   4. SOLUTION
══════════════════════════════════════════════════════════ */
.ba-solution {
  padding: 80px 0;
}
.ba-solution__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  margin: 0 0 12px;
}
.ba-solution__sub {
  text-align: center;
  color: var(--ba-text-muted);
  margin: 0 0 56px;
  font-size: 1rem;
}
.ba-solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .ba-solution__grid { grid-template-columns: 1fr; } }
.ba-solution__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--ba-radius);
  box-shadow: var(--ba-shadow-lg);
  display: block;
}
.ba-solution__img-placeholder {
  width: 100%;
  height: 400px;
  border-radius: var(--ba-radius);
  background: var(--ba-green-pale);
  display: flex; align-items: center; justify-content: center;
}
.ba-solution__cards { display: flex; flex-direction: column; gap: 20px; }
.ba-solution-card {
  background: #fff;
  border-radius: var(--ba-radius);
  padding: 28px 28px 28px 24px;
  border-left: 4px solid var(--ba-green);
  box-shadow: var(--ba-shadow);
}
.ba-solution-card__tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ba-green);
  margin-bottom: 8px;
}
.ba-solution-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.ba-solution-card__text { color: var(--ba-text-muted); font-size: .9rem; }

/* ══════════════════════════════════════════════════════════
   5. PRODUCTS
══════════════════════════════════════════════════════════ */
.ba-products { padding: 80px 0; }
.ba-products__header { margin-bottom: 48px; }
.ba-products__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 8px; }
.ba-products__sub { color: var(--ba-text-muted); font-size: .97rem; }
.ba-products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .ba-products__grid { grid-template-columns: 1fr; } }
.ba-product-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border-radius: var(--ba-radius);
  overflow: hidden;
  box-shadow: var(--ba-shadow);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ba-product-card:hover { transform: translateY(-4px); box-shadow: var(--ba-shadow-lg); }
.ba-product-card__img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}
.ba-product-card__img-placeholder {
  width: 100%;
  min-height: 240px;
  background: var(--ba-green-pale);
  display: flex; align-items: center; justify-content: center;
}
.ba-product-card__img-placeholder .material-symbols-outlined { font-size: 48px; color: var(--ba-green); opacity:.4; }
.ba-product-card__body {
  padding: 28px 24px;
  background: #f4f7fb;
}
.ba-product-card__tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ba-text-muted); margin-bottom: 10px; }
.ba-product-card__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.ba-product-card__text { color: var(--ba-text-muted); font-size: .88rem; margin-bottom: 20px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   6. DETAILED BENEFITS
══════════════════════════════════════════════════════════ */
.ba-det-benefits { padding: 80px 0; }
.ba-det-benefits__card {
  background: #fff;
  border-radius: 24px;
  padding: 56px;
  box-shadow: var(--ba-shadow-lg);
  text-align: center;
}
@media (max-width: 700px) { .ba-det-benefits__card { padding: 32px 20px; } }
.ba-det-benefits__title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 48px; }
.ba-det-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  text-align: left;
}
@media (max-width: 600px) { .ba-det-benefits__grid { grid-template-columns: 1fr; } }
.ba-det-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  transition: background .2s;
}
.ba-det-benefit:hover { background: var(--ba-green-pale); }
.ba-det-benefit__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ba-green-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ba-det-benefit__icon .material-symbols-outlined { font-size: 22px; }
.ba-det-benefit__text { font-weight: 600; font-size: .97rem; padding-top: 10px; }

/* ══════════════════════════════════════════════════════════
   7. TESTIMONIALS
══════════════════════════════════════════════════════════ */
.ba-testimonials { padding: 80px 0; text-align: center; }
.ba-testimonials__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 56px; }
.ba-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
@media (max-width: 800px) { .ba-testimonials__grid { grid-template-columns: 1fr; } }
.ba-testi-card {
  background: #fff;
  border-radius: var(--ba-radius);
  padding: 32px;
  box-shadow: var(--ba-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .25s, box-shadow .25s;
}
.ba-testi-card:hover { transform: translateY(-4px); box-shadow: var(--ba-shadow-lg); }
.ba-testi-card__stars { color: #f4b942; font-size: 1rem; letter-spacing: 2px; }
.ba-testi-card__quote { font-size: .93rem; color: var(--ba-text-muted); font-style: italic; line-height: 1.7; flex: 1; }
.ba-testi-card__author { display: flex; align-items: center; gap: 12px; }
.ba-testi-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.ba-testi-card__name { font-weight: 700; font-size: .9rem; }
.ba-testi-card__role { font-size: .8rem; color: var(--ba-text-muted); }

/* ══════════════════════════════════════════════════════════
   8. DIFFERENTIATOR
══════════════════════════════════════════════════════════ */
.ba-diff { padding: 80px 0; }
.ba-diff__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  margin: 0 0 8px;
}
.ba-diff__divider {
  width: 60px;
  height: 4px;
  background: var(--ba-green);
  border-radius: 4px;
  margin: 12px auto 52px;
}
.ba-diff__card {
  background: #f4f7fb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ba-shadow);
}
.ba-diff__grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .ba-diff__grid { grid-template-columns: 1fr; } }
.ba-diff__col { padding: 40px 48px; }
@media (max-width: 900px) { .ba-diff__col { padding: 32px 28px; } }
.ba-diff__col--good { background: #fff; }
.ba-diff__col--bad  { border-left: 1px solid var(--ba-border); }
.ba-diff__col-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 28px; }
.ba-diff__items { display: flex; flex-direction: column; gap: 20px; }
.ba-diff__item { display: flex; align-items: flex-start; gap: 12px; font-size: .93rem; }
.ba-diff__item .material-symbols-outlined { font-size: 22px; flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════════════════════
   9. USES GALLERY
══════════════════════════════════════════════════════════ */
.ba-gallery { padding: 80px 0; }
.ba-gallery__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin: 0 0 48px;
}
.ba-gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .ba-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px)  { .ba-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
.ba-gallery__item { position: relative; border-radius: var(--ba-radius-sm); overflow: hidden; }
.ba-gallery__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ba-gallery__item:hover img { transform: scale(1.06); }
.ba-gallery__item-placeholder {
  width: 100%;
  height: 200px;
  background: var(--ba-green-pale);
  display: flex; align-items: center; justify-content: center;
}
.ba-gallery__item-placeholder .material-symbols-outlined { font-size: 40px; color: var(--ba-green); opacity: .4; }
.ba-gallery__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
  padding: 24px 12px 12px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   10. EDUCATION
══════════════════════════════════════════════════════════ */
.ba-education { padding: 80px 0; }
.ba-education__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .ba-education__grid { grid-template-columns: 1fr; } }
.ba-education__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 16px; }
.ba-education__sub { color: var(--ba-text-muted); margin-bottom: 32px; }
.ba-article-card {
  background: #fff;
  border-radius: var(--ba-radius);
  padding: 28px;
  box-shadow: var(--ba-shadow);
  transition: transform .25s, box-shadow .25s;
}
.ba-article-card:hover { transform: translateY(-3px); box-shadow: var(--ba-shadow-lg); }
.ba-article-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ba-article-card__text { font-size: .88rem; color: var(--ba-text-muted); margin-bottom: 16px; }
.ba-article-card__link { font-size: .88rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ba-article-card__link:hover { text-decoration: underline; }
.ba-education__img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--ba-radius);
  box-shadow: var(--ba-shadow-lg);
  display: block;
}
.ba-education__img-placeholder {
  width: 100%; height: 380px;
  background: var(--ba-green-pale);
  border-radius: var(--ba-radius);
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   11. CTA + CONTACT
══════════════════════════════════════════════════════════ */
.ba-cta { padding: 80px 0; }
.ba-cta__card {
  border-radius: 24px;
  padding: 64px 56px;
  text-align: center;
  background: #3d4a3a;
  color: #fff;
}
@media (max-width: 700px) { .ba-cta__card { padding: 40px 24px; } }
.ba-cta__title { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; margin: 0 0 12px; }
.ba-cta__sub { color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto 40px; }
.ba-cta__form { max-width: 540px; margin: 0 auto; }
.ba-cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .ba-cta__row { grid-template-columns: 1fr; } }
.ba-cta__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
  text-align: left;
}
.ba-cta__input,
.ba-cta__textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: inherit;
  font-size: .93rem;
  transition: border-color .2s;
  outline: none;
}
.ba-cta__input::placeholder, .ba-cta__textarea::placeholder { color: rgba(255,255,255,.45); }
.ba-cta__input:focus, .ba-cta__textarea:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.15); }
.ba-cta__textarea { height: 120px; resize: vertical; margin-bottom: 16px; }
.ba-cta__btn {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}
.ba-cta__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ba-cta__whatsapp {
  display: block;
  margin-top: 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.ba-cta__whatsapp strong { color: rgba(255,255,255,.9); text-decoration: underline; }
.ba-cta__msg {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  display: none;
}
.ba-cta__msg--ok  { background: rgba(107,191,89,.2); color: #a8e6a3; display: block; }
.ba-cta__msg--err { background: rgba(231,111,81,.2); color: #ffb3a0; display: block; }

/* ── Lazy load fade ──────────────────────────────────────── */
img[loading="lazy"] { opacity: 0; transition: opacity .4s ease; }
img[loading="lazy"].loaded { opacity: 1; }

/* ── Accesibilidad ───────────────────────────────────────── */
:focus-visible { outline: 3px solid var(--ba-orange); outline-offset: 3px; border-radius: 4px; }
