/* ============================================================
   TEMA NATUREZA — folha de estilo compartilhada
   Paleta água/teal · Spectral (display) + Hanken Grotesk (texto)
   Modo claro + escuro via [data-theme]
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* tipografia */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* paleta água/natureza (modo claro) */
  --paper:      #f4f8f7;
  --surface:    #ffffff;
  --surface-2:  #eaf2f1;
  --ink:        #102a31;
  --ink-soft:   #2e4a52;
  --muted:      #5f7b83;
  --line:       #d9e6e4;
  --line-soft:  #e7f0ee;

  --brand:      #1c6f8d;   /* água */
  --brand-deep: #0f3a4a;   /* lago profundo */
  --brand-press:#155b76;
  --mint:       #6bb3a6;   /* musgo/menta */
  --sand:       #c39a63;   /* areia quente (acento) */
  --sand-soft:  #ead9bd;

  --shadow-sm: 0 1px 2px rgba(15,58,74,.06), 0 1px 1px rgba(15,58,74,.04);
  --shadow-md: 0 6px 22px -8px rgba(15,58,74,.22), 0 2px 6px rgba(15,58,74,.06);
  --shadow-lg: 0 24px 60px -22px rgba(15,58,74,.40);

  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 24px;

  --maxw: 1160px;
  --readw: 720px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --paper:      #0a1c22;
  --surface:    #102a32;
  --surface-2:  #16373f;
  --ink:        #e9f3f1;
  --ink-soft:   #c3d6d6;
  --muted:      #8aa6ac;
  --line:       rgba(255,255,255,.10);
  --line-soft:  rgba(255,255,255,.06);

  --brand:      #45a3c2;
  --brand-deep: #0c2c38;
  --brand-press:#5cb6d2;
  --mint:       #7fc3b8;
  --sand:       #d8b67f;
  --sand-soft:  #3a3322;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 10px 30px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 70px -24px rgba(0,0,0,.7);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--mint); color: #06231f; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.hero h1, .featured__body h3, .section-label h2, .page-hero h1 { text-wrap: balance; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }

/* ---------- Topographic texture ---------- */
.topo {
  background-image:
    repeating-radial-gradient(circle at 20% 110%, transparent 0 34px, rgba(28,111,141,.05) 34px 35px);
  background-size: 520px 420px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__bar { display: flex; align-items: center; gap: 20px; height: 70px; }

/* logo selo + nome */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__seal {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--shadow-sm);
}
.brand__seal span {
  font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #eafaf6;
  position: relative; z-index: 2; line-height: 1;
}
.brand__seal::after { /* onda d'água sutil no selo */
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -6px; height: 16px;
  background: radial-gradient(120% 100% at 50% 100%, rgba(127,195,184,.6), transparent 70%);
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; line-height: 1.1; }
.brand__name small { display: block; font-family: var(--font-text); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-top: 1px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  color: var(--ink-soft); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-btn { display: none; }

/* mobile drawer */
.drawer { display: none; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { position: relative; isolation: isolate; }
.hero__scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__scene svg { width: 100%; height: 100%; object-fit: cover; }
.hero__scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,28,36,.15) 0%, rgba(7,28,36,.35) 45%, rgba(7,28,36,.82) 100%);
}
.hero__inner { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 70px 70px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px; margin-bottom: 18px; white-space: nowrap;
}
.hero .eyebrow { color: #d8f3ec; background: rgba(127,195,184,.18); border: 1px solid rgba(127,195,184,.35); backdrop-filter: blur(4px); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }
.hero h1 { color: #f3fbf9; font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; max-width: 19ch; }
.hero__excerpt { color: #d3e6e3; font-size: clamp(17px, 1.5vw, 21px); max-width: 56ch; margin-top: 18px; line-height: 1.55; }
.hero__meta { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: #bcd6d2; font-size: 14px; font-weight: 500; }
.hero__cta { margin-top: 30px; }

/* botão */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 100px; transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(28,111,141,.8); }
.btn--primary:hover { background: var(--brand-press); transform: translateY(-2px); }
.btn--light { background: #f2fbf8; color: var(--brand-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface-2); }

/* divisor de onda entre hero e conteúdo */
.wave { display: block; width: 100%; height: 40px; color: var(--paper); margin-top: -39px; position: relative; z-index: 1; }
.wave svg { width: 100%; height: 100%; }

/* ============================================================
   SEÇÕES / TÍTULOS
   ============================================================ */
.section { padding-block: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-label { display: inline-flex; align-items: center; gap: 10px; }
.section-label .leaf { width: 22px; height: 22px; color: var(--mint); flex: none; }
.section-label h2 { font-size: clamp(24px, 3vw, 34px); }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 600; font-size: 15px; white-space: nowrap; }
.link-more svg { width: 16px; height: 16px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }

/* ============================================================
   IMAGEM PLACEHOLDER (cena de natureza gerada via JS)
   ============================================================ */
.scene { position: relative; overflow: hidden; background: var(--surface-2); }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-theme="dark"] .scene > svg { filter: saturate(.92) brightness(.82); }
.scene__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #eafaf6;
  background: rgba(7,28,36,.45); border: 1px solid rgba(255,255,255,.18);
  padding: 4px 10px; border-radius: 100px; backdrop-filter: blur(4px);
}

/* ============================================================
   CARD DESTAQUE (featured, lado a lado)
   ============================================================ */
.featured {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.featured .scene { min-height: 360px; }
.featured__body { padding: 40px clamp(28px,4vw,48px); display: flex; flex-direction: column; justify-content: center; }
.featured__body h3 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 14px; }
.featured__body p { color: var(--ink-soft); margin-top: 14px; font-size: 16.5px; }

/* tag/badge */
.badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sand); 
}
.badge::before { content: ""; width: 18px; height: 2px; background: var(--sand); border-radius: 2px; }

