:root {
  --brand-navy: #082b64;
  --brand-navy-dark: #051d45;
  --brand-blue: #0b4fa8;
  --brand-orange: #ff6500;
  --brand-orange-dark: #d95100;
  --brand-soft: #fff4ec;
  --brand-border: #dbe5f2;
}

/* Identidad visual: Portal de Noticias Cundinamarca */
html { scroll-behavior: smooth; }
body { color: var(--brand-navy-dark); }
a { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }

/* Encabezado */
.u-header .u-section-row-1,
.u-custom-color-4 {
  background-color: var(--brand-orange) !important;
  color: #fff !important;
}

.u-header .u-section-row-2 {
  background: #fff;
  border-bottom: 4px solid var(--brand-orange);
  box-shadow: 0 8px 24px rgba(8, 43, 100, .10);
}

.u-header .u-logo {
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8, 43, 100, .16);
}

.u-header .u-logo-image,
.u-footer .u-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.u-header .u-nav-link {
  color: var(--brand-navy) !important;
  border-color: transparent !important;
  border-radius: 8px;
}

.u-header .u-nav-link:hover,
.u-header .u-nav-link.active,
.u-header li.active > .u-nav-link {
  background-color: var(--brand-orange) !important;
  color: #fff !important;
  border-color: var(--brand-orange) !important;
}

.u-header .u-icon-5,
.u-header .u-custom-color-4.u-icon-circle {
  background-color: var(--brand-navy) !important;
}

.u-header .u-text-custom-color-4,
.u-text-custom-color-4,
a.u-text-custom-color-4 {
  color: var(--brand-orange) !important;
}

/* Botones y acentos generales */
.u-btn:not(.u-button-link),
button.btn,
.btn-login,
.btn.primary,
.iebtn.primary {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.u-btn:not(.u-button-link):hover,
button.btn:hover,
.btn-login:hover,
.btn.primary:hover,
.iebtn.primary:hover {
  background-color: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
}

.u-text-palette-1-base,
a.u-text-palette-1-base,
.u-link.u-text-palette-1-base {
  color: var(--brand-orange) !important;
}

/* Redes y pie de página */
.u-section-6 {
  background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%) !important;
}

.u-section-6 .u-title,
.follow-redes-sociales a {
  color: var(--brand-navy) !important;
}

.follow-redes-sociales a:hover {
  color: var(--brand-orange) !important;
  transform: translateY(-2px);
}

.u-footer,
.u-custom-color-3 {
  background-color: var(--brand-navy) !important;
  color: #fff !important;
}

.u-footer .u-logo {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.u-footer a:not(.u-social-url) {
  color: #fff !important;
}

.u-footer a:not(.u-social-url):hover {
  color: var(--brand-orange) !important;
}

/* Componentes dinámicos de noticias */
.ns-badge,
.news-badge,
.badge-accent {
  background: var(--brand-orange) !important;
}

.ns-wrap,
.card,
.panel {
  border-color: var(--brand-border);
}


/* Noticias con botón destacado “De Frente con el Veedor” */
.news-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 31%);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.news-feature-main { min-width: 0; }
.news-feature-main > .u-group { height: 100%; }
.news-feature-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.veedor-feature-button {
  display: block;
  width: 100%;
  max-width: 390px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--brand-orange);
  box-shadow: 0 16px 38px rgba(8, 43, 100, .18);
  transform: translateY(0);
}

.veedor-feature-button:hover,
.veedor-feature-button:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(8, 43, 100, .25);
  outline: none;
}

.veedor-feature-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* El logotipo principal es horizontal. */
.u-header .u-logo,
.u-footer .u-logo {
  border-radius: 16px;
}

@media (max-width: 991px) {
  .news-feature-layout {
    grid-template-columns: 1fr;
  }
  .news-feature-side {
    padding-top: 4px;
  }
  .veedor-feature-button {
    max-width: 360px;
  }
}

