:root {
  --bg: #faf8f2;
  --bg-2: #f3efe3;
  --card: #ffffff;
  --text: #1d1b16;
  --muted: #625d4f;
  --line: #e7e1cf;
  --gold: #c99a1e;
  --gold-deep: #8a6508;
  --gold-soft: #f8efd0;
  --danger: #b3261e;
  --ok: #2e7d32;
  --shadow: 0 1px 2px rgba(60, 45, 10, .06), 0 8px 24px rgba(60, 45, 10, .06);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110d;
    --bg-2: #191710;
    --card: #1c1a13;
    --text: #f3f0e6;
    --muted: #b0aa97;
    --line: #35311f;
    --gold: #e5b93c;
    --gold-deep: #e5b93c;
    --gold-soft: #2b2510;
    --danger: #ff8a80;
    --ok: #81c784;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); letter-spacing: -.01em; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f2cf63, #b8860b); color: #2a1f00; font-size: .95rem; font-weight: 900;
}
.brand .name span { color: var(--gold-deep); }
nav.main { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .93rem; white-space: nowrap; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--gold-soft); color: var(--text); }

/* Hero */
.hero {
  padding: 64px 0 40px; text-align: center;
  background:
    radial-gradient(900px 340px at 50% -80px, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%),
    var(--bg);
}
.eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; margin: 16px auto 14px; max-width: 800px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #e5b93c, #a87a0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto 24px; }
.btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.btn.primary { background: linear-gradient(135deg, #efc754, #c08d10); color: #2a1f00; border-color: transparent; box-shadow: 0 6px 18px rgba(192, 141, 16, .35); }
.btn:hover { transform: translateY(-1px); }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: .84rem; color: var(--muted); }

/* Sections and cards */
section.block { padding: 22px 0; }
.section-title { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tool { margin: 18px 0; }
.tool h2 { margin: 0 0 4px; font-size: 1.28rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.tool h2 .num { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-size: .9rem; }
.tool .sub { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
input, select {
  width: 100%; padding: 11px 12px; font-size: 1rem; color: var(--text); font-family: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--gold) 45%, transparent); border-color: var(--gold); }
.results { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.res { background: var(--gold-soft); border-radius: 12px; padding: 14px 16px; }
.res small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.res strong { font-size: 1.5rem; letter-spacing: -.02em; }
.res.warn strong { color: var(--danger); }
.res.good strong { color: var(--ok); }
.note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.disclaimer { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin: 20px 0; }
.ad-slot { display: none; }

/* Guide cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
a.gcard { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
a.gcard:hover { transform: translateY(-3px); border-color: var(--gold); }
a.gcard .tag { font-size: .75rem; font-weight: 700; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .05em; }
a.gcard h3 { margin: 6px 0 8px; font-size: 1.1rem; line-height: 1.3; }
a.gcard p { margin: 0; color: var(--muted); font-size: .92rem; }
a.gcard .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--gold-deep); font-size: .9rem; }

/* Articles */
.article-head { padding: 44px 0 10px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.article-head h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: .9rem; }
article.post { font-size: 1.07rem; }
article.post h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 2.1em 0 .5em; line-height: 1.25; }
article.post h3 { font-size: 1.15rem; margin: 1.6em 0 .3em; }
article.post p { margin: .9em 0; }
article.post li { margin: .4em 0; }
.callout { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 14px; padding: 14px 18px; margin: 1.4em 0; font-size: 1rem; }
.callout strong:first-child { color: var(--gold-deep); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin: 20px 0; font-size: .95rem; }
.toc strong { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 20px; }
.cta { margin: 2.2em 0; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, var(--gold-soft), var(--card)); border: 1px solid var(--line); text-align: center; }
.cta h3 { margin: 0 0 6px; }
.cta p { margin: 0 0 14px; color: var(--muted); }
.related { margin: 2.4em 0 0; }
.related h2 { font-size: 1.2rem; }

/* Footer */
footer.site { margin-top: 56px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 28px; color: var(--muted); font-size: .9rem; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
footer.site h4 { margin: 0 0 8px; color: var(--text); font-size: .95rem; }
footer.site a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
footer.site a:hover { color: var(--gold-deep); text-decoration: underline; }
footer.site .legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; }

@media (max-width: 560px) {
  .hero { padding: 44px 0 28px; }
  .card { padding: 18px; }
  header.site .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
}
@media print { header.site, footer.site, .cta { display: none; } }

/* Extras: características, FAQ y herramientas con página propia */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-weight: 900; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--gold-deep); }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.tool-page .card.tool { margin-top: 20px; }
.tool-page .card.tool > .grid { margin-top: 4px; }
.steps { counter-reset: paso; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { counter-increment: paso; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 64px; position: relative; }
.step::before { content: counter(paso); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #efc754, #c08d10); color: #2a1f00; display: grid; place-items: center; font-weight: 900; }
.step h3 { margin: 0 0 4px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
