/* ============================================================
   BUEN GOBIERNO - HERMES GAIBOR
   ============================================================ */

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

#wrapper.home-page {
  width: 100%;
  max-width: none;
  overflow-x: hidden;
}

.hg-bg-page {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  background: #f4f8ff;
}

/* HERO */

.hg-bg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 34px;
  align-items: center;
  padding: 76px clamp(18px, 5vw, 84px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(36, 200, 119, 0.18), transparent 24%),
    linear-gradient(135deg, #082a67 0%, #0d58b0 62%, #1b94e8 100%);
  border-bottom: 6px solid #24c877;
}

.hg-bg-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -150px;
  top: -160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.hg-bg-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(36, 200, 119, 0.16);
}

.hg-bg-hero-content,
.hg-bg-hero-card {
  position: relative;
  z-index: 2;
}

.hg-bg-badge,
.hg-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.hg-bg-badge {
  margin-bottom: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.hg-bg-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -2px;
}

.hg-bg-hero p {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.75;
}

.hg-bg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hg-bg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none !important;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.hg-bg-btn:hover {
  transform: translateY(-2px);
}

.hg-bg-btn-primary {
  color: #ffffff !important;
  background: #24c877;
  box-shadow: 0 12px 28px rgba(36, 200, 119, 0.26);
}

.hg-bg-btn-light {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hg-bg-hero-card {
  padding: 30px;
  border-radius: 28px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(5px);
}

.hg-bg-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 20px;
  border-radius: 26px;
  color: #ffffff;
  font-size: 38px;
  background: linear-gradient(135deg, #24c877, #18a4f6);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.hg-bg-hero-card h2 {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
}

.hg-bg-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hg-bg-mini-stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
}

.hg-bg-mini-stats strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  margin-bottom: 7px;
}

.hg-bg-mini-stats span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

/* PRINCIPIOS */

.hg-bg-principios {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1280px, calc(100% - 36px));
  margin: -38px auto 56px;
}

.hg-bg-principio-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 93, 204, 0.10);
  box-shadow: 0 18px 46px rgba(8, 42, 103, 0.12);
}

.hg-bg-principio-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 25px;
  background: linear-gradient(135deg, #005dcc, #24c877);
}

.hg-bg-principio-card h3 {
  margin: 0 0 10px;
  color: #062f63;
  font-size: 19px;
  font-weight: 900;
}

.hg-bg-principio-card p {
  margin: 0;
  color: #526275;
  font-size: 14px;
  line-height: 1.7;
}

/* SECCIÓN */

.hg-bg-section {
  padding: 20px clamp(18px, 5vw, 84px) 70px;
}

.hg-bg-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto 28px;
}

.hg-section-kicker {
  margin-bottom: 12px;
  color: #005dcc;
  background: rgba(0, 93, 204, 0.10);
}

.hg-bg-section-head h2,
.hg-bg-documentos-content h2 {
  margin: 0;
  color: #063d83;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
}

.hg-bg-section-head p,
.hg-bg-documentos-content p {
  margin: 0;
  color: #526275;
  font-size: 15px;
  line-height: 1.75;
}

/* TOOLS */

.hg-bg-tools {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto 30px;
}

.hg-bg-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 93, 204, 0.12);
  box-shadow: 0 14px 34px rgba(8, 42, 103, 0.10);
}

.hg-bg-search i {
  color: #005dcc;
}

.hg-bg-search input {
  width: 100%;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #063d83;
  background: transparent;
}

.hg-bg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(8, 42, 103, 0.10);
}

.hg-bg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #063d83;
  background: #eef5ff;
  font-family: inherit;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hg-bg-tab:hover,
.hg-bg-tab.active {
  color: #ffffff;
  background: #24c877;
  transform: translateY(-2px);
}

/* CARDS */

.hg-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.hg-bg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 26px;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 93, 204, 0.12);
  box-shadow: 0 22px 50px rgba(12, 54, 105, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hg-bg-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(12, 54, 105, 0.16);
}

.hg-bg-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, #005dcc, #24c877);
}

.hg-bg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.hg-bg-card-top > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 23px;
  background: linear-gradient(135deg, #005dcc, #24c877);
}

.hg-bg-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tag-gobierno {
  color: #005dcc;
  background: rgba(0, 93, 204, 0.10);
}

.tag-control {
  color: #067647;
  background: #ecfdf3;
}

.tag-etica {
  color: #5925dc;
  background: #f4f3ff;
}

.tag-cumplimiento {
  color: #b54708;
  background: #fffaeb;
}

.hg-bg-card h3 {
  margin: 0 0 12px;
  color: #062f63;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.hg-bg-card p {
  margin: 0 0 18px;
  color: #526275;
  font-size: 14px;
  line-height: 1.7;
}

