/* ==========================================================================
   3º BPM/M — Folha de estilos
   Identidade: azul-marinho institucional, vermelho PMESP, dourado do brasão.
   Temas trocáveis via [data-theme] e modo claro/escuro via [data-mode].
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #0b1630;
  --brand-2: #14223f;
  --accent: #c8102e;
  --accent-2: #e2223f;
  --accent-ink: #ffffff;
  --gold: #d4af5a;
  --gold-2: #f0d48a;
  --blue: #1361a9;
  --crest-yellow: #f5d90a;

  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --surface-3: #e4e8f0;
  --text: #0f172a;
  --text-2: #263247;
  --muted: #5b6475;
  --border: #e1e6ee;
  --ring: rgba(200, 16, 46, .35);

  --topbar: #0d1018;
  --header: #ffffff;
  --header-ink: #0f172a;
  --hero-1: #0a1328;
  --hero-2: #121a2c;
  --footer: #0a1124;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px -2px rgba(15, 23, 42, .08);
  --shadow: 0 12px 32px -14px rgba(11, 22, 48, .28), 0 2px 6px -2px rgba(11, 22, 48, .08);
  --shadow-lg: 0 30px 60px -20px rgba(11, 22, 48, .45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --container: 1240px;
  --fs: 1;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

/* Paletas */
[data-theme="brasao"] { --brand: #0d3f7a; --brand-2: #0f4b91; --accent: #e8333a; --accent-2: #f04a50; --gold: #f2cf1d; --gold-2: #ffe766; --hero-1: #082a55; --hero-2: #0b1f3d; --footer: #071d3b; --ring: rgba(232, 51, 58, .35); }
[data-theme="azul-pm"] { --brand: #00435f; --brand-2: #005a80; --accent: #0099cc; --accent-2: #19b2e6; --gold: #7fd6f5; --gold-2: #bdeeff; --hero-1: #00354d; --hero-2: #031b2a; --footer: #022331; --ring: rgba(0, 153, 204, .35); }
[data-theme="grafite"] { --brand: #17181c; --brand-2: #26282e; --accent: #d71920; --accent-2: #ef3b42; --gold: #c9ccd3; --gold-2: #eceef2; --hero-1: #111216; --hero-2: #1d1f25; --footer: #0e0f12; }
[data-theme="tatico"] { --brand: #1f2a1c; --brand-2: #2c3a28; --accent: #b4462c; --accent-2: #cc5a3e; --gold: #c8b273; --gold-2: #e6d7a3; --hero-1: #161e14; --hero-2: #232b20; --footer: #121810; --blue: #4d6b3f; }

/* Modo escuro */
[data-mode="dark"] {
  --bg: #080d1a;
  --surface: #0f172a;
  --surface-2: #151f36;
  --surface-3: #1d2944;
  --text: #e8edf6;
  --text-2: #c9d2e3;
  --muted: #94a0b8;
  --border: #22304d;
  --header: #0c1426;
  --header-ink: #e8edf6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 16px 36px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* Alto contraste (acessibilidade) */
[data-theme="contraste"] {
  --brand: #000; --brand-2: #000; --accent: #ffd400; --accent-2: #ffe14d; --accent-ink: #000; --gold: #ffd400; --gold-2: #fff176; --blue: #4fc3ff;
  --bg: #000; --surface: #000; --surface-2: #0b0b0b; --surface-3: #161616; --text: #fff; --text-2: #fff; --muted: #e5e5e5; --border: #fff;
  --topbar: #000; --header: #000; --header-ink: #fff; --hero-1: #000; --hero-2: #000; --footer: #000; --ring: #ffd400;
  --shadow-sm: none; --shadow: none; --shadow-lg: none; color-scheme: dark;
}
[data-theme="contraste"] a:not(.btn) { color: #ffd400; text-decoration: underline; }
[data-theme="contraste"] .card, [data-theme="contraste"] .qcard, [data-theme="contraste"] .panel { border: 2px solid #fff !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(16px * var(--fs)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s, color .3s; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--text); }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: -.2em; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem } .mt-4 { margin-top: 2.5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- Botões ---------- */
.btn { --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.35rem; border-radius: 12px; font-weight: 700; font-size: .95rem; letter-spacing: .01em; background: var(--b); color: var(--accent-ink); border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; position: relative; overflow: hidden; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--b); background: var(--accent-2); }
.btn:active { transform: translateY(0); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); box-shadow: 0 12px 24px -12px var(--brand); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1405; }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-2), var(--gold)); filter: brightness(1.05); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); box-shadow: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: var(--surface-3); box-shadow: none; }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--header-ink); transition: background .2s, color .2s, transform .2s; position: relative; }
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }
.icon-btn .icon { width: 20px; height: 20px; }
.badge-dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--header); }
.link { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.link:hover { gap: .6rem; }
.link-arrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--accent); display: inline-flex; gap: .4rem; align-items: center; transition: gap .2s; }
.link-arrow:hover { gap: .75rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--topbar); color: #cfd6e4; font-size: .78rem; position: relative; z-index: 60; }
.topbar .container { display: flex; align-items: center; gap: 1rem; min-height: 42px; }
.topbar-brand { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.topbar-brand img { width: 22px; height: auto; }
.ticker { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); min-width: 0; }
.ticker-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: ticker 48s linear infinite; padding-left: 100%; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { color: #dbe3f1; display: inline-flex; align-items: center; gap: .45rem; }
.ticker a:hover { color: #fff; }
.ticker .tag { background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .62rem; letter-spacing: .1em; padding: .1rem .45rem; border-radius: 4px; text-transform: uppercase; }
@keyframes ticker { to { transform: translateX(-100%); } }
.topbar-tools { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.tb-btn { color: #cfd6e4; padding: .35rem .6rem; border-radius: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; display: inline-flex; align-items: center; gap: .35rem; }
.tb-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tb-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .15); }
.escala-form { display: flex; align-items: center; gap: .5rem; }
.escala-form label { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; font-size: .7rem; white-space: nowrap; }
.escala-form input { width: 170px; height: 30px; border-radius: 8px; border: 0; padding: 0 .7rem; background: #fff; color: #111; font-size: .8rem; }
.escala-form button { height: 30px; padding: 0 .8rem; border-radius: 8px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1405; font-weight: 800; font-size: .7rem; letter-spacing: .08em; display: inline-flex; align-items: center; gap: .35rem; }
.tb-190 { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: .3rem .65rem; font-weight: 900; letter-spacing: .06em; display: inline-flex; align-items: center; gap: .35rem; animation: pulse190 2.4s infinite; }
@keyframes pulse190 { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .6); } 50% { box-shadow: 0 0 0 6px rgba(200, 16, 46, 0); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--header) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); color: var(--header-ink); border-bottom: 1px solid var(--border); transition: box-shadow .3s, background .3s; }
.header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--accent) 0 50%, var(--blue) 50% 100%); background-size: 200% 100%; animation: lightbar 3s linear infinite; opacity: .95; }
@keyframes lightbar { to { background-position: -200% 0; } }
.header.scrolled { box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .45); }
.header .container { display: flex; align-items: center; gap: 1.25rem; height: 76px; transition: height .3s; }
.header.scrolled .container { height: 64px; }
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18)); transition: height .3s, transform .4s var(--ease); }
.header.scrolled .brand img { height: 44px; }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand-text small { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; line-height: 1.3; max-width: 260px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .75rem; font-weight: 700; font-size: .9rem; border-radius: 10px; color: var(--header-ink); position: relative; transition: color .2s, background .2s; white-space: nowrap; }
.nav-link .icon { width: 14px; height: 14px; transition: transform .2s; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--accent); background: var(--surface-2); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: -14px; height: 3px; border-radius: 3px; background: var(--accent); }
.header.scrolled .nav-link.active::after { bottom: -8px; }
.nav-item:hover .nav-link .icon { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 260px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transition: all .22s var(--ease); z-index: 60; }
.dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .dropdown.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-link { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .75rem; border-radius: 12px; transition: background .15s; }
.dd-link:hover { background: var(--surface-2); }
.dd-link .dd-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--gold); display: grid; place-items: center; flex: none; }
.dd-link strong { display: block; font-size: .9rem; }
.dd-link span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem .3rem .3rem; border-radius: 99px; border: 1px solid var(--border); font-weight: 700; font-size: .85rem; transition: border-color .2s, background .2s; }
.user-chip:hover { border-color: var(--accent); background: var(--surface-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.menu-toggle { display: none; }

/* Mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.mobile-nav .scrim { position: absolute; inset: 0; background: rgba(5, 10, 20, .55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); }
.mobile-nav .panel-m { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--surface); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav.open { pointer-events: auto; }
.mobile-nav.open .scrim { opacity: 1; }
.mobile-nav.open .panel-m { transform: none; }
.m-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.m-group { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.m-group h6 { margin: .25rem .5rem .5rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-link { display: flex; align-items: center; gap: .7rem; padding: .65rem .6rem; border-radius: 10px; font-weight: 600; }
.m-link:hover, .m-link.active { background: var(--surface-2); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 600px at 80% 30%, color-mix(in srgb, var(--brand-2) 70%, transparent), transparent 60%), linear-gradient(160deg, var(--hero-1), var(--hero-2)); overflow: hidden; isolation: isolate; padding: 5.5rem 0 9.5rem; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.hero-pyramids { position: absolute; right: -40px; top: 0; bottom: 0; width: 60%; opacity: .5; }
.pyr { position: absolute; width: var(--s); height: var(--s); background: conic-gradient(from 45deg, var(--c1) 0 25%, var(--c2) 0 50%, var(--c3) 0 75%, var(--c4) 0); opacity: var(--o, .5); animation: floaty 9s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-lights { position: absolute; top: -220px; left: 0; right: 0; height: 440px; }
.hero-lights::before, .hero-lights::after { content: ''; position: absolute; top: 0; width: 55%; height: 100%; filter: blur(70px); opacity: .0; animation: siren 2.2s infinite; }
.hero-lights::before { left: -10%; background: radial-gradient(closest-side, rgba(230, 30, 50, .65), transparent); }
.hero-lights::after { right: -10%; background: radial-gradient(closest-side, rgba(30, 110, 255, .65), transparent); animation-delay: 1.1s; }
@keyframes siren { 0%, 8% { opacity: .9; } 12%, 18% { opacity: .1; } 22%, 30% { opacity: .8; } 40%, 100% { opacity: 0; } }
.hero .container { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.3rem); font-weight: 800; margin: 1.1rem 0 1.2rem; line-height: 1.04; letter-spacing: -.025em; }
.hero h1 .hl { background: linear-gradient(90deg, var(--gold-2), var(--gold) 60%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.hero p.lead { font-size: 1.12rem; color: #c9d3e6; max-width: 600px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-crest { position: relative; display: grid; place-items: center; perspective: 900px; }
.hero-crest img { width: min(330px, 70vw); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); transform-style: preserve-3d; transition: transform .25s ease-out; animation: crestIn 1.2s var(--ease) both; }
@keyframes crestIn { from { opacity: 0; transform: translateY(30px) scale(.92); } }
.hero-crest::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 35%, transparent), transparent 65%); animation: breathe 5s ease-in-out infinite; }
.hero-crest .orbit { position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); animation: spin 60s linear infinite; }
.hero-crest .orbit::before, .hero-crest .orbit::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: 50%; left: -5px; background: #ff3347; box-shadow: 0 0 18px 4px rgba(255, 51, 71, .8); }
.hero-crest .orbit::after { left: auto; right: -5px; background: #3b82ff; box-shadow: 0 0 18px 4px rgba(59, 130, 255, .8); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; color: #dfe6f3; }
.hero-badge .icon { color: var(--gold); }

/* Página interna (hero menor) */
.page-hero { position: relative; color: #fff; background: linear-gradient(150deg, var(--hero-1), var(--hero-2)); padding: 3.5rem 0 3rem; overflow: hidden; isolation: isolate; }
.page-hero .hero-grid { opacity: .8; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3rem); margin: .5rem 0 .3rem; }
.page-hero .eyebrow { display: flex; }
.page-hero p { color: #c9d3e6; max-width: 720px; margin: 0; }
.page-hero .ph-crest { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); height: 150%; opacity: .1; z-index: -1; }
.crumbs { display: flex; gap: .4rem; align-items: center; font-size: .8rem; color: #aab6cc; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs .icon { width: 12px; height: 12px; }

/* ---------- Quick cards ---------- */
.quick { position: relative; z-index: 5; margin-top: -6.5rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.qcard { position: relative; background: var(--surface); border-radius: 18px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; gap: .8rem; transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.qcard::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--gold), var(--accent)); }
.qcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.qcard-head { display: flex; gap: .9rem; align-items: flex-start; }
.qcard .q-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--brand); color: var(--gold-2); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.qcard:hover .q-ico { transform: rotate(-8deg) scale(1.08); }
.qcard h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.qcard p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.45; }
.qcard .link-arrow { margin-top: auto; }

