:root {
  color-scheme: dark;
  --bg: #0c1220;
  --bg-soft: #101a2e;
  --surface: #141f36;
  --surface-2: #182542;
  --surface-3: #1d2b4a;
  --ink: #eef3ff;
  --muted: #aeb8ca;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #d9b07c;
  --accent-soft: rgba(217, 176, 124, 0.12);
  --accent-2: #84cbe4;
  --accent-2-soft: rgba(132, 203, 228, 0.12);
  --accent-3: #c9aef2;
  --accent-3-soft: rgba(201, 174, 242, 0.12);
  --good: #90c7a8;
  --good-soft: rgba(144, 199, 168, 0.14);
  --warn: #e0b57f;
  --warn-soft: rgba(224, 181, 127, 0.14);
  --bad: #e39a92;
  --bad-soft: rgba(227, 154, 146, 0.12);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1160px;
  --topbar: 66px;
  --font: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 18px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -5%, rgba(138, 90, 47, 0.13), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(36, 93, 115, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  padding: 8px 11px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--surface-3); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
/* Hero */
.hero { padding: 58px 0 12px; }
.hero-home { padding-top: 66px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero .lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16.5px, 1.7vw, 20px);
}
.hero .lead strong { color: var(--ink); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hero-note span::before { content: "·"; margin-right: 6px; color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-small { padding: 8px 13px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.is-done { background: var(--good-soft); color: var(--good); border-color: transparent; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.btn-danger:hover { background: var(--bad-soft); }

/* Search */
.searchbar {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  max-width: 780px;
  padding: 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 12px 10px 16px;
  color: var(--ink);
  font-size: 15px;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar .btn { flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-active { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 650; }

/* Sections */
.section { padding: 54px 0 0; }
.section-head { max-width: 760px; margin-bottom: 22px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.section-foot { margin-top: 22px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.entry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}
.entry:nth-child(2)::before { background: var(--accent-2); }
.entry:nth-child(3)::before { background: var(--accent-3); }
.entry:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.entry .entry-kicker { color: var(--accent); font-size: 11.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.entry:nth-child(2) .entry-kicker { color: var(--accent-2); }
.entry:nth-child(3) .entry-kicker { color: var(--accent-3); }
.entry h3 { margin: 0; font-size: 23px; letter-spacing: -0.03em; line-height: 1.15; }
.entry p { margin: 0; color: var(--muted); font-size: 14px; }
.entry ul { margin: 2px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.entry .entry-go { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.entry .entry-go::after { content: " →"; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Route */
.step-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.route-overview { padding-top: 18px; }
.route-overview-head { max-width: 760px; margin-bottom: 18px; }
.route-overview-head h2 { margin: 0; font-size: clamp(23px, 2.8vw, 31px); letter-spacing: -0.03em; line-height: 1.15; }
.route-overview-head p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.route-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route-step a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100%;
  padding: 17px 16px 17px 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.route-step a:hover { border-color: var(--line-strong); background: var(--surface); }
.route-step.is-current a { background: var(--accent-soft); border-color: transparent; }
.route-num {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.route-step.is-current .route-num { background: var(--accent); color: var(--bg); }
.route-step strong { font-size: 13.5px; line-height: 1.3; }
.route-step small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.step-section { scroll-margin-top: 14px; }
.objetivos-block { margin-top: 20px; }
.objetivos-label { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 650; }
.objetivos-block .chips { margin-top: 0; }

.activity-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.preview-step {
  position: relative;
  padding: 22px 22px 22px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.preview-num {
  position: absolute;
  left: 20px;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.preview-step h3 { margin: 0 0 6px; font-size: 16px; }
.preview-step p { margin: 0; color: var(--muted); font-size: 13.5px; }

.route-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.route-cta p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.progress-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 58%),
    var(--surface);
}
.progress-cta h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.progress-cta p { max-width: 660px; margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.progress-cta .hint { min-height: 18px; font-size: 13px; }
.progress-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.guide-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.guide-card h3 { margin: 0; font-size: 17.5px; line-height: 1.25; letter-spacing: -0.02em; }
.guide-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.guide-card .guide-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.guide-go { padding-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.guide-go::after { content: " →"; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-line { border-color: transparent; background: var(--accent-2-soft); color: var(--accent-2); }
.badge-mode-manual { border-color: transparent; background: var(--good-soft); color: var(--good); }
.badge-mode-configuracion { border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.badge-mode-integracion { border-color: transparent; background: var(--accent-3-soft); color: var(--accent-3); }
.badge-level { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.badge-type { border-color: transparent; background: var(--surface-3); color: var(--ink); }
.badge-ok { border-color: transparent; background: var(--good-soft); color: var(--good); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* Steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.step {
  position: relative;
  padding: 22px 22px 22px 58px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 21px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.step h3 { margin: 0 0 6px; font-size: 15.5px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

.callout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.callout h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.03em; }
.callout p { margin: 0; color: var(--muted); font-size: 14.5px; }
.callout .btn { justify-self: start; }

.note {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.note strong { color: var(--ink); }
.note-warn { background: var(--warn-soft); border-color: transparent; color: var(--ink); }

/* Catalog */
.catalog-hero { padding-bottom: 8px; }
.catalog-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.previstos { margin-top: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 18px 20px; background: var(--surface-2); }
.previstos summary { cursor: pointer; font-size: 14px; font-weight: 650; }
.previstos p { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.previstos ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; columns: 2; column-gap: 32px; }

/* Explorar */
.filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 11.5px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
}
.field-wide { grid-column: 1 / -1; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin: 28px 0 16px; }
.results-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.results-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.results { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.result:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.result h3 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.result p { margin: 0; color: var(--muted); font-size: 13px; }
.result .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.result small { color: var(--muted); font-size: 12px; }
.result-go { padding-top: 2px; color: var(--accent); font-size: 12.5px; font-weight: 700; }
.result-go::after { content: " →"; }
.empty {
  padding: 34px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  text-align: center;
}
.empty h3 { margin: 0 0 8px; }
.empty p { margin: 0 0 18px; color: var(--muted); }
.loading { padding: 30px; text-align: center; color: var(--muted); }

.query {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
}

/* Guide */
.guide-header { padding: 44px 0 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: 0.5; }
.guide-header h1 { margin: 6px 0 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.04em; }
.guide-header .lead { max-width: 820px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: flex-start; }
.route-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rm-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
}
.rm-item.is-done { border-color: transparent; background: var(--good-soft); color: var(--good); }
.rm-item.is-current { border-color: transparent; background: var(--accent-soft); color: var(--ink); font-weight: 650; }
.rm-num {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(127, 127, 127, 0.16);
  font-size: 10px;
  font-weight: 800;
}
.more-actions summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.more-actions summary::-webkit-details-marker { display: none; }
.more-actions summary::after { content: "▾"; font-size: 11px; color: var(--muted); }
.more-actions[open] summary::after { content: "▴"; }
.more-actions-body { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 40px;
}
.toc {
  position: sticky;
  top: calc(var(--topbar) + 22px);
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.toc h2 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 7px 8px 7px 30px;
  position: relative;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.toc a::before {
  content: counter(toc);
  position: absolute;
  left: 6px;
  top: 8px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 10px;
  font-weight: 700;
}
.toc a:hover { background: var(--surface-3); color: var(--ink); }
.toc .toc-actions { margin-top: 14px; display: grid; gap: 8px; }
.toc .toc-actions .btn { width: 100%; }

.guide-body { min-width: 0; }
.guide-section { padding: 30px 0; border-top: 1px solid var(--line); }
.guide-section:first-child { border-top: 0; padding-top: 0; }
.guide-section > h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 29px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.guide-section > .section-intro { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); font-size: 14px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.bullets { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

.beforeafter { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.ba {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.ba h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.ba p { margin: 0; color: var(--muted); font-size: 14px; }
.ba-antes { border-left: 3px solid var(--line-strong); }
.ba-antes h3 { color: var(--muted); }
.ba-despues { border-left: 3px solid var(--good); }
.ba-despues h3 { color: var(--good); }

.cap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.cap + .cap { margin-top: 10px; }
.cap summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.cap summary::-webkit-details-marker { display: none; }
.cap summary::after {
  content: "+";
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  font-weight: 700;
  flex: none;
}
.cap[open] summary::after { content: "−"; }
.cap summary:hover { background: var(--surface-2); }
.cap-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; flex: 1 1 320px; }
.cap .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-body { padding: 4px 18px 18px; border-top: 1px solid var(--line); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 16px 0;
}
.cap-grid div { min-width: 0; }
.cap-grid dt {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.cap-grid dd { margin: 0; color: var(--muted); font-size: 13.5px; }
.cap-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cap-foot .hint { color: var(--muted); font-size: 12px; }

.activity {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.activity-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.activity-title { flex: 1 1 320px; }
.activity-title h3 { margin: 2px 0 0; font-size: 22px; letter-spacing: -0.03em; }
.activity-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.activity-map a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  text-decoration: none;
}
.activity-map a:hover { border-color: var(--line-strong); background: var(--surface); }
.activity-map > a > span {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.activity-map strong { display: block; font-size: 13px; }
.activity-map small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.activity-steps { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: act; }
.activity-phase { padding-top: 24px; border-top: 1px solid var(--line); }
.activity-phase:first-child { padding-top: 0; border-top: 0; }
.phase-head { margin-bottom: 4px; }
.phase-num {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.phase-head h4 { margin: 6px 0 0; font-size: 19px; letter-spacing: -0.02em; }
.phase-head p { max-width: 660px; margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.activity-step {
  position: relative;
  padding: 20px 0 20px 52px;
  border-top: 1px solid var(--line);
  counter-increment: act;
}
.activity-step:first-child,
.phase-head + .activity-step { border-top: 0; }
.activity-step::before {
  content: counter(act);
  position: absolute;
  left: 0;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.activity-step > h4 { margin: 0 0 8px; font-size: 15px; letter-spacing: -0.01em; }
.activity-step p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.activity-step p:last-child { margin-bottom: 0; }
.micro-steps { display: grid; gap: 4px; margin: 8px 0 14px; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.next-link { display: inline-flex; margin: 10px 0 0; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.next-link:hover { text-decoration: underline; }
.activity-end {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--good-soft);
}
.activity-end strong { color: var(--good); }
.activity-end p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.prompt-builder { margin-top: 4px; }
.triage { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); }
.triage summary { cursor: pointer; font-size: 13.5px; font-weight: 650; }
.triage-grid { display: grid; gap: 12px; margin-top: 12px; }
.triage-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.triage-q legend { padding: 0; margin-bottom: 6px; font-size: 11.5px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.triage-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.triage-opts label { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 12.5px; }
.triage-opts input { accent-color: var(--accent); }
.triage-out { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; }
.triage-out ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 5px; }.prompt-fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prompt-fields .field-wide { grid-column: 1 / -1; }
.prompt-preview {
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow: auto;
}
.prompt-preview .ph { color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 2px; }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.copy-status { color: var(--good); font-size: 12.5px; min-height: 18px; }

.compare { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.compare-panel {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  min-width: 0;
}
.compare-panel h5 { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.compare-panel p { margin: 0; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.compare-panel.is-draft { border-color: var(--warn); }
.compare-panel.is-draft h5 { color: var(--warn); }
.compare-panel.is-reviewed { border-color: var(--good); }
.compare-panel.is-reviewed h5 { color: var(--good); }
.cambios { margin-top: 12px; }

.errors { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.errors li { padding: 13px 15px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.errors strong { color: var(--warn); }
.errors span { display: block; color: var(--muted); margin-top: 3px; }

.opps { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opp { padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.opp h3 { margin: 0 0 6px; font-size: 14.5px; }
.opp p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.opp p:last-child { margin-bottom: 0; }
.opp .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.next-step {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid transparent;
}
.next-step h3 { margin: 0; font-size: 17px; }
.next-step p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.next-step-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.meta-list { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.meta-list div { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.meta-list dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta-list dd { margin: 4px 0 0; font-size: 13.5px; }

/* Progress */
.progress-summary { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 32px; letter-spacing: -0.04em; line-height: 1; }
.stat span { color: var(--muted); font-size: 12.5px; }
.progress-list { display: grid; gap: 10px; }
.progress-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.progress-item .grow { flex: 1 1 280px; min-width: 0; }
.progress-item strong { display: block; font-size: 14.5px; }
.progress-item small { color: var(--muted); font-size: 12px; }
.progress-item a { font-size: 12.5px; color: var(--accent); }

/* Footer */
.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-inner p { margin: 0; max-width: 620px; line-height: 1.6; }

/* Error state */
.error-box { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.error-box h2 { margin: 0 0 8px; }
.error-box p { margin: 0 0 18px; color: var(--muted); }

/* Mapa de la ecuación */
.map-hero { padding: 54px 0 10px; }
.map-hero h1 {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(36px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.map-hero .lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}
.map-context {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.map-context-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.map-context-btn:hover { color: var(--ink); }
.map-context-btn.is-active { background: var(--accent-soft); color: var(--accent); }

.map-board {
  position: relative;
  margin-top: 26px;
  padding: 34px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 176, 124, 0.09), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.14;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
}
.map-equation {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1;
}
.map-output { color: var(--accent); font-weight: 800; letter-spacing: -0.06em; }
.map-op { color: var(--muted); font-size: 0.55em; padding: 0 2px; }
.map-term {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.map-term:hover { background: var(--surface-3); border-color: var(--line); }
.map-term.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 176, 124, 0.08);
}
.term-symbol { font-weight: 750; }
.term-symbol-word { font-size: 0.68em; letter-spacing: -0.04em; }
.term-symbol-word sub { font-size: 0.72em; }
.term-name {
  font-family: var(--font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-term.is-active .term-name { color: var(--accent); }
.map-fraction { display: inline-grid; grid-template-rows: auto auto; align-items: center; padding: 0 4px; }
.map-numerator, .map-denominator { display: flex; align-items: center; justify-content: center; gap: 2px; }
.map-numerator { padding-bottom: 8px; }
.map-denominator { border-top: 2px solid var(--line-strong); padding-top: 8px; }
.map-one { font-size: 0.72em; color: var(--ink); padding: 8px 6px; }
.map-caption {
  position: relative;
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.map-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.map-base-label {
  font-family: var(--font);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.map-output sub,
.term-symbol sub,
.detail-symbol sub,
.map-base sub {
  font-size: 0.52em;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  bottom: -0.26em;
  letter-spacing: 0;
}
.map-base sub { font-size: 0.62em; bottom: -0.22em; }
.map-base-den { white-space: nowrap; }

.map-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px 26px;
  margin-top: 18px;
  padding: 24px 26px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.detail-main { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.detail-symbol {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 62px;
  padding: 0 10px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}
.detail-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.detail-main h2 { margin: 0; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.15; letter-spacing: -0.03em; }
.detail-text { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.detail-practice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.practice-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail-practice h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.detail-guide, .detail-why { margin: 0; color: var(--muted); font-size: 12.5px; }
.detail-why { color: var(--ink); }
.detail-practice .btn { margin-top: 6px; }
.detail-review {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.detail-review strong { color: var(--ink); }
.map-loading { margin: 0; color: var(--muted); font-size: 13px; }

.practices-section { padding-top: 54px; }
.practices-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.practices-head h2 { margin: 4px 0 0; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.035em; line-height: 1.1; }
.practices-head p { margin: 8px 0 0; max-width: 560px; color: var(--muted); font-size: 14px; }
.practice-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.practice-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto 24px;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.15s ease;
}
.practice-row:first-child { border-top: 0; }
.practice-row:hover { background: var(--surface-2); }
.practice-index { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.practice-main { min-width: 0; }
.practice-main strong { display: block; font-size: 14.5px; }
.practice-main small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.practice-type, .practice-time { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.practice-type { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.practice-arrow { color: var(--accent); font-size: 16px; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-grid { grid-template-columns: 1fr; }
  .route-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-detail { grid-template-columns: 1fr; }
  .detail-review { grid-column: auto; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  .topbar { position: static; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding-block: 9px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .main-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; overflow-x: visible; padding-bottom: 2px; gap: 2px; }
  .main-nav a { white-space: nowrap; padding: 7px 9px; font-size: 13px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 42px); }
  .searchbar { flex-direction: column; border-radius: 18px; padding: 10px; }
  .searchbar .btn { width: 100%; }
  .grid-3, .grid-2, .grid-4, .steps, .catalog-grid, .beforeafter, .compare, .opps, .meta-list, .progress-summary, .prompt-fields, .route-steps, .activity-preview { grid-template-columns: 1fr; }
  .activity-map { grid-template-columns: 1fr; }
  .progress-cta { padding: 22px 18px; }
  .route-cta { padding: 18px; }
  .cap-grid { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .activity { padding: 20px 16px; }
  .activity-step { padding-left: 44px; }
  .activity-step::before { width: 28px; height: 28px; }
  .toc ol { grid-template-columns: 1fr; }
  .previstos ul { columns: 1; }
  .btn-small { min-height: 40px; padding: 10px 15px; font-size: 13px; }
  .section { padding-top: 40px; }
  .guide-header { padding-top: 30px; }
  .map-hero { padding-top: 34px; }
  .map-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .map-context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 14px; }
  .map-context-btn { padding: 10px 6px; font-size: 12px; }
  .map-board { padding: 24px 8px 18px; }
  .map-equation { gap: 0; font-size: clamp(19px, 5.6vw, 26px); }
  .map-term { padding: 5px 2px; gap: 4px; }
  .term-name { font-size: 8px; letter-spacing: 0.06em; }
  .map-op { font-size: 0.5em; }
  .map-one { padding: 6px 3px; }
  .map-output sub, .term-symbol sub { font-size: 0.46em; }
  .map-caption { font-size: 11px; }
  .map-base { display: block; width: auto; font-size: 11px; padding: 8px 12px; line-height: 1.7; }
  .map-base-label { display: block; margin-bottom: 2px; font-size: 8.5px; }
  .map-detail { padding: 18px 16px; }
  .detail-main { gap: 12px; }
  .detail-symbol { min-width: 48px; height: 48px; padding: 0 8px; border-radius: 12px; font-size: 18px; }
  .practice-row { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 10px; padding: 14px; }
  .practice-type, .practice-time { display: none; }
  .practice-main small { white-space: normal; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #fff; --ink: #000; --muted: #333; --line: #ccc; }
  body { background: #fff; }
  .topbar, .site-footer, .toc, .guide-actions, .cap summary::after, .prompt-actions, .cap-foot, .hero-actions, .skip-link { display: none !important; }
  .guide-layout { display: block; padding-top: 10px; }
  .cap { break-inside: avoid; }
  .cap:not([open]) > .cap-body { display: block; }
  details { break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
