/* Comparativas y alternativas en estilo claro (tools/seo/build-comparativas.js).
   Va después de dp-tools.css y blog-claro.css: usa sus variables y solo suma lo propio de una comparativa. */

/* Tabla comparativa: la columna de DP resaltada en dorado. */
.dpt-prose .cmp-table table { min-width: 560px; }
.dpt-prose .cmp-table td { vertical-align: top; line-height: 1.5; }
.dpt-prose .cmp-table th.is-dp { background: var(--brand); color: var(--ink); }
.dpt-prose .cmp-table td.is-dp { background: #fffaf0; }
.dpt-prose .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-src { display: block; margin: -14px 0 26px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.cmp-src a { color: var(--muted); }

/* Veredicto: cuándo conviene cada una, en dos tarjetas. */
.cmp-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 26px; }
.cmp-pick__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.cmp-pick__card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.cmp-pick__card ul { margin: 0; padding-left: 20px; }
.cmp-pick__card li { margin-bottom: 6px; }
.cmp-pick__card.is-dp { border-color: var(--brand); background: #fffaf0; }

/* Pros y contras honestos del competidor. */
.cmp-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 26px; }
.cmp-pc > div { border-radius: var(--r); padding: 18px 20px; background: #fff; border: 1px solid var(--line); }
.cmp-pc h3 { margin: 0 0 8px; font-size: 1rem; }
.cmp-pc .is-pro h3 { color: var(--ok); }
.cmp-pc .is-con h3 { color: #b45309; }
.cmp-pc ul { margin: 0; padding-left: 20px; }
.cmp-pc li { margin-bottom: 6px; }

/* Costo a 12 meses: cifra grande por plataforma. */
.cmp-cost { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 8px 0 14px; }
.cmp-cost > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.cmp-cost small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.cmp-cost b { display: block; font: 800 1.5rem/1.2 var(--display); color: var(--ink); margin: 4px 0 2px; }
.cmp-cost span { font-size: .86rem; color: var(--ink-2); }
.cmp-cost .is-dp { border-color: var(--brand); background: #fffaf0; }

.cmp-calc__inputs { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 12px; }
.cmp-calc__inputs label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.cmp-calc__inputs input { width: 170px; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px;
  font: 600 1rem var(--body); color: var(--ink); background: #fff; }
.cmp-calc__inputs input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Hub /comparar/: tarjetas por grupo. */
.cmp-hub h2 { margin-top: 34px; }
.cmp-hub h2:first-child { margin-top: 0; }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 10px 0 8px; }
.cmp-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none !important; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s; }
.cmp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cmp-card small { color: var(--brand-ink); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.cmp-card strong { font-family: var(--display); font-size: 1.08rem; line-height: 1.25; }
.cmp-card span { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }

@media (max-width: 640px) {
  .cmp-pick, .cmp-pc, .cmp-grid { grid-template-columns: 1fr; }
}
