/* Shared stylesheet for éoguru blog/article pages.
   Token values mirror /calculadora-metas-source.html so the two sections of
   the site feel like one product, not two different tools. */

:root {
  --bg: #F2F5F1;
  --surface: #FFFFFF;
  --surface-2: #E7EDE7;
  --ink: #14201A;
  --ink-muted: #56675D;
  --ink-faint: #8A988F;
  --primary: #1D5FBF;
  --primary-strong: #123F82;
  --chart-teal: #1D8F8F;
  --border: #D9E1D8;
  --shadow: 0 1px 2px rgba(15, 42, 32, 0.06), 0 8px 24px rgba(15, 42, 32, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1713;
    --surface: #16221C;
    --surface-2: #1C2A23;
    --ink: #E7EEE9;
    --ink-muted: #93A79B;
    --ink-faint: #64766B;
    --primary: #5B9BEC;
    --primary-strong: #8AB8F2;
    --chart-teal: #3FB8B8;
    --border: #263630;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 28px rgba(0, 0, 0, 0.28);
  }
}
:root[data-theme="dark"] {
  --bg: #0E1713;
  --surface: #16221C;
  --surface-2: #1C2A23;
  --ink: #E7EEE9;
  --ink-muted: #93A79B;
  --ink-faint: #64766B;
  --primary: #5B9BEC;
  --primary-strong: #8AB8F2;
  --chart-teal: #3FB8B8;
  --border: #263630;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 28px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ---------- Masthead ---------- */

.masthead {
  background: #000000;
}
.masthead-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: #FDFEFD;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span {
  display: block;
  font-family: "Public Sans", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(253, 254, 253, 0.6);
  margin-top: 1px;
}
.masthead-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  color: #FDFEFD;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.theme-toggle-btn:hover { background: rgba(255, 255, 255, 0.18); }
.theme-toggle-btn:focus-visible { outline: 2px solid #FDFEFD; outline-offset: 2px; }
.theme-toggle-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-toggle-btn .icon-sun { display: inline; }
.theme-toggle-btn .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-btn .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle-btn .icon-moon { display: inline; }
}
:root[data-theme="dark"] .theme-toggle-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle-btn .icon-moon { display: inline; }
:root[data-theme="light"] .theme-toggle-btn .icon-sun { display: inline; }
:root[data-theme="light"] .theme-toggle-btn .icon-moon { display: none; }

.back-link {
  font-family: "Public Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #FDFEFD;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}
.back-link:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Article ---------- */

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chart-teal);
  margin: 40px 0 10px;
}
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.dek {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 32px;
}
article h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  margin: 36px 0 12px;
}
article p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
}
article ul, article ol {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  padding-left: 22px;
  margin: 0 0 18px;
}
article li { margin-bottom: 6px; }
article strong { font-weight: 700; }

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin: 40px 0;
}
.cta-box p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink-muted);
}
.cta-box .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--chart-teal) 80%, black 15%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: "Public Sans", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.cta-box .cta-btn:hover { background: var(--chart-teal); }

.disclaimer-box {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 44px;
}

footer.site-footer {
  margin-top: 8px;
  text-align: center;
}
.cookie-manage-link {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: none;
  padding: 0;
  font-family: "Public Sans", sans-serif;
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-manage-link:hover { color: var(--ink-muted); }

/* ---------- Cookie consent banner (shared with main site) ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  z-index: 60;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { font-size: 13.5px; line-height: 1.55; color: var(--ink); margin: 0 0 8px; }
.cookie-details summary { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); cursor: pointer; list-style: none; }
.cookie-details summary::-webkit-details-marker { display: none; }
.cookie-details p { font-size: 12.5px; line-height: 1.55; color: var(--ink-muted); margin: 8px 0 0; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.cookie-btn { font-family: "Public Sans", sans-serif; font-size: 13.5px; font-weight: 600; border-radius: 10px; padding: 10px 18px; cursor: pointer; transition: background 0.15s ease; }
.cookie-btn.decline { background: transparent; color: var(--ink-muted); border: 1px solid var(--border); }
.cookie-btn.decline:hover { background: var(--surface-2); }
.cookie-btn.accept { background: color-mix(in srgb, var(--chart-teal) 80%, black 15%); color: #fff; border: none; }
.cookie-btn.accept:hover { background: var(--chart-teal); }
.cookie-btn:focus-visible { outline: 2px solid var(--chart-teal); outline-offset: 2px; }
@media (max-width: 480px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-btn { width: 100%; text-align: center; }
}

/* ---------- Index page (list of articles) ---------- */

.post-list { margin-top: 32px; }
.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}
.post-card:hover { box-shadow: 0 2px 4px rgba(15,42,32,0.08), 0 12px 28px rgba(15,42,32,0.1); }
.post-card h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink);
}
.post-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }

@media (max-width: 480px) {
  .wrap { padding: 0 18px 56px; }
  .masthead-inner { padding: 18px 18px; }
  .back-link span.full { display: none; }
}
