/* Estilos compartidos del blog de Pulmón Financiero.
   Misma paleta y tipografía que index.html. */
:root {
  --bg: #FBF9F4;
  --bg-soft: #F3EEE3;
  --card: #FFFFFF;
  --text: #1B1A17;
  --text-dim: #6B6558;
  --muted: #8C8677;
  --fase1: #D9502F;
  --fase2: #1F7A80;
  --fase3: #3D7A4C;
  --border: #E7E0D0;
  --ink: #1B1A17;
  --max: 900px;
  --read: 700px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 20px; }

/* Header */
header { padding: 18px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(251,249,244,0.92); backdrop-filter: blur(6px); z-index: 20; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--fase1); }
nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; color: var(--text-dim); font-size: 0.88rem; font-weight: 500; padding: 8px 10px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a.btn-nav { color: #fff; background: var(--fase1); border-radius: 8px; font-weight: 700; margin-left: 6px; padding: 9px 16px; }
nav a.btn-nav:hover { background: #c2431f; }
@media (max-width: 560px) { nav a:not(.btn-nav) { display: none; } nav a.nav-blog { display: inline; } }

.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; background: rgba(217,80,47,0.1); color: var(--fase1); margin-bottom: 18px; text-decoration: none; }

/* Blog index */
.blog-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); }
.blog-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; margin: 0 0 16px; }
.blog-hero p { color: var(--text-dim); font-size: 1.12rem; max-width: 620px; margin: 0; }
.post-list { padding: 48px 0 72px; display: grid; gap: 22px; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 26px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.post-card:hover { border-color: #cfc6ac; transform: translateY(-2px); }
.post-card .thumb { border-radius: 10px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16/10; }
.post-card .thumb svg { width: 100%; height: 100%; }
.post-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fase1); }
.post-card h2 { font-size: 1.45rem; line-height: 1.2; margin: 6px 0 10px; }
.post-card p { color: var(--text-dim); margin: 0 0 12px; font-size: 0.98rem; }
.post-card .meta { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } }

/* Article */
.post-head { padding: 64px 0 28px; }
.post-head h1 { font-size: clamp(1.95rem, 4.4vw, 2.9rem); line-height: 1.12; margin: 0 0 18px; }
.post-head .lead { font-size: 1.16rem; color: var(--text-dim); margin: 0 0 18px; }
.post-head .meta { font-size: 0.85rem; color: var(--muted); }
.post-cover { margin: 8px auto 36px; max-width: var(--max); padding: 0 20px; }
.post-cover .frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); }
.post-cover img, .post-cover svg { width: 100%; height: auto; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: contain; }

.prose { font-size: 1.07rem; padding-bottom: 40px; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); line-height: 1.2; margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.22rem; line-height: 1.25; margin: 1.8em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); }
.prose a { color: var(--fase2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose .punch { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 1.3rem; line-height: 1.4; border-left: 3px solid var(--fase1); padding-left: 18px; margin: 1.6em 0; }
.prose .note { font-size: 0.92rem; color: var(--text-dim); background: var(--bg-soft); border-radius: 10px; padding: 14px 18px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; min-width: 460px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); background: var(--bg-soft); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.win td { font-weight: 700; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.4em; }
.compare .box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; border-top: 4px solid var(--accent); }
.compare .box h3 { margin: 0 0 8px; font-size: 1.12rem; }
.compare .box p { margin: 0; font-size: 0.96rem; color: var(--text-dim); }
.compare .a { --accent: var(--fase1); }
.compare .b { --accent: var(--fase2); }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }

.cta-box { background: var(--ink); color: #fff; border-radius: 16px; padding: 30px 28px; margin: 2.4em 0 1.6em; }
.cta-box h3 { color: #fff; margin: 0 0 10px; font-size: 1.4rem; }
.cta-box p { color: #C9C4B6; margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.98rem; padding: 14px 24px; border-radius: 10px; text-decoration: none; background: var(--fase1); color: #fff !important; }
.btn:hover { background: #c2431f; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); margin-left: 8px; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 480px) { .btn-ghost { margin: 10px 0 0; } }

.sources { font-size: 0.88rem; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 18px; margin-top: 2em; }
.sources h2 { font-size: 1.05rem; margin: 0 0 10px; font-family: 'Inter', sans-serif; font-weight: 700; }
.sources li { margin-bottom: 6px; }
.disclaimer { font-size: 0.85rem; color: var(--muted); border-left: 2px solid var(--border); padding-left: 12px; margin: 1.6em 0 0; }

footer { padding: 44px 0 64px; color: var(--text-dim); font-size: 0.85rem; border-top: 1px solid var(--border); }
footer .legal { max-width: 680px; margin: 0 0 12px; }
footer .links { margin: 0 0 16px; }
footer .links a { color: var(--text-dim); text-decoration: underline; margin-right: 16px; font-size: 0.82rem; }
footer .copy { color: var(--muted); margin: 0; }
