/* ── TOKENS ── */
:root {
  --bg:        #FAFAF8;
  --surface:   #FFFFFF;
  --fg:        #1C1C1C;
  --muted:     #6B6B6B;
  --border:    #E8E4DF;
  --accent:    #2D5016;
  --accent-lt: #4A7C28;
  --gold:      #B8860B;
  --warm:      #F5F0E8;

  --f-serif: 'Playfair Display', Georgia, serif;
  --f-sans:  'Inter', system-ui, sans-serif;

  --r: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #141410;
    --surface: #1E1E18;
    --fg:      #EDEAE3;
    --muted:   #8A8A7A;
    --border:  #2E2E24;
    --warm:    #1A1A12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:      #141410;
  --surface: #1E1E18;
  --fg:      #EDEAE3;
  --muted:   #8A8A7A;
  --border:  #2E2E24;
  --warm:    #1A1A12;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--accent-lt); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ══════════════════════════
   TOPBAR
══════════════════════════ */
.topbar {
  background: var(--accent);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  padding: .5rem 0;
}

.topbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.topbar-item { display: flex; align-items: center; gap: .4rem; }
.topbar-item svg { flex-shrink: 0; opacity: .8; }

.topbar-socials { display: flex; align-items: center; gap: .8rem; }
.topbar-socials a {
  color: rgba(255,255,255,.75);
  transition: color .2s;
}
.topbar-socials a:hover { color: #fff; text-decoration: none; }

/* ══════════════════════════
   NAVBAR
══════════════════════════ */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}

.navbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.brand span { font-weight: 400; color: var(--muted); font-size: .85rem; display: block; font-family: var(--f-sans); line-height: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  padding: .45rem .8rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--warm); color: var(--fg); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

.nav-links .btn-cert {
  background: var(--accent);
  color: #fff !important;
  padding: .45rem 1rem;
}
.nav-links .btn-cert:hover { background: var(--accent-lt); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: .4rem .55rem;
  cursor: pointer;
  color: var(--fg);
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }

/* ══════════════════════════
   HERO (post header)
══════════════════════════ */
.hero {
  background: var(--warm);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}

.hero .eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  max-width: 700px;
  margin: 0 auto .8rem;
}

.hero h2 {
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-meta span { display: flex; align-items: center; gap: .3rem; }

/* ══════════════════════════
   LAYOUT
══════════════════════════ */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ══════════════════════════
   MAIN CONTENT
══════════════════════════ */
.post-image {
  width: 100%;
  border-radius: var(--r);
  aspect-ratio: 16/7;
  object-fit: cover;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}

/* CTA Banner */
.cta-banner {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cta-banner p { font-size: .9rem; opacity: .85; margin-top: .25rem; }
.cta-banner strong { font-size: 1.05rem; font-family: var(--f-serif); }

.btn-whats {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  padding: .65rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.btn-whats:hover { background: #1DA851; transform: translateY(-1px); text-decoration: none; color: #fff; }

/* Sections */
.content-section {
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-tag::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: .75rem;
  line-height: 1.3;
}

.content-section p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Requisitos list */
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .75rem;
}

.req-list li {
  display: flex;
  gap: .75rem;
  font-size: .93rem;
  color: var(--muted);
}

.req-list li::before {
  content: '✓';
  color: var(--accent-lt);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* Info cards row */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.info-card {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem;
  text-align: center;
}

.info-card .num {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.info-card .lbl {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* Links docs */
.doc-links { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }

.doc-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--fg);
  transition: border-color .2s, background .2s;
}

.doc-link:hover {
  border-color: var(--accent-lt);
  background: var(--surface);
  text-decoration: none;
}

.doc-link svg { color: var(--accent-lt); flex-shrink: 0; }

/* contact row */
.contact-row {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.contact-row strong { color: var(--fg); }

/* ══════════════════════════
   SIDEBAR
══════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.widget-header {
  font-family: var(--f-serif);
  font-size: .95rem;
  font-weight: 600;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--warm);
}

.post-list { list-style: none; }

.post-list li {
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child { border-bottom: none; }

.post-list a {
  display: block;
  padding: .85rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--fg);
  transition: background .18s, color .18s;
  line-height: 1.4;
}

.post-list a:hover {
  background: var(--warm);
  color: var(--accent);
  text-decoration: none;
}

.post-list a::before {
  content: '→ ';
  color: var(--accent-lt);
  font-size: .8rem;
}

.widget-img {
  width: 100%;
  display: block;
}

/* contact widget */
.contact-widget { padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }

.cw-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .83rem;
  color: var(--muted);
}
.cw-row svg { flex-shrink: 0; color: var(--accent-lt); margin-top: 2px; }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.footer {
  background: var(--accent);
  color: rgba(255,255,255,.7);
  text-align: center;
  font-size: .8rem;
  padding: 1.4rem 1.5rem;
  margin-top: 2rem;
}
.footer a { color: rgba(255,255,255,.85); }

/* ══════════════════════════
   MOBILE NAV
══════════════════════════ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 1rem; font-size: .9rem; }

  .page-wrap {
    grid-template-columns: 1fr;
    padding: 2rem 1.2rem;
    gap: 2rem;
  }

  .topbar .inner { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .topbar-socials { margin-top: .25rem; }

  .cta-banner { flex-direction: column; text-align: center; }
}

:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}