/* ---------- Seções ---------- */
.section { padding: 5rem 0; position: relative; }
.section.tight { padding: 3rem 0; }
.section.alt { background: var(--surface); }
.section.dark { background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .muted { color: #aab6cc; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: .6rem 0 0; font-weight: 800; }
.section-head p { margin: .6rem 0 0; color: var(--muted); max-width: 640px; }
.eyebrow.dark { color: var(--accent); }

/* ---------- Estatísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.3rem 1.1rem; text-align: left; position: relative; overflow: hidden; transition: transform .3s var(--ease); }
.stat:hover { transform: translateY(-4px); }
.stat::after { content: ''; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.stat .icon { color: var(--accent); width: 22px; height: 22px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; margin-top: .4rem; letter-spacing: -.02em; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- Cards genéricos ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); position: relative; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card h3 { font-size: 1.15rem; }
.card-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 1rem; }
.card-ico .icon { width: 24px; height: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel-head { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 1.1rem; display: flex; gap: .6rem; align-items: center; }
.panel-body { padding: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); text-transform: uppercase; white-space: nowrap; }
[data-mode="dark"] .chip { background: color-mix(in srgb, var(--c, var(--accent)) 24%, transparent); color: color-mix(in srgb, var(--c, var(--accent)) 50%, #fff); }
.chip .icon { width: 12px; height: 12px; }
.tag-pin { background: var(--gold); color: #1b1405; }

/* Filtros / chips selecionáveis */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.fchip { padding: .5rem .95rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: .45rem; transition: all .2s; }
.fchip:hover { border-color: var(--accent); color: var(--accent); }
.fchip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
[data-theme="contraste"] .fchip.active { background: #ffd400; color: #000; }
.fchip .count { font-size: .7rem; background: var(--surface-2); color: var(--muted); border-radius: 99px; padding: 0 .45rem; }
.fchip.active .count { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Mural ---------- */
.post { display: flex; flex-direction: column; gap: .7rem; padding: 0; overflow: hidden; }
.post-cover { height: 8px; background: var(--c, var(--accent)); }
.post-body { padding: 1.3rem 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.post h3 { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.post h3 a:hover { color: var(--accent); }
.post p { color: var(--muted); font-size: .92rem; margin: 0; }
.post-meta { display: flex; gap: .9rem; align-items: center; color: var(--muted); font-size: .78rem; margin-top: auto; padding-top: .7rem; border-top: 1px dashed var(--border); flex-wrap: wrap; }
.post-meta span { display: inline-flex; gap: .3rem; align-items: center; }
.post-actions { display: flex; gap: .3rem; margin-left: auto; }
.act { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .55rem; border-radius: 8px; font-size: .8rem; font-weight: 700; color: var(--muted); transition: all .2s; }
.act:hover { background: var(--surface-2); color: var(--accent); }
.act.on { color: var(--accent); }
.act.on .icon { fill: currentColor; }
.post.featured { grid-column: span 2; }
.post.featured h3 { font-size: 1.45rem; }
.article { max-width: 780px; }
.article-body { font-size: 1.05rem; color: var(--text-2); white-space: pre-line; }
.comment { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: 0; }
.comment .who { font-weight: 800; font-size: .9rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.comment .when { font-size: .75rem; color: var(--muted); font-weight: 500; }
.comment p { margin: .25rem 0 0; font-size: .93rem; white-space: pre-line; }
.official { background: var(--accent); color: var(--accent-ink); font-size: .62rem; padding: .1rem .4rem; border-radius: 4px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Destaques ---------- */
.destaque-card { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; padding: 1.8rem; overflow: hidden; }
.medal { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 55%, #8a6a1f); color: #3a2a05; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .25), 0 10px 24px -10px rgba(212, 175, 90, .9); position: relative; }
.medal::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed rgba(58, 42, 5, .35); }
.medal .icon { width: 36px; height: 36px; }
.medal.red { background: radial-gradient(circle at 35% 30%, #ff8a96, var(--accent) 55%, #7a0a1b); color: #fff; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .25), 0 10px 24px -10px var(--accent); }
.destaque-card h3 { font-size: 1.25rem; margin: .4rem 0 .2rem; }
.destaque-card .nome { font-weight: 800; color: var(--accent); }

/* ---------- Heróis ---------- */
.memorial { background: radial-gradient(900px 400px at 50% 0%, rgba(212, 175, 90, .16), transparent 70%), linear-gradient(180deg, #06080f, #0c111d); color: #e6e9f0; }
.memorial h2, .memorial h3 { color: #fff; }
.candle { width: 26px; height: 40px; margin: 0 auto 1rem; position: relative; }
.candle::before { content: ''; position: absolute; left: 50%; top: 0; width: 14px; height: 22px; margin-left: -7px; border-radius: 50% 50% 45% 45%; background: radial-gradient(ellipse at 50% 70%, #fff6c2, #ffcf4a 45%, #ff7a1a 75%, transparent 76%); animation: flicker 1.8s infinite alternate; filter: drop-shadow(0 0 12px rgba(255, 190, 60, .9)); }
.candle::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 12px; height: 18px; margin-left: -6px; border-radius: 3px; background: linear-gradient(#f3ead7, #cdbf9f); }
@keyframes flicker { 0% { transform: scaleY(1) rotate(-2deg); } 50% { transform: scaleY(1.12) rotate(2deg); } 100% { transform: scaleY(.95) rotate(-1deg); } }
.hero-plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.plate { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #c9ced6, #8d949f 40%, #dfe3e8 60%, #9aa1ab); color: #1b1f27; padding: 1.2rem 1rem; text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column; gap: .2rem; }
.plate::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px); pointer-events: none; }
.plate::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); }
.plate:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .9), 0 0 0 1px rgba(212, 175, 90, .6); }
.plate:hover::after { left: 130%; }
.plate .posto { font-family: Georgia, 'Times New Roman', serif; font-size: .9rem; }
.plate .nm { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; min-height: 2.5em; display: grid; place-items: center; }
.plate .dt { font-family: Georgia, 'Times New Roman', serif; font-size: .88rem; display: flex; justify-content: center; gap: 1rem; }
.plate .ph { font-size: .7rem; color: #2c323d; margin-top: .35rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .7; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--blue)); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 1.8rem; }
.tl-item::before { content: ''; position: absolute; left: -2rem; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl-item:nth-child(even)::before { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.tl-year { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.tl-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.tl-item h4 { margin: .4rem 0 .3rem; font-size: 1.1rem; }
.tl-item p { margin: 0; color: var(--text-2); }

/* Stepper de solicitação */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0 1.5rem; }
.step { text-align: center; position: relative; font-size: .78rem; font-weight: 700; color: var(--muted); }
.step .dotx { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto .45rem; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border); position: relative; z-index: 1; transition: all .3s; }
.step::before { content: ''; position: absolute; top: 16px; left: -50%; right: 50%; height: 2px; background: var(--border); }
.step:first-child::before { display: none; }
.step.done { color: var(--text); }
.step.done .dotx { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.done::before { background: var(--accent); }
.step.current .dotx { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); animation: pulseStep 2s infinite; }
@keyframes pulseStep { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 6%, transparent); } }
.msg { padding: .9rem 1rem; border-radius: 12px; background: var(--surface-2); margin-top: .5rem; }
.msg.mine { background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.msg.org { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-left: 3px solid var(--accent); }

/* ---------- Companhias ---------- */
.cia-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.cia-top { padding: 1.4rem 1.5rem 1rem; position: relative; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--border); }
.cia-top::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
[data-mode="dark"] .cia-top { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--surface)), var(--surface)); }
.cia-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--c); }
[data-mode="dark"] .cia-num { color: color-mix(in srgb, var(--c) 55%, #fff); }
.cia-body { padding: 1.2rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.info-line { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.info-line .icon { color: var(--accent); margin-top: .2rem; }
.info-line a:hover { color: var(--accent); }
.map-frame { width: 100%; height: 420px; border: 0; border-radius: var(--radius); background: var(--surface-2); display: block; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-placeholder { height: 420px; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface) 12px 24px); color: var(--muted); padding: 1rem; }

/* ---------- Brasão interativo ---------- */
.crest-stage { position: relative; max-width: 420px; margin: 0 auto; }
.crest-stage img { width: 100%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .3)); }
.hotspot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: 3px solid #fff; display: grid; place-items: center; font-weight: 900; font-size: .8rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: transform .2s; }
.hotspot::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.hotspot:hover, .hotspot.active { transform: scale(1.2); background: var(--brand); }
.crest-list .ci { display: flex; gap: .9rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid transparent; transition: all .25s; cursor: pointer; }
.crest-list .ci:hover, .crest-list .ci.active { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.crest-list .ci.active { border-color: var(--accent); }
.crest-list .sw { width: 34px; height: 34px; border-radius: 10px; background: var(--c); border: 1px solid rgba(0, 0, 0, .15); flex: none; display: grid; place-items: center; font-weight: 900; font-size: .8rem; color: #111; }
.crest-list h4 { margin: 0 0 .15rem; font-size: 1rem; }
.crest-list p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Telefones / serviços ---------- */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.phone { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: all .25s var(--ease); }
.phone:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.phone .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); min-width: 60px; }
.phone strong { display: block; font-size: .95rem; }
.phone span { font-size: .78rem; color: var(--muted); line-height: 1.3; display: block; }
.phone.hot { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; border: 0; }
.phone.hot .num, .phone.hot span { color: #fff; }
.sys { display: flex; gap: .9rem; align-items: center; padding: 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: all .25s; }
.sys:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sys .s-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--gold-2); flex: none; }
.sys strong { display: block; font-size: .95rem; }
.sys span { font-size: .78rem; color: var(--muted); }
.sys .ext { margin-left: auto; color: var(--muted); }
.intra { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); padding: .1rem .4rem; border-radius: 4px; margin-left: .3rem; vertical-align: 1px; }
.tip-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.tip-card li { display: flex; gap: .55rem; font-size: .9rem; color: var(--text-2); }
.tip-card li .icon { color: #15803d; margin-top: .25rem; width: 16px; height: 16px; }

/* Credo */
.credo { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; padding: 3rem 0; position: relative; overflow: hidden; }
.credo blockquote { margin: 0 auto; max-width: 900px; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.5; color: #f1f4fa; position: relative; }
.credo blockquote::before { content: '“'; position: absolute; left: -2rem; top: -2.2rem; font-size: 6rem; color: var(--gold); opacity: .5; font-style: normal; }
.credo cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--font); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 800; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1rem; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .85rem; color: var(--text-2); }
.field .hint { font-size: .76rem; color: var(--muted); }
.input, .select, .textarea { width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 2.6rem; }
.input-icon .toggle-pass { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.check { display: flex; gap: .55rem; align-items: center; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-error { background: color-mix(in srgb, #dc2626 12%, var(--surface)); color: #b91c1c; border: 1px solid color-mix(in srgb, #dc2626 35%, transparent); padding: .7rem .9rem; border-radius: 10px; font-size: .88rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; }
[data-mode="dark"] .form-error { color: #fca5a5; }
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px; background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); font-size: .9rem; }
.alert .icon { color: var(--blue); margin-top: .15rem; }
.alert.red { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.alert.red .icon { color: var(--accent); }
.pass-meter { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pass-meter i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; }
.type-opt label { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; transition: all .2s; height: 100%; }
.type-opt label .icon { color: var(--accent); margin-top: .15rem; }
.type-opt label strong { display: block; font-size: .88rem; }
.type-opt label span { display: block; font-size: .76rem; color: var(--muted); line-height: 1.35; }
.type-opt input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: 0 0 0 3px var(--ring); }
.type-opt input:focus-visible + label { outline: 3px solid var(--ring); }
.stars { display: inline-flex; gap: .2rem; }
.stars button { color: var(--border); }
.stars button.on { color: #f59e0b; }
.stars button.on .icon { fill: currentColor; }

/* ---------- Autenticação ---------- */
.auth { min-height: calc(100vh - 118px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: #fff; padding: 4rem; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.auth-side h2 { color: #fff; font-size: 2.3rem; }
.auth-side .muted { color: #b8c3d8; }
.auth-side img.crest { width: 150px; margin-bottom: 2rem; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.auth-side ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.auth-side li { display: flex; gap: .8rem; align-items: center; color: #dbe3f0; }
.auth-side li .icon { color: var(--gold); width: 22px; height: 22px; }
.auth-main { display: grid; place-items: center; padding: 3rem 1.5rem; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { font-size: 2rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 14px; padding: 4px; margin-bottom: 1.6rem; }
.auth-tabs a { text-align: center; padding: .65rem; border-radius: 11px; font-weight: 800; font-size: .9rem; color: var(--muted); transition: all .2s; }
.auth-tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 270px 1fr; gap: 1.5rem; align-items: start; }
.side-nav { position: sticky; top: 96px; padding: .6rem; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem .85rem; border-radius: 12px; font-weight: 700; font-size: .9rem; color: var(--text-2); transition: all .2s; text-align: left; }
.side-nav a:hover, .side-nav button:hover { background: var(--surface-2); }
.side-nav a.active { background: var(--brand); color: #fff; }
[data-theme="contraste"] .side-nav a.active { background: #ffd400; color: #000; }
.side-nav .count { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-size: .7rem; border-radius: 99px; padding: .05rem .5rem; }
.profile-card { text-align: center; padding: 1.5rem 1rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.profile-card .avatar { margin: 0 auto .7rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { padding: 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.kpi strong { font-family: var(--font-display); font-size: 2rem; display: block; line-height: 1.1; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi .icon { float: right; color: var(--accent); width: 22px; height: 22px; }
.req { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); transition: background .2s; }
.req:hover { background: var(--surface-2); }
.req:last-child { border-bottom: 0; }
.req .r-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.req strong { display: block; font-size: .95rem; }
.req small { color: var(--muted); font-size: .78rem; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 800; padding: .3rem .65rem; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); white-space: nowrap; }
[data-mode="dark"] .status { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 26%, transparent); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--border); stroke-width: 1.5; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .75rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--surface-2); }
.notif { display: flex; gap: .8rem; padding: .9rem 1rem; border-radius: 12px; transition: background .2s; position: relative; }
.notif:hover { background: var(--surface-2); }
.notif.unread::after { content: ''; position: absolute; right: .9rem; top: 1.1rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.notif .n-ico { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; flex: none; }
.notif strong { display: block; font-size: .9rem; padding-right: 1rem; }
.notif p { margin: .1rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.notif time { font-size: .72rem; color: var(--muted); }

/* Popover de notificações */
.popover { position: absolute; right: 0; top: calc(100% + 12px); width: 380px; max-height: 480px; overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: .5rem; z-index: 70; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease); }
.popover.open { opacity: 1; visibility: visible; transform: none; }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; }
.pop-head strong { font-size: .95rem; }

/* ---------- Drawer de preferências ---------- */
.drawer { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(5, 10, 20, .5); opacity: 0; transition: opacity .3s; }
.drawer .sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer.open { pointer-events: auto; }
.drawer.open .scrim { opacity: 1; }
.drawer.open .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); }
.sheet-head h3 { margin: 0; display: flex; gap: .6rem; align-items: center; }
.sheet-body { padding: 1.4rem; overflow-y: auto; display: grid; gap: 1.8rem; }
.sheet-body h5 { margin: 0 0 .8rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.swatch { border-radius: 14px; border: 2px solid var(--border); padding: .55rem; text-align: left; transition: all .2s; background: var(--surface); }
.swatch:hover { transform: translateY(-2px); }
.swatch.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.swatch .sw-prev { height: 46px; border-radius: 9px; display: flex; overflow: hidden; margin-bottom: .45rem; }
.swatch .sw-prev i { flex: 1; }
.swatch span { font-size: .78rem; font-weight: 800; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 12px; padding: 4px; }
.seg button { padding: .55rem; border-radius: 9px; font-weight: 700; font-size: .85rem; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.switch-row strong { display: block; font-size: .92rem; }
.switch-row span { font-size: .78rem; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--ring); outline-offset: 2px; }
.font-ctl { display: flex; align-items: center; gap: .6rem; }
.font-ctl output { min-width: 3.5rem; text-align: center; font-weight: 800; }
.car-preview { height: 70px; border-radius: 14px; background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); position: relative; overflow: hidden; }
.car-preview .road { position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 14px, transparent 14px 28px); animation: road .6s linear infinite; }
@keyframes road { to { background-position: -28px 0; } }
.car-preview .pmc-car-inner { position: absolute; left: 50%; bottom: 10px; margin-left: -32px; }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding-top: 12vh; background: rgba(5, 10, 20, .55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: all .2s; }
.cmdk.open { opacity: 1; visibility: visible; }
.cmdk-box { width: min(640px, 94vw); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; transform: translateY(-10px) scale(.98); transition: transform .25s var(--ease); }
.cmdk.open .cmdk-box { transform: none; }
.cmdk-input { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.cmdk-input input { flex: 1; border: 0; background: transparent; font-size: 1.05rem; outline: 0; }
.cmdk-input .icon { color: var(--muted); width: 20px; height: 20px; }
kbd { white-space: nowrap; font-family: ui-monospace, monospace; font-size: .7rem; padding: .15rem .4rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; color: var(--muted); }
.cmdk-list { max-height: 420px; overflow-y: auto; padding: .5rem; }
.cmdk-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; padding: .7rem .8rem .3rem; }
.cmdk-item { display: flex; gap: .8rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; cursor: pointer; }
.cmdk-item .c-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; }
.cmdk-item strong { display: block; font-size: .9rem; }
.cmdk-item span { display: block; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item.sel { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.cmdk-item mark { background: color-mix(in srgb, var(--gold) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-btn { display: inline-flex; align-items: center; gap: .6rem; height: 40px; padding: 0 .6rem 0 .8rem; border-radius: 12px; border: 1px solid var(--border); color: var(--muted); font-size: .85rem; background: var(--surface-2); transition: border-color .2s; }
.search-btn:hover { border-color: var(--accent); }

/* ---------- Modal / Lightbox / Toast ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 1rem; background: rgba(5, 10, 20, .65); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: all .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-box.wide { width: min(900px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { margin: 0; font-size: 1.15rem; }
.modal-body { padding: 1.4rem; }
.lightbox .modal-box { background: #0a0d14; width: min(1100px, 100%); color: #fff; }
.lightbox .modal-head { background: #0a0d14; border-color: #222a38; }
.lightbox .modal-head h3 { color: #fff; }
.lightbox img { width: 100%; height: auto; border-radius: 12px; }
.lb-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.toasts { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 120; display: grid; gap: .6rem; width: min(380px, calc(100vw - 2.4rem)); }
.toast { display: flex; gap: .8rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .35s var(--ease); border-left: 4px solid var(--gold); font-size: .9rem; }
.toast.err { border-left-color: #f87171; }
.toast.ok { border-left-color: #4ade80; }
.toast .icon { margin-top: .1rem; }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: .8rem 1.1rem; font-weight: 800; font-size: .9rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: .45rem; align-items: center; transition: color .2s; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a.active, .tabs button.active { color: var(--accent); border-color: var(--accent); }
.subnav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 30; }
.subnav .tabs { border: 0; margin: 0; }

/* Accordion */
.acc { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: .7rem; }
.acc summary { list-style: none; padding: 1rem 1.2rem; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform .25s; color: var(--accent); }
.acc[open] summary .icon { transform: rotate(180deg); }
.acc .acc-body { padding: 0 1.2rem 1.1rem; color: var(--text-2); }

/* ---------- Rodapé ---------- */
.footer { background: var(--footer); color: #aeb8cc; padding-top: 4rem; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent) 0 33%, #fff 33% 66%, #111 66%); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.f-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.f-brand img { height: 74px; width: auto; }
.f-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.4rem; display: block; }
.f-brand span { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.f-logos { display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.f-logos img { height: 58px; width: auto; }
.f-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.f-contact .icon { color: var(--gold); margin-top: .2rem; }
.footer-bottom { margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.3rem 0; font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.slogan { font-family: var(--font-display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }

/* Botão voltar ao topo + FAB 190 */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: all .3s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
.fab-190 { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 40; display: none; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 900; box-shadow: 0 10px 25px -8px var(--accent); animation: pulse190 2.4s infinite; }

/* ---------- Splash ---------- */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); transition: opacity .6s, visibility .6s; }
.splash.done { opacity: 0; visibility: hidden; }
.splash-inner { text-align: center; color: #fff; }
.splash img { width: 110px; margin: 0 auto 1.2rem; animation: crestIn 1s var(--ease) both, breathe 2s 1s ease-in-out infinite; }
.splash .bar { width: 160px; height: 4px; border-radius: 4px; margin: 1.2rem auto 0; background: linear-gradient(90deg, #ff2a40 0 50%, #2b74ff 50%); background-size: 200% 100%; animation: lightbar .8s linear infinite; box-shadow: 0 0 20px rgba(255, 42, 64, .6), 0 0 20px rgba(43, 116, 255, .6); }
.splash strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .02em; }
.splash span { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; font-weight: 800; }

/* Reveal ao rolar */
.reveal { opacity: 0; transform: translateY(24px); 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; }
.view-enter { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Cursor animado com viatura ---------- */
.has-pmc, .has-pmc body, .has-pmc a, .has-pmc button, .has-pmc label, .has-pmc select, .has-pmc summary, .has-pmc [role="button"] { cursor: none; }
.has-pmc input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .has-pmc textarea, .has-pmc [contenteditable="true"] { cursor: text; }
.has-pmc iframe { cursor: auto; }
.pmc { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .25s; }
.pmc.is-visible { opacity: 1; }
.pmc-dot, .pmc-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.pmc-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 0 12px var(--accent); transition: width .2s, height .2s, margin .2s, background .2s; }
.pmc-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 2px solid transparent; background: conic-gradient(from 0deg, rgba(255, 40, 60, .95), rgba(255, 40, 60, 0) 30%, rgba(40, 110, 255, .95) 50%, rgba(40, 110, 255, 0) 80%, rgba(255, 40, 60, .95)) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ringspin 1.2s linear infinite; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .2s; }
@keyframes ringspin { to { rotate: 360deg; } }
.pmc.is-hover .pmc-ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.pmc.is-hover .pmc-dot { background: var(--gold); }
.pmc.is-down .pmc-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.pmc.is-text .pmc-ring, .pmc.is-text .pmc-dot { opacity: 0; }
.pmc-car { position: fixed; left: 0; top: 0; will-change: transform; }
.pmc-car-inner { position: relative; width: 64px; height: 30px; transform-origin: 50% 80%; }
.pmc-svg { position: relative; z-index: 1; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.pmc-wheel { transform-box: fill-box; transform-origin: center; }
.pmc-red { fill: #ff1f3d; animation: flashR .9s steps(1) infinite; }
.pmc-blue { fill: #1f6bff; animation: flashB .9s steps(1) infinite; }
@keyframes flashR { 0% { fill: #ff2b47; } 10% { fill: #5a0d16; } 20% { fill: #ff2b47; } 30%, 100% { fill: #5a0d16; } }
@keyframes flashB { 0%, 50% { fill: #10245a; } 50% { fill: #2f7bff; } 60% { fill: #10245a; } 70% { fill: #2f7bff; } 80%, 100% { fill: #10245a; } }
.pmc-glow { position: absolute; top: -18px; width: 44px; height: 44px; border-radius: 50%; filter: blur(8px); z-index: 0; mix-blend-mode: screen; }
.pmc-glow-r { left: 6px; background: radial-gradient(circle, rgba(255, 30, 60, .95), rgba(255, 30, 60, 0) 65%); animation: glowR .9s steps(1) infinite; }
.pmc-glow-b { left: 22px; background: radial-gradient(circle, rgba(40, 110, 255, .95), rgba(40, 110, 255, 0) 65%); animation: glowB .9s steps(1) infinite; }
@keyframes glowR { 0% { opacity: 1; } 10% { opacity: 0; } 20% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes glowB { 0%, 50% { opacity: 0; } 50% { opacity: 1; } 60% { opacity: 0; } 70% { opacity: 1; } 80%, 100% { opacity: 0; } }
.pmc-beam { position: absolute; left: 58px; top: 6px; width: 70px; height: 22px; background: radial-gradient(ellipse at 0% 50%, rgba(255, 236, 160, .55), rgba(255, 236, 160, 0) 70%); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); z-index: 0; transition: opacity .3s; }
.pmc.is-idle .pmc-svg { animation: idleBob 1.6s ease-in-out infinite; }
@keyframes idleBob { 50% { transform: translateY(-1px); } }
.pmc-wave { position: fixed; width: 0; height: 0; }
.pmc-wave i { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid; animation: wave .65s var(--ease) forwards; }
.pmc-wave i.r { border-color: rgba(255, 40, 60, .9); }
.pmc-wave i.b { border-color: rgba(40, 110, 255, .9); animation-delay: .1s; }
@keyframes wave { to { transform: scale(5); opacity: 0; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1480px) {
  .ticker { display: none; }
  .brand-text small { white-space: nowrap; font-size: .6rem; }
}
@media (max-width: 1360px) {
  .brand-text small { display: none; }
}
@media (max-width: 1200px) {
  .nav-link { padding: .55rem .5rem; font-size: .85rem; }
  .search-btn .label, .search-btn kbd { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ticker { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 3.5rem 0 8.5rem; }
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-crest { order: -1; }
  .hero-crest img { width: 130px; }
  .hero-crest::before, .hero-crest .orbit { width: 200px; height: 200px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .post.featured { grid-column: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 2.5rem 1.5rem; }
  .auth-side ul { display: none; }
  .dash { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; }
  .side-nav .profile-card { display: none; }
  .side-nav a, .side-nav button { width: auto; white-space: nowrap; }
  .escala-form { display: none; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .container { width: min(var(--container), 100% - 1.6rem); }
  .brand-text small { display: none; }
  .brand img { height: 44px; }
  .quick-grid, .grid-2, .grid-3, .grid-4, .stats, .phones, .form-2, .type-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
  .destaque-card { grid-template-columns: 1fr; }
  .search-btn { display: none; }
  .topbar-brand span { display: none; }
  .fab-190 { display: inline-flex; padding: .6rem .9rem; font-size: .9rem; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s var(--ease); }
  .fab-190.show { opacity: 1; transform: none; pointer-events: auto; }
  .req { grid-template-columns: auto 1fr; }
  .req > :last-child { grid-column: 1 / -1; }
  .stepper .step { font-size: .66rem; }
  .map-frame, .map-placeholder { height: 320px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}

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

@media print {
  .topbar, .header, .footer, .to-top, .fab-190, .quick, .pmc, .toasts { display: none !important; }
  .hero, .page-hero { background: none !important; color: #000 !important; padding: 1rem 0 !important; }
  .hero h1, .page-hero h1, .page-hero p { color: #000 !important; }
  body { background: #fff; }
}
