:root {
  --bg: #f5f0e7;
  --bg-strong: #f1e6d2;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(255, 250, 242, 0.84);
  --text: #1f1b17;
  --muted: #6a6258;
  --line: rgba(117, 91, 44, 0.18);
  --gold: #b98938;
  --gold-deep: #8b6523;
  --forest: #1f5d4d;
  --shadow-lg: 0 26px 70px rgba(48, 36, 18, 0.1);
  --shadow-md: 0 16px 36px rgba(48, 36, 18, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(185, 137, 56, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 238, 209, 0.62), transparent 24%),
    linear-gradient(180deg, #fbf8f1 0%, #f5f0e7 48%, #efe6d7 100%);
}

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.shell { width: min(var(--max), calc(100% - 28px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 241, 0.88);
  border-bottom: 1px solid rgba(117, 91, 44, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(185, 137, 56, 0.3);
  background: linear-gradient(150deg, #fff8eb, #ecd8ad);
  color: var(--gold-deep);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-family: "Trebuchet MS", sans-serif;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  font-family: "Trebuchet MS", sans-serif;
}

.brand-copy small,
.lead,
.table-note,
.note-box,
.guide-card p,
.panel p,
.faq-item p,
.footer-note p,
.site-footer p,
.article-meta,
.disclaimer {
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(117, 91, 44, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-family: "Trebuchet MS", sans-serif;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumb-separator { opacity: 0.45; }

.page-intro {
  padding: 28px 0 12px;
}

.eyebrow,
.guide-label,
.card-kicker {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); max-width: 900px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.18rem; }
p { margin: 0; }

.lead {
  max-width: 860px;
  margin-top: 18px;
  font-size: 1.12rem;
}

.section { margin: 30px 0; }

.hero-grid,
.dashboard-grid,
.card-grid,
.guide-grid,
.footer-grid {
  display: grid;
  gap: 22px;
}

.hero-grid { grid-template-columns: 1.18fr 0.82fr; }
.dashboard-grid { grid-template-columns: 1fr 1fr; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid { grid-template-columns: 1.1fr 0.9fr; }

.panel,
.metric-card,
.faq-item,
.result-box,
.article-body,
.article-meta {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.panel {
  padding: 28px;
  overflow: hidden;
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 232, 189, 0.5), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 238, 221, 0.88));
  box-shadow: var(--shadow-lg);
}

.sidebar-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(249, 244, 235, 0.9));
}

.hero-panel p + p,
.prose p + p,
.cta-panel p + p,
.panel .bullet-list,
.table-note,
.note-box,
.disclaimer,
.guide-card p,
.faq-item p {
  margin-top: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metric-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 238, 226, 0.92));
}

.metric-card span {
  display: block;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong,
.result-box strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-deep);
  font-size: 1.45rem;
}

.metric-card small { display: block; margin-top: 8px; color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th,
.data-table td {
  padding: 13px 0;
  border-bottom: 1px solid rgba(117, 91, 44, 0.14);
  text-align: left;
}

.data-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--gold-deep);
}

.data-table th {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.note-box,
.result-box,
.merge-note,
.article-note,
.article-related {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.note-box {
  background: rgba(255, 245, 225, 0.82);
}

.calculator-form {
  display: grid;
  gap: 14px;
}

.field-label {
  display: grid;
  gap: 8px;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(117, 91, 44, 0.22);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
}

.result-box {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(185, 137, 56, 0.14), rgba(255, 244, 218, 0.44));
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 18px;
}

.bullet-list,
.footer-links {
  margin: 0;
  padding-left: 20px;
}

.bullet-list li,
.footer-links li {
  margin-bottom: 10px;
}

.info-card {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 232, 0.9));
}

.guide-list,
.faq-list {
  display: grid;
  gap: 16px;
}

.guide-card {
  min-height: 100%;
}

.cta-panel {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(35, 93, 78, 0.08), rgba(255, 245, 225, 0.96));
}

.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #c79e53);
  color: #fff;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 700;
}

.button-link:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.faq-panel .faq-list { gap: 14px; }

.faq-item {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.94);
}

.faq-item summary {
  cursor: pointer;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 700;
}

.article-shell {
  display: grid;
  gap: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  font-size: 0.94rem;
}

.merge-note {
  border: 1px solid rgba(185, 137, 56, 0.22);
  background: rgba(255, 247, 230, 0.95);
}

.article-body {
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
}

.article-lead {
  font-size: 1.12rem;
  color: var(--text);
}

.article-note {
  margin-bottom: 22px;
  border: 1px solid rgba(185, 137, 56, 0.18);
  background: rgba(255, 247, 230, 0.95);
  color: var(--muted);
}

.article-related {
  margin-top: 24px;
  border: 1px solid rgba(117, 91, 44, 0.14);
  background: rgba(247, 241, 231, 0.9);
}

.article-body p + p,
.article-body ul,
.article-body ol,
.article-body h2,
.article-body h3 {
  margin-top: 16px;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 16px auto;
}

.article-figure {
  margin: 0 0 24px;
}

.article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  margin-top: 54px;
  padding: 42px 0 58px;
  border-top: 1px solid rgba(117, 91, 44, 0.12);
  background: linear-gradient(180deg, rgba(244, 236, 223, 0.42), rgba(237, 229, 214, 0.88));
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(117, 91, 44, 0.12);
}

.whatsapp-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1fb15c, #159049);
  color: #fff;
  box-shadow: 0 20px 40px rgba(12, 70, 38, 0.24);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 700;
}

.whatsapp-bubble svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.whatsapp-bubble:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .hero-grid,
  .dashboard-grid,
  .card-grid,
  .guide-grid,
  .footer-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .shell { width: min(var(--max), calc(100% - 22px)); }

  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 16px 14px 18px;
    background: rgba(251, 248, 241, 0.98);
    border-bottom: 1px solid rgba(117, 91, 44, 0.12);
    box-shadow: 0 16px 30px rgba(48, 36, 18, 0.08);
  }

  .site-nav.is-open { display: grid; gap: 12px; }

  .panel,
  .article-body { padding: 22px; }

  .header-inner { position: relative; }

  .whatsapp-bubble {
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
  }

  .whatsapp-bubble span:last-child { display: none; }
}
