/* ============================================================
   CARTÓRIOS DO BRASIL — Complete Design Overhaul
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,900&family=Syne:wght@400;600;700;800&family=Nunito:wght@300;400;500;600&family=JetBrains+Mono:wght@500&display=swap');

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  /* Brazilian Flag */
  --verde:        #009C3B;
  --amarelo:      #FFDF00;
  --azul:         #003082;

  /* Extended Greens */
  --verde-floresta: #00521F;
  --verde-escuro:   #00742D;
  --verde-claro:    #47C77A;
  --verde-palido:   #D6F0E3;

  /* Extended Blues */
  --azul-noite:  #001240;
  --azul-escuro: #001D5E;
  --azul-real:   #0032A0;
  --azul-palido: #D9E5FF;

  /* Extended Yellows / Gold */
  --ouro:        #F5C400;
  --ouro-claro:  #FFF3A3;
  --ouro-escuro: #BF9600;

  /* Warm Neutrals */
  --creme:         #FAF7F0;
  --creme-med:     #F2EDE4;
  --areia:         #E5DDD1;
  --terra:         #C9B99A;
  --marrom:        #6B503A;

  /* Grays */
  --g50:  #FAFAFA;
  --g100: #F5F5F5;
  --g200: #E8E8E8;
  --g300: #D4D4D4;
  --g400: #B0B0B0;
  --g500: #888888;
  --g600: #606060;
  --g700: #404040;
  --g800: #282828;
  --g900: #141414;

  /* Functional */
  --ativo:   #006B29;
  --inativo: #C0392B;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui:      'Syne', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing & Shape */
  --r-sm:  6px;
  --r:     14px;
  --r-lg:  22px;
  --r-xl:  36px;
  --r-pill:999px;

  /* Shadows */
  --s1: 0 1px 4px rgba(0,0,0,.06);
  --s2: 0 4px 16px rgba(0,0,0,.10);
  --s3: 0 8px 32px rgba(0,0,0,.14);
  --s4: 0 16px 64px rgba(0,0,0,.18);
  --s-green: 0 8px 32px rgba(0,100,40,.25);
  --s-yellow: 0 8px 32px rgba(200,150,0,.30);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t: .28s;
  --t-slow: .6s;

  --nav-h: 96px;
  --max-w: 1300px;
}

/* ─────────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--creme); color: var(--g800); overflow-x: hidden; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--amarelo); color: var(--g900); }

/* ─────────────────────────────────────────────────────────────
   PAGE TRANSITIONS
───────────────────────────────────────────────────────────── */
.page-enter { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
body.page-exit { animation: pageOut .25s var(--ease) both; }
@keyframes pageOut { to { opacity:0; transform:translateY(-12px); } }

/* ─────────────────────────────────────────────────────────────
   SPLASH SCREEN
───────────────────────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--azul-noite);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
#splash.hidden { opacity: 0; pointer-events: none; transform: scale(1.06); }
body.splash-lock { overflow: hidden; height: 100vh; }

.splash-canvas { position: absolute; inset: 0; pointer-events: none; }

/* Animated landscape silhouette */
.splash-landscape {
  position: absolute; bottom: 0; left: 0; right: 0;
  animation: landRise 1.4s var(--ease) .2s both;
}
@keyframes landRise { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Arara (macaw) flight */
.splash-arara {
  position: absolute;
  animation: araraFly 3.5s ease-in-out 1.2s both;
}
@keyframes araraFly {
  from { transform: translateX(-200px) translateY(40px) rotate(-10deg); opacity: 0; }
  30%  { opacity: 1; }
  to   { transform: translateX(calc(100vw + 200px)) translateY(-60px) rotate(5deg); opacity: .6; }
}

/* Jaguar spots */
.splash-spot {
  position: absolute; border-radius: 50%;
  background: rgba(245,196,0,.12);
  animation: spotFade 2.5s ease infinite;
}
@keyframes spotFade { 0%,100%{opacity:0;transform:scale(.8);} 50%{opacity:1;transform:scale(1);} }

.splash-center { position: relative; z-index: 2; text-align: center; }

.splash-flag-ring {
  width: 400px; height: 400px; margin: 0 auto 28px;
  animation: flagIn 1s var(--ease-spring) .4s both;
}
@keyframes flagIn { from{transform:scale(0) rotate(-180deg);opacity:0;} to{transform:none;opacity:1;} }

.splash-flag-ring svg { width: 100%; height: 100%; filter: drop-shadow(0 0 40px rgba(0,156,59,.5)); }

.splash-shooting-star {
  position: absolute;
  width: 26px;
  height: 26px;
  color: white;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.75));
  opacity: 0;
  animation: starArc 2.8s ease-in-out .5s infinite;
}
.splash-shooting-star::after {
  content: '';
  position: absolute;
  top: 12px;
  left: -120px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.7));
  transform-origin: right center;
}
@keyframes starArc {
  0%   { transform: translate(-20vw, 22vh) rotate(22deg) scale(.6); opacity: 0; }
  15%  { opacity: .95; }
  50%  { transform: translate(42vw, -24vh) rotate(8deg) scale(1); opacity: 1; }
  85%  { opacity: .8; }
  100% { transform: translate(105vw, 16vh) rotate(-16deg) scale(.55); opacity: 0; }
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: white;
  letter-spacing: .02em;
  animation: fadeUp .8s var(--ease) 1s both;
}
.splash-title .gold { color: var(--amarelo); }
.splash-sub {
  font-family: var(--font-ui);
  font-size: .9rem; font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .22em; text-transform: uppercase;
  margin-top: 10px;
  animation: fadeUp .7s var(--ease) 1.3s both;
}

