:root {
  --coral: #cc785c;
  --coral-active: #a9583e;
  --ink: #141413;
  --body-text: #3d3d3a;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --hairline: #e6dfd8;
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-dark: #181715;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body-text);
  font-family: "StyreneB", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Tiempos Headline", Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.site-header { background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.site-logo { font-weight: 600; font-size: 18px; color: var(--ink) !important; text-decoration: none; }
.sh-sidebar {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 24px;
}
.sh-sidebar h4 { font-family: inherit; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.sh-sidebar ul { list-style: none; padding-left: 0; }
.sh-sidebar li { margin-bottom: 8px; }
.sh-sidebar a { color: var(--ink); font-size: 14px; text-decoration: none; }
.sh-sidebar a:hover { color: var(--coral); }
.sh-sidebar a.active { font-weight: 700; color: var(--coral); }

.breadcrumb-custom { font-size: 13px; color: var(--muted); margin: 24px 0; }
.breadcrumb-custom a { color: var(--muted); }

.hero-band {
  background: var(--surface-soft);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  margin: 24px 0 40px;
}
.hero-band .lead { color: var(--muted); font-size: 18px; }

.chapter-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
  height: 100%;
}
.chapter-card img { width: 100%; height: 160px; object-fit: cover; }
.chapter-card .body { padding: 20px; }
.chapter-card .num { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--coral); font-weight: 600; }
.chapter-card h3 { font-size: 18px; margin: 8px 0; }
.chapter-card p { font-size: 14px; color: var(--body-text); margin: 0; }
.chapter-card:hover { text-decoration: none; }

.toc-box {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}
.toc-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-family: inherit; }
.toc-box ol { padding-left: 20px; margin-bottom: 0; }
.toc-box a { color: var(--ink); }
.toc-box a:hover { color: var(--coral); }

.checklist-box {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}
.checklist-box h2, .checklist-box h3 { color: var(--on-dark); }
.checklist-box ul { list-style: none; padding-left: 0; }
.checklist-box li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--on-dark-soft); }
.checklist-box li::before { content: "✓"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }

.related-block { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hairline); }

.faq-item {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-size: 20px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 16px; color: var(--body-text); }

.btn-coral {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
}
.btn-coral:hover { background: var(--coral-active); color: #fff; }
.btn-coral:disabled { background: var(--hairline); color: var(--muted); }

.form-field label { font-weight: 600; font-size: 14px; }
.form-field .invalid-feedback { display: none; }
.form-field.has-error .invalid-feedback { display: block; }
.form-field.has-error input, .form-field.has-error textarea { border-color: #c64545; }
.form-success-box { display: none; background: var(--surface-card); border-radius: var(--radius-md); padding: 16px 20px; font-weight: 600; }
.form-success-box.show { display: block; }

.disclaimer-box { background: var(--surface-card); border-radius: var(--radius-md); padding: 20px 24px; font-size: 14px; color: var(--body-text); margin: 24px 0; }

footer.site-footer { background: var(--surface-dark); color: var(--on-dark-soft); padding: 56px 0 24px; margin-top: 64px; }
footer.site-footer a { color: var(--on-dark); opacity: 0.85; }
footer.site-footer a:hover { opacity: 1; }
footer.site-footer h4 { color: var(--on-dark-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-family: inherit; }
.footer-disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: var(--on-dark-soft); line-height: 1.6; }
.footer-bottom { margin-top: 20px; font-size: 13px; color: var(--on-dark-soft); }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--surface-dark); color: var(--on-dark);
  padding: 20px 24px; display: none; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 14px; max-width: 640px; }

.nav-toggle-custom { display: none; }
@media (max-width: 991px) {
  .sh-sidebar { position: static; margin-bottom: 24px; }
}
