/* ══════════════════════════════════════════════════════════════════════
   HERBARIO MODERNO · capa de diseño editorial botánico premium · Roelplant
   ----------------------------------------------------------------------
   Capa de REFINAMIENTO compartida para las landings SEO de /contenido/.
   Carga DESPUÉS de bootstrap + del <style> inline de cada página, por lo
   que gana en la cascada a igual especificidad.

   PRINCIPIO: aditivo y respetuoso.
     · Eleva tipografía (Fraunces display + Hanken Grotesk cuerpo)
     · Refina componentes: badges, tablas, FAQ, cards, CTA, breadcrumb
     · NO toca el FONDO del hero (cada planta conserva su imagen propia)
     · NO toca el grid de Bootstrap ni el HTML/JSON-LD (SEO intacto)

   Fuentes: requiere el <link> de Fraunces + Hanken Grotesk en el <head>.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --rp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --rp-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rp-ink: #211e1b;        /* tinta editorial cálida */
  --rp-ink-soft: #4a443c;
  --rp-paper: #faf8f4;      /* papel cálido */
  --rp-paper-2: #f3efe6;
  --rp-sage: #2f5d3f;       /* verde herbario profundo */
  --rp-rule: #e6ddcf;       /* hairline cálido */
}

/* ── Base tipográfica ──────────────────────────────────────────────── */
body {
  font-family: var(--rp-sans);
  color: var(--rp-ink-soft);
  background: var(--rp-paper);
  line-height: 1.72;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(210,71,74,0.18); color: var(--rp-ink); }

/* ── Hero: solo TIPOGRAFÍA y primer plano (NO el fondo) ────────────── */
.hero h1,
.hero-content h1,
[class*="hero"] > .container h1,
[class*="hero"] h1 {
  font-family: var(--rp-serif) !important;
  font-optical-sizing: auto;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero p.subtitle,
.hero-content p.subtitle,
.hero .subtitle { line-height: 1.6; }

/* Badges del hero — versalita editorial con viñeta coral */
.hero-badge,
.hero-tag {
  display: inline-flex !important; align-items: center; gap: 6px;
  border-radius: 2px !important;
  font-size: 12px !important; font-weight: 600 !important;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 13px !important;
}

/* ── Secciones ─────────────────────────────────────────────────────── */
.section h2,
section h2.section-title,
.section-title {
  font-family: var(--rp-serif) !important;
  font-optical-sizing: auto;
  font-weight: 600 !important;
  color: var(--rp-ink);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
  position: relative;
  padding-top: 18px;
}
.section h2::before,
.section-title::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 44px; height: 3px; background: var(--rp-primary, #d2474a);
}
.cta-final h2::before,
.hero h2::before { display: none !important; }

.section h3,
.section h4.subhead {
  font-family: var(--rp-serif) !important;
  font-weight: 600 !important;
  color: var(--rp-sage);
  letter-spacing: -0.01em;
}

/* ── Tablas editoriales ────────────────────────────────────────────── */
.data-table { border-collapse: collapse; font-size: 16px; }
.data-table th {
  background: transparent !important; color: var(--rp-ink) !important;
  font-family: var(--rp-sans); font-weight: 700 !important;
  font-size: 12px !important; letter-spacing: 0.09em; text-transform: uppercase;
  border-bottom: 2px solid var(--rp-ink) !important;
  padding: 12px 14px !important; text-align: left;
}
.data-table td {
  padding: 13px 14px !important;
  border-bottom: 1px solid var(--rp-rule) !important;
  color: var(--rp-ink-soft);
}
.data-table tr:nth-child(even) td { background: rgba(210,71,74,0.035) !important; }
.data-table tr:last-child td { border-bottom: 2px solid var(--rp-ink) !important; }

/* ── Product cards ─────────────────────────────────────────────────── */
.product-card {
  border-radius: 5px !important;
  border: 1px solid var(--rp-rule) !important;
  box-shadow: 0 1px 0 var(--rp-rule) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(33,30,27,0.13) !important;
  border-color: rgba(210,71,74,0.4) !important;
}
.product-card h3 { font-family: var(--rp-serif) !important; font-weight: 600 !important; color: var(--rp-ink) !important; }
.product-card .price { font-family: var(--rp-serif) !important; font-weight: 600 !important; color: var(--rp-primary, #d2474a) !important; letter-spacing: -0.01em; }
.product-card .price small { font-family: var(--rp-sans) !important; font-weight: 400 !important; letter-spacing: 0; }
.product-card .badge {
  border-radius: 2px !important; letter-spacing: 0.07em; text-transform: uppercase;
  font-weight: 700 !important;
}
.product-card .btn-card {
  background: var(--rp-ink) !important; border-radius: 3px !important;
  font-weight: 600 !important; transition: background .2s;
}
.product-card .btn-card:hover { background: var(--rp-primary, #d2474a) !important; }

/* ── Info cards / pull-quotes ──────────────────────────────────────── */
.info-card {
  border: 1px solid var(--rp-rule) !important;
  border-left: 3px solid var(--rp-primary, #d2474a) !important;
  border-radius: 4px !important;
}
.info-card h4 { font-family: var(--rp-serif) !important; font-weight: 600 !important; color: var(--rp-ink) !important; }

/* ── FAQ — acordeón editorial fino ─────────────────────────────────── */
details.faq-item {
  background: transparent !important; box-shadow: none !important;
  border: 0 !important; border-bottom: 1px solid var(--rp-rule) !important;
  border-radius: 0 !important; padding: 20px 4px !important; margin-bottom: 0 !important;
}
details.faq-item summary {
  font-family: var(--rp-serif) !important; font-weight: 600 !important;
  color: var(--rp-ink) !important; font-size: 19px !important;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+'; font-family: var(--rp-sans); font-weight: 400; font-size: 26px;
  color: var(--rp-primary, #d2474a); transition: transform .25s ease; line-height: 1;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { color: var(--rp-ink-soft) !important; }

/* ── CTA final ─────────────────────────────────────────────────────── */
.cta-final h2 { font-family: var(--rp-serif) !important; font-weight: 600 !important; }

/* ── Breadcrumb editorial ──────────────────────────────────────────── */
.breadcrumb-nav {
  background: transparent !important;
  border-bottom: 1px solid var(--rp-rule) !important;
  font-size: 12px !important; letter-spacing: 0.06em; text-transform: uppercase;
}
.breadcrumb-nav a { font-weight: 600 !important; }

/* ── Botones (refinamiento de radio) ───────────────────────────────── */
.btn-hero-primary, .btn-hero-secondary { border-radius: 3px !important; }

/* ── Galería ───────────────────────────────────────────────────────── */
.gallery-img { border-radius: 4px !important; filter: saturate(1.04); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { font-size: 16px; }
}