/* meta (data · autor · leitura) */
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.meta a { color: var(--brand); }
.meta a:hover { text-decoration: underline; }

/* ============================================================
   GRID DE ARTIGOS
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card .scene { aspect-ratio: 16/10; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body h3 { font-size: 20.5px; line-height: 1.22; }
.card:hover h3 { color: var(--brand); }
.card__body p { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.card__foot { display: flex; align-items: center; gap: 9px; padding-top: 6px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #06231f;
  background: linear-gradient(150deg, var(--mint), var(--sand));
}

/* lista horizontal (compacta) */
.post-row { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.post-row .scene { aspect-ratio: 16/11; border-radius: var(--radius-sm); }
.post-row__body h3 { font-size: 21px; line-height: 1.2; }
.post-row__body p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 64ch; }
.post-row__body .meta { margin-top: 12px; }
.post-row:hover h3 { color: var(--brand); }

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--surface); transition: all .18s;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { border: 0; background: none; }
.pagination .nav-x { gap: 7px; }

/* ============================================================
   POST INDIVIDUAL (single)
   ============================================================ */
.post-hero { position: relative; isolation: isolate; overflow: hidden; }
.post-hero .scene { position: absolute; inset: 0; z-index: -2; }
.post-hero__overlay { position: relative; z-index: 1; min-height: clamp(380px, 44vw, 520px); background: linear-gradient(180deg, rgba(7,28,36,.10), rgba(7,28,36,.55) 65%, rgba(7,28,36,.86)); display: flex; align-items: flex-end; }
.post-hero__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 44px 24px 42px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .7; }
.post-hero h1 { color: #f5fcfa; font-size: clamp(28px, 4.4vw, 52px); max-width: 22ch; }
.post-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; color: #cfe6e2; font-size: 15px; font-weight: 500; }
.post-hero__meta .avatar { width: 32px; height: 32px; font-size: 13px; }
.post-hero__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.article { max-width: var(--readw); margin: 0 auto; padding-block: 18px 8px; }

/* barra de compartilhar sticky */
.post-layout { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 0; max-width: calc(var(--readw) + 64px + 40px); margin-inline: auto; padding-inline: 24px; }
.share-rail { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 10px; padding-top: 26px; }
.share-rail .lab { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; margin: 4px auto 6px; }
.share-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface); transition: all .18s;
}
.share-btn:hover { color: #fff; transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.x:hover { background: #0f1419; border-color: #0f1419; }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; }
.share-btn.in:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn.tg:hover { background: #229 ED9; }
.share-btn.tg:hover { background: #229ed9; border-color: #229ed9; }

/* corpo do artigo (prose) */
.prose { font-size: 18.5px; line-height: 1.75; color: var(--ink-soft); padding-block: 8px 12px; }
.prose > .lead { font-size: 21px; line-height: 1.6; color: var(--ink); font-family: var(--font-display); font-weight: 400; margin-bottom: 8px; }
.prose h2 { font-size: clamp(24px, 3vw, 31px); margin: 44px 0 14px; color: var(--ink); }
.prose h2 .leaf { display: inline-block; width: 18px; height: 18px; color: var(--mint); margin-right: 8px; vertical-align: -2px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 20px; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 4px; list-style: none; counter-reset: li; }
.prose ul li, .prose ol li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; background: var(--mint); transform: rotate(45deg); }
.prose ol li { counter-increment: li; }
.prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: 1px; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%; font-family: var(--font-text);
  font-size: 13px; font-weight: 700; color: var(--brand); background: var(--surface-2);
}
.prose blockquote {
  margin: 30px 0; padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 3px solid var(--mint); background: var(--surface-2);
  font-family: var(--font-display); font-size: 22px; font-style: italic; line-height: 1.5; color: var(--ink);
}
.prose blockquote p { margin: 0; }

/* compartilhar inferior */
.share-bottom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 26px 0; margin-top: 16px; border-top: 1px solid var(--line); }
.share-bottom .lab { font-weight: 600; color: var(--muted); font-size: 14px; }
.share-bottom .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* autor box no final */
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); margin-top: 8px; }
.author-box .avatar { width: 58px; height: 58px; font-size: 20px; }
.author-box h4 { font-size: 18px; }
.author-box p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }

