/* ============================================================
   Hola Crédito — pages.css
   Estilos para páginas de contenido, herramientas, blog y opiniones.
   Complementa styles.css (mismo sistema Warm Trust).
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0; font-size: 13px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--line); margin-left: 6px; }
.breadcrumb a { color: var(--forest); }
.breadcrumb li[aria-current] { color: var(--ink2); }

/* ---------- Hero de contenido ---------- */
.content-hero { background: linear-gradient(180deg, var(--cream), var(--card)); border-bottom: 1px solid var(--line); padding: 20px 0 52px; }
.content-hero .eyebrow { margin-bottom: 16px; }
.content-hero h1 { font-size: clamp(30px, 4.2vw, 44px); max-width: 780px; }
.content-hero .lead { font-size: 18px; color: var(--ink2); margin-top: 16px; max-width: 680px; }
.content-hero .hero-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.content-hero .quick-facts { margin-top: 30px; display: flex; gap: 30px; flex-wrap: wrap; }
.content-hero .qf b { font-family: 'Bricolage Grotesque'; display: block; font-size: 24px; font-weight: 700; color: var(--forest); }
.content-hero .qf span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- Layout artículo con TOC ---------- */
.article-wrap { max-width: 1140px; margin: 0 auto; padding: 48px 30px 72px; display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
.article-wrap.no-toc { grid-template-columns: 1fr; max-width: 820px; }
.toc { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.toc h4, .toc .toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 14px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 9px; margin: 0; padding: 0; }
.toc li { counter-increment: toc; }
.toc a:not(.toc-cta) { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink2); font-weight: 600; line-height: 1.4; }
.toc a:not(.toc-cta)::before { content: counter(toc); color: var(--forest); font-weight: 800; flex: 0 0 auto; }
.toc a:not(.toc-cta):hover { color: var(--forest); }
.toc .toc-cta { margin-top: 18px; color: #fff; }

/* ---------- Prose ---------- */
.prose { font-size: 16px; color: var(--ink2); line-height: 1.75; }
.prose > h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--ink); margin: 40px 0 14px; scroll-margin-top: 90px; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { font-size: 19px; color: var(--ink); margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 0; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose a:not(.btn) { color: var(--forest); font-weight: 600; }
.prose a.btn-primary { color: #fff; }
.prose a.btn-ghost { color: var(--ink); }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius-sm); margin: 20px 0; }

/* Callout / aviso destacado */
.callout { display: flex; gap: 14px; background: var(--forest-soft); border: 1px solid #cfe3d7; border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; }
.callout svg { width: 22px; height: 22px; stroke: var(--forest); fill: none; stroke-width: 1.8; flex: 0 0 auto; margin-top: 2px; }
.callout p { margin: 0; font-size: 14.5px; color: var(--forest-d); }
.callout.warn { background: var(--terra-soft); border-color: #f0d3bd; }
.callout.warn svg { stroke: var(--terra); }
.callout.warn p { color: #9a4f1e; }
.callout strong { color: inherit; }

/* Key-answer box (AEO/GEO — respuesta directa) */
.key-answer { background: var(--card); border: 1.5px solid var(--forest); border-radius: var(--radius-sm); padding: 20px 22px; margin: 0 0 28px; box-shadow: var(--shadow); }
.key-answer .ka-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--forest); margin-bottom: 10px; }
.key-answer .ka-label svg { width: 15px; height: 15px; stroke: var(--forest); fill: none; stroke-width: 2; }
.key-answer p { font-size: 16px; color: var(--ink); margin: 0; font-weight: 500; }

/* Tabla de datos genérica en prosa */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.data-table thead th { background: var(--forest); color: #fff; text-align: left; padding: 13px 18px; font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 13px; letter-spacing: .01em; }
.data-table td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink2); }
.data-table tbody tr:nth-child(even) { background: var(--cream); }
.data-table td strong { color: var(--ink); }

