@font-face {
  font-family: "govco-font";
  src: url("https://cdn.www.gov.co/v4/assets/icons/fonts/govco-font-icons.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Arial, sans-serif;
  color: #1b1b1b;
  background: #fff;
}

.govco-skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 3000;
  background: #fff;
  color: #0943b5;
  padding: .75rem 1rem;
  border: 2px solid #0943b5;
  border-radius: .25rem;
  font-weight: 700;
}

.govco-skip-link:focus {
  top: 1rem;
}

.barra-superior-govco {
  background-color: #0943b5;
  width: 100%;
  height: 3.5rem;
  padding-left: 3.75rem;
  position: relative;
  display: flex;
  align-items: center;
}

.barra-superior-govco a {
  content: url("Imagenes/Logo GOV.svg");
  height: 2.25rem;
}

.barra-superior-govco a:focus-visible,
.usp-header a:focus-visible,
.usp-main-nav a:focus-visible,
.usp-menu-toggle:focus-visible,
.usp-accessibility button:focus-visible,
.usp-back-top:focus-visible,
.usp-govco-footer a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.barra-accesibilidad-govco.usp-accessibility {
  width: 48px;
  min-height: 143px;
  position: fixed;
  right: 0;
  top: 35%;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background-color: #004884 !important;
  border-radius: 10px 0 0 10px;
  padding: 12px 0 20px;
  overflow: visible;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.barra-accesibilidad-govco button {
  position: relative;
  width: 48px;
  height: 40px;
  min-width: 48px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: #004884;
  color: #004884;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transform: none !important;
}

.barra-accesibilidad-govco button::after {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #fff;
  color: #004884;
  border-radius: 5px;
  font-family: Arial, Verdana, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.barra-accesibilidad-govco .icon-contraste::after {
  content: "";
  border: 2px solid #fff;
  background: linear-gradient(90deg, #004884 0 50%, #fff 50% 100%);
  box-shadow: inset 0 0 0 2px #004884;
}

.barra-accesibilidad-govco .icon-reducir::after {
  content: "A-";
}

.barra-accesibilidad-govco .icon-aumentar::after {
  content: "A+";
}

.barra-accesibilidad-govco button span {
  position: absolute;
  right: 48px;
  top: 0;
  width: 172px;
  min-height: 40px;
  padding: 10px 12px;
  background: #3366cc;
  color: #fff;
  border-radius: 10px 0 0 10px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.barra-accesibilidad-govco button:hover,
.barra-accesibilidad-govco button:focus,
.barra-accesibilidad-govco button.active-barra-accesibilidad-govco {
  background: #3366cc;
}

.barra-accesibilidad-govco button:hover::after,
.barra-accesibilidad-govco button:focus::after,
.barra-accesibilidad-govco button.active-barra-accesibilidad-govco::after {
  color: #3366cc;
}

.barra-accesibilidad-govco .icon-contraste:hover::after,
.barra-accesibilidad-govco .icon-contraste:focus::after,
.barra-accesibilidad-govco .icon-contraste.active-barra-accesibilidad-govco::after {
  background: linear-gradient(90deg, #3366cc 0 50%, #fff 50% 100%);
  box-shadow: inset 0 0 0 2px #3366cc;
}

.barra-accesibilidad-govco button:hover span,
.barra-accesibilidad-govco button:focus span,
.barra-accesibilidad-govco button:focus-visible span {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

body.usp-high-contrast .barra-accesibilidad-govco.usp-accessibility,
body.usp-high-contrast .barra-accesibilidad-govco button {
  background: #000 !important;
}

body.usp-high-contrast .barra-accesibilidad-govco button span {
  background: #000;
  color: #ffd600;
  border: 1px solid #fff;
}

@media (max-width: 575px) {
  .barra-accesibilidad-govco.usp-accessibility {
    top: auto;
    bottom: 5.5rem;
  }
}

.usp-header {
  position: static !important;
  background: #fff !important;
  color: #1b1b1b !important;
  padding: 0 !important;
  display: block !important;
  border-bottom: 1px solid #e5ecf8;
}

.usp-header__inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 6.5rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(260px, 1fr) minmax(140px, 220px);
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
}

.usp-header__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.usp-header__brand--left {
  justify-content: flex-start;
}

.usp-header__brand--right {
  justify-content: flex-end;
}

.usp-header__brand img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 72px;
  object-fit: contain;
}

.usp-header__brand--left img {
  object-position: left center;
}

.usp-header__brand--right img {
  object-position: right center;
}

.usp-header__title {
  min-width: 0;
  text-align: center;
}

.usp-header__title span {
  display: block;
  color: #4c4c4c;
  font-family: Verdana, Arial, sans-serif;
  font-size: .95rem;
}

.usp-header__title strong {
  display: block;
  color: #0943b5;
  font-family: "Nunito Sans", Verdana, Arial, sans-serif;
  font-size: 1.85rem;
  line-height: 1.1;
}

.usp-header__title p {
  margin: .35rem 0 0;
  color: #4c4c4c;
  font-size: .78rem;
}

.usp-main-nav {
  background: #f6f8fc;
  border-top: 1px solid #e5ecf8;
}

.usp-main-nav__inner {
  width: min(1320px, calc(100% - 1rem));
  margin: 0 auto;
}

.usp-menu-toggle {
  display: none;
  min-height: 44px;
  border: 0;
  background: #0943b5;
  color: #fff;
  padding: .65rem 1rem;
  font-weight: 700;
  border-radius: .25rem;
}

.usp-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
}

.usp-nav-list li {
  margin: 0;
}

.usp-nav-list a {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  padding: .62rem .62rem;
  color: #0943b5;
  text-decoration: none;
  font-family: "Nunito Sans", Verdana, Arial, sans-serif;
  font-size: .92rem;
  font-weight: 700;
  border-bottom: 4px solid transparent;
}

.usp-nav-list a:hover,
.usp-nav-list a[aria-current="page"] {
  background: #e5ecf8;
  border-bottom-color: #0943b5;
}

.usp-page-main {
  min-height: 48vh;
}

.usp-govco-footer {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  background: #0943b5 !important;
  color: #fff !important;
  text-align: left !important;
  padding: 2.25rem 0 !important;
  margin-top: 2.5rem;
}

.usp-govco-footer__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
}

.usp-govco-footer__logos {
  display: grid;
  gap: 1rem;
  align-items: start;
  border-right: 2px solid rgba(255, 255, 255, .75);
  padding-right: 1.5rem;
}

.usp-govco-footer__logos img {
  max-width: 240px;
  max-height: 58px;
  object-fit: contain;
  background: #fff;
  padding: .35rem .5rem;
  border-radius: .25rem;
}

.usp-footer-government {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .25rem;
}

.usp-footer-government img {
  background: transparent;
  padding: 0;
  border-radius: 0;
  filter: none;
}

.usp-footer-separator {
  display: inline-block;
  width: 1px;
  height: 44px;
  background: #e5eefb;
}

.usp-govco-footer__logos .usp-footer-co {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
}

.usp-govco-footer__logos .usp-footer-govco {
  width: 132px;
  height: 30px;
  max-width: 132px;
  max-height: 30px;
}

.usp-govco-footer h2 {
  color: #fff;
  font-family: "Nunito Sans", Verdana, Arial, sans-serif;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.usp-govco-footer p,
.usp-govco-footer li {
  color: #fff !important;
  font-size: .95rem !important;
  line-height: 1.55;
}

.usp-govco-footer ul {
  padding-left: 1.15rem;
  margin: 1rem 0;
}

.usp-govco-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.usp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: 1.25rem;
}

.usp-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  width: 3.375rem;
  height: 3.375rem;
  border: 0;
  border-radius: 50%;
  background: #0943b5;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(9, 67, 181, .28);
}

.usp-back-top:hover {
  background: #4672c8;
}

body.usp-high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.usp-high-contrast .usp-page-main,
body.usp-high-contrast .container,
body.usp-high-contrast .content,
body.usp-high-contrast .content-section {
  background: #000 !important;
  color: #fff !important;
}

body.usp-high-contrast a {
  color: #ffe066;
}

@media (max-width: 1100px) {
  .barra-superior-govco {
    justify-content: center;
    padding-left: 0;
  }

  .usp-header__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: .8rem 1rem;
  }

  .usp-header__brand img {
    max-width: 160px;
    height: 58px;
  }

  .usp-header__title {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
  }

  .usp-menu-toggle {
    display: inline-flex;
    align-items: center;
    margin: .75rem 0;
  }

  .usp-nav-list {
    display: none;
    flex-direction: column;
    padding-bottom: .75rem;
  }

  .usp-nav-list.is-open {
    display: flex;
  }

  .usp-nav-list a {
    min-height: 44px;
    border-left: 4px solid transparent;
    border-bottom: 0;
  }

  .usp-nav-list a:hover,
  .usp-nav-list a[aria-current="page"] {
    border-left-color: #0943b5;
    border-bottom: 0;
  }

  .usp-govco-footer__inner {
    grid-template-columns: 1fr;
  }

  .usp-govco-footer__logos {
    border-right: 0;
    border-bottom: 2px solid rgba(255, 255, 255, .75);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
}

/* Evita que logos heredados se desborden dentro del contenido. */
.usp-page-main img[src*="PNG_LOGO_AGRICULTURA"],
.usp-page-main img[src*="MinAgricultura"] {
  max-width: 260px;
  height: auto;
}



/* Accesibilidad GOV.CO v4: contraste y tamanos de fuente. */
body.usp-font-up-1 .usp-page-main { font-size: 112% !important; }
body.usp-font-up-2 .usp-page-main { font-size: 124% !important; }
body.usp-font-up-3 .usp-page-main { font-size: 136% !important; }
body.usp-font-down-1 .usp-page-main { font-size: 92% !important; }
body.usp-font-down-2 .usp-page-main { font-size: 84% !important; }

body.usp-high-contrast,
body.usp-high-contrast .usp-page-main,
body.usp-high-contrast .usp-header,
body.usp-high-contrast .usp-main-nav,
body.usp-high-contrast .usp-main-nav__inner,
body.usp-high-contrast .usp-govco-footer {
  background: #000 !important;
  color: #fff !important;
}

body.usp-high-contrast .usp-header,
body.usp-high-contrast .usp-main-nav,
body.usp-high-contrast .usp-govco-footer {
  border-color: #fff !important;
}

body.usp-high-contrast .usp-header__title strong,
body.usp-high-contrast .usp-header__title span,
body.usp-high-contrast .usp-header__title p,
body.usp-high-contrast .usp-nav-list a,
body.usp-high-contrast .usp-govco-footer p,
body.usp-high-contrast .usp-govco-footer li,
body.usp-high-contrast .usp-govco-footer h2 {
  color: #fff !important;
}

body.usp-high-contrast a,
body.usp-high-contrast .usp-nav-list a:hover,
body.usp-high-contrast .usp-nav-list a[aria-current="page"] {
  color: #ffd600 !important;
}

body.usp-high-contrast .usp-nav-list a:hover,
body.usp-high-contrast .usp-nav-list a[aria-current="page"] {
  background: #1a1a1a !important;
  border-color: #ffd600 !important;
}