/* Leia também */
.related { background: var(--surface-2); border-top: 1px solid var(--line); }

/* ============================================================
   AUTOR / PÁGINAS DE CONTEÚDO
   ============================================================ */
.profile-hero { display: flex; align-items: center; gap: 24px; padding-block: 48px 8px; }
.profile-hero .avatar { width: 92px; height: 92px; font-size: 34px; box-shadow: var(--shadow-md); }
.profile-hero h1 { font-size: clamp(28px, 4vw, 42px); }
.profile-hero .role { color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.profile-hero p { color: var(--ink-soft); margin-top: 10px; max-width: 60ch; }
.stats { display: flex; gap: 28px; margin-top: 18px; }
.stats div { font-size: 14px; color: var(--muted); }
.stats b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--ink); font-weight: 600; }

/* página estática (sobre / privacidade) */
.page-hero { padding-block: 56px 30px; border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); }
.page-hero p { color: var(--muted); margin-top: 12px; font-size: 18px; max-width: 60ch; }
.doc { max-width: var(--readw); margin-inline: auto; }
.doc .prose h2:first-child { margin-top: 8px; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 32px; }
.toc h4 { font-family: var(--font-text); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: t; display: grid; gap: 8px; }
.toc a { color: var(--ink-soft); font-size: 15px; font-weight: 500; display: inline-flex; gap: 10px; }
.toc a:hover { color: var(--brand); }
.toc li { counter-increment: t; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--brand); font-weight: 700; font-size: 13px; }

/* cards de valores (sobre) */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 8px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.value .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); margin-bottom: 16px; }
.value .ic svg { width: 22px; height: 22px; }
.value h3 { font-size: 19px; }
.value p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* faixa newsletter / CTA */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #eafaf6; padding: clamp(32px,5vw,56px); }
.cta-band .scene { position: absolute; inset: 0; z-index: 0; opacity: .4; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #f3fbf9; font-size: clamp(24px,3.2vw,36px); max-width: 18ch; }
.cta-band p { color: #c9e6e0; margin-top: 12px; max-width: 50ch; }
.newsletter { display: flex; gap: 10px; margin-top: 24px; max-width: 460px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 15px; }
.newsletter input::placeholder { color: rgba(234,250,246,.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--brand-deep); color: #bcd6d2; margin-top: 80px; position: relative; }
[data-theme="dark"] .site-footer { background: #07171d; border-top: 1px solid var(--line); }
.site-footer .wave-top { color: var(--brand-deep); }
[data-theme="dark"] .site-footer .wave-top { color: #07171d; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.site-footer .brand__name { color: #eafaf6; }
.site-footer__about { color: #9fc2bd; font-size: 15px; margin-top: 16px; max-width: 38ch; }
.footer-col h4 { font-family: var(--font-text); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7fb0a8; margin-bottom: 16px; }
.footer-col a { display: block; color: #bcd6d2; font-size: 15px; padding: 6px 0; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #8fb3ad; }
.footer-bottom a { color: var(--mint); font-weight: 600; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #cfe6e2; transition: background .18s; }
.socials a:hover { background: rgba(255,255,255,.16); }
.socials svg { width: 17px; height: 17px; }

/* ---------- entrada suave ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 940px) {
  .featured { grid-template-columns: 1fr; }
  .featured .scene { min-height: 240px; aspect-ratio: 16/9; }
  .grid, .grid--2 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .share-rail { position: static; flex-direction: row; flex-wrap: wrap; padding-top: 0; margin-bottom: 6px; }
  .share-rail .lab { writing-mode: horizontal-tb; margin: 0 6px 0 0; align-self: center; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav, .desktop-only { display: none; }
  .menu-btn { display: grid; }
  .grid, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding-block: 46px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .post-row { grid-template-columns: 110px 1fr; gap: 14px; }
  .profile-hero { flex-direction: column; text-align: center; }
  .stats { justify-content: center; }
  .hero__inner { min-height: 440px; }

  /* drawer mobile */
  .drawer { display: block; position: fixed; inset: 0; z-index: 150; pointer-events: none; }
  .drawer__scrim { position: absolute; inset: 0; background: rgba(7,28,36,.5); opacity: 0; transition: opacity .3s; }
  .drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(78vw, 320px); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s var(--ease); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
  .drawer.open { pointer-events: auto; }
  .drawer.open .drawer__scrim { opacity: 1; }
  .drawer.open .drawer__panel { transform: none; }
  .drawer__panel a { padding: 14px 12px; border-radius: 10px; font-weight: 600; font-size: 17px; color: var(--ink); }
  .drawer__panel a:hover { background: var(--surface-2); }
  .drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
}