.splash-skip {
  margin-top: 18px;
  font-family: var(--font-ui); font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill); padding: 10px 28px;
  transition: all var(--t);
  animation: fadeUp .5s var(--ease) 1.8s both;
}
.splash-skip:hover { color: white; border-color: rgba(255,255,255,.5); }

@keyframes fadeUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:none;} }

@media (max-width: 768px) {
  .splash-flag-ring { width: 280px; height: 280px; }
}

/* ─────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(0,18,64,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.4); }
.nav.light {
  background: rgba(250,247,240,.95);
  border-bottom-color: var(--areia);
}
.nav.light .nav-logo-text { color: var(--azul-escuro); }
.nav.light .nav-link { color: var(--g700); }
.nav.light .nav-link:hover { color: var(--verde); background: var(--verde-palido); }
.nav.light .nav-link.active { color: var(--verde); background: var(--verde-palido); }
.nav.light .nav-search { background: white; border-color: var(--g300); }
.nav.light .nav-search input { color: var(--g800); }
.nav.light .nav-search input::placeholder { color: var(--g400); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 28px;
  height: 100%;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-emblem { width: 38px; height: 38px; flex-shrink: 0; }
.nav-logo-image { height: 44px; width: auto; display: block; }
.nav-logo-text {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: white; letter-spacing: .01em; white-space: nowrap; line-height: 1;
}
.nav-sep { width: 1px; height: 24px; background: rgba(255,255,255,.12); margin: 0 8px; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 7px 14px; border-radius: 10px;
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: all var(--t); white-space: nowrap;
}
.nav-link:hover { color: white; background: rgba(255,255,255,.1); }
.nav-link.active { color: var(--amarelo); }

.nav-spacer { flex: 1; }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  transition: all var(--t); min-width: 220px;
}
.nav-search:focus-within {
  background: rgba(255,255,255,.14);
  border-color: var(--amarelo);
  box-shadow: 0 0 0 3px rgba(255,223,0,.15);
}
.nav-search svg { color: rgba(255,255,255,.4); flex-shrink: 0; }
.nav-search input {
  border: none; background: none; outline: none; flex: 1;
  font-family: var(--font-body); font-size: .875rem;
  color: white;
}
.nav-search input::placeholder { color: rgba(255,255,255,.38); }

/* ─────────────────────────────────────────────────────────────
   HERO — Search-centered
───────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh;
  background: linear-gradient(170deg, var(--azul-noite) 0%, var(--azul-escuro) 45%, var(--verde-floresta) 100%);
  display: flex; align-items: center; justify-content: center;
}

/* Brazilian topographic wave pattern */
.hero-waves {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-wave {
  position: absolute; opacity: .07;
}

/* Organic blob decorations */
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 780px; width: 100%;
  padding: 100px 28px 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--amarelo);
  margin-bottom: 28px;
  animation: fadeUp .7s var(--ease) both;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 28px; height: 1.5px; background: currentColor; opacity: .5;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900; line-height: 1.05;
  color: white; margin-bottom: 20px;
  animation: fadeUp .8s var(--ease) .1s both;
}
.hero-headline em { color: var(--amarelo); font-style: italic; }

