/* ============================================================
   NOTICIAS - HERMES GAIBOR
   ============================================================ */

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

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

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

/* ============================================================
   HERO
   ============================================================ */

.hg-noticias-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  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(43, 207, 122, 0.20), transparent 24%),
    linear-gradient(135deg, #082a67 0%, #0d58b0 62%, #1b94e8 100%);
  border-bottom: 6px solid #24c877;
}

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

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

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

.hg-noticias-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-noticias-badge {
  margin-bottom: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

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

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

.hg-noticias-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 620px);
  margin-top: 28px;
  padding: 8px 18px;
  min-height: 58px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.hg-noticias-search i {
  color: #005dcc;
  font-size: 18px;
}

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

.hg-noticias-search input::placeholder {
  color: #7b8da5;
}

.hg-noticias-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-noticias-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-noticias-hero-card h2 {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
}

.hg-noticias-hero-card p {
  margin: 0;
  font-size: 15px;
}

.hg-noticias-card-info {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.hg-noticias-card-info span {
  display: block;
  padding: 15px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 700;
}

.hg-noticias-card-info strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 4px;
}

/* ============================================================
   FILTROS
   ============================================================ */

.hg-noticias-filtros {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1180px, calc(100% - 36px));
  margin: -30px auto 34px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(8, 42, 103, 0.16);
}

.hg-noticias-filtro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  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-noticias-filtro:hover,
.hg-noticias-filtro.active {
  color: #ffffff;
  background: #24c877;
  transform: translateY(-2px);
}

/* ============================================================
   NOTICIA DESTACADA
   ============================================================ */

.hg-noticias-destacada {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 30px;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 clamp(18px, 5vw, 84px);
}

.hg-noticias-destacada-media,
.hg-noticias-destacada-content {
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(12, 54, 105, 0.10);
}

.hg-noticias-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  gap: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(36, 200, 119, 0.28), transparent 28%),
    linear-gradient(135deg, #082a67 0%, #0d58b0 65%, #1b94e8 100%);
  text-align: center;
}

.hg-noticias-placeholder i {
  font-size: 54px;
}

.hg-noticias-placeholder span {
  font-weight: 800;
}

.hg-noticias-destacada-content {
  padding: 34px;
}

.hg-noticias-destacada-content h2 {
  margin: 16px 0 14px;
  color: #063d83;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
}

.hg-noticias-destacada-content p {
  margin: 0 0 18px;
  color: #526275;
  font-size: 15px;
  line-height: 1.75;
}

.hg-noticias-btn,
.hg-noticia-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  padding: 11px 17px;
  border-radius: 999px;
  color: #ffffff !important;
  background: #063d83;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hg-noticias-btn:hover,
.hg-noticia-link:hover {
  background: #005dcc;
  transform: translateX(3px);
}

/* ============================================================
   SECCIÓN
   ============================================================ */

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

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

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

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

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

/* ============================================================
   CARDS
   ============================================================ */

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

.hg-noticia-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  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-noticia-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(12, 54, 105, 0.16);
}

.hg-noticia-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  color: #ffffff;
  font-size: 46px;
  background: linear-gradient(135deg, #005dcc, #0aa3ff);
}

.hg-noticia-thumb.is-green {
  background: linear-gradient(135deg, #005dcc, #24c877);
}

.hg-noticia-thumb.is-purple {
  background: linear-gradient(135deg, #005dcc, #7c3aed);
}

.hg-noticia-thumb.is-orange {
  background: linear-gradient(135deg, #f79009, #f04438);
}

.hg-noticia-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.hg-noticia-body h3 {
  margin: 14px 0 10px;
  color: #062f63;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.hg-noticia-body p {
  margin: 0 0 16px;
  color: #526275;
  font-size: 14px;
  line-height: 1.7;
}

.hg-noticia-link {
  margin-top: auto;
}

/* ============================================================
   TAGS Y META
   ============================================================ */

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

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

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

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

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

.hg-noticias-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 22px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.hg-noticias-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hg-noticias-meta i {
  color: #24c877;
}

/* ============================================================
   EMPTY
   ============================================================ */

.hg-noticias-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-noticias-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-noticias-empty h3 {
  margin: 0 0 10px;
  color: #062f63;
  font-size: 23px;
  font-weight: 900;
}

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

/* ============================================================
   BOLETÍN / CANALES
   ============================================================ */

.hg-noticias-boletin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  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-noticias-boletin h2 {
  margin: 0;
  color: #063d83;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
}

.hg-noticias-boletin p {
  margin: 16px 0 0;
  color: #526275;
  font-size: 15px;
  line-height: 1.75;
}

.hg-noticias-canales {
  display: grid;
  gap: 14px;
}

.hg-noticias-canales a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 15px 18px;
  border-radius: 18px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #005dcc, #0d58b0);
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 93, 204, 0.16);
  transition: transform 0.2s ease;
}

.hg-noticias-canales a:hover {
  transform: translateX(4px);
}

.hg-noticias-canales i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   FILTRADO
   ============================================================ */

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

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

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

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

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

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

  .hg-noticias-filtros {
    width: calc(100% - 24px);
    margin-top: -20px;
    padding: 12px;
  }

  .hg-noticias-filtro {
    width: 100%;
  }

  .hg-noticias-destacada {
    padding: 0 18px;
    margin-bottom: 48px;
  }

  .hg-noticias-placeholder {
    min-height: 240px;
  }

  .hg-noticias-destacada-content {
    padding: 24px 22px;
  }

  .hg-noticias-section {
    padding: 10px 18px 54px;
  }

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

  .hg-noticia-card {
    border-radius: 24px;
  }

  .hg-noticias-boletin {
    padding: 54px 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;
}
/* ==========================================================================
   ¡CORRECCIÓN INMEDIATA DE CONTRASTE PARA EL HERO DE NOTICIAS!
   ========================================================================== */

/* Fuerza el Título Principal H1 y su texto a blanco brillante */
#wrapper .hg-noticias-hero h1,
.hg-noticias-hero h1,
.hg-noticias-hero .hg-noticias-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-noticias-hero h1 span,
.hg-noticias-hero h1 span,
.hg-noticias-hero .hg-noticias-hero-content h1 span {
    color: #ffd466 !important; /* Dorado claro premium */
    opacity: 1 !important;
}

/* Fuerza el párrafo explicativo a blanco translúcido legible */
#wrapper .hg-noticias-hero p,
.hg-noticias-hero p,
.hg-noticias-hero .hg-noticias-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-noticias-hero .hg-noticias-badge {
    color: #ffd466 !important;
    opacity: 1 !important;
}