/* Paleta alta contraste (inspiración: muster-generator.de — azul marino + acento cálido) */
:root {
  --bg: #e8edf5;
  --card: #ffffff;
  --text: #1a2538;
  --muted: #5a6878;
  --ink: #2a5588;
  --hero-ink: #1a3354;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --accent-text: #1a1a1a;
  --border: #c5d0e3;
  --shadow: 0 14px 36px rgba(15, 31, 53, 0.1);
  --ok: #0d9488;
  --warn: #d97706;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
}
* { box-sizing: border-box; }
html { max-width: 100%; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
  line-height: 1.58; }
body { max-width: 100%; overflow-x: clip; overflow-y: visible; }
img, svg, video, canvas { max-width: 100%; height: auto; }
pre, code, kbd, samp { overflow-x: auto; max-width: 100%; }
table { max-width: 100%; }
main table,
.wg-prose table,
.tool-main table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 16px 0 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
main table caption,
.wg-prose table caption,
.tool-main table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  padding: 10px 2px;
}
main table thead th,
.wg-prose table thead th,
.tool-main table thead th {
  background: linear-gradient(180deg, #f8fbff, #eef3fb);
  color: #1f2a3d;
  font-weight: 700;
}
main table th,
main table td,
.wg-prose table th,
.wg-prose table td,
.tool-main table th,
.tool-main table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}
main table tbody tr:nth-child(even),
.wg-prose table tbody tr:nth-child(even),
.tool-main table tbody tr:nth-child(even) {
  background: #f9fbff;
}
main table tbody tr:hover,
.wg-prose table tbody tr:hover,
.tool-main table tbody tr:hover {
  background: #eef4ff;
}
a { color: var(--ink); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { text-transform: none; }
.wrap { width: min(1180px, 92vw, calc(100% - 32px)); margin: 0 auto; padding-inline: 0; }
.site-header { border-bottom: 1px solid rgba(26, 51, 84, 0.1); background: #ffffff;
  backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 rgba(15, 31, 53, 0.06), 0 12px 28px rgba(15, 31, 53, 0.06);
  max-width: 100%; overflow-x: clip; overflow-y: visible; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; min-width: 0; max-width: 100%; }
.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; position: relative;
  min-width: 0; max-width: 100%; flex-wrap: wrap; row-gap: 10px; }