/* ---- Tabla comparativa de entidades (versión pro) ---- */
.ct-comp { border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ct-comp thead th { background: var(--ink); padding: 15px 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #c9cabf; }
.ct-comp tbody tr { transition: background .15s; }
.ct-comp tbody tr:nth-child(even) { background: transparent; }
.ct-comp tbody tr:hover { background: var(--cream); }
.ct-comp td { padding: 16px 20px; vertical-align: middle; border-top: 1px solid var(--line); }
.ct-comp td[data-label] { font-weight: 600; white-space: nowrap; }
.ct-comp td[data-label="TAE 1er"] strong { font-family: 'Bricolage Grotesque'; font-size: 15px; }
.ct-comp td { padding: 16px 14px; }
.ct-comp td:first-child { padding-left: 20px; }
.ct-comp thead th { padding: 15px 14px; }
.ct-comp td:last-child { text-align: right; white-space: nowrap; width: 130px; }
.ct-comp td:last-child .btn { padding: 10px 20px; font-size: 14px; white-space: nowrap; }
/* Marca con logo (más grande, rating alineado) */
.ct-brand { display: flex; align-items: center; gap: 14px; }
.ct-logo { width: 84px; height: 46px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 5px 9px; flex: 0 0 auto; }
.ct-ini { width: 46px; height: 46px; border-radius: 11px; color: #fff; font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ct-brand strong { font-family: 'Bricolage Grotesque'; font-size: 15.5px; color: var(--ink); }
.ct-brand > span > span[style] { font-size: 12.5px; }
@media (max-width: 700px) {
  .ct-comp thead { display: none; }
  .ct-comp, .ct-comp tbody, .ct-comp tr, .ct-comp td { display: block; width: 100%; }
  .ct-comp tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; padding: 8px 6px; box-shadow: var(--shadow); }
  .ct-comp td { border: 0 !important; padding: 7px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .ct-comp td:first-child { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line) !important; }
  .ct-comp td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-weight: 700; font-size: 12px; }
  .ct-comp td:last-child { width: auto; text-align: center; padding-top: 12px; }
  .ct-comp td:last-child .btn { width: 100%; }
  .ct-comp td:last-child .btn { width: 100%; }
}

/* Steps numeradas en prosa */
.steplist { list-style: none; counter-reset: sl; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.steplist li { counter-increment: sl; position: relative; padding-left: 46px; min-height: 32px; }
.steplist li::before { content: counter(sl); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--forest-soft); color: var(--forest); font-family: 'Bricolage Grotesque'; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steplist li strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* Pros/Cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; align-items: stretch; }
.pc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; display: flex; flex-direction: column; }
.pc h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pc h3::before { content: ''; width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto; background-size: 14px; background-repeat: no-repeat; background-position: center; }
.pc.pros h3 { color: var(--forest); }
.pc.cons h3 { color: var(--terra); }
.pc.pros h3::before { background-color: var(--forest); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }
.pc.cons h3::before { background-color: var(--terra); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.pc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; align-content: start; }
.pc li { font-size: 14.5px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.pc li + li { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.pc li::before { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; }
.pc.pros li::before { content: '✓'; color: var(--forest); background: var(--forest-soft); }
.pc.cons li::before { content: '✕'; color: var(--terra); background: var(--terra-soft); }

/* ---------- Grid de tarjetas (hubs) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: .18s; display: block; color: inherit; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d8ccb8; }
.info-card .ic-box { width: 46px; height: 46px; border-radius: 12px; background: var(--forest-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.info-card .ic-box svg { width: 24px; height: 24px; stroke: var(--forest); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3, .info-card .card-title { font-size: 17px; margin-bottom: 7px; }
.info-card p { font-size: 14px; color: var(--ink2); margin: 0; }
.info-card .arrow { color: var(--forest); font-weight: 700; font-size: 14px; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }

/* Chip grid (por-cantidad) */
.chip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.amount-chip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 12px; text-align: center; box-shadow: var(--shadow); transition: .18s; color: inherit; display: block; }
.amount-chip:hover { transform: translateY(-2px); border-color: var(--forest); }
.amount-chip b { font-family: 'Bricolage Grotesque'; display: block; font-size: 22px; font-weight: 700; color: var(--ink); }
.amount-chip span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Comparador / tabla de entidades ---------- */
.comparator { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.comp-filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--cream); align-items: center; }
.comp-filters .fl-label { font-size: 13px; font-weight: 700; color: var(--ink2); margin-right: 4px; }
.comp-chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: .15s; }
.comp-chip:hover { border-color: var(--forest); color: var(--forest); }
.comp-chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.comp-row { display: grid; grid-template-columns: 1.7fr 1fr .9fr 1fr .9fr .8fr 130px; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.comp-badge { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--terra); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.comp-badge.top { background: linear-gradient(135deg, var(--forest), var(--forest-d)); }
.comp-row .btn { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.comp-row:last-child { border-bottom: 0; }
.comp-row.head { background: var(--ink); padding: 13px 22px; }
.comp-row.head span { color: #b6b7ab; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.comp-row.top { background: var(--cream); box-shadow: inset 3px 0 0 var(--gold); }
.comp-brand { display: flex; align-items: center; gap: 12px; }
.comp-brand .av { width: 42px; height: 42px; border-radius: 11px; color: #fff; font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.comp-brand .comp-logo { width: 76px; height: 44px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 5px 9px; flex: 0 0 auto; }
.comp-brand .nm { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 15px; }
.comp-brand .st { font-size: 12px; color: var(--muted); font-weight: 600; }
.comp-brand .st .s { color: var(--gold); }
.comp-val b { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 14.5px; }
.comp-val b.g { color: var(--forest); }
.comp-empty { padding: 30px; text-align: center; color: var(--muted); font-weight: 600; }

/* ---------- Herramienta calculadora (página) ---------- */
.tool-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.tool-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; position: sticky; top: 96px; }

/* ---------- Glosario ---------- */
.glossary-alpha { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.glossary-alpha a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--forest); background: var(--card); }
.glossary-alpha a:hover { background: var(--forest); color: #fff; }
.glossary-list { display: grid; gap: 16px; }
.glossary-term { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; scroll-margin-top: 90px; }
.glossary-term h3, .glossary-term .card-title { font-size: 19px; margin-bottom: 8px; }
.glossary-term p { font-size: 14.5px; color: var(--ink2); margin: 0; }
.glossary-term .tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--cream); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Related links ---------- */
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 36px; }
.related h2 { font-size: 20px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink2); background: var(--card); transition: .15s; }
.related-grid a:hover { border-color: var(--forest); color: var(--forest); }
.related-grid a::before { content: '→'; color: var(--forest); font-weight: 800; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: block; color: inherit; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card .thumb { height: 150px; background: var(--forest-soft); display: flex; align-items: center; justify-content: center; }
.blog-card .thumb svg { width: 56px; height: 56px; stroke: var(--forest); fill: none; stroke-width: 1.5; opacity: .8; }
.blog-card .body { padding: 20px 22px; }
.blog-card .cat { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--terra); }
.blog-card h3, .blog-card .card-title { font-size: 17px; margin: 8px 0; line-height: 1.25; }
.blog-card p { font-size: 13.5px; color: var(--ink2); margin: 0; }
.blog-card .meta { font-size: 12px; color: var(--muted); margin-top: 12px; font-weight: 600; }

