/* ══════════════════════════════════════════════════════════════
   CROUTON-ARTICLE.CSS — layout compartido de los articulos del blog
   ══════════════════════════════════════════════════════════════
   Se carga DESPUES de crouton-system.css (de donde toma tokens,
   tipografia base, botones, footer y nav) y antes del <style>
   propio del articulo, si lo tuviera.

   Ritmo: un solo acto Miga hasta el CTA (Toronja) y el footer
   (Carbon). El hero es Miga por regla dura del sistema — el nav
   transparente usa --carbon-70 y necesita fondo claro detras al
   llegar al tope de la pagina.
   ══════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────── */
.article-hero { padding: 148px 56px 56px; background: var(--miga); border-bottom: 2px solid var(--carbon-12); }
.article-hero-inner { max-width: 720px; margin: 0 auto; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--carbon-70); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a { color: var(--carbon-70); transition: color .2s; }
.breadcrumb a:hover { color: var(--carbon); }
.breadcrumb span { color: var(--carbon-12); }

.article-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--carbon-70); margin-bottom: 20px; }
.article-tag::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--toronja); }

.article-h1 { font-family: var(--font); font-weight: 900; font-size: clamp(28px, 4vw, 50px); letter-spacing: -1.5px; line-height: 1.08; color: var(--carbon); margin-bottom: 24px; }

.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--carbon-70); padding-top: 24px; border-top: 2px solid var(--carbon-12); }
.article-meta a { color: var(--carbon); font-weight: 700; }
.article-meta a:hover { text-decoration: underline; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--carbon-12); }

/* ── CUERPO ───────────────────────────────────────────────── */
.article-body { max-width: 720px; margin: 0 auto; padding: 56px 56px 100px; background: var(--miga); }

.article-body h2 { font-family: var(--font); font-weight: 900; font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -.6px; line-height: 1.18; margin: 52px 0 20px; color: var(--carbon); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font); font-weight: 700; font-size: 19px; letter-spacing: -.3px; margin: 32px 0 12px; color: var(--carbon); }
.article-body p { font-family: var(--font); font-size: 17px; font-weight: 400; line-height: 1.75; color: var(--carbon-70); margin-bottom: 20px; }
.article-body strong { color: var(--carbon); font-weight: 700; }
.article-body a { color: var(--carbon); text-decoration: underline; text-decoration-color: var(--toronja); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.article-body a:hover { text-decoration-color: var(--carbon); }
/* .btn-dark trae su propio color (Miga) — la regla generica de arriba tiene
   mayor especificidad (.article-body a) y lo pisaba, dejando el boton
   invisible (Carbon sobre Carbon). Se restaura explicitamente. */
.article-body a.btn-dark { color: var(--miga); text-decoration: none; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.article-body li { font-family: var(--font); font-size: 17px; font-weight: 400; line-height: 1.7; color: var(--carbon-70); }
.article-body ul li::marker { color: var(--toronja); }
.article-body ol li::marker { color: var(--carbon); font-weight: 700; }

/* ── TABLA DE DATOS ───────────────────────────────────────────
   .price-table es el nombre historico (articulo de precios).
   .data-table es el alias generico para tablas no monetarias. */
.price-table, .data-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-family: var(--font); font-size: 15px; }
.price-table th, .data-table th { font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--carbon-70); padding: 12px 18px; text-align: left; border-bottom: 2px solid var(--carbon-12); }
.price-table td, .data-table td { padding: 16px 18px; border-bottom: 1px solid var(--carbon-12); color: var(--carbon-70); vertical-align: top; }
.price-table tr:last-child td, .data-table tr:last-child td { border-bottom: none; }
.price-highlight { font-family: var(--font); font-weight: 900; font-size: 17px; color: var(--carbon); }
/* Envoltorio para que las tablas anchas hagan scroll propio y el body
   nunca scrollee en horizontal. */
.table-wrap { overflow-x: auto; margin: 28px 0; }
.table-wrap .price-table, .table-wrap .data-table { margin: 0; min-width: 520px; }

