/* ─────────────────────────────────────────────────────────────────
   Agro Digital Latam — sistema B2B del blog
   Hereda styles.css (nav, footer, tokens, botones).
   Sans-only (Poppins). Autoridad calmada, sin ornamento.
   ───────────────────────────────────────────────────────────────── */

:root {
  --read-width: 720px;
}

/* ─────────── SUB-HEADER ─────────── */
.blogbar {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px) 0 clamp(28px, 4vw, 44px);
}
.blogbar__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}
.blogbar__brand { display: flex; flex-direction: column; gap: 14px; }
.blogbar__name {
  margin: 0;
  line-height: 0;
}
.blogbar__name a { display: inline-block; transition: opacity var(--t-base); }
.blogbar__name a:hover { opacity: 0.7; }
.blogbar__name img {
  display: block;
  height: clamp(72px, 9vw, 120px);
  width: auto;
  max-width: 100%;
}
.blogbar__tag {
  font-size: 13.5px;
  color: var(--fg-2);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.005em;
}
.blogbar__tag b { color: var(--ink); font-weight: 600; }

/* Mini variant (post page) */
.blogbar--mini { padding: 14px 0; }
.blogbar--mini .blogbar__row { align-items: center; }
.blogbar--mini .blogbar__name img { height: clamp(34px, 3.6vw, 44px); }
.blogbar--mini .blogbar__back {
  font-size: 14px;
  color: var(--fg-2);
  transition: color var(--t-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blogbar--mini .blogbar__back:hover { color: var(--harvis-green); }

@media (max-width: 600px) {
  .blogbar__row { grid-template-columns: 1fr; gap: 12px; }
}

/* ─────────── NEWSLETTER HERO (Índice) ─────────── */
.nl-hero {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--hairline);
}
.nl-hero__inner { max-width: 760px; }
.nl-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.nl-hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 36px;
  max-width: 60ch;
  text-wrap: pretty;
}

.nl-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 500px;
}
.nl-form input {
  height: 56px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.nl-form input:focus { border-color: var(--ink); }
.nl-form input::placeholder { color: var(--fg-3); }
.nl-form button {
  height: 56px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--harvis-green-neon);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-fast) var(--ease-out);
  border: 0;
  white-space: nowrap;
}
.nl-form button:hover { background: #7ee010; }
.nl-form button:active { transform: scale(0.98); }
.nl-form--centered { margin: 0 auto; }

.nl-fine {
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 16px;
}

@media (max-width: 500px) {
  .nl-form { grid-template-columns: 1fr; }
}

/* ─────────── FEED EDITORIAL B2B ─────────── */
.feed {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 120px);
}
.feed__head { margin-bottom: clamp(32px, 4vw, 48px); }
.feed__head .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}
.feed__head h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.feed__list { display: flex; flex-direction: column; }
.entry {
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--hairline);
  display: block;
  transition: background var(--t-base);
}
.entry:last-child { border-bottom: 1px solid var(--hairline); }
.entry:hover { background: var(--paper-warm); }
.entry__meta {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.entry__meta b { color: var(--fg-1); font-weight: 600; }
.entry__meta span + span::before { content: "·"; color: var(--fg-3); margin-right: 14px; }
.entry__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 30ch;
  text-wrap: balance;
}
.entry__title a { color: inherit; transition: color var(--t-base); }
.entry:hover .entry__title a { color: var(--harvis-green); }
.entry__sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 14px;
  max-width: 64ch;
  text-wrap: pretty;
}
.entry__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-base);
}
.entry__cta .arrow { transition: transform var(--t-base) var(--ease-out); display: inline-block; }
.entry:hover .entry__cta { color: var(--harvis-green); }
.entry:hover .entry__cta .arrow { transform: translateX(4px); }

/* First/recent entry — subtle emphasis only */
.entry--recent .entry__title { font-size: clamp(26px, 3vw, 38px); max-width: 28ch; }
.entry--recent .entry__meta::before {
  content: "Más reciente";
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--harvis-green);
  margin-right: 10px;
}

.feed__loadmore {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  justify-content: center;
}

/* ─────────── PUENTE COMERCIAL ─────────── */
.bridge {
  background: var(--paper-warm);
  padding: clamp(72px, 9vw, 120px) 0;
}
.bridge__inner { max-width: 760px; }
.bridge .eyebrow { display: block; margin-bottom: 16px; }
.bridge h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 22ch;
  text-wrap: balance;
  color: var(--ink);
}
.bridge p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 32px;
  max-width: 60ch;
}
.bridge__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.bridge__cta .btn { min-width: 200px; }
@media (max-width: 500px) {
  .bridge__cta { flex-direction: column; align-items: stretch; }
  .bridge__cta .btn { width: 100%; min-width: 0; }
}