.hg-bg-list {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.hg-bg-list li {
  display: flex;
  gap: 9px;
  color: #526275;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.hg-bg-list i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #24c877;
}

.hg-bg-card.is-hidden {
  display: none;
}

/* EMPTY */

.hg-bg-empty {
  max-width: 620px;
  margin: 34px auto 0;
  padding: 34px;
  border-radius: 28px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed rgba(0, 93, 204, 0.28);
  box-shadow: 0 18px 42px rgba(12, 54, 105, 0.08);
}

.hg-bg-empty i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 24px;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(135deg, #005dcc, #24c877);
}

.hg-bg-empty h3 {
  margin: 0 0 10px;
  color: #062f63;
  font-size: 23px;
  font-weight: 900;
}

.hg-bg-empty p {
  margin: 0;
  color: #526275;
  font-size: 15px;
}

/* DOCUMENTOS */

.hg-bg-documentos {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 70px clamp(18px, 5vw, 84px);
  background:
    radial-gradient(circle at 90% 20%, rgba(36, 200, 119, 0.15), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.hg-bg-docs-box {
  display: grid;
  gap: 16px;
}

.hg-bg-doc-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(12, 54, 105, 0.08);
}

.hg-bg-doc-item div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #005dcc, #24c877);
  font-size: 23px;
}

.hg-bg-doc-item strong {
  display: block;
  color: #063d83;
  font-size: 16px;
  margin-bottom: 4px;
}

.hg-bg-doc-item span {
  color: #526275;
  font-size: 13px;
  line-height: 1.45;
}

.hg-bg-doc-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff !important;
  background: #063d83;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
}

/* COMPROMISO */

.hg-bg-compromiso {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 70px clamp(18px, 5vw, 84px);
  background: #ffffff;
}

.hg-bg-compromiso-card {
  padding: 28px;
  border-radius: 26px;
  background: #f8fbff;
  border: 1px solid rgba(0, 93, 204, 0.10);
  box-shadow: 0 18px 42px rgba(12, 54, 105, 0.08);
}

.hg-bg-compromiso-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 27px;
  background: linear-gradient(135deg, #005dcc, #24c877);
}

.hg-bg-compromiso-card h3 {
  margin: 0 0 10px;
  color: #062f63;
  font-size: 21px;
  font-weight: 900;
}

.hg-bg-compromiso-card p {
  margin: 0;
  color: #526275;
  font-size: 14px;
  line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .hg-bg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-bg-principios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-bg-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hg-bg-hero,
  .hg-bg-section-head,
  .hg-bg-documentos {
    grid-template-columns: 1fr;
  }

  .hg-bg-compromiso {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hg-bg-hero {
    padding: 52px 18px;
  }

  .hg-bg-hero h1 {
    font-size: 38px;
  }

  .hg-bg-hero-actions {
    flex-direction: column;
  }

  .hg-bg-btn {
    width: 100%;
  }

  .hg-bg-principios {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin-top: -24px;
  }

  .hg-bg-section {
    padding: 22px 18px 54px;
  }

  .hg-bg-search {
    border-radius: 18px;
  }

  .hg-bg-tabs {
    padding: 12px;
  }

  .hg-bg-tab {
    width: 100%;
  }

  .hg-bg-grid {
    grid-template-columns: 1fr;
  }

  .hg-bg-card {
    min-height: auto;
    padding: 24px 22px;
    border-radius: 24px;
  }

  .hg-bg-documentos {
    padding: 54px 18px;
  }

  .hg-bg-doc-item {
    grid-template-columns: 1fr;
  }

  .hg-bg-doc-item a {
    width: fit-content;
  }

  .hg-bg-compromiso {
    padding: 54px 18px;
  }

  .hg-bg-mini-stats {
    grid-template-columns: 1fr;
  }
}
/* HERO */

.hg-bg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 34px;
  align-items: center;
  padding: 76px clamp(18px, 5vw, 84px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(36, 200, 119, 0.18), transparent 24%),
    linear-gradient(135deg, #082a67 0%, #0d58b0 62%, #1b94e8 100%);
  border-bottom: 6px solid #24c8... /* Nota: El archivo se corta aquí en la descarga de la línea base */
}
@media (max-width: 640px) {
  .hg-bg-hero {
    padding: 52px 18px;
  }
}
/* ==========================================================================
   ¡CORRECCIÓN INMEDIATA DE CONTRASTE PARA EL HERO DE BUEN GOBIERNO!
   ========================================================================== */

/* Fuerza el Título Principal H1 y su texto a blanco brillante */
#wrapper .hg-bg-hero h1,
.hg-bg-hero h1,
.hg-bg-hero .hg-bg-hero-content h1 {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Fuerza el texto secundario (Span) dentro del H1 a Amarillo/Dorado Corporativo */
#wrapper .hg-bg-hero h1 span,
.hg-bg-hero h1 span,
.hg-bg-hero .hg-bg-hero-content h1 span {
    color: #ffd466 !important; /* Dorado claro de alta gama */
    opacity: 1 !important;
}

/* Fuerza el párrafo explicativo a blanco translúcido legible */
#wrapper .hg-bg-hero p,
.hg-bg-hero p,
.hg-bg-hero .hg-bg-hero-content p {
    color: rgba(255, 255, 255, 0.92) !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

/* Asegura que la insignia superior mantenga su color dorado sin opacidad */
.hg-bg-hero .hg-bg-badge {
    color: #ffd466 !important;
    opacity: 1 !important;
}