/* Salud Peluda — hoja de estilos única, sin dependencias externas */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1d2a2c;
  --muted: #5a6a6d;
  --line: #e7e0d5;
  --brand: #0f6b5f;
  --brand-ink: #0b4f46;
  --brand-soft: #e4f1ed;
  --money: #b4532a;
  --money-soft: #fbece4;
  --bridge-soft: #f3efe6;
  --danger: #a8281c;
  --danger-soft: #fdeeea;
  --radius: 14px;
  --wrap: 1120px;
  --narrow: 760px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: var(--narrow); }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #f2b13a; outline-offset: 2px; border-radius: 4px; }

/* Cabecera */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; fill: #fff; }
.nav-desktop { display: none; gap: 4px; }
.nav-desktop a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }
.nav-mobile summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: absolute; right: 16px; top: 60px; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.08); display: flex; flex-direction: column; min-width: 240px; padding: 8px; }
.nav-mobile nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-mobile nav a:hover { background: var(--brand-soft); }
@media (min-width: 900px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }

/* Portada */
.hero { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); padding: 48px 0 32px; }
.hero-inner { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: .5em; }
.search { position: relative; margin: 20px 0 16px; }
.search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 18px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.search input:focus { border-color: var(--brand); outline: none; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 4; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.search-results a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--brand-soft); }
.search-results small { display: block; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }

.alert { border-radius: var(--radius); padding: 14px 18px; margin: 24px 0; font-size: .98rem; }
.alert-urgent { background: var(--danger-soft); border-left: 5px solid var(--danger); }
.alert-urgent strong { color: var(--danger); }

.section { margin: 40px 0; }
.section-title { font-size: 1.35rem; margin-bottom: 16px; }
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); margin-bottom: 6px; }
.cat-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.role-dinero .cat-icon, .cat-icon.role-dinero { background: var(--money-soft); }
.role-dinero .cat-icon svg, .cat-icon.role-dinero svg { stroke: var(--money); }
.role-puente .cat-icon, .cat-icon.role-puente { background: var(--bridge-soft); }
.cat-icon-lg { width: 56px; height: 56px; margin-bottom: 12px; }
.cat-icon-lg svg { width: 32px; height: 32px; }
.cat-name { font-weight: 800; font-size: 1.05rem; }
.cat-blurb { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.cat-count { margin-top: auto; padding-top: 8px; font-size: .85rem; font-weight: 700; color: var(--brand); }

.money { display: grid; gap: 16px; align-items: center; background: var(--money-soft); border-radius: var(--radius); padding: 24px; margin: 40px 0; }
.money h2 { margin-bottom: .3em; }
.money p { margin: 0; color: #5b4337; }
.money-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 820px) { .money { grid-template-columns: 1.4fr 1fr; padding: 32px; } .money-links { justify-content: flex-end; } }
.btn { display: inline-block; background: var(--money); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; }
.btn:hover { background: #8f4020; color: #fff; }
.btn-ghost { background: transparent; color: var(--money); border: 2px solid var(--money); }
.btn-ghost:hover { background: var(--money); color: #fff; }

.card-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-list-1 { grid-template-columns: 1fr; }
.card-list-2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--brand); }
.card-cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.card-title { font-weight: 750; font-size: 1.05rem; line-height: 1.35; }
.card-desc { color: var(--muted); font-size: .95rem; line-height: 1.5; }

.trust { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 40px 0 56px; }
.trust ul { padding-left: 1.2em; }

/* Páginas y artículos */
.breadcrumbs { font-size: .9rem; color: var(--muted); margin: 24px 0 8px; }
.breadcrumbs a { color: var(--muted); }
.page-head { margin: 8px 0 8px; }
.article-head { margin: 8px 0 16px; }
.byline { font-size: .92rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0 28px; }
.toc-title { font-weight: 800; margin-bottom: .4em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 16px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
.prose blockquote { margin: 1.2em 0; padding: 14px 18px; background: var(--brand-soft); border-left: 5px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose .nota { background: #fff7e6; border-left: 5px solid #e0a02a; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2em 0; }
.cost-box { background: var(--money-soft); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.cost-label { margin: 0; font-weight: 700; color: var(--money); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.cost-range { font-size: 1.5rem; font-weight: 800; margin: 4px 0 6px; }
.cost-box a { color: var(--money); font-weight: 700; }
.disclaimer { font-size: .9rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.pendiente { background: #fff3a8; color: #6b5200; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.center-block { text-align: center; padding: 64px 16px; }
.center-block .chips { justify-content: center; margin: 20px 0 28px; }

/* Pie */
.site-footer { background: #17302c; color: #d9e6e2; margin-top: 56px; padding: 40px 0 24px; }
.site-footer a { color: #d9e6e2; }
.site-footer .muted { color: #a8bdb7; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-bottom { border-top: 1px solid #2c4a45; margin-top: 28px; padding-top: 16px; font-size: .9rem; }