.hero-sub {
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 300;
  color: rgba(255,255,255,.65); margin-bottom: 52px; line-height: 1.8;
  animation: fadeUp .7s var(--ease) .2s both;
  max-width: 540px; margin-left: auto; margin-right: auto;
}

/* ── BIG SEARCH BAR ── */
.hero-search-box {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.1);
  overflow: visible;
  position: relative;
  animation: fadeUp .9s var(--ease-spring) .3s both;
  margin-bottom: 24px;
}
.hero-search-input-row {
  display: flex; align-items: center;
  padding: 8px 8px 8px 24px; gap: 8px;
}
.hero-search-icon { color: var(--g400); flex-shrink: 0; }
.hero-search-input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-body); font-size: 1.1rem;
  color: var(--g900); padding: 10px 0;
  background: none;
}
.hero-search-input::placeholder { color: var(--g400); }
.hero-search-btn {
  background: var(--verde);
  color: white; border-radius: 14px;
  padding: 14px 28px;
  font-family: var(--font-ui); font-size: .9rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  transition: all var(--t); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.hero-search-btn:hover { background: var(--verde-escuro); transform: scale(1.02); box-shadow: var(--s-green); }

/* Quick search results */
.hero-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  background: white; border-radius: 16px;
  box-shadow: var(--s4);
  overflow: hidden; z-index: 300;
  border: 1px solid var(--g200);
  max-height: 380px; overflow-y: auto;
}

.hero-chips {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
  animation: fadeUp .7s var(--ease) .45s both;
}
.hero-chip-label {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-right: 4px;
}
.hero-chip {
  padding: 7px 16px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: .82rem;
  color: rgba(255,255,255,.8);
  cursor: pointer; transition: all var(--t);
}
.hero-chip:hover { background: rgba(255,255,255,.18); color: white; border-color: rgba(255,255,255,.35); }

/* ─────────────────────────────────────────────────────────────
   HERO LANDSCAPE DECORATION (SVG bottom)
───────────────────────────────────────────────────────────── */
.hero-landscape-svg {
  position: absolute; bottom: 0; left: 0; right: 0;
  pointer-events: none; line-height: 0;
}

/* ─────────────────────────────────────────────────────────────
   COMO FUNCIONA — 3-step section
───────────────────────────────────────────────────────────── */
.como { background: var(--creme); padding: 96px 28px; }
.como-inner { max-width: var(--max-w); margin: 0 auto; }
.como-steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.como-steps::before {
  content: '';
  position: absolute; top: 36px; left: calc(16.67% + 20px); right: calc(16.67% + 20px);
  height: 1.5px; background: var(--areia);
}
.como-step { text-align: center; padding: 0 32px; }
.como-step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--azul-noite);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  position: relative; z-index: 1;
  box-shadow: var(--s3);
}
.como-step-num span {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 900;
  color: var(--amarelo);
}
.como-step-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--g900); margin-bottom: 12px;
}
.como-step-text { font-size: .95rem; color: var(--g600); line-height: 1.75; }

/* ─────────────────────────────────────────────────────────────
   SECTION HEADERS (shared)
───────────────────────────────────────────────────────────── */
.sh { margin-bottom: 52px; }
.sh-eyebrow {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--verde); display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.sh-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--verde); border-radius: 1px; }
.sh-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 900;
  color: var(--g900); line-height: 1.15;
}
.sh-title em { font-style: italic; color: var(--verde); }
.sh-title.on-dark { color: white; }
.sh-title.on-dark em { color: var(--amarelo); }
.sh-desc { font-size: 1.05rem; color: var(--g600); margin-top: 14px; max-width: 520px; line-height: 1.75; }
.sh-desc.on-dark { color: rgba(255,255,255,.65); }