/* ─────────── ARTÍCULO (POST INDIVIDUAL) ─────────── */
.article {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.article__head {
  max-width: var(--read-width);
  margin: 0 auto clamp(40px, 5vw, 56px);
}
.article__meta {
  font-size: 13.5px;
  color: var(--fg-3);
  margin: 0 0 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.article__meta span + span::before { content: "·"; color: var(--fg-3); margin-right: 14px; }
.article__meta b { color: var(--fg-1); font-weight: 600; }
.article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.article__lede {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
  font-weight: 400;
  text-wrap: pretty;
}

.article__body {
  max-width: var(--read-width);
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--fg-1);
  font-weight: 400;
}
.article__body > * { margin: 0 0 1.3em; }
.article__body > *:last-child { margin-bottom: 0; }
.article__body p { text-wrap: pretty; }
.article__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.4em 0 0.7em;
}
.article__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}
.article__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: color var(--t-base), border-color var(--t-base);
}
.article__body a:hover { color: var(--harvis-green); border-color: var(--harvis-green); }
.article__body strong { font-weight: 600; color: var(--ink); }
.article__body em { font-style: italic; }
.article__body ul, .article__body ol {
  padding-left: 1.5em;
}
.article__body li { margin-bottom: 0.4em; text-wrap: pretty; }
.article__body li::marker { color: var(--fg-3); }
/* Prose (clase .blog-content): cuerpo del post en negro; gana sobre ::marker gris de arriba */
.article__body.blog-content p,
.article__body.blog-content li {
  color: #000;
}
.article__body.blog-content li::marker {
  color: #000;
}
.article__body blockquote {
  border-left: 2.5px solid var(--harvis-green);
  padding: 0.2em 0 0.2em 1.2em;
  margin: 1.6em 0;
  font-size: 1em;
  color: var(--fg-1);
  line-height: 1.55;
  font-style: normal;
}
.article__body blockquote cite {
  display: block;
  font-size: 0.82em;
  font-style: normal;
  margin-top: 0.5em;
  color: var(--fg-3);
}
.article__body figure { margin: 1.6em 0; }
.article__body figure img { width: 100%; border-radius: var(--radius-md); display: block; }
.article__body figcaption {
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 10px;
  line-height: 1.4;
}

/* Pull quote (stat / key number inline in B2B style) */
.article__body .pullquote {
  margin: 1.6em 0;
  padding: 1.4em 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.article__body .pullquote small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--fg-2);
  margin-top: 8px;
  letter-spacing: 0;
}

.article__body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14.5px;
  margin: 1.5em 0;
}
.article__body th, .article__body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.article__body thead th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-bottom: 1.5px solid var(--ink);
}

/* Mid-post inline newsletter CTA */
.midnl {
  max-width: var(--read-width);
  margin: clamp(40px, 5vw, 56px) auto;
  padding: clamp(24px, 3vw, 32px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.midnl__row {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.midnl__copy {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 19px);
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 36ch;
  line-height: 1.3;
}
.midnl form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}
.midnl input {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  font: inherit; font-size: 14px;
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--t-base);
}
.midnl input:focus { border-color: var(--ink); }
.midnl button {
  height: 44px; padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--ink); color: var(--paper);
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 0;
  transition: background var(--t-base);
}
.midnl button:hover { background: #1c1c20; }
@media (max-width: 600px) {
  .midnl__row { flex-direction: column; align-items: flex-start; }
  .midnl form { width: 100%; max-width: none; }
}

/* ─────────── PIE DEL ARTÍCULO ─────────── */
.article-foot { padding: clamp(56px, 7vw, 96px) 0 0; }
.article-foot__inner { max-width: var(--read-width); margin: 0 auto; }

.nl-block {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--hairline);
}
.nl-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.nl-block p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 28px;
  max-width: 52ch;
}

.bridge-block {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--hairline);
}
.bridge-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 30ch;
}
.bridge-block p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 28px;
  max-width: 60ch;
}
.bridge-block__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; }

/* ─────────── BANNER PERSISTENTE · CANAL WHATSAPP ─────────── */
.wa-banner {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: max-height var(--t-base) var(--ease-out), opacity var(--t-base);
  overflow: hidden;
}
.wa-banner[hidden] { display: none; }
.wa-banner__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
}
.wa-banner__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-banner__icon svg { width: 16px; height: 16px; }
.wa-banner__text {
  font-size: 14px;
  color: var(--fg-1);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
.wa-banner__text b { font-weight: 600; }
.wa-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: background var(--t-base), color var(--t-base);
  flex-shrink: 0;
}
.wa-banner__cta:hover { background: var(--ink); color: var(--paper); }
.wa-banner__cta .arrow { transition: transform var(--t-base) var(--ease-out); }
.wa-banner__cta:hover .arrow { transform: translateX(3px); }
.wa-banner__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-3);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-base), color var(--t-base);
  border: 0;
  background: transparent;
}
.wa-banner__close:hover { background: var(--paper); color: var(--ink); }
.wa-banner__close svg { width: 14px; height: 14px; }
.wa-banner__text-mobile { display: none; }
@media (max-width: 720px) {
  .wa-banner__text-desktop { display: none; }
  .wa-banner__text-mobile { display: inline; }
  .wa-banner__cta { padding: 0 12px; font-size: 12px; }
}

/* ─────────── CTA in-line · CANAL WHATSAPP ─────────── */
.wa-inline {
  max-width: var(--read-width);
  margin: clamp(40px, 5vw, 56px) auto;
  padding: clamp(24px, 3vw, 32px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.wa-inline h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.wa-inline p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────── BLOQUE CANAL EN PIE DE POST ─────────── */
.wa-foot {
  padding: clamp(28px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.wa-foot p {
  font-size: 15.5px;
  color: var(--fg-1);
  margin: 0;
  line-height: 1.45;
  max-width: 44ch;
}

/* ─────────── HERO MICROTEXT · LINK CANAL ─────────── */
.nl-alt {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-3);
}
.nl-alt a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  font-weight: 500;
  transition: color var(--t-base), border-color var(--t-base);
}
.nl-alt a:hover { color: #20bf5b; border-color: #20bf5b; }
.related {
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--hairline);
}
.related__head { margin-bottom: clamp(28px, 3vw, 40px); }
.related__head h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