/* Menú móvil */
.u-sidenav {
  background: var(--brand-navy-dark) !important;
}
.u-sidenav .u-nav-link { color: #fff !important; }
.u-sidenav .u-nav-link:hover,
.u-sidenav .u-nav-link.active { background: var(--brand-orange) !important; }

@media (max-width: 575px) {
  .u-header .u-logo {
    width: 185px !important;
    height: 185px !important;
  }
}

.u-footer .u-text-black,
.u-footer .u-text-grey-90,
.u-footer h1,
.u-footer h2,
.u-footer h3,
.u-footer h4,
.u-footer h5,
.u-footer h6,
.u-footer p {
  color: #fff !important;
}

.follow-redes-sociales .u-icon {
  color: var(--brand-navy) !important;
}
.follow-redes-sociales a:hover .u-icon {
  color: var(--brand-orange) !important;
}


/* Logotipo rectangular horizontal y distribución del encabezado */
.u-header .u-section-row-2 .u-sheet-2 {
  position: relative;
  min-height: 238px !important;
}

.u-header .portal-logo-horizontal {
  position: absolute !important;
  top: 14px;
  left: 0;
  width: 360px !important;
  height: 150px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: 0 10px 28px rgba(8, 43, 100, .16);
}

.u-header .portal-logo-horizontal .u-logo-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

.u-header .u-section-row-2 .u-menu-1 {
  margin: 176px auto 0 !important;
}

.u-header .u-section-row-2 .u-group-1 {
  position: absolute;
  top: 52px;
  right: 0;
  margin: 0 !important;
}

/* El menú tiene un enlace más largo; se compacta ligeramente sin perder legibilidad. */
.u-header .u-nav-1 {
  font-size: .89rem !important;
}

.u-header .u-nav-1 .u-nav-link {
  padding-left: 8px !important;
  padding-right: 8px !important;
  white-space: nowrap;
}

.u-footer .portal-logo-horizontal {
  width: min(100%, 390px) !important;
  height: auto !important;
  aspect-ratio: 12 / 5;
  margin: 28px auto 18px 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  overflow: hidden;
}

.u-footer .portal-logo-horizontal .u-logo-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

@media (max-width: 991px) {
  .u-header .u-section-row-2 .u-sheet-2 {
    min-height: 150px !important;
  }

  .u-header .portal-logo-horizontal {
    top: 20px;
    width: 270px !important;
    height: 112px !important;
  }

  .u-header .u-section-row-2 .u-menu-1 {
    position: absolute;
    top: 50px;
    right: 4px;
    width: auto !important;
    margin: 0 !important;
  }

  .u-header .u-section-row-2 .u-group-1 {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .u-header .u-section-row-2 .u-sheet-2 {
    min-height: 136px !important;
  }

  .u-header .portal-logo-horizontal {
    top: 18px;
    left: 0;
    width: 225px !important;
    height: 94px !important;
  }

  .u-header .u-section-row-2 .u-menu-1 {
    top: 43px;
    right: 0;
  }

  .u-footer .portal-logo-horizontal {
    width: 100% !important;
    max-width: 340px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* Alianza informativa y director — actualización 2026-08 */
.alliance-section {
  padding: 58px 20px 68px;
  background: #f7f8fa;
}
.alliance-container {
  width: min(1320px, 100%);
  margin: 0 auto;
}
.alliance-container h2 {
  margin: 0 0 30px;
  text-align: center;
  color: #082b64;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
}
.alliance-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.alliance-logo-card {
  min-width: 0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(8, 43, 100, .12);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(8, 43, 100, .08);
}
.alliance-logo-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
}
.u-section-4 .u-repeater-1 {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.u-section-4 .director-photo {
  background-image: url("images/director-jairo-veloza-gonzalez.jpeg") !important;
  background-size: cover !important;
  background-position: center 24% !important;
}
.social-tiktok-link svg { display: block; }
@media (max-width: 1050px) {
  .alliance-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .alliance-section { padding: 42px 14px 52px; }
  .alliance-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .alliance-logo-card { min-height: 145px; padding: 10px; }
  .alliance-logo-card img { height: 120px; }
}
@media (max-width: 430px) {
  .alliance-logo-grid { grid-template-columns: minmax(0, 1fr); }
}