/* Section wrapper */
.section { padding: 96px 28px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

/* ─────────────────────────────────────────────────────────────
   ESTADOS SECTION — with flag cards
───────────────────────────────────────────────────────────── */
.estados-section { background: white; }
.region-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 40px;
}
.region-tab {
  padding: 9px 22px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700;
  border: 2px solid var(--g200); color: var(--g600);
  transition: all var(--t); cursor: pointer;
  letter-spacing: .04em;
}
.region-tab:hover { border-color: var(--verde); color: var(--verde); }
.region-tab.active { background: var(--azul-noite); border-color: var(--azul-noite); color: white; }

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px,1fr));
  gap: 14px;
}
.state-card {
  background: var(--g50);
  border: 2px solid var(--g200);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer; transition: all var(--t);
  display: block; text-decoration: none;
  position: relative;
}
.state-card:hover {
  border-color: var(--verde); transform: translateY(-5px);
  box-shadow: var(--s3);
}
.state-card-flag {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}
.state-card-flag svg,
.state-card-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.state-card-body { padding: 16px 16px 14px; }
.state-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.state-card-title-wrap { min-width: 0; }
.state-card-code {
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  color: var(--g900); line-height: 1; transition: color var(--t);
}
.state-card:hover .state-card-code { color: var(--verde); }
.state-card-name {
  font-family: var(--font-body); font-size: .8rem; color: var(--g600);
  margin-top: 2px; font-weight: 500;
}
.state-card-region {
  font-family: var(--font-ui); font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-pill);
  margin-top: 10px; display: inline-block;
}
.state-card-count {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  color: var(--g500); margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}
.state-card-count strong { color: var(--g900); font-size: .88rem; }

