.knowledge-section {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.knowledge-heading {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.knowledge-kicker {
  display: inline-block;
  padding: .35rem .75rem;
  margin-bottom: .7rem;
  border: 1px solid rgba(74,222,128,.25);
  border-radius: 999px;
  color: var(--accent-primary);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.knowledge-heading p {
  color: var(--text-muted);
}

.knowledge-map {
  max-width: 900px;
  margin: 0 auto;
}

.knowledge-core {
  position: relative;
  width: 160px;
  min-height: 160px;
  margin: 0 auto 2rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(74,222,128,.42);
  border-radius: 50%;
  background: rgba(24,39,29,.90);
  box-shadow: 0 0 28px rgba(74,222,128,.10);
  transition: .28s ease;
}

body.light .knowledge-core {
  background: rgba(255,255,255,.94);
}

.knowledge-map.has-active .knowledge-core {
  border-color: rgba(74,222,128,.80);
  box-shadow: 0 0 38px rgba(74,222,128,.18);
}

.knowledge-core-icon {
  font-size: 2rem;
  margin-bottom: .35rem;
}

.knowledge-core strong {
  color: var(--accent-primary);
}

.knowledge-core small {
  margin-top: .3rem;
  color: var(--text-muted);
  font-size: .7rem;
}

.knowledge-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.knowledge-grid::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 50%;
  width: 1px;
  height: 2rem;
  background: rgba(74,222,128,.40);
}

.knowledge-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74,222,128,.18);
  border-radius: 15px;
  background: rgba(23,36,28,.78);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

body.light .knowledge-card {
  background: rgba(255,255,255,.88);
}

.knowledge-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transform: translateX(-50%);
  transition: width .3s ease, box-shadow .3s ease;
}

.knowledge-card.active {
  transform: translateY(-2px);
  border-color: rgba(74,222,128,.65);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

.knowledge-card.active::before {
  width: 70%;
  box-shadow: 0 0 12px rgba(74,222,128,.55);
}

.knowledge-button {
  width: 100%;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  grid-template-areas: "icon title plus" "formula formula formula";
  gap: .55rem .75rem;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.knowledge-button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -3px;
}

.knowledge-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(74,222,128,.09);
  font-size: 1.2rem;
}

.knowledge-title {
  grid-area: title;
}

.knowledge-title strong,
.knowledge-title small {
  display: block;
}

.knowledge-title small {
  margin-top: .1rem;
  color: var(--text-muted);
  font-size: .72rem;
}

.knowledge-plus {
  grid-area: plus;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(74,222,128,.08);
  color: var(--accent-primary);
  font-size: 1.15rem;
  transition: transform .25s ease;
}

.knowledge-card.active .knowledge-plus {
  transform: rotate(45deg);
}

.knowledge-formula {
  grid-area: formula;
  padding: .5rem .65rem;
  border-radius: 9px;
  background: rgba(74,222,128,.06);
  color: var(--accent-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
}

.knowledge-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: .82rem;
  transition: max-height .35s ease, opacity .28s ease, padding .35s ease;
}

.knowledge-card.active .knowledge-detail {
  max-height: 320px;
  opacity: 1;
  padding: 0 1rem 1rem;
}

.knowledge-example {
  padding: .65rem .75rem;
  margin-bottom: 0;
  border-left: 2px solid var(--accent-primary);
  border-radius: 0 8px 8px 0;
  background: rgba(74,222,128,.045);
}

.knowledge-note {
  max-width: 760px;
  margin: 1.2rem auto 0;
  color: var(--text-muted);
  text-align: center;
  font-size: .7rem;
}

@media (max-width: 640px) {
  .knowledge-section { padding: 3.3rem 0; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-core { width: 145px; min-height: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-card,
  .knowledge-core,
  .knowledge-plus,
  .knowledge-detail {
    transition: none !important;
  }
}

/* ==================================================
   AGRO-KNOWLEDGE-LIGHT-PREMIUM
   Laboratorio agronomico limpio
================================================== */

body.light .knowledge-section {
  background: linear-gradient(
    180deg,
    rgba(240, 253, 244, 0.18),
    rgba(248, 250, 248, 0.05)
  );
}

body.light .knowledge-heading h2 {
  color: #17211b;
}

body.light .knowledge-heading p {
  color: #52635a;
}

body.light .knowledge-kicker {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.32);
  background: rgba(22, 163, 74, 0.045);
}

body.light .knowledge-core {
  background: rgba(248, 253, 249, 0.94);
  border-color: rgba(22, 163, 74, 0.34);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.05),
    0 0 24px rgba(22, 163, 74, 0.08);
}

body.light .knowledge-core strong {
  color: #15803d;
}

body.light .knowledge-core small {
  color: #607066;
}

body.light .knowledge-grid::before {
  background: rgba(22, 163, 74, 0.42);
}

body.light .knowledge-card {
  background: rgba(250, 253, 251, 0.92);
  border-color: rgba(22, 163, 74, 0.24);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

body.light .knowledge-card.active {
  border-color: rgba(22, 163, 74, 0.58);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.08),
    0 0 18px rgba(22, 163, 74, 0.07);
}

body.light .knowledge-title strong {
  color: #16251c;
}

body.light .knowledge-title small {
  color: #64746b;
}

body.light .knowledge-icon {
  background: rgba(22, 163, 74, 0.075);
}

body.light .knowledge-plus {
  color: #15803d;
  background: rgba(22, 163, 74, 0.085);
}

body.light .knowledge-card.active .knowledge-plus {
  background: rgba(22, 163, 74, 0.14);
}

body.light .knowledge-formula {
  color: #15803d;
  background: rgba(22, 163, 74, 0.075);
  border: 1px solid rgba(22, 163, 74, 0.06);
}

body.light .knowledge-detail {
  color: #52635a;
}

body.light .knowledge-example {
  color: #46574d;
  background: rgba(22, 163, 74, 0.055);
  border-left-color: #16a34a;
}

body.light .knowledge-note {
  color: #5d6d63;
}
