* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #060a0f;
  color: #d0e8ff;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.bg-atmosphere {
  position: fixed; inset: 0;
  background: radial-gradient(circle at center, #112233 0%, #04070a 100%);
  z-index: 1;
}
.grid-overlay {
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(0, 195, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 195, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
}

.shutter {
  position: fixed; left: 0; width: 100%; height: 50vh;
  background: #0a1017; z-index: 100;
  border-color: #00c3ff; border-style: solid; border-width: 0;
}
.shutter-top { top: 0; border-bottom-width: 2px; box-shadow: 0 5px 25px rgba(0, 195, 255, 0.3); }
.shutter-bottom { bottom: 0; border-top-width: 2px; }

.loader-box {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 101; text-align: center; width: 340px;
  background: #060b11; padding: 20px; border: 1px solid #00c3ff;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.loader-title { font-size: 12px; letter-spacing: 4px; color: #00c3ff; margin-bottom: 10px; }
.loader-bar-bg { width: 100%; height: 4px; background: #122436; overflow: hidden; }
.loader-bar-fill { width: 0%; height: 100%; background: #00c3ff; box-shadow: 0 0 10px #00c3ff; }
.loader-percent { font-size: 11px; margin-top: 8px; color: #7faacc; font-family: Consolas, monospace; }

.sigo-hud {
  position: relative; z-index: 10; height: 100vh;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 16px 28px 12px; gap: 14px;
}

.hud-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: rgba(10, 20, 32, 0.85); border: 1px solid rgba(0, 195, 255, 0.35);
  padding: 12px 22px; min-height: 64px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  opacity: 0; transform: translateY(-40px);
}
.logo { font-size: 22px; font-weight: 800; letter-spacing: 5px; color: #fff; text-shadow: 0 0 12px #00c3ff; }
.logo-sub { margin-top: 2px; font-size: 11px; letter-spacing: 1.4px; color: #7faacc; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.header-link {
  background: rgba(0, 195, 255, 0.08); border: 1px solid #00c3ff; color: #d0e8ff;
  padding: 8px 14px; font: inherit; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.header-link:hover, .header-link[aria-current="true"] { background: #00c3ff; color: #041018; }
.header-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hud-main.sem-menu { grid-template-columns: minmax(0, 1fr); }
.hud-main.sem-menu .mod-nav { display: none; }

.hud-main {
  position: relative; min-height: 0;
  background: rgba(8, 16, 26, 0.8);
  border: 1px solid rgba(0, 195, 255, 0.3);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  opacity: 0; transform: scale(0.92);
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  overflow: hidden;
}

.mod-nav {
  min-height: 0; overflow-y: auto;
  padding: 16px 12px 20px;
  border-right: 1px solid rgba(0, 195, 255, 0.18);
  background: rgba(4, 10, 16, 0.35);
}
.nav-grupo { margin-bottom: 14px; }
.nav-grupo h2 {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: #5c85a6; padding: 0 8px 6px;
}
.nav-btn {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; color: #d0e8ff;
  padding: 8px 10px; margin-bottom: 4px; font-size: 13px; letter-spacing: 0.3px;
  cursor: pointer; transition: 0.15s ease;
}
.nav-btn:hover { border-color: rgba(0, 195, 255, 0.45); background: rgba(0, 195, 255, 0.08); }
.nav-btn[aria-current="true"] { background: #00c3ff; color: #041018; font-weight: 700; }
.nav-btn:focus-visible { outline: 2px solid #00c3ff; outline-offset: 1px; }
.header-link.nav-destino,
.nav-btn.nav-destino,
.mapa-btn.nav-destino,
.liga button.nav-destino {
  background: #00c3ff; color: #041018; border-color: #00c3ff; opacity: 1; cursor: default;
}
.header-link.nav-espera,
.nav-btn.nav-espera,
.mapa-btn.nav-espera,
.liga button.nav-espera,
.header-link.nav-espera:hover,
.nav-btn.nav-espera:hover,
.mapa-btn.nav-espera:hover,
.liga button.nav-espera:hover {
  opacity: 0.35; cursor: not-allowed; color: #7faacc;
  background: transparent; border-color: transparent;
}
.header-link.nav-espera,
.header-link.nav-espera:hover {
  background: rgba(0, 195, 255, 0.05); border-color: rgba(0, 195, 255, 0.2);
}

.mod-view {
  position: relative; min-height: 0; overflow: hidden;
}
#conteudoDinamico {
  height: 100%; overflow-y: auto;
  padding: 28px 32px 36px;
}

.panel-shutter {
  position: absolute; inset: 0; background: #0b1622; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  color: #00c3ff; letter-spacing: 3px; font-size: 13px;
  transform: scaleY(0); transform-origin: top;
  pointer-events: none;
}
.loader-box.loader-modulo {
  position: fixed; z-index: 90; display: none;
  width: min(340px, 88vw); margin: 0;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.loader-modulo .loader-title { letter-spacing: 2px; line-height: 1.45; }

.modulo h1 { font-size: 28px; font-weight: 700; letter-spacing: 0.5px; color: #fff; margin: 6px 0 12px; }
.kicker { font-size: 11px; letter-spacing: 3px; color: #00c3ff; text-transform: uppercase; }
.lead { max-width: 72ch; line-height: 1.65; color: #9ab8d4; font-size: 15px; }

.stats, .cards, .mapa, .fluxo, .kpi-grid {
  display: grid; gap: 12px; margin-top: 20px;
}
.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cards, .mapa, .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cards.empresas { grid-template-columns: repeat(auto-fill, minmax(240px, 280px)); }
.empresa { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.empresa img {
  display: block; width: 100%; height: 140px; object-fit: contain;
  background: #eef3f6; padding: 28px 20px;
}
.empresa strong { display: block; color: #fff; font-size: 15px; padding: 14px 14px 0; }
.empresa span { display: block; color: #7faacc; font-size: 13px; padding: 4px 14px 16px; }
.empresa:hover { border-color: #00c3ff; background: rgba(0, 195, 255, 0.1); }
.fluxo { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 8px; }

.stat, .card, .mapa-btn, .fluxo li, .kpi {
  background: rgba(0, 195, 255, 0.045);
  border: 1px solid rgba(0, 195, 255, 0.28);
  padding: 14px 14px 16px;
  position: relative;
}
.stat::before, .card::before, .mapa-btn::before, .fluxo li::before, .kpi::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 10px; height: 10px;
  border-top: 2px solid #00c3ff; border-left: 2px solid #00c3ff;
}
.stat span, .kpi span, .fluxo span {
  display: block; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #7faacc;
}
.stat strong, .kpi strong { display: block; margin-top: 6px; color: #fff; font-size: 18px; font-weight: 700; }
.card h3, .mapa-btn strong, .fluxo strong { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.card p, .mapa-btn small, .kpi p, .fluxo span { color: #9ab8d4; font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.mapa-btn small { display: block; margin-top: 6px; }

.mapa-btn, .liga button {
  font-family: inherit; color: inherit; cursor: pointer; text-align: left;
}
.mapa-btn { width: 100%; background: rgba(0, 195, 255, 0.045); }
.mapa-btn:hover, .liga button:hover, .liga a:hover { background: rgba(0, 195, 255, 0.16); border-color: #00c3ff; }
.mapa-btn:focus-visible, .liga button:focus-visible { outline: 2px solid #00c3ff; outline-offset: 2px; }

.fluxo { list-style: none; }
.fluxo li strong { display: block; }
.fluxo span { margin-top: 4px; }

.liga { margin-top: 22px; color: #7faacc; font-size: 13px; line-height: 2; }
.liga button, .liga a {
  background: rgba(0, 195, 255, 0.08);
  border: 1px solid rgba(0, 195, 255, 0.45);
  color: #d0e8ff;
  padding: 4px 10px; margin: 0 4px 4px 0;
  font-size: 12px; letter-spacing: 0.4px;
  text-decoration: none; display: inline-block;
}
.nota { margin-top: 16px; font-size: 12px; color: #5c85a6; line-height: 1.5; }

.contato-layout {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.7fr);
  gap: 14px; margin-top: 20px;
}
.form-card, .canal {
  background: rgba(0, 195, 255, 0.045);
  border: 1px solid rgba(0, 195, 255, 0.28);
  padding: 16px; position: relative; color: inherit; text-decoration: none;
}
.form-card::before, .canal::before {
  content: ""; position: absolute; top: 0; left: 0; width: 10px; height: 10px;
  border-top: 2px solid #00c3ff; border-left: 2px solid #00c3ff;
}
.canais { display: flex; flex-direction: column; gap: 12px; }
.canal strong { display: block; color: #fff; margin: 4px 0; }
.canal span, .campo > span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #7faacc; }
.canal:hover { border-color: #00c3ff; background: rgba(0, 195, 255, 0.12); }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.campo input, .campo textarea {
  width: 100%; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(0, 195, 255, 0.35);
  color: #fff; padding: 10px 12px; font: inherit;
}
.campo textarea { min-height: 130px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: 2px solid #00c3ff; border-color: #00c3ff; }
.enviar {
  background: #00c3ff; color: #041018; border: 0; font: inherit; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 10px 16px; cursor: pointer;
}
.enviar:disabled { opacity: 0.6; cursor: wait; }
.form-status { min-height: 1.3em; margin-top: 10px; color: #9ab8d4; font-size: 13px; }
.campo-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.hud-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 11px; color: #5c85a6; letter-spacing: 1.6px;
  border-top: 1px solid rgba(0, 195, 255, 0.2); padding-top: 8px;
  opacity: 0;
}
.copy { display: inline-flex; align-items: center; gap: 6px; }
.copy-icon { width: 14px; height: 14px; color: #00c3ff; flex: none; }

.mod-nav::-webkit-scrollbar, #conteudoDinamico::-webkit-scrollbar { width: 8px; height: 8px; }
.mod-nav::-webkit-scrollbar-thumb, #conteudoDinamico::-webkit-scrollbar-thumb { background: rgba(0, 195, 255, 0.35); }

@media (max-width: 800px) {
  .contato-layout { grid-template-columns: 1fr; }
  body { overflow: auto; height: auto; }
  .sigo-hud { height: auto; min-height: 100vh; padding: 12px; }
  .hud-main {
    grid-template-columns: 1fr;
    overflow: visible;
    clip-path: none;
  }
  .mod-nav {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
    border-right: 0; border-bottom: 1px solid rgba(0, 195, 255, 0.18);
    padding: 10px;
  }
  .nav-grupo { display: flex; gap: 6px; margin: 0; }
  .nav-grupo h2 { display: none; }
  .nav-btn { width: auto; white-space: nowrap; margin: 0; border-color: rgba(0, 195, 255, 0.3); }
  .mod-view { overflow: visible; }
  #conteudoDinamico { height: auto; overflow: visible; padding: 18px 16px 28px; }
  .fluxo, .stats { grid-template-columns: 1fr; }
  .hud-footer { flex-direction: column; align-items: flex-start; }
}