/* Region badge colors */
.rb-Norte      { background: #E8F5E9; color: #2E7D32; }
.rb-Nordeste   { background: #FFF3E0; color: #E65100; }
.rb-Centro-Oeste { background: #F3E5F5; color: #6A1B9A; }
.rb-Sudeste    { background: #E3F2FD; color: #1565C0; }
.rb-Sul        { background: #FCE4EC; color: #880E4F; }

/* ─────────────────────────────────────────────────────────────
   SYMBOLS SHOWCASE — horizontal scroll
───────────────────────────────────────────────────────────── */
.simbolos {
  background: var(--azul-noite);
  padding: 96px 0;
  overflow: hidden;
}
.simbolos-header { padding: 0 28px; max-width: var(--max-w); margin: 0 auto 56px; }
.simbolos-track-wrap { overflow-x: auto; padding: 0 28px 16px; scroll-behavior: smooth; cursor: grab; }
.simbolos-track-wrap:active { cursor: grabbing; }
.simbolos-track-wrap::-webkit-scrollbar { height: 4px; }
.simbolos-track-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,.05); }
.simbolos-track-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.simbolos-track {
  display: flex; gap: 20px;
  width: max-content; padding-bottom: 4px;
}
.simbolo-card {
  width: 220px; height: 280px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 24px 20px;
  flex-shrink: 0;
  position: relative; overflow: hidden;
  transition: all var(--t);
}
.simbolo-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,223,0,.3); transform: translateY(-6px); }
.simbolo-illustration {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  height: 75%; overflow: hidden;
}
.simbolo-label {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 4px;
}
.simbolo-name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: white; text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   SERVENTIAS — types of cartório
───────────────────────────────────────────────────────────── */
.serventias { background: var(--creme-med); padding: 96px 28px; }
.serventias-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px; margin-top: 52px;
}
.serventia-card {
  background: white; border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 2px solid transparent;
  transition: all var(--t);
  position: relative; overflow: hidden;
}
.serventia-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.serventia-card:hover { border-color: var(--g200); box-shadow: var(--s3); transform: translateY(-3px); }
.serventia-card:hover::before { transform: scaleX(1); }
.sc-notas::before       { background: linear-gradient(90deg,#1565C0,#42A5F5); }
.sc-imoveis::before     { background: linear-gradient(90deg,#2E7D32,#66BB6A); }
.sc-civil::before       { background: linear-gradient(90deg,#E65100,#FFA726); }
.sc-protesto::before    { background: linear-gradient(90deg,#880E4F,#E91E63); }
.sc-distribuicao::before{ background: linear-gradient(90deg,#6A1B9A,#AB47BC); }
.sc-titulos::before     { background: linear-gradient(90deg,#004D40,#26A69A); }

.serventia-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.si-notas        { background: #E3F2FD; color: #1565C0; }
.si-imoveis      { background: #E8F5E9; color: #2E7D32; }
.si-civil        { background: #FFF3E0; color: #E65100; }
.si-protesto     { background: #FCE4EC; color: #880E4F; }
.si-distribuicao { background: #F3E5F5; color: #6A1B9A; }
.si-titulos      { background: #E0F2F1; color: #004D40; }

.serventia-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--g900); margin-bottom: 10px;
}
.serventia-text { font-size: .9rem; color: var(--g600); line-height: 1.75; }

/* ─────────────────────────────────────────────────────────────
   BRASIL HERITAGE — full-color section
───────────────────────────────────────────────────────────── */
.heritage {
  background: var(--verde-floresta);
  padding: 96px 28px;
  position: relative; overflow: hidden;
}
.heritage-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.heritage-visual { position: relative; }
.heritage-visual-main {
  border-radius: var(--r-xl); overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 40px;
}
.heritage-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px;
}
.heritage-fact {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: 20px;
}
.hf-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  color: var(--amarelo); line-height: 1;
}
.hf-label { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

.heritage-content {}
.heritage-text { font-size: 1.05rem; color: rgba(255,255,255,.8); line-height: 1.85; margin-bottom: 20px; }
.heritage-quote {
  border-left: 3px solid var(--amarelo);
  padding-left: 20px; margin: 28px 0;
  font-family: var(--font-display); font-size: 1.35rem; font-style: italic;
  color: rgba(255,255,255,.9); line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--amarelo);
  padding: 80px 28px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem,4vw,3rem); font-weight: 900;
  color: var(--azul-noite); margin-bottom: 14px;
}
.cta-sub { font-size: 1.05rem; color: rgba(0,18,64,.7); margin-bottom: 36px; }
.cta-search {
  display: flex; gap: 0;
  background: white; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,18,64,.2);
  overflow: hidden; max-width: 560px; margin: 0 auto;
}
.cta-search input {
  flex: 1; padding: 18px 24px;
  border: none; outline: none;
  font-family: var(--font-body); font-size: 1rem; color: var(--g900);
}
.cta-search input::placeholder { color: var(--g400); }
.cta-search-btn {
  padding: 18px 28px;
  background: var(--azul-noite);
  color: white;
  font-family: var(--font-ui); font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  transition: all var(--t); white-space: nowrap;
}
.cta-search-btn:hover { background: var(--azul-escuro); }

/* ─────────────────────────────────────────────────────────────
   PAGE HEADERS (inner pages)
───────────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--azul-noite) 0%, var(--azul-escuro) 60%, var(--azul-real) 100%);
  padding: 56px 28px 80px;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 56px;
  background: var(--creme);
  clip-path: ellipse(54% 100% at 50% 100%);
}
.page-header.green-header {
  background: linear-gradient(135deg, var(--verde-floresta) 0%, var(--verde-escuro) 100%);
}
.page-header.green-header::after { background: var(--creme); }

.page-header-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.5); margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.75); transition: color var(--t); }
.breadcrumb a:hover { color: var(--amarelo); }
.bc-sep { color: rgba(255,255,255,.3); font-size: .6rem; }
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3.4rem); font-weight: 900;
  color: white; line-height: 1.1; max-width: 760px;
}
.page-header-sub { font-size: 1rem; color: rgba(255,255,255,.65); margin-top: 10px; }
.page-header-meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px;
}
.ph-meta-item {
  display: flex; flex-direction: column;
}
.ph-meta-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  color: white; line-height: 1;
}
.ph-meta-lbl { font-family: var(--font-ui); font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .12em; text-transform: uppercase; }
.ph-meta-divider { width: 1px; background: rgba(255,255,255,.15); align-self: stretch; }

/* ─────────────────────────────────────────────────────────────
   BADGES & TAGS
───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em;
}
.badge-glass { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.2); }
.badge-ativo { background: var(--verde-palido); color: var(--ativo); }
.badge-inativo { background: #FDE8E8; color: var(--inativo); }
.badge-amarelo { background: var(--ouro-claro); color: var(--ouro-escuro); }

/* Atribuição badges */
.atrib { font-family:var(--font-ui); font-size:.68rem; font-weight:700; padding:4px 9px; border-radius:4px; display:inline-block; }
.atrib-notas        { background:#DBEAFE; color:#1E40AF; }
.atrib-imoveis      { background:#DCFCE7; color:#166534; }
.atrib-civil        { background:#FEF3C7; color:#92400E; }
.atrib-protesto     { background:#FCE7F3; color:#9D174D; }
.atrib-distribuicao { background:#EDE9FE; color:#6D28D9; }
.atrib-titulos      { background:#CCFBF1; color:#134E4A; }
.atrib-outros       { background:var(--g200); color:var(--g700); }

/* ─────────────────────────────────────────────────────────────
   TOOLBAR / FILTERS
───────────────────────────────────────────────────────────── */
.toolbar {
  background: white;
  border: 2px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: var(--s1);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.toolbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--g100);
  border: 2px solid var(--g200);
  border-radius: 12px; padding: 10px 16px;
  flex: 1; min-width: 200px; transition: all var(--t);
}
.toolbar-search:focus-within { border-color: var(--verde); background: white; }
.toolbar-search input { border: none; background: none; outline: none; flex: 1; font-family: var(--font-body); font-size: .9rem; }
.toolbar-search svg { color: var(--g400); flex-shrink: 0; }
.toolbar-select {
  padding: 10px 14px; border: 2px solid var(--g200); border-radius: 12px;
  font-family: var(--font-body); font-size: .875rem; color: var(--g700);
  background: white; outline: none; cursor: pointer; transition: all var(--t);
}
.toolbar-select:focus { border-color: var(--verde); }
.filter-chip {
  padding: 7px 16px; border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  border: 2px solid var(--g200); color: var(--g600);
  cursor: pointer; transition: all var(--t); white-space: nowrap;
}
.filter-chip:hover { border-color: var(--verde); color: var(--verde); }
.filter-chip.active { background: var(--verde); border-color: var(--verde); color: white; }
.view-btn {
  padding: 8px; border-radius: 10px; color: var(--g500); transition: all var(--t);
}
.view-btn.active, .view-btn:hover { background: var(--verde-palido); color: var(--verde); }

/* ─────────────────────────────────────────────────────────────
   CITY & REGISTRY CARDS
───────────────────────────────────────────────────────────── */
.cities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px;
}
.city-card {
  background: white; border: 2px solid var(--g200); border-radius: var(--r);
  padding: 18px; cursor: pointer; transition: all var(--t);
  display: block; text-decoration: none;
}
.city-card:hover { border-color: var(--verde); transform: translateY(-2px); box-shadow: var(--s2); }
.city-card-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--g900); transition: color var(--t); }
.city-card:hover .city-card-name { color: var(--verde); }
.city-card-count { font-size: .78rem; color: var(--g500); margin-top: 8px; font-family: var(--font-ui); font-weight: 600; }

.alpha-letter {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 900;
  color: var(--verde); border-bottom: 2px solid var(--g200);
  padding-bottom: 8px; margin-bottom: 10px;
}
.city-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 10px; transition: all var(--t);
  text-decoration: none; color: var(--g800);
}
.city-list-item:hover { background: var(--creme); color: var(--verde); }
.city-list-item .name { font-size: .9rem; font-weight: 600; }
.city-list-item .count { font-size: .78rem; color: var(--g500); font-family: var(--font-ui); font-weight: 600; }

/* Registry cards */
.registries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 20px; }
.registry-card {
  background: white; border: 2px solid var(--g200); border-radius: var(--r-lg);
  overflow: hidden; transition: all var(--t); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.registry-card:hover { transform: translateY(-4px); box-shadow: var(--s3); border-color: var(--g300); }
.registry-card-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--g100); }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.rc-cns { font-family: var(--font-mono); font-size: .72rem; color: var(--g500); background: var(--g100); padding: 3px 8px; border-radius: 5px; }
.rc-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--g900); line-height: 1.35; }
.rc-atribs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.registry-card-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ri-row { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--g600); }
.ri-row svg { flex-shrink: 0; margin-top: 2px; color: var(--g400); }
.registry-card-footer { padding: 14px 20px; border-top: 1px solid var(--g100); display: flex; justify-content: flex-end; }
.rc-link { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; color: var(--verde); display: flex; align-items: center; gap: 6px; transition: gap var(--t); }
.registry-card:hover .rc-link { gap: 10px; }

/* ─────────────────────────────────────────────────────────────
   REGISTRY DETAIL
───────────────────────────────────────────────────────────── */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.detail-card {
  background: white; border: 2px solid var(--g200); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 20px;
}
.detail-card:last-child { margin-bottom: 0; }
.dc-head {
  padding: 22px 24px;
  background: linear-gradient(to right, var(--creme), white);
  border-bottom: 1px solid var(--g200);
  display: flex; align-items: center; gap: 14px;
}
.dc-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--verde-palido); color: var(--verde); flex-shrink: 0;
}
.dc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--g900); }
.dc-sub { font-size: .8rem; color: var(--g500); margin-top: 2px; }
.dc-body { padding: 24px; }
.detail-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--g100);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--g400);
  min-width: 140px; flex-shrink: 0; padding-top: 2px;
}
.detail-value { font-size: .9rem; color: var(--g800); line-height: 1.55; }
.detail-value a { color: var(--verde); }
.detail-value a:hover { text-decoration: underline; }
.info-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); font-size: .78rem; font-family: var(--font-ui); font-weight: 700; }
.info-tag.yes { background: var(--verde-palido); color: var(--ativo); }
.info-tag.no  { background: #FDE8E8; color: var(--inativo); }

.detail-side { display: flex; flex-direction: column; gap: 20px; }
.map-card {
  height: 200px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--azul-palido), var(--creme));
  border: 2px dashed var(--g300);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--g500); font-size: .875rem;
  text-decoration: none; transition: all var(--t);
}
.map-card:hover { border-color: var(--verde); color: var(--verde); background: var(--verde-palido); }
.share-card {
  border: 2px dashed var(--g300);
  border-radius: var(--r-lg);
  background: white;
  padding: 16px;
}
.share-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--verde);
  color: white;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.share-status {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--g600);
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   SEARCH RESULTS DROPDOWN
───────────────────────────────────────────────────────────── */
.search-results-drop {
  background: white; border-radius: 16px;
  box-shadow: var(--s4); border: 1px solid var(--g200);
  overflow: hidden; max-height: 380px; overflow-y: auto;
}
.sr-group-label {
  padding: 10px 18px 6px;
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--g400);
  border-bottom: 1px solid var(--g100);
}
.sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; cursor: pointer; transition: background var(--t);
}
.sr-item:hover { background: var(--creme); }
.sr-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--g100); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--font-ui); font-size: .72rem; font-weight: 800; color: var(--azul);
}
.sr-main { font-family: var(--font-body); font-size: .875rem; font-weight: 600; color: var(--g900); }
.sr-sub { font-size: .75rem; color: var(--g500); }
.sr-count { margin-left: auto; font-family: var(--font-ui); font-size: .7rem; font-weight: 700; background: var(--verde-palido); color: var(--ativo); padding: 3px 9px; border-radius: var(--r-pill); }

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: .875rem; font-weight: 700;
  border: 2px solid var(--g200); color: var(--g600); background: white;
  transition: all var(--t); cursor: pointer;
}
.page-btn:hover { border-color: var(--verde); color: var(--verde); }
.page-btn.active { background: var(--azul-noite); border-color: var(--azul-noite); color: white; }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-ellipsis { font-size: .875rem; color: var(--g400); padding: 0 4px; }