.article-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 14px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ---------- Author / E-E-A-T box ---------- */
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin: 32px 0; }
.author-box .av { width: 52px; height: 52px; border-radius: 50%; background: var(--forest); color: #fff; font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.author-box h3 { font-size: 15px; margin-bottom: 3px; }
.author-box p { font-size: 13px; color: var(--ink2); margin: 0; }

/* ---------- Mega menu ---------- */
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; opacity: 0; visibility: hidden; transition: .16s; z-index: 60; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.mega a:hover { background: var(--cream); }
.mega a .mi { width: 34px; height: 34px; border-radius: 9px; background: var(--forest-soft); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mega a .mi svg { width: 18px; height: 18px; stroke: var(--forest); fill: none; stroke-width: 1.8; }
.mega a b { display: block; font-size: 14px; font-weight: 700; }
.mega a span { font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-wrap { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .card-grid, .blog-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-panel { position: static; }
  .comp-row { grid-template-columns: 1.4fr 1fr 110px; }
  .comp-row .hideM { display: none; }
  .mega { display: none; }
}
@media (max-width: 700px) {
  /* Comparador: cada fila pasa a tarjeta apilada CON TODA la información
     (importe, plazo, TAE, ingreso, edad). Al apilarse con etiqueta no hay
     falta de espacio, así que mostramos también las columnas hideM. */
  .comp-row.head { display: none; }
  .comp-row { grid-template-columns: 1fr 1fr; row-gap: 10px; column-gap: 14px; padding: 18px 16px; align-items: start; }
  .comp-row .hideM { display: block; }
  .comp-row .comp-val { grid-column: auto; }
  .comp-row .comp-val::before { content: attr(data-label); display: block; color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
  .comp-row .comp-brand { grid-column: 1 / -1; margin-bottom: 4px; }
  .comp-row .btn { grid-column: 1 / -1; width: 100%; margin-top: 8px; padding: 15px 12px; white-space: normal; }
  .comp-filters { padding: 14px 16px; }
  .comp-chip { padding: 8px 14px; font-size: 12.5px; }
  /* data-table genérica → tarjetas apiladas en móvil (evita overflow) */
  .data-table:not(.ct-comp) thead { display: none; }
  .data-table:not(.ct-comp), .data-table:not(.ct-comp) tbody, .data-table:not(.ct-comp) tr, .data-table:not(.ct-comp) td { display: block; width: 100%; }
  .data-table:not(.ct-comp) tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  .data-table:not(.ct-comp) td { border: 0; padding: 6px 14px; }
}
@media (max-width: 600px) {
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: 1fr 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .content-hero .quick-facts { gap: 20px; }
  .content-hero h1 { font-size: clamp(24px, 7vw, 34px); word-break: break-word; }
  .content-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .content-hero .hero-actions .btn { width: 100%; }
  .prose > h2 { font-size: 22px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 9px 10px; }
}

/* ============================================================
   Refinamientos estéticos (v2) — más pulido y profesional
   ============================================================ */

/* Hero de contenido: fondo con textura sutil + eyebrow tipo pill */
.content-hero { background:
  radial-gradient(680px 340px at 88% -30%, rgba(47,93,67,.06), transparent 62%),
  radial-gradient(420px 300px at -5% 120%, rgba(200,112,60,.05), transparent 60%),
  linear-gradient(180deg, var(--cream), var(--card)); }
.content-hero .eyebrow { box-shadow: var(--shadow); }

/* Quick-facts: tarjetas con separador, no texto suelto */
.content-hero .quick-facts { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: inline-flex; overflow: hidden; padding: 0; }
.content-hero .qf { padding: 16px 26px; border-left: 1px solid var(--line); }
.content-hero .qf:first-child { border-left: 0; }
.content-hero .qf b { font-size: 22px; margin-bottom: 2px; }
@media (max-width: 600px) { .content-hero .quick-facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .content-hero .qf { border-top: 1px solid var(--line); } .content-hero .qf:nth-child(-n+2) { border-top: 0; } .content-hero .qf:nth-child(odd) { border-left: 0; } }

/* Key-answer: barra de acento a la izquierda + icono en círculo */
.key-answer { border: 1px solid var(--line); border-left: 4px solid var(--forest); background: linear-gradient(180deg, var(--forest-soft), var(--card) 60%); position: relative; }
.key-answer .ka-label { background: var(--forest); color: #fff; padding: 4px 11px; border-radius: 999px; }
.key-answer .ka-label svg { stroke: #fff; }
.key-answer p { line-height: 1.6; }

/* Prose: h2 con marcador decorativo */
.prose > h2 { position: relative; padding-top: 6px; }
.prose > h2::before { content: ''; position: absolute; top: -14px; left: 0; width: 42px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--forest), var(--terra)); }
.prose > h2:first-child::before { display: none; }
.prose > h2:first-child { padding-top: 0; }
/* Listas con viñeta de marca */
.prose ul:not(.steplist):not(.pc ul) { list-style: none; padding-left: 0; }
.prose ul:not(.steplist):not(.pc ul) > li { position: relative; padding-left: 28px; }
.prose ul:not(.steplist):not(.pc ul) > li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px var(--forest-soft); }
.oc-tags li { padding-left: 0 !important; }
.oc-tags li::before, .comp-chip::before { display: none !important; }

/* Steps: número en círculo con degradado + línea conectora */
.steplist { position: relative; }
.steplist li::before { background: linear-gradient(135deg, var(--forest), var(--forest-d)); color: #fff; box-shadow: 0 4px 10px rgba(47,93,67,.28); font-size: 15px; }

/* Callout: acento lateral + más aire */
.callout { border-left: 4px solid var(--forest); align-items: flex-start; }
.callout.warn { border-left-color: var(--terra); }

/* Pros/Cons: encabezado con fondo suave */
.pc { box-shadow: var(--shadow); }
.pc.pros { background: linear-gradient(180deg, var(--forest-soft), var(--card) 55%); }
.pc.cons { background: linear-gradient(180deg, var(--terra-soft), var(--card) 55%); }
.pc h3 { font-family: 'Bricolage Grotesque'; }

/* FAQ dentro de prose: tarjetas con hover + icono */
.prose .faq-item { border-radius: var(--radius-sm); transition: box-shadow .18s, border-color .18s; }
.prose .faq-item:hover { border-color: var(--border-strong, #e3cfbe); box-shadow: var(--shadow); }
.prose .faq-item[open] { box-shadow: var(--shadow); border-color: #cfe0d6; }
.prose .faq-item summary { font-family: 'Bricolage Grotesque'; }

/* Related: tarjetas más ricas */
.related h2 { position: relative; padding-top: 6px; }
.related-grid a { background: var(--card); box-shadow: var(--shadow); padding: 14px 18px; font-weight: 700; position: relative; }
.related-grid a::before { content: '→'; width: 28px; height: 28px; border-radius: 8px; background: var(--forest-soft); color: var(--forest); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: .18s; }
.related-grid a:hover { border-color: var(--forest); }
.related-grid a:hover::before { background: var(--forest); color: #fff; }

/* Author box: acento */
.author-box { border-left: 4px solid var(--forest); }

/* TOC: activo/pulido */
.toc { box-shadow: var(--shadow); }
.toc a { padding: 3px 0; }

/* Info-cards (hubs): flechita animada */
.info-card { position: relative; }
.info-card:hover .arrow { gap: 9px; }
.info-card .arrow { transition: gap .18s; }

/* Hero actions en prose: primario con sombra de marca */
.content-hero .hero-actions .btn-primary { box-shadow: 0 8px 20px rgba(47,93,67,.26); }

/* ---- Hero de blog con illustration ---- */
.hero-blog { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-blog-txt h1 { margin-top: 4px; }
.hero-illus { display: flex; justify-content: center; }
.hero-illus svg { width: 100%; max-width: 340px; height: auto; filter: drop-shadow(0 16px 32px rgba(34,35,29,.10)); }
@media (max-width: 820px) {
  .hero-blog { grid-template-columns: 1fr; gap: 8px; }
  .hero-illus { order: -1; max-width: 260px; margin: 0 auto 4px; }
}

/* Meta del artículo: separadores más finos */
.article-meta { flex-wrap: wrap; }

/* Blog: article un pelín más ancho y legible */
.article-wrap.no-toc { max-width: 860px; }
.article-wrap.no-toc .prose { font-size: 16.5px; }
