/* ============================================================
   NeurodivergindoComAmor — blog.css
   Direção 3 · Afeto (lilás + arco-íris) · Syne / Shantell Sans / Hanken Grotesk
   ============================================================ */

:root {
  /* paleta arco-íris (infinito da neurodiversidade) */
  --rosa:   #FF6B9D;
  --pessego:#FF9E7D;
  --mel:    #FFD56B;
  --menta:  #7BD88F;
  --lago:   #6BC5F0;
  --lilas:  #B79CF0;
  --rainbow: linear-gradient(100deg, var(--rosa), var(--pessego), var(--mel), var(--menta), var(--lago), var(--lilas));

  /* superfícies */
  --bg:      #F6F1FD;
  --bg2:     #F1EAFB;
  --surface: #FFFFFF;
  --surface-2:#FBF8FE;

  /* tinta */
  --ink:    #34244E;
  --ink-2:  #564470;
  --sub:    #6F6188;
  --muted:  #9286A8;
  --line:   #E7DCF5;

  /* tipos */
  --display: 'Syne', system-ui, sans-serif;
  --accent:  'Shantell Sans', 'Comic Sans MS', cursive;
  --body:    'Hanken Grotesk', system-ui, sans-serif;

  --maxw: 1120px;
  --read: 680px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 50px -24px rgba(80,40,120,.45);
  --ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(120% 90% at 50% -8%, #FBF6FF 0%, var(--bg) 42%, var(--bg2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- utilidades ---------- */
.rainbow-text {
  background-image: var(--rainbow);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.accent { font-family: var(--accent); font-style: italic; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sub);
}
.eyebrow::before { content: ""; width: 26px; height: 4px; border-radius: 4px; background-image: var(--rainbow); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .74rem; letter-spacing: .03em;
  padding: 6px 13px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  border: 1.5px solid var(--line); white-space: nowrap;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lilas); }
.chip[data-cat="Diagnóstico & Autoconhecimento"] .dot { background: var(--lago); }
.chip[data-cat="Família Neurodivergente"] .dot { background: var(--menta); }
.chip[data-cat="Maternidade ND"] .dot { background: var(--rosa); }
.chip[data-cat="Manifesto"] .dot { background: var(--mel); }

/* ---------- botões 3D ---------- */
.btn3d {
  --face: var(--lilas); --edge: #7E5FD0; --txt: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--txt); background-color: var(--face);
  border: none; cursor: pointer; padding: 15px 26px; border-radius: 16px;
  box-shadow: 0 6px 0 var(--edge), 0 14px 22px -8px rgba(80,40,120,.5);
  transform: translateY(0); transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .12s;
  -webkit-tap-highlight-color: transparent; user-select: none; line-height: 1;
}
.btn3d:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--edge), 0 22px 30px -10px rgba(80,40,120,.55); }
.btn3d:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge), 0 7px 12px -6px rgba(80,40,120,.5); }
.btn3d.rosa { --face: var(--rosa); --edge: #D94E7E; }
.btn3d.lago { --face: var(--lago); --edge: #3F9BC9; }
.btn3d.mel  { --face: var(--mel);  --edge: #D9AE3A; --txt: #5A4A1E; }
.btn3d.menta{ --face: var(--menta);--edge: #4FA86A; --txt: #1f3a28; }
.btn3d.ghost {
  --face: var(--surface); --txt: var(--ink); --edge: var(--line);
  border: 1.5px solid var(--line);
  box-shadow: 0 5px 0 var(--line), 0 12px 20px -10px rgba(80,40,120,.3);
}
.btn3d.sm { padding: 11px 18px; font-size: .9rem; border-radius: 13px; box-shadow: 0 5px 0 var(--edge), 0 10px 16px -8px rgba(80,40,120,.45); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248,243,255,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(231,220,245,.8);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 56px; flex: none; filter: drop-shadow(0 4px 8px rgba(120,80,180,.25)); }
.brand .name { display: flex; flex-direction: column; line-height: 1; }
.brand .name b { font-family: var(--display); font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; color: var(--ink); }
.brand .name .am { font-family: var(--accent); font-style: italic; font-size: 1.18rem; margin-top: -1px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 600; font-size: .95rem; color: var(--ink-2);
  padding: 9px 14px; border-radius: 11px; position: relative; transition: color .15s, background .15s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px;
  background-image: var(--rainbow); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

/* ---------- floating blobs ---------- */
.blob-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .35; }
@keyframes floaty {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(16px,-22px) scale(1.06); }
  66% { transform: translate(-14px,12px) scale(.96); }
}
@keyframes ndbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ndshimmer { 0% { transform: translateX(0); } 100% { transform: translateX(460px); } }
.nd-shimmer { animation: ndshimmer 3.4s linear infinite; }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: 70px 0 54px; text-align: center; overflow: hidden; }
.hero .inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero .logo { width: min(440px, 84vw); margin-bottom: 8px; }
.hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: .92;
  font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 8px 0 0; color: var(--ink); }
.hero h1 .am { font-family: var(--accent); font-style: italic; font-weight: 700; display: block; margin-top: 6px;
  font-size: .92em; }
.hero .tag { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 30ch; margin: 22px auto 0;
  font-weight: 500; text-wrap: balance; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: 58px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 12px 0 0; color: var(--ink); line-height: 1.05; }
.section-head p { color: var(--sub); margin: 8px 0 0; max-width: 52ch; }

/* ---------- cards de artigo ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); overflow: hidden;
}
.post-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background-image: var(--rainbow); opacity: .9; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(80,40,120,.55); }
.post-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-card .day { font-family: var(--display); font-weight: 800; font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.post-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.32rem; line-height: 1.12; margin: 2px 0 0; letter-spacing: -.01em; }
.post-card .excerpt { color: var(--sub); font-size: .98rem; margin: 0; flex: 1; }
.post-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.post-card .read { font-size: .82rem; color: var(--muted); font-weight: 600; }
.post-card .go { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--ink); }
.post-card .go svg { transition: transform .18s var(--ease); }
.post-card:hover .go svg { transform: translateX(4px); }

/* capa / thumbnail (ilustração do artigo) */
.post-card .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  margin: -6px -6px 4px; background: linear-gradient(135deg, #FBEEF6, #EFE7FB 55%, #E7F2FB); }
.post-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.post-card .thumb .thumb-ph { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.post-card .thumb .thumb-ph svg { width: 60px; opacity: .65; }
.post-card.locked .thumb { filter: saturate(.85); }
.post-card.pilar .thumb.pilar-art { width: 200px; aspect-ratio: 4 / 5; border-radius: 18px; margin: 0; flex: none; }
@media (max-width: 720px){ .post-card.pilar .thumb.pilar-art { width: 100%; aspect-ratio: 16/9; } }

.article-cover { max-width: 760px; margin: 28px auto 0; padding: 0 28px; }
.article-cover .cover { position: relative; aspect-ratio: 1200 / 630; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: linear-gradient(135deg, #FBEEF6, #EFE7FB 50%, #E7F2FB); }
.article-cover .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.article-cover .cover .ph { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; text-align: center; padding: 26px; }
.article-cover .cover .ph .mark { width: 80px; }
.article-cover .cover .ph .tag { font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article-cover .cover .ph .cap { font-family: var(--accent); font-style: italic; color: var(--ink-2); font-size: 1.05rem; max-width: 36ch; }

/* card bloqueado (ainda não publicado) */
.post-card.locked { background: linear-gradient(180deg, #FBF8FE, #F4ECFC); }
.post-card.locked::before { opacity: .35; filter: grayscale(.3); }
.post-card.locked h3 { color: var(--ink-2); }
.post-card.locked .lock {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; color: var(--ink-2);
  background: rgba(183,156,240,.16); border: 1.5px dashed rgba(150,120,210,.5); border-radius: 999px; padding: 7px 13px;
}
.post-card.locked .lock svg { width: 14px; height: 14px; }

/* card pilar */
.post-card.pilar { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 30px; padding: 30px 34px;
  background: linear-gradient(110deg, #fff 60%, #FBF3FF); }
.post-card.pilar .pilar-badge { font-family: var(--display); font-weight: 800; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lilas); }
.post-card.pilar h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.post-card.pilar .pilar-art { width: 150px; flex: none; }
.post-card.pilar .pilar-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 720px){ .post-card.pilar { flex-direction: column; align-items: flex-start; } .post-card.pilar .pilar-art{ width: 110px; } }

/* ---------- faixa newsletter ---------- */
.news {
  position: relative; overflow: hidden; border-radius: 30px; padding: 50px 44px; text-align: center;
  background: linear-gradient(135deg, #2E1D52, #43275E 55%, #5B2E63);
  color: #fff; box-shadow: 0 30px 70px -30px rgba(60,30,90,.7);
}
.news h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem,3.6vw,2.5rem); margin: 10px 0 0; }
.news p { color: rgba(255,255,255,.8); max-width: 46ch; margin: 14px auto 0; }
.news form { display: flex; gap: 12px; justify-content: center; margin: 28px auto 0; max-width: 520px; flex-wrap: wrap; }
.news input {
  flex: 1; min-width: 220px; border: none; border-radius: 14px; padding: 15px 18px; font-family: var(--body);
  font-size: 1rem; background: rgba(255,255,255,.95); color: var(--ink);
}
.news input:focus { outline: 3px solid var(--mel); }
.news .fineprint { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 16px; }

/* ---------- categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); padding: 26px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .2s var(--ease); cursor: default;
}
.cat-card:hover { transform: translateY(-5px); }
.cat-card .glow { position: absolute; width: 120px; height: 120px; border-radius: 50%; filter: blur(34px); opacity: .5; right: -30px; top: -30px; }
.cat-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0 0 6px; position: relative; }
.cat-card p { color: var(--sub); font-size: .92rem; margin: 0; position: relative; }
.cat-card .count { font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--muted); position: relative; margin-top: 12px; display: block; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 40px; padding: 56px 0 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; position: relative; z-index: 2; }
.footer-brand .name b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.footer-brand .am { font-family: var(--accent); font-style: italic; font-size: 1.3rem; }
.footer-brand p { color: var(--sub); max-width: 36ch; margin: 12px 0 0; font-size: .94rem; }
.footer-col h4 { font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin: 0 0 14px; color: var(--ink); }
.footer-col a { display: block; color: var(--sub); padding: 5px 0; font-size: .94rem; transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2); transition: transform .16s var(--ease), color .16s; }
.social a:hover { transform: translateY(-3px); color: var(--rosa); }
.disclaimer { margin-top: 36px; padding: 18px 22px; border-radius: var(--radius-sm); background: rgba(183,156,240,.12);
  border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; position: relative; z-index: 2; }
.disclaimer b { color: var(--ink); }
.copyright { margin-top: 26px; color: var(--muted); font-size: .85rem; position: relative; z-index: 2; }

/* ============================================================
   PÁGINA DE ARTIGO
   ============================================================ */
.article-hero { position: relative; padding: 54px 0 26px; overflow: hidden; }
.article-hero .inner { position: relative; z-index: 2; max-width: var(--read); margin: 0 auto; text-align: center; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.article-hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(2rem, 5vw, 3.2rem); margin: 16px 0 0; color: var(--ink); text-wrap: balance; }
.article-hero .resumo { font-family: var(--accent); font-style: italic; font-size: clamp(1.15rem,2.4vw,1.45rem);
  color: var(--ink-2); margin: 20px auto 0; max-width: 32ch; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; color: var(--sub); font-size: .9rem; font-weight: 600; }
.article-meta .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.article-meta .author { display: inline-flex; align-items: center; gap: 9px; }
.article-meta .author .av { width: 30px; height: 30px; border-radius: 50%; background-image: var(--rainbow); display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 800; font-size: .8rem; }
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background-image: var(--rainbow); z-index: 80; transition: width .1s linear; }

.article-body { max-width: var(--read); margin: 30px auto 0; padding: 0 28px; font-size: 1.16rem; line-height: 1.78; color: var(--ink-2); }
.article-body > * { margin: 0 0 1.25em; }
.article-body h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem,3vw,1.85rem); color: var(--ink);
  letter-spacing: -.01em; line-height: 1.15; margin: 1.9em 0 .6em; }
.article-body h2::before { content: ""; display: block; width: 34px; height: 5px; border-radius: 5px; background-image: var(--rainbow); margin-bottom: 16px; }
.article-body strong { color: var(--ink); font-weight: 800; }
.article-body a { color: #B5469B; font-weight: 700; box-shadow: inset 0 -2px 0 rgba(255,107,157,.4); transition: box-shadow .15s; }
.article-body a:hover { box-shadow: inset 0 -1.1em 0 rgba(255,107,157,.18); }
.article-body em { font-family: var(--accent); font-style: italic; font-size: 1.06em; }
.article-body hr { border: none; height: 0; margin: 2.2em auto; text-align: center; }
.article-body hr::after { content: "❀"; color: var(--lilas); font-size: 1.1rem; letter-spacing: .4em; }
.article-body blockquote {
  margin: 1.8em 0; padding: 20px 24px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,213,107,.16), rgba(255,107,157,.1));
  border-left: 5px solid var(--mel); color: var(--ink); font-size: 1.02em;
}
.article-body blockquote p { margin: 0; }
.article-body ul { list-style: none; padding: 0; }
.article-body li { position: relative; padding-left: 30px; margin: 0 0 .85em; }
.article-body li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 11px; border-radius: 50%; background-image: var(--rainbow); }
.article-body .crosslink {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-soft); font-size: 1rem;
}
.article-body .crosslink .arr { font-family: var(--display); font-weight: 800; color: var(--lilas); }

.teaser { max-width: var(--read); margin: 34px auto 0; padding: 0 28px; }
.teaser .inner { background: linear-gradient(135deg, rgba(183,156,240,.16), rgba(107,197,240,.12));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; font-family: var(--accent); font-style: italic;
  font-size: 1.18rem; color: var(--ink-2); text-align: center; }

/* nav cluster (prev/next/pilar) */
.cluster-nav { max-width: var(--read); margin: 30px auto 0; padding: 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cluster-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform .18s var(--ease); }
.cluster-nav a:hover { transform: translateY(-4px); }
.cluster-nav .dir { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cluster-nav .t { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.12; }
.cluster-nav a.next { text-align: right; }
.cluster-nav a.pilar { grid-column: 1 / -1; background: linear-gradient(110deg,#fff,#FBF3FF); }
@media (max-width: 600px){ .cluster-nav { grid-template-columns: 1fr; } .cluster-nav a.next { text-align: left; } }

.article-foot { max-width: var(--read); margin: 40px auto 0; padding: 0 28px; }

/* ---------- date-gate (artigo ainda não publicado) ---------- */
.gate { position: relative; overflow: hidden; padding: 80px 0 90px; text-align: center; }
.gate .inner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.gate .lockmark { width: 130px; margin-bottom: 8px; }
.gate h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem,4.5vw,2.8rem); margin: 14px 0 0; line-height: 1.05; }
.gate .when { font-family: var(--accent); font-style: italic; font-size: 1.4rem; color: var(--ink-2); margin-top: 14px; }
.gate .count { display: flex; gap: 14px; margin-top: 30px; }
.gate .count .u { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; min-width: 78px; box-shadow: var(--shadow-soft); }
.gate .count .n { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--ink); line-height: 1; }
.gate .count .l { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.gate .reveal-links { margin-top: 36px; width: 100%; }
.hidden { display: none !important; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsivo ---------- */
@media (max-width: 980px){
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(248,243,255,.98); backdrop-filter: blur(14px); padding: 10px 20px 18px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .28s var(--ease); box-shadow: var(--shadow-soft); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2.4px; border-radius: 2px; background: var(--ink); position: relative; transition: .2s; }
  .nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
}
@media (min-width: 981px){ .nav { display: flex !important; transform: none !important; position: static; background: none; padding: 0; } }