/* ─────────────────────────────────────────────────────────────
   SKELETON
───────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--g200) 25%, var(--g100) 50%, var(--g200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.footer {
  background: var(--azul-noite);
  color: rgba(255,255,255,.7);
  padding: 72px 28px 36px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-image { height: 76px; width: auto; display: block; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: white; }
.footer-desc { font-size: .875rem; line-height: 1.75; max-width: 300px; color: rgba(255,255,255,.55); }
.footer-brasil-colors { display: flex; gap: 4px; margin-top: 20px; }
.fbc { height: 4px; border-radius: 2px; flex: 1; }
.footer-col-title {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-size: .875rem; color: rgba(255,255,255,.65); transition: color var(--t); }
.footer-link:hover { color: var(--amarelo); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .78rem; color: rgba(255,255,255,.35);
}
.footer-labels {
  max-width: var(--max-w);
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-labels img {
  height: 30px;
  width: auto;
  display: block;
}

.footer-actions {
  max-width: var(--max-w);
  margin: 22px auto 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-action-btn {
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--t);
}
.footer-action-btn:hover { background: rgba(255,255,255,.15); color: white; }

.feedback-modal {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(4px);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  margin: 0;
}
.feedback-modal[hidden] { display: none; }
.feedback-modal-open { overflow: hidden !important; }
.feedback-modal-box {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 80px rgba(0,0,0,.3);
  padding: 22px;
}
.feedback-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.feedback-modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--g900);
}
.feedback-modal-close {
  border: none;
  background: transparent;
  color: var(--g500);
  font-size: 1.5rem;
  line-height: 1;
}
.feedback-field {
  width: 100%;
  border: 1.5px solid var(--g300);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  color: var(--g900);
}
.feedback-field:focus { outline: none; border-color: var(--verde); }
.feedback-help {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--g500);
  margin: 0 0 10px;
}
.feedback-submit {
  border: none;
  background: var(--verde);
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
  font-family: var(--font-ui);
  font-weight: 700;
}
.feedback-status {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--g600);
}

/* ─────────────────────────────────────────────────────────────
   ABOUT / TERMS / PRIVACY PAGES
───────────────────────────────────────────────────────────── */
.prose { max-width: 800px; }
.prose h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--g900); margin: 40px 0 14px; }
.prose h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--g900); margin: 28px 0 10px; }
.prose p  { font-size: 1rem; color: var(--g700); line-height: 1.85; margin-bottom: 16px; }
.prose ul { margin: 16px 0 16px 20px; list-style: disc; }
.prose ul li { font-size: 1rem; color: var(--g700); line-height: 1.85; margin-bottom: 8px; }
.prose strong { color: var(--g900); }
.prose .callout {
  background: var(--verde-palido);
  border-left: 4px solid var(--verde);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 20px; margin: 24px 0;
  font-size: .95rem; color: var(--verde-escuro); line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-l.visible { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-r.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────────────────────
   EMPTY / LOADING
───────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--g500);
  grid-column: 1/-1;
}
.empty-state svg { margin: 0 auto 16px; opacity: .4; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--g700); margin-bottom: 8px; }
.empty-state p { font-size: .95rem; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .heritage-inner { grid-template-columns: 1fr; gap: 40px; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 96px; }
  .nav-logo-image { height: 38px; }
  .nav-logo-text { font-size: .9rem; }
  .nav-links { display: none; }
  .como-steps { grid-template-columns: 1fr; gap: 40px; }
  .como-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .registries-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2,1fr); }
  .section { padding: 64px 20px; }
  .serventias-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .states-grid { grid-template-columns: repeat(2,1fr); }
  .cities-grid { grid-template-columns: 1fr; }
  .heritage-facts { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--g100); }
::-webkit-scrollbar-thumb { background: var(--g300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--verde); }
