.acg-reality-page {
  padding-top: 52px !important;
}

.acg-reality-page .site-header,
.acg-reality-page .header {
  top: 52px !important;
}

.acg-global-toolbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100000;
  min-height: 52px;
  padding: 7px max(16px, calc((100% - 1240px) / 2));
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #7a271a;
  background: #b42318;
  color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.acg-pending-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.acg-pending-content strong {
  letter-spacing: 0.08em;
}

.acg-pending-content span {
  color: #fee4e2;
}

.acg-pending-content a {
  color: #fff;
  font-weight: 900;
}

.acg-pending-toggle,
.acg-diagnostic-button {
  min-height: 36px;
  padding: 8px 11px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: #fff;
  color: #7a271a;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.acg-pending-toggle i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d92d20;
}

.acg-pending-toggle small {
  color: #9f4b43;
}

.acg-diagnostic-button {
  border-color: #fff;
  background: #0a1f3a;
  color: #fff;
}

.acg-official-logo {
  min-width: 225px;
}

.acg-official-logo img {
  display: block;
  width: clamp(220px, 21vw, 278px);
  height: auto;
}

.acg-footer-logo {
  display: inline-flex;
  background: #fff;
}

.acg-footer-logo img {
  display: block;
  width: min(265px, 70vw);
  height: auto;
}

.acg-diagnostic-portal {
  align-self: start;
}

/* The legacy page-local forms remain non-rendered as a rollback reference.
   The only visible and operable diagnostic is the independent route. */
form#form,
form#gov-form,
form#enterprise-form {
  display: none !important;
}

.acg-diagnostic-portal > small {
  display: block;
  margin-bottom: 18px;
  color: #6e8799;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.acg-diagnostic-portal > p {
  margin-bottom: 24px;
}

.pending-hidden .acg-pending-item {
  display: none !important;
}

.pending-hidden .acg-global-toolbar {
  border-bottom-color: #d9e0e4;
  background: #fff;
}

.pending-hidden .acg-pending-toggle {
  border-color: #b8bdc4;
  color: #6e8799;
}

.pending-hidden .acg-pending-toggle i {
  background: #b8bdc4;
}

.pending-hidden .acg-pending-toggle small {
  color: #6e8799;
}

@media (max-width: 1000px) {
  .acg-pending-content span {
    display: none;
  }

  .acg-official-logo img {
    width: 205px;
  }
}

@media (max-width: 720px) {
  .acg-reality-page {
    padding-top: 50px !important;
  }

  .acg-reality-page .site-header,
  .acg-reality-page .header {
    top: 50px !important;
  }

  .acg-global-toolbar {
    min-height: 50px;
  }

  .acg-pending-content {
    display: none;
  }

  .acg-pending-toggle small {
    display: none;
  }

  .acg-diagnostic-button {
    margin-left: auto;
  }

  .acg-official-logo {
    min-width: 175px;
  }

  .acg-official-logo img {
    width: 175px;
  }
}

@media (max-width: 430px) {
  .acg-diagnostic-button {
    padding-inline: 9px;
    font-size: 0;
  }

  .acg-diagnostic-button::after {
    content: "Diagnóstico";
    font-size: 11px;
  }
}