.logo { font-weight: 700; letter-spacing: .01em; color: var(--text); }
.nav { display: flex; gap: 16px; color: var(--muted); font-size: .95rem; }
.site-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  flex-shrink: 0;
}
.site-logo-mark svg {
  width: 32px;
  height: 32px;
  display: block;
}
.site-logo-text {
  color: var(--ink);
  line-height: 1.15;
}
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.site-nav a { font-size: .92rem; color: var(--muted); padding: 7px 12px; border-radius: var(--radius); }
.site-nav a:hover { background: #e8eef7; color: var(--ink); text-decoration: none; }
.site-nav a.nav-cta { background: linear-gradient(180deg, #fbbf24, #f59e0b); color: var(--accent-text); font-weight: 700; border: 1px solid rgba(0,0,0,.08); }
.site-nav a.nav-cta:hover { background: linear-gradient(180deg, #f59e0b, #d97706); color: #0f172a; }
.site-nav .nav-dd { position: relative; display: inline-flex; vertical-align: middle; }
.site-nav .nav-dd-trigger {
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--muted);
  padding: 7px 12px; border-radius: var(--radius); border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.site-nav .nav-dd-trigger:hover { background: #e8eef7; color: var(--ink); }
.site-nav .nav-dd-chevron { display: inline-flex; color: var(--muted); opacity: .85; }
.site-nav .nav-dd-panel {
  position: absolute; left: 0; top: 100%; min-width: min(260px, 86vw); max-width: min(320px, calc(100vw - 24px));
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 18px 44px rgba(29, 36, 51, 0.14);
  border: 1px solid rgba(26, 51, 84, 0.08); padding: 8px 0; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-nav .nav-dd:hover .nav-dd-panel,
.site-nav .nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.site-nav .nav-dd-link {
  display: block; padding: 11px 18px; font-size: .9rem; font-weight: 500; color: var(--text);
  text-decoration: none; white-space: normal; overflow-wrap: anywhere; hyphens: auto;
}
.site-nav .nav-dd-link:hover { background: #eef2f9; text-decoration: none; color: var(--ink); }
.site-nav .nav-dd-all {
  font-weight: 700;
  border-top: 0;
  margin: 10px 10px 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.22));
  color: #7c2d12;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}
.site-nav .nav-dd-all:hover {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #0f172a;
}
.tpl-card-grid {
  display: grid; gap: 18px; margin: 18px 0 0;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  min-width: 0;
}
.home-tpl-grid { margin-top: 8px; }
.tpl-card {
  padding: 0; overflow: hidden; transition: transform .14s ease, box-shadow .14s ease;
  background: var(--card); border: 1px solid rgba(26, 51, 84, 0.08); border-radius: var(--radius-lg); box-shadow: none;
}
.tpl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tpl-card-hit { display: block; padding: 18px 18px 16px; color: inherit; text-decoration: none; height: 100%; }
.tpl-card-hit:hover { text-decoration: none; color: inherit; }
.tpl-card-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; min-height: 22px; }
.tpl-card-cat { font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); flex: 1; }
.tpl-card-badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: #9a3412;
  background: #ffedd5; border-radius: var(--radius-sm); padding: 3px 8px;
}
.tpl-card-icon { margin-left: auto; color: var(--muted); display: inline-flex; }
.tpl-card-title { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.35; font-weight: 800; color: var(--text); }
.tpl-card-meta { margin: 0 0 8px; font-size: .82rem; line-height: 1.45; }
.tpl-card-read { margin: 0; font-size: .82rem; }
.tpl-card-kpis { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tpl-card-kpi {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  color: #334155; background: #eef2f7; border: 1px solid #dbe4f0;
  border-radius: 999px; padding: 3px 8px;
}
.nav-toggle { display: none; align-items: center; justify-content: center; gap: 4px; flex-direction: column; cursor: pointer; color: var(--text); width: 44px; height: 44px; min-width: 44px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 12px rgba(26, 34, 51, 0.08); }
.nav-toggle:hover { background: #f8fafc; }
.nav-toggle:focus-visible { outline: 2px solid rgba(245, 158, 11, 0.55); outline-offset: 2px; }
.nav-toggle-bar { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-main { padding: 20px 0 72px; min-width: 0; max-width: 100%; }
.wg-internal-links { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--border); }
.wg-internal-links > h2 { font-size: 1.32rem; font-weight: 800; margin: 0 0 20px; color: var(--text); letter-spacing: -0.02em; }
.wg-related-grid { margin-top: 4px; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; background: #f0f4fa;
  max-width: 100%; }
.site-footer .wrap { padding: 28px clamp(16px, 4vw, 28px); min-width: 0; max-width: 100%; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; margin-bottom: 14px; }
.footer-col h4 { margin: 0 0 8px; font-size: .92rem; color: var(--text); }
.footer-col ul { margin: 0; padding-left: 18px; }
.footer-col li { margin: 3px 0; }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.footer-tagline { margin-top: 0; color: var(--muted); }
.chip-green { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.chip-blue { background: #eaf1ff; color: #1f4db8; border: 1px solid #c9d8ff; }
h1 { font-size: clamp(2rem, 3.2vw, 3.1rem); margin: 0 0 14px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); margin: 40px 0 14px; font-weight: 760; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; margin: 20px 0 8px; color: #2c3548; font-weight: 700; }
p { margin: 10px 0; color: #3a4458; }
.muted { color: var(--muted); }
.home-hero-wg {
  margin: 0 0 28px;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 85, 136, 0.38);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background:
    radial-gradient(ellipse 100% 70% at 50% -30%, rgba(96, 165, 250, 0.38) 0%, transparent 55%),
    linear-gradient(165deg, #2a5588 0%, #224670 48%, #1a3354 100%);
  box-shadow: 0 20px 40px rgba(15, 31, 53, 0.22);
}
.home-hero-wg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.home-hero-wg .home-hero-title,
.home-hero-wg .home-hero-lead,
.home-hero-wg .home-hero-actions { position: relative; z-index: 1; }
.home-hero-wg .home-hero-title { margin: 0 0 10px; font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.home-hero-wg .home-hero-lead { margin: 0 0 18px; max-width: 72ch; color: rgba(255,255,255,.9); font-size: 1.05rem; font-weight: 500; line-height: 1.65; }
.home-hero-wg .home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.home-hero-wg .home-hero-actions a { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius);
  font-weight: 700; font-size: .92rem; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; }
.home-hero-wg .home-hero-actions a:hover { text-decoration: none; background: rgba(255,255,255,.1); }
.home-hero-wg .home-hero-actions a.home-cta-primary {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: var(--accent-text);
  border-color: rgba(0,0,0,.12);
}
.home-hero-wg .home-hero-actions a.home-cta-primary:hover {
  background: linear-gradient(180deg, #fcd34d, #ea580c);
  color: #0f172a;
}
.home-stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
@media (min-width: 720px) { .home-stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-stat-card { background: var(--card); border: 1px solid rgba(26, 51, 84, 0.08); border-radius: var(--radius); padding: 14px 16px; text-align: center; }
.home-stat-card .stat-value { font-size: 1.35rem; font-weight: 800; color: #ea580c; letter-spacing: -.02em; }
.home-stat-card .stat-label { font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.home-split-grid { display: grid; gap: 18px; margin: 0 0 28px; }
@media (min-width: 880px) { .home-split-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.home-panel { background: var(--card); border: 1px solid rgba(26, 51, 84, 0.08); border-radius: var(--radius-lg); padding: 20px 22px; }
.home-panel h2 { margin: 0 0 12px; font-size: 1.15rem; }
.home-panel ol { margin: 0; padding-left: 1.2rem; color: #3a4458; }
.home-panel li { margin: 6px 0; }
.home-trust-note { margin: 0 0 32px; }
.home-intro { max-width: 76ch; margin: 10px 0 34px; line-height: 1.72; }
.home-intro .lead { color: #2c3548; font-weight: 500; font-size: 1.05rem; margin: 0 0 14px; }
.home-intro code { font-size: 0.88em; background: #eef2f8; padding: 2px 6px; border-radius: var(--radius-sm); }
.home-count { margin-top: 8px; font-size: 0.92rem; }
.category-breadcrumb { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.category-breadcrumb a { font-weight: 600; }
.category-stat-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.category-intro { margin-bottom: 22px; }
.category-basics { margin: 28px 0 32px; }
.card { background: var(--card); border: 1px solid rgba(26, 51, 84, 0.08); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: none; }
.grid { display: grid; gap: 18px; }
.wg-card-list { list-style: none; padding: 0; margin: 22px 0 0; grid-template-columns: 1fr; gap: 0; }
.wg-card-list-tight { margin-top: 0; }
.wg-card-list li { border-bottom: 1px solid var(--border); }
.wg-card-list li:first-child { border-top: 1px solid var(--border); }
.wg-card-list .card { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.wg-card-link { display: block; padding: 18px 0; height: 100%; font-size: 1rem; font-weight: 600; color: var(--text); }
.wg-card-link:hover { color: var(--accent); text-decoration: none; }
.tpl-item > a { display: block; color: inherit; }
.wg-filter-card { margin-bottom: 16px; }
.wg-index-pager {
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wg-index-pager .gen-btn { min-width: 92px; }
.wg-index-pager .gen-btn.is-disabled { opacity: .55; pointer-events: none; }
.wg-toolbar-spaced { margin-top: 12px; }
.wg-cat-toolbar { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
.wg-cat-filter-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.tpl-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.gen-toolbar.wg-toolbar-spaced { min-width: 0; max-width: 100%; }
.gen-toolbar.wg-toolbar-spaced .gen-input { min-width: 0; max-width: 100%; }
.static-bullets { margin: 16px 0; padding-left: 1.2rem; }
.wg-section { margin-top: 38px; }
.wg-section-alt { margin-top: 38px; padding: clamp(18px, 4vw, 30px) clamp(16px, 3vw, 28px); border: 0; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(232, 241, 252, 0.95)); box-shadow: none; max-width: 100%; min-width: 0; }
.wg-prose { max-width: 74ch; }
.wg-feature-grid { display: grid; gap: 22px; margin-top: 20px; }
.wg-feature-card { padding: 0 0 0 18px; border: 0; border-left: 3px solid #f59e0b; border-radius: 0; background: transparent; box-shadow: none; }
.wg-feature-card:has(> p:first-child + h3) {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
.wg-feature-card:has(> p:first-child + h3) > p:first-child {
  grid-column: 1;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--accent-2);
}
.wg-feature-card:has(> p:first-child + h3) > :not(:first-child) {
  grid-column: 2;
}
.wg-feature-card:has(> p:first-child + h3) > h3 {
  margin-top: 0;
}
.wg-checklist { padding-left: 1.2rem; }
.wg-inline-note { padding: 14px 0 14px 18px; border-left: 3px solid var(--accent); background: rgba(255, 247, 237, 0.65); border-radius: 0; color: #1e293b; }
.wg-table-wrap { width: 100%; overflow-x: auto; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .wg-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-main { border: 1px solid rgba(26, 51, 84, 0.1); border-radius: var(--radius-lg); padding: 22px 24px; background: var(--card);
  box-shadow: var(--shadow); }
.export-bar, .btn-row { display: flex; flex-direction: column; flex-wrap: wrap; gap: 10px; margin: 12px 0; align-items: stretch; }
.export-bar button, .btn-row button, .btn-secondary {
  width: 100%; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff; color: var(--text); font-weight: 600; font-size: .9rem;
}
.export-bar button.primary, .btn-row button.primary {
  background: linear-gradient(180deg, #fbbf24, #f59e0b); color: var(--accent-text); border-color: rgba(0,0,0,.12);
  font-weight: 700;
}
.export-bar button:hover, .btn-row button:hover { filter: brightness(0.98); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius);
  font-size: .78rem; font-weight: 600; background: #e8eef7; color: var(--ink); border: 1px solid #c5d0e3; }
.live-preview { min-height: 140px; border: 1px solid rgba(26, 51, 84, 0.12); border-radius: var(--radius-lg); padding: 16px 18px;
  background: #f8fafc; font-size: .95rem; color: #2f3a4d; }
label { display: block; font-size: .88rem; color: var(--muted); margin: 8px 0 6px; font-weight: 500; }
input, textarea, select, button {
  width: 100%; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: #fff; color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
button { cursor: pointer; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid rgba(26, 51, 84, 0.12);
  border-radius: var(--radius);
  padding: 0;
  margin: 0;
  background: #eef2f9;
  overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  list-style: none;
  position: relative; padding: 16px 20px; padding-right: 2.5rem; margin: 0;
  background: #eef2f9; box-sizing: border-box;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary > span { display: none !important; }
.faq details > summary::after { content: "＋"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.05rem; }
.faq details[open] > summary::after { content: "−"; }
.faq details > :not(summary) {
  margin: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(26, 51, 84, 0.1);
  background: #fff;
}
.nav-toggle { width: 44px !important; min-width: 44px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius); border: 1px solid rgba(26, 51, 84, 0.1); color: var(--muted); font-size: .78rem; background: rgba(255,255,255,.8); }
@media print {
  .site-header, .site-footer, .export-bar, .btn-row, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .tool-main, .live-preview, .card { box-shadow: none !important; border-color: #ccc !important; }
  .gen-card:first-child, .gen-toolbar, .gen-btn-row, .gen-badges { display: none !important; }
  .gen-template-preview { border: none !important; box-shadow: none !important; padding: 0 !important; position: static !important; font-size: 11pt; }
}
/* --- Responsive --- */
.tool-main.wg-tool, .wg-generator-grid { display: grid; gap: 24px; width: 100%; max-width: 100%; }
@media (min-width: 900px) {
  .tool-main.wg-tool, .wg-generator-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .export-bar, .btn-row { flex-direction: row; align-items: center; }
  .export-bar button, .btn-row button, .btn-secondary { width: auto; }
  .site-header .wrap,
  .site-header .header-inner { flex-wrap: wrap; align-items: center; align-content: center; }
  .site-logo { flex-shrink: 0; }
  .site-nav {
    flex-wrap: wrap; flex: 1 1 auto; justify-content: flex-end; align-items: center;
    min-width: 0; gap: 4px 6px; row-gap: 6px;
    overflow-x: visible; overflow-y: visible;
  }
  .site-nav .nav-dd { flex-shrink: 1; min-width: 0; }
  .site-nav .nav-dd-trigger { max-width: 100%; }
  .site-nav a.nav-cta { flex-shrink: 0; margin-left: 2px; white-space: nowrap; }
}
@media (max-width: 899px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 10px; }
  .site-header .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { width: 100%; padding: 10px 12px; }
  .site-nav .nav-dd { width: 100%; flex-direction: column; align-items: stretch; }
  .site-nav .nav-dd-trigger { width: 100%; justify-content: space-between; border-radius: var(--radius); }
  .site-nav .nav-dd-panel {
    position: static; opacity: 1; visibility: hidden; transform: none; pointer-events: none;
    max-height: 0; overflow: hidden; margin: 0; padding: 0; border: 0; box-shadow: none;
    transition: max-height .22s ease, visibility .22s;
  }
  .site-nav .nav-dd.is-open .nav-dd-panel {
    visibility: visible; pointer-events: auto; max-height: 520px; padding: 6px 0 10px; margin-top: 4px;
    border-radius: var(--radius); border: 1px solid var(--border); background: #f8fafc;
  }
  .site-nav .nav-dd:hover .nav-dd-panel,
  .site-nav .nav-dd:focus-within .nav-dd-panel { opacity: 1; }
  .site-nav a.nav-cta { margin-top: 4px; text-align: center; }
  .live-preview { min-height: 100px; }
  img { max-width: 100%; height: auto; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  main table th,
  main table td,
  .wg-prose table th,
  .wg-prose table td,
  .tool-main table th,
  .tool-main table td { white-space: nowrap; }
  .footer-inner { grid-template-columns: 1fr; }
}
/* ── GeneratorToolkit component styles ── */
:root {
  --gen-accent: var(--accent, #f59e0b);
  --gen-text: var(--text, #152032);
  --gen-muted: var(--muted, #5c6578);
  --gen-border: var(--border, #c5d0e3);
  --gen-card: var(--card, #ffffff);
  --gen-shadow: var(--shadow, 0 12px 32px rgba(15, 31, 53, 0.12));
  --gen-radius: var(--radius, 6px);
}
.gen-home-hero { padding: 1.4rem 0 2rem; }
.gen-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.gen-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius);
  font-size: .77rem; font-weight: 600; background: #e8eef7; color: var(--ink); border: 1px solid #c5d0e3; }
.gen-badge-ok { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.gen-hero-title { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 12px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.gen-card-lead { color: var(--gen-muted); margin: 0 0 22px; font-size: 1.02rem; max-width: 68ch; }
.gen-tool-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .gen-tool-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; } }
.gen-card { background: var(--gen-card); border: 1px solid rgba(26, 51, 84, 0.1); border-radius: var(--radius-lg);
  padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--gen-shadow); }
.gen-card h2 { margin-top: 0; }
.gen-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gen-text); margin: 12px 0 4px; }
.gen-req { color: #c0392b; margin-left: 2px; }
.gen-input, .gen-textarea { display: block; width: 100%; padding: 9px 12px; border-radius: var(--radius);
  border: 1px solid var(--gen-border); background: #fff; color: var(--gen-text); font-size: .93rem;
  font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.gen-input, .gen-textarea { margin: 5px; padding: 11px 14px; border-radius: var(--radius); line-height: 1.45; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03); }
.gen-input:focus, .gen-textarea:focus { outline: none; border-color: var(--gen-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); }
.gen-textarea { min-height: 132px; resize: vertical; }
.gen-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gen-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--gen-border); background: #fff;
  color: var(--gen-text); font-weight: 600; font-size: .88rem; cursor: pointer; white-space: nowrap;
  transition: background .12s, box-shadow .12s; width: auto; }
.gen-btn:hover { background: #f4f7fb; box-shadow: 0 2px 6px rgba(0,0,0,.07); }
.gen-btn-primary {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: var(--accent-text) !important;
  border-color: rgba(0,0,0,.1) !important;
  font-weight: 700;
}
.gen-btn-primary:hover, .gen-btn-primary:focus-visible {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #0f172a !important;
  border-color: rgba(0,0,0,.12) !important;
  filter: none;
}
.gen-template-preview {
  min-height: 320px;
  background:
    linear-gradient(180deg, #fdfbf7 0%, #f7f4ee 100%),
    repeating-linear-gradient(0deg, rgba(41, 37, 32, 0.045) 0, rgba(41, 37, 32, 0.045) 1px, transparent 1px, transparent 28px);
  border: 1px solid rgba(41, 37, 32, 0.14);
  border-radius: 10px;
  padding: clamp(1.25rem, 2vw, 1.65rem) clamp(1.35rem, 2.2vw, 1.85rem);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.02rem;
  line-height: 1.72;
  color: #1c1917;
  position: relative;
  z-index: 1;
  max-height: min(72vh, 720px);
  overflow: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 10px 28px rgba(28, 25, 23, 0.06),
    0 1px 3px rgba(28, 25, 23, 0.05);
}
.gen-template-preview::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 0;
  margin: -1.6rem -1.75rem 1rem;
}
.gen-template-preview table { width: 100%; border-collapse: collapse; display: table !important; table-layout: auto; }
.gen-template-preview th, .gen-template-preview td { border: 1px solid var(--gen-border); padding: .5rem .58rem; vertical-align: top; white-space: normal; }
.gen-template-preview tr:nth-child(even) { background: rgba(250, 248, 244, 0.85); }
.gen-template-preview ul, .gen-template-preview ol { margin: .35rem 0 .8rem 1.15rem; padding: 0; }
.gen-template-preview li { margin: .18rem 0; }
.gen-doc-p { margin: 0 0 .66em; }
.gen-template-preview hr {
  border: 0;
  border-top: 1px solid rgba(41, 37, 32, 0.12);
  margin: .85rem 0;
}
.gen-template-preview em {
  color: #44403c;
  font-style: italic;
}
.gen-template-preview .gen-doc-p strong,
.gen-doc-p strong {
  font-weight: 700;
  color: #0c0a09;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88em;
  letter-spacing: 0.02em;
}
.gen-doc-h {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .72rem;
  color: #44403c;
  margin: 1.15rem 0 .48rem;
  border-bottom: 1px solid rgba(41, 37, 32, 0.12);
  padding-bottom: .32rem;
  position: relative;
}
.gen-doc-h::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  border-bottom: 2px solid rgba(87, 83, 78, 0.35);
}
.gen-template-preview article.gen-doc-shell {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  max-width: 100%;
}
.gen-template-preview .gen-doc-inner {
  display: block;
}
.gen-template-preview .gen-doc-inner > .gen-doc-h:first-child,
.gen-template-preview .gen-doc-inner > .gen-doc-p:first-child,
.gen-template-preview .gen-doc-inner > *:first-child .gen-doc-h:first-child {
  margin-top: 0;
}
.gen-template-preview blockquote {
  margin: .7rem 0 .9rem;
  padding: .55rem .85rem;
  border-left: 3px solid rgba(68, 64, 60, 0.28);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: #44403c;
}
.gen-toolbar { margin-top: 1rem; display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 2; background: var(--gen-card); flex-shrink: 0; }
.gen-toolbar { padding-top: .15rem; }
.gen-toolbar-row { display: flex; flex-direction: column; flex-wrap: wrap; gap: 8px; }
.gen-toolbar-row .gen-btn { flex: 1 1 auto; width: 100%; }
.gen-toolbar .gen-btn-primary { width: 100%; }
.gen-hint { font-size: .78rem; color: var(--gen-muted); margin: 4px 0 0; }
.gen-template-preview[data-calc-state="empty"] {
  border-color: rgba(41, 37, 32, 0.12);
  background: linear-gradient(180deg, #f3f1ec 0%, #ebe8e2 100%),
    repeating-linear-gradient(0deg, rgba(41, 37, 32, 0.04) 0, rgba(41, 37, 32, 0.04) 1px, transparent 1px, transparent 28px);
}
.gen-template-preview[data-calc-state="error"] { border-color: #e7a2a8; background: #fff5f5; }
.gen-template-preview[data-calc-state="ready"] {
  border-color: rgba(41, 37, 32, 0.18);
  background: linear-gradient(180deg, #fdfbf7 0%, #f4f1ea 100%),
    repeating-linear-gradient(0deg, rgba(41, 37, 32, 0.045) 0, rgba(41, 37, 32, 0.045) 1px, transparent 1px, transparent 28px);
}
.gen-template-preview[data-quiz-state="empty"] {
  border-color: rgba(41, 37, 32, 0.12);
  background: linear-gradient(180deg, #f3f1ec 0%, #ebe8e2 100%),
    repeating-linear-gradient(0deg, rgba(41, 37, 32, 0.04) 0, rgba(41, 37, 32, 0.04) 1px, transparent 1px, transparent 28px);
}
.gen-template-preview[data-quiz-state="error"] { border-color: #e7a2a8; background: #fff5f5; }
.gen-template-preview[data-quiz-state="ready"] {
  border-color: rgba(41, 37, 32, 0.18);
  background: linear-gradient(180deg, #fdfbf7 0%, #f4f1ea 100%),
    repeating-linear-gradient(0deg, rgba(41, 37, 32, 0.045) 0, rgba(41, 37, 32, 0.045) 1px, transparent 1px, transparent 28px);
}
.gen-state-note {
  display: inline-block; margin: 0 0 10px; padding: 5px 10px;
  font-size: .68rem; font-weight: 600; border-radius: 6px; letter-spacing: .04em;
}
.gen-state-empty { background: #e7e5e0; color: #44403c; border: 1px solid rgba(41, 37, 32, 0.08); }
.gen-state-error { background: #fecdd3; color: #881337; border: 1px solid rgba(190, 24, 93, 0.15); }
.gen-state-ready {
  background: #e8e4dc;
  color: #1c1917;
  border: 1px solid rgba(41, 37, 32, 0.12);
  text-transform: uppercase;
  font-weight: 600;
}
.gen-preview-plain { white-space: pre-wrap; font-family: monospace; font-size: .85rem; }
.gen-preview-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .85rem; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 2; }
.gen-preview-head h2 { margin: 0; }
@media (min-width: 860px) {
  .gen-toolbar-row { flex-direction: row; }
  .gen-toolbar-row .gen-btn { width: auto; }
  .gen-toolbar .gen-btn-primary { width: 100%; align-self: flex-start; }
}
@media (max-width: 859px) {
  .gen-template-preview { max-height: none; }
}
/* Columna derecha (vista prevía + toolbar): flex para que la barra no quede tapada por el preview. */
.gen-tool-grid > .gen-card + .gen-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gen-tool-grid > .gen-card + .gen-card .gen-preview-head { flex-shrink: 0; }
.gen-tool-grid > .gen-card + .gen-card .gen-template-preview { flex: 1 1 auto; min-height: 0; }
.gen-tool-grid > .gen-card + .gen-card .gen-toolbar { flex-shrink: 0; }
main.site-main.wrap { padding-top: 40px !important; padding-bottom: 72px !important; }

/* --- Footer enriquecido (enlaces estáticos) --- */
.site-footer-rich {
  background: linear-gradient(180deg, #1a2233 0%, #121826 100%);
  color: #c8d0e0;
  border-top: none;
  margin-top: 48px;
  font-size: 0.92rem;
}
.site-footer-rich a { color: #e2e8f4; font-weight: 500; }
.site-footer-rich a:hover { color: #fff; text-decoration: underline; }
.site-footer-rich .muted { color: #8b96ab; }
.site-footer-rich .badge {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: #aeb9cc;
}
/* El CSS base pone .footer-inner como grid 4 columnas para hijos directos (marca+cols).
   Aquí los hijos son .footer-grid + .footer-bar: sin esto, .footer-grid queda encajonado
   en la 1ª columna y el contenido se ve pegado a la izquierda y “raro”. */
.site-footer-rich .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  grid-template-columns: unset;
  width: 100%;
  padding: 44px clamp(16px, 5vw, 32px) 32px;
}
.site-footer-rich .footer-grid {
  width: 100%;
  min-width: 0;
}
.site-footer-rich .footer-brand,
.site-footer-rich .footer-col,
.site-footer-rich .footer-bar,
.site-footer-rich .footer-links,
.site-footer-rich .footer-links li {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.footer-grid {
  display: grid;
  gap: 28px 20px;
  grid-template-columns: 1fr;
  padding: 0 clamp(12px, 3vw, 28px);
  box-sizing: border-box;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(200px, 1.25fr) repeat(3, minmax(0, 1fr));
    column-gap: 2.25rem;
    row-gap: 1.75rem;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(220px, 1.35fr) minmax(160px, 1.1fr) minmax(160px, 1fr) minmax(140px, 0.95fr);
    column-gap: 2.75rem;
  }
}
.footer-brand .footer-logo { margin: 0 0 10px; font-size: 1.15rem; }
.footer-brand .footer-logo a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-brand .footer-tagline { margin: 0; max-width: 44ch; line-height: 1.5; font-size: 0.88rem; }
.footer-heading {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #7d8aa3;
  text-transform: none;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links li { margin: 0; line-height: 1.45; }
.footer-col-categories .footer-links { max-height: 22rem; overflow-y: auto; padding-right: 6px; }
.footer-col { min-width: 0; }
.footer-bar {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bar p { margin: 0; }
.footer-badges { text-align: right; max-width: 52ch; }
@media (max-width: 719px) {
  .footer-col-categories .footer-links { max-height: none; overflow: visible; padding-right: 0; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .footer-badges { text-align: left; }
}
.static-page.legal-doc h2 { font-size: 1.05rem; margin-top: 24px; }
