/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #10233f;
  --navy-soft: #1a3358;
  --mint: #2fbf94;
  --mint-soft: #e4f8f1;
  --amber: #f2a950;
  --amber-soft: #fdf1e0;
  --red: #e35c5c;
  --red-soft: #fbe8e8;
  --green: #2fbf6f;
  --yellow: #f2c14e;

  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #10233f;
  --text-muted: #5b6b82;
  --border: #dde4ee;

  --sans: "Manrope", "Inter", system-ui, sans-serif;
  --body-font: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(16, 35, 63, 0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
/* El atributo [hidden] debe ganar siempre a cualquier "display" fijado por
   una clase (misma especificidad 0,1,0 -> sin esto, la clase que carga
   después en la cascada gana y el elemento "oculto" se sigue viendo). Afecta
   a .ad-slot, .corner-ad, .auth-form, .sim-compare, etc. */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--sans); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--mint); color: var(--navy); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--navy); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: .9rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.seo-section p { color: var(--text-muted); max-width: 68ch; }
.seo-section p + h3 { margin-top: 1.4rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn-pro { background: var(--navy); color: #fff; }
.btn-pro:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16,35,63,.25); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-text { background: none; color: var(--text-muted); font-weight: 600; text-decoration: underline; }

/* =============================================================
   6. Header
   ============================================================= */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .85rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s var(--ease-out), opacity .2s var(--ease-out); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 720px) { .nav-toggle { display: none; } }

.site-nav { display: none; align-items: center; gap: 1.4rem; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--mint); }
.site-nav.is-open {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  padding: .5rem 1.25rem 1rem;
}
.site-nav.is-open a { padding: .7rem 0; border-bottom: 1px solid var(--border); }
.site-nav.is-open .account-box { padding-top: .9rem; }
@media (min-width: 720px) {
  .site-nav { display: flex; }
  .site-nav.is-open { position: static; box-shadow: none; border-bottom: 0; padding: 0; flex-direction: row; }
  .site-nav.is-open a { padding: 0; border-bottom: 0; }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero { padding-block: 2.6rem 1.6rem; text-align: center; }
.hero-subtitle { max-width: 62ch; margin: 1rem auto 0; color: var(--text-muted); font-size: 1.08rem; }

/* =============================================================
   8. Tool card
   ============================================================= */
.tool-section { padding-block: .5rem 3rem; }
.tool-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.income-row { margin-bottom: 1.6rem; }
.income-row label { font-weight: 800; font-family: var(--sans); font-size: 1.05rem; color: var(--navy); }
.income-header { margin-bottom: .9rem; }
.income-sub { color: var(--text-muted); font-size: .88rem; margin-top: .3rem; font-weight: 400; }
.income-list { display: grid; gap: .7rem; }
@media (min-width: 540px) { .income-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.income-item { position: relative; display: grid; gap: .3rem; }
.income-item label { font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.income-remove {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border); color: var(--text-muted); font-size: 1rem;
  line-height: 1; display: flex; align-items: center; justify-content: center;
}
.income-remove:hover { border-color: var(--red); color: var(--red); }
.income-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem; }
.btn-small { padding: .55rem 1rem; font-size: .85rem; }
.income-total { font-weight: 700; color: var(--navy); font-size: .95rem; }
.income-total strong { font-variant-numeric: tabular-nums; }

.income-input, .expense-input {
  display: flex; align-items: center; gap: .35rem;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .4rem .7rem;
}
.income-input { border-color: var(--navy); min-width: 160px; }
.income-input span, .expense-input span { color: var(--text-muted); font-weight: 600; }
.income-input input, .expense-input input {
  border: 0; outline: 0; background: none; font: inherit; width: 100%;
  font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.expense-input input { font-size: .95rem; font-weight: 600; }
.expense-input { max-width: 130px; }

.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 960px) { .tool-grid { grid-template-columns: 1.6fr 1fr; } }

.expense-groups { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (min-width: 720px) { .expense-groups:first-child { grid-template-columns: 1fr 1fr; } }

.expense-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; background: #fff; }
.expense-group legend {
  display: flex; align-items: center; gap: .5rem; font-family: var(--sans);
  font-weight: 800; padding: 0 .3rem; color: var(--navy);
}
.bucket-target { font-weight: 600; color: var(--text-muted); font-size: .82rem; margin-left: auto; }
.bucket-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bucket-necesidades { background: var(--navy); }
.bucket-deseos { background: var(--mint); }
.bucket-ahorro { background: var(--amber); }

.expense-rows { display: grid; gap: .55rem; margin-top: .8rem; }
.expense-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.expense-row label { font-size: .9rem; color: var(--text-muted); }

.group-subtotal { margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--border); font-size: .9rem; color: var(--text-muted); }
.group-subtotal strong { color: var(--navy); }

.balance-line { font-weight: 700; padding: .9rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.balance-line.is-positive { color: var(--green); border-color: var(--green); background: var(--mint-soft); }
.balance-line.is-negative { color: var(--red); border-color: var(--red); background: var(--red-soft); }

.pro-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.tool-side { display: grid; gap: 1.2rem; align-content: start; }
.chart-card, .semaphore-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }
.chart-title { font-size: 1rem; margin-bottom: .7rem; }
#budget-chart { width: 100%; height: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .8rem; font-size: .85rem; }
.chart-legend li { display: flex; align-items: center; gap: .4rem; color: var(--text-muted); }

.semaphore-overall { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: .8rem; }
.semaphore-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--border); flex: none; }
.semaphore-dot.small { width: 10px; height: 10px; }
.semaphore-dot.green { background: var(--green); }
.semaphore-dot.yellow { background: var(--yellow); }
.semaphore-dot.red { background: var(--red); }
.semaphore-list { display: grid; gap: .55rem; font-size: .9rem; }
.semaphore-list li { display: flex; align-items: center; gap: .5rem; }
.semaphore-list b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--navy); }