/* ── CALLOUT — superficie Durazno, nunca texto de color ───── */
.callout { background: var(--durazno); border: 2px solid var(--carbon); border-radius: 16px; padding: 20px 24px; margin: 28px 0; box-shadow: var(--sombra-sm); }
.callout p { color: var(--carbon); margin-bottom: 0; font-size: 16px; font-weight: 500; }
.callout p + p { margin-top: 12px; }
.callout strong { color: var(--carbon); font-weight: 800; }

/* ── FAQ (variante Miga del acordeon compartido) ──────────── */
.art-faq { margin: 52px 0 0; }
.art-faq h2 { margin-top: 0; }
.art-faq-item { border-bottom: 2px solid var(--carbon-12); }
.art-faq-item:last-child { border-bottom: none; }
.art-faq-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; text-align: left; font-family: var(--font); font-weight: 700; font-size: 17px; color: var(--carbon); cursor: pointer; }
.art-faq-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.art-faq-icon::before, .art-faq-icon::after { content: ''; position: absolute; background: var(--carbon); border-radius: 2px; }
.art-faq-icon::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.art-faq-icon::after { width: 2px; height: 14px; top: 4px; left: 10px; transition: transform .25s var(--ease); }
.art-faq-item.open .art-faq-icon::after { transform: rotate(90deg); }
.art-faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.art-faq-item.open .art-faq-body { grid-template-rows: 1fr; }
.art-faq-body-inner { overflow: hidden; }
.art-faq-body p { font-family: var(--font); font-size: 16px; font-weight: 400; color: var(--carbon-70); line-height: 1.7; padding-bottom: 20px; margin: 0; }

/* ── CTA inline — Toronja, cierre de acto ─────────────────── */
.article-cta { background: var(--toronja); border-radius: 20px; padding: 48px 40px; text-align: center; margin: 56px 0; position: relative; overflow: hidden; box-shadow: var(--sombra); }
.article-cta::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(35,33,32,.08) 1.5px, transparent 1.5px); background-size: 26px 26px; pointer-events: none; }
.article-cta-inner { position: relative; z-index: 1; }
.article-cta h2 { font-family: var(--font); font-weight: 900; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.7px; color: var(--carbon); margin-bottom: 12px; }
.article-cta p { color: var(--carbon-70); font-size: 16px; font-weight: 500; margin-bottom: 24px; }
.cta-note { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--carbon-70); margin-top: 14px; display: block; }

/* ── Autor ────────────────────────────────────────────────── */
.author-box { display: flex; align-items: center; gap: 20px; background: var(--miga); border: 2px solid var(--carbon-12); border-radius: 16px; padding: 24px 28px; margin: 56px 0 0; box-shadow: var(--sombra-sm); }
.author-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--carbon); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-name { font-family: var(--font); font-weight: 800; font-size: 16px; color: var(--carbon); margin-bottom: 4px; }
.author-bio { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--carbon-70); line-height: 1.55; }
.author-bio a { color: var(--carbon); font-weight: 700; text-decoration: underline; text-decoration-color: var(--toronja); }

/* ── Relacionados ─────────────────────────────────────────── */
.related { margin: 56px 0 0; padding-top: 40px; border-top: 2px solid var(--carbon-12); }
.related-label { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: var(--carbon-70); margin-bottom: 20px; }
.related-links { display: flex; flex-direction: column; gap: 12px; }
.related-link { font-family: var(--font); font-weight: 700; font-size: 16px; color: var(--carbon); display: flex; align-items: center; gap: 10px; transition: gap .2s; }
.related-link::before { content: '→'; color: var(--toronja); font-size: 14px; }
.related-link:hover { gap: 14px; }

@media (max-width: 768px) {
  .article-hero, .article-body { padding-left: 24px; padding-right: 24px; }
  .article-hero { padding-top: 100px; }
  .article-body { padding-top: 40px; padding-bottom: 72px; }
  .price-table, .data-table { font-size: 13.5px; }
  .price-table th, .price-table td, .data-table th, .data-table td { padding: 10px 10px; }
  .article-cta { padding: 36px 24px; }
  .author-box { flex-direction: column; align-items: flex-start; }
}