.privacy-badge { margin-top: 1.4rem; font-size: .85rem; color: var(--text-muted); text-align: center; }

/* =============================================================
   9. Ad slots
   ============================================================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed #b9c3d4; border-radius: var(--radius-sm);
  background: #eef1f6; color: #8a96a8; font-weight: 700; letter-spacing: .04em;
  font-size: .8rem;
}
.ad-slot--incontent { min-height: 90px; margin-bottom: 1.2rem; }
.ad-slot--banner { min-height: 90px; }
.ad-slot--sidebar { min-height: 250px; }

.corner-ad {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  width: 260px; min-height: 90px;
  border: 1.5px dashed #b9c3d4; border-radius: var(--radius-sm);
  background: #eef1f6; color: #8a96a8; font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  animation: cornerAdIn .3s var(--ease-out);
}
@keyframes cornerAdIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.corner-ad-close {
  position: absolute; top: -10px; right: -10px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.ad-label { opacity: .9; }

/* =============================================================
   10. PRO cards + paywall
   ============================================================= */
.pro-grid { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
@media (min-width: 720px) { .pro-grid { grid-template-columns: 1fr 1fr; } }
.pro-card {
  position: relative; text-align: left; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.3rem; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.pro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pro-lock { font-size: 1.3rem; }
.pro-card p { color: var(--text-muted); font-size: .92rem; margin-top: .3rem; }
.pro-badge {
  position: absolute; top: 1rem; right: 1rem; background: var(--navy); color: #fff;
  font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .04em;
}

.paywall { border: 0; border-radius: var(--radius); padding: 0; max-width: 440px; width: calc(100% - 2rem); box-shadow: 0 20px 60px rgba(16,35,63,.3); }
.paywall::backdrop { background: rgba(16,35,63,.55); backdrop-filter: blur(2px); }
.paywall-inner { padding: 1.8rem; display: grid; gap: 1rem; position: relative; }
.paywall-close { position: absolute; top: .8rem; right: .9rem; font-size: 1.4rem; color: var(--text-muted); line-height: 1; }
.paywall-benefits { display: grid; gap: .5rem; font-size: .95rem; }
.paywall-soon { font-size: .85rem; color: var(--text-muted); background: var(--bg-alt); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.paywall .btn-pro { justify-self: stretch; }
.paywall .btn-text { justify-self: center; }

/* =============================================================
   11. SEO / landing sections
   ============================================================= */
.seo-section { padding-block: 2.6rem; }
.seo-section--alt { background: var(--bg-alt); }
.steps-list { display: grid; gap: 1.2rem; margin-top: 1rem; }
@media (min-width: 720px) { .steps-list { grid-template-columns: repeat(3, 1fr); } }
.steps-list li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.3rem; }
.steps-list p { color: var(--text-muted); font-size: .93rem; }

.benefits-grid { display: grid; gap: 1.1rem; margin-top: 1rem; }
@media (min-width: 720px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-card { background: var(--mint-soft); border-radius: var(--radius-sm); padding: 1.2rem; }
.benefit-card p { color: var(--navy-soft); font-size: .9rem; }

.faq-list { display: grid; gap: .7rem; margin-top: 1rem; max-width: 76ch; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.faq-list p { margin-top: .6rem; color: var(--text-muted); font-size: .93rem; }

/* =============================================================
   12b. Guías — índice, artículo y CallToActionBanner
   ============================================================= */
.breadcrumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 .35rem; }

.guides-hero { padding-block: 2.4rem 1rem; text-align: center; }
.guides-hero p { max-width: 60ch; margin: .8rem auto 0; color: var(--text-muted); }

.guides-grid { display: grid; gap: 1.2rem; padding-block: 1rem 3rem; }
@media (min-width: 720px) { .guides-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card .guide-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--mint); text-transform: uppercase; }
.guide-card h2 { font-size: 1.2rem; margin-top: .4rem; }
.guide-card p { color: var(--text-muted); font-size: .93rem; margin-top: .5rem; }
.guide-card .guide-read { display: inline-block; margin-top: .9rem; font-weight: 700; color: var(--navy); }

.article-wrap { padding-block: 1.6rem 3rem; }
.article-wrap article { max-width: 72ch; margin-inline: auto; }
.article-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .05em; color: var(--mint-soft); background: var(--navy); display: inline-block; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.article-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.article-dek { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 1.8rem; }
.article-wrap h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.article-wrap h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.article-wrap p { color: #33425c; margin-top: .9rem; }
.article-wrap ul, .article-wrap ol { margin-top: .9rem; padding-left: 1.3rem; color: #33425c; list-style: disc; }
.article-wrap ol { list-style: decimal; }
.article-wrap li { margin-top: .4rem; }
.article-wrap li::marker { color: var(--mint); }
.article-wrap strong { color: var(--navy); }

.cta-banner {
  margin-block: 2.4rem; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff; text-align: center; box-shadow: var(--shadow);
}
.cta-banner p { color: #dfe7f3; max-width: 46ch; margin: .6rem auto 1.3rem; }
.cta-banner .cta-title { font-family: var(--sans); font-weight: 800; font-size: 1.3rem; color: #fff; }
.cta-banner .btn { background: var(--mint); color: var(--navy); font-size: 1.02rem; padding: .9rem 1.7rem; }
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(47,191,148,.35); }

/* =============================================================
   12. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--border); padding-block: 1.6rem; margin-top: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--text-muted); }
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a:hover { color: var(--navy); }

/* =============================================================
   13. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .expense-row { gap: 1rem; }
}
@media (min-width: 1280px) {
  .container { padding-inline: 1.5rem; }
}

/* =============================================================
   14. Fase 2 — cuentas, PRO, histórico, simuladores
   ============================================================= */

/* Cuenta en el header */
.account-box { display: flex; align-items: center; gap: .6rem; }
.account-chip {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--text-muted);
}
.account-chip .pro-pill {
  background: var(--mint-soft); color: #1f9d6f; font-weight: 700;
  font-size: .72rem; padding: .15rem .5rem; border-radius: 999px;
}
.account-chip button { font-weight: 600; color: var(--navy); text-decoration: underline; }

/* Mensaje bajo los CTA PRO (guardar / exportar) */
.pro-cta-msg { flex-basis: 100%; font-size: .85rem; color: #1f9d6f; margin-top: .3rem; }
.pro-cta-msg.is-error { color: var(--red); }

/* Histórico de presupuestos guardados */
.budget-history { margin-top: 1.4rem; }
.budget-history h3 { font-size: 1rem; margin-bottom: .6rem; }
.budget-history-list { display: grid; gap: .6rem; }
.budget-history-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem;
}
.budget-history-list .bh-meta { color: var(--text-muted); }
.budget-history-list button { font-weight: 600; color: var(--navy); text-decoration: underline; font-size: .85rem; }

/* Paywall: pestañas de login/registro */
.paywall-lead { color: var(--text-muted); font-size: .92rem; }
.paywall-price { font-size: .95rem; color: var(--text-muted); }
.auth-tabs { display: flex; gap: .4rem; background: var(--bg-alt); padding: .3rem; border-radius: var(--radius-sm); }
.auth-tab { flex: 1; padding: .5rem; border-radius: 6px; font-weight: 600; font-size: .85rem; color: var(--text-muted); }
.auth-tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(16,35,63,.1); }
.auth-form { display: grid; gap: .5rem; }
.auth-form label { font-weight: 600; font-size: .85rem; margin-top: .3rem; }
.auth-form input {
  padding: .65rem .8rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem;
}
.auth-form input:focus-visible { border-color: var(--mint); }
.auth-form .btn { margin-top: .4rem; }
.auth-error { color: var(--red); font-size: .85rem; }

/* Paneles de simuladores PRO */
.pro-panel {
  margin-top: 1.4rem; background: #fff; border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow);
}
.pro-panel h3 { margin-bottom: 1rem; }
.sim-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .sim-grid { grid-template-columns: repeat(3, 1fr); } }
.sim-grid label { display: grid; gap: .4rem; font-weight: 600; font-size: .85rem; }
.sim-grid select {
  padding: .6rem .7rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem;
}
.sim-result { background: var(--bg-alt); border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .95rem; }

.debt-list { display: grid; gap: .7rem; margin-bottom: .8rem; }
.debt-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: .5rem; align-items: center; }
.debt-row input {
  padding: .55rem .6rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; width: 100%;
}
.debt-row button {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); color: var(--text-muted); font-size: 1rem;
}
.debt-extra { display: grid; gap: .4rem; font-weight: 600; font-size: .85rem; max-width: 320px; margin: .8rem 0; }
.sim-compare { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 720px) { .sim-compare { grid-template-columns: 1fr 1fr; } }
.sim-compare-col { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 1rem; font-size: .9rem; }
.sim-compare-col h4 { margin-bottom: .5rem; }

/* Resumen imprimible (Exportar a PDF via impresión del navegador) */
.print-summary { display: none; }
@media print {
  body * { visibility: hidden; }
  .print-summary, .print-summary * { visibility: visible; }
  .print-summary { display: block !important; position: absolute; inset: 0; padding: 2rem; }
  .print-summary h1 { font-size: 1.4rem; margin-bottom: .3rem; }
  .print-summary table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
  .print-summary th, .print-summary td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid #ddd; font-size: .85rem; }
}
