/* HEADER PRINCIPAL */
.header {
  width: 100%;
  background: linear-gradient(180deg, #3b7d49 0%, #00723F 100%);
  color: #fff;
  position: relative;
  z-index: 9999;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header__gold-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #c98917 0%, #DD971A 50%, #f0b847 100%);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 14px;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand__logo {
  width: 70px;
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand__subtitle {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #DD971A;
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-actions__link {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.top-actions__link:hover {
  color: #DD971A;
}

.top-actions__divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255,255,255,0.35);
}

.lang-btn {
  background-color: #DD971A;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 95px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transition: transform 0.25s ease;
}

.lang-btn {
  background-color: #DD971A;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 95px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transition: transform 0.25s ease;
}

.lang-btn:hover {
  transform: translateY(-2px);
}

.header-nav {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 100%;
  padding: 14px 0 18px;
  position: relative;
  overflow: visible;
}

.nav__item,
.dropdown,
.mega-dropdown,
.dropdown-subitem {
  position: relative;
}

.nav__link,
.nav__button {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  position: relative;
}

.nav__link::after,
.nav__button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #DD971A;
  transition: width 0.25s ease;
}

.nav__link:hover::after,
.nav__button:hover::after,
.nav__link.active::after,
.nav__button.is-active::after,
.nav__item.is-open > .nav__button::after {
  width: 100%;
}

.nav__link:hover,
.nav__button:hover,
.nav__item.is-open > .nav__button {
  color: #fff;
}

.arrow,
.arrow--small {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.nav__item.is-open > .nav__button .arrow {
  transform: rotate(180deg);
}

.dropdown-subitem.is-open > .dropdown-menu__button .arrow--small {
  transform: rotate(90deg);
}

/* DROPDOWN */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 430px;
  display: none;
  background: #000000;
  border: 1px solid rgba(0, 114, 63, 0.10);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
  padding: 12px 0 14px;
  z-index: 99999;
  overflow: hidden;
}

.dropdown-menu::before,
.dropdown-submenu::before {
  content: "";
  display: block;
  width: calc(100% - 34px);
  height: 4px;
  margin: 0 auto 12px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98917 0%, #DD971A 50%, #f0b847 100%);
}

.dropdown-menu__link,
.dropdown-menu__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.35;
  transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.dropdown-menu__link:hover,
.dropdown-menu__button:hover,
.dropdown-menu__link:focus,
.dropdown-menu__button:focus {
  background-color: rgba(0, 114, 63, 0.05);
  color: var(--color-verde-uabc);
  padding-left: 28px;
  outline: none;
}

.dropdown-menu__button {
  position: relative;
}

.dropdown-menu__button .arrow--small {
  font-size: 0.82rem;
  color: #475569;
  transition: transform 0.25s ease, color 0.25s ease;
}

.dropdown-subitem.is-open > .dropdown-menu__button .arrow--small,
.dropdown-subitem:hover > .dropdown-menu__button .arrow--small {
  transform: translateX(3px);
  color: var(--color-verde-uabc);
}

.dropdown-menu__link + .dropdown-menu__link,
.dropdown-menu__button + .dropdown-menu__link,
.dropdown-menu__link + .dropdown-menu__button,
.dropdown-menu__button + .dropdown-menu__button {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.dropdown-submenu .dropdown-menu__link {
  padding: 15px 20px 15px 24px;
  font-size: 0.97rem;
  font-weight: 500;
}

.dropdown-menu__content {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pdf-icon {
  font-size: 1rem;
  line-height: 1;
}

/* SUBMENU */
.dropdown-subitem::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 18px;
  height: 100%;
}

.dropdown-submenu {
  position: absolute;
  top: 10px;
  left: calc(100% + 12px);
  min-width: 270px;
  display: none;
  background: #000000;
  border: 1px solid rgba(0, 114, 63, 0.10);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 100000;
  overflow: hidden;
}

.dropdown-submenu .dropdown-menu__link {
  padding: 16px 20px 16px 24px;
  font-size: 0.98rem;
  font-weight: 500;
}

.dropdown-subitem.is-open > .dropdown-submenu {
  display: block;
}

.dropdown-menu__button {
  position: relative;
}

.dropdown-menu__button .arrow--small {
  font-size: 0.8rem;
  color: #334155;
  transition: transform 0.25s ease, color 0.25s ease;
}

.dropdown-subitem.is-open > .dropdown-menu__button .arrow--small,
.dropdown-subitem:hover > .dropdown-menu__button .arrow--small {
  transform: translateX(2px);
  color: var(--color-verde-uabc);
}

.pdf-icon {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.9;
  flex-shrink: 0;
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 720px;
  max-width: calc(100vw - 40px);
  min-height: 320px;
  display: none;
  grid-template-columns: 260px 1fr;
  background: #fff;
  border: 1px solid rgba(0, 114, 63, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 100001;
}

.mega-menu--wide {
  width: 780px;
  max-width: calc(100vw - 40px);
}

.mega-dropdown--right > .mega-menu {
  left: auto;
  right: 0;
}

.mega-menu__image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background-color: #e9ece8;
}

.mega-menu__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mega-menu__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.12));
  pointer-events: none;
}

.mega-menu__content {
  display: flex;
  flex-direction: column;
  padding: 22px 0;
  background: #f7f7f7;
}

.mega-menu__content::before {
  content: "";
  display: block;
  width: calc(100% - 48px);
  height: 3px;
  margin: 0 auto 10px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98917 0%, #DD971A 50%, #f0b847 100%);
}

.mega-menu__link {
  display: block;
  padding: 18px 28px;
  color: #1f2d3d;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.mega-menu__link:hover,
.mega-menu__link:focus {
  background-color: rgba(0, 114, 63, 0.08);
  color: #00723F;
  padding-left: 34px;
  outline: none;
}

.dropdown.is-open > .dropdown-menu {
  display: block;
}


.mega-dropdown.is-open > .mega-menu {
  display: grid;
}

/* RESPONSIVO */
@media (min-width: 993px) {
  .dropdown > .dropdown-menu {
    min-width: 440px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 114, 63, 0.10) !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16) !important;
    padding: 12px 0 14px !important;
    overflow: hidden !important;
  }

  .dropdown > .dropdown-menu::before {
    content: "" !important;
    display: block !important;
    width: calc(100% - 34px) !important;
    height: 4px !important;
    margin: 0 auto 12px auto !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #c98917 0%, #DD971A 50%, #f0b847 100%) !important;
  }

  .dropdown > .dropdown-menu .dropdown-menu__link,
  .dropdown > .dropdown-menu .dropdown-menu__button {
    padding: 18px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1f2d3d !important;
    line-height: 1.35 !important;
    background: transparent !important;
    border-top: 1px solid rgba(15, 23, 42, 0.05) !important;
  }

  .dropdown > .dropdown-menu .dropdown-menu__link:first-of-type,
  .dropdown > .dropdown-menu .dropdown-menu__button:first-of-type {
    border-top: none !important;
  }

  .dropdown > .dropdown-menu .dropdown-menu__link:hover,
  .dropdown > .dropdown-menu .dropdown-menu__button:hover,
  .dropdown > .dropdown-menu .dropdown-menu__link:focus,
  .dropdown > .dropdown-menu .dropdown-menu__button:focus {
    background-color: rgba(0, 114, 63, 0.05) !important;
    color: var(--color-verde-uabc) !important;
    padding-left: 28px !important;
  }

  .dropdown-subitem {
    padding: 0 12px 10px 12px !important;
  }

  .dropdown-subitem::after {
    display: none !important;
  }

  .dropdown-subitem > .dropdown-menu__button {
    border-radius: 16px !important;
    background: #f1f5f3 !important;
    border: 1px solid rgba(0,114,63,0.08) !important;
    padding: 16px 18px !important;
    margin-top: 6px !important;
  }

  .dropdown-subitem > .dropdown-menu__button:hover,
  .dropdown-subitem > .dropdown-menu__button:focus {
    background: #edf4f0 !important;
    padding-left: 18px !important;
  }

  .dropdown-menu__button .arrow--small {
    font-size: 0.82rem !important;
    color: #475569 !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
  }

  .dropdown-subitem.is-open > .dropdown-menu__button .arrow--small {
    transform: rotate(90deg) !important;
    color: var(--color-verde-uabc) !important;
  }

  .dropdown-subitem > .dropdown-submenu {
    position: static !important;
    width: 100% !important;
    min-width: unset !important;
    margin: 10px 0 0 0 !important;
    background: #f8fbf9 !important;
    border: 1px solid rgba(0,114,63,0.10) !important;
    border-radius: 18px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35) !important;
    padding: 8px 0 !important;
    overflow: hidden !important;

    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
  }

  .dropdown-subitem.is-open > .dropdown-submenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .dropdown-subitem:hover > .dropdown-submenu,
  .dropdown-subitem:focus-within > .dropdown-submenu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .dropdown-subitem.is-open:hover > .dropdown-submenu,
  .dropdown-subitem.is-open:focus-within > .dropdown-submenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
    .dropdown-subitem:hover > .dropdown-menu__button .arrow--small {
    transform: none !important;
    color: #475569 !important;
  }

  .dropdown-subitem.is-open > .dropdown-menu__button .arrow--small {
    transform: rotate(90deg) !important;
    color: var(--color-verde-uabc) !important;
  }
}
.top-actions__link--tooltip {
  position: relative;
}

.top-actions__link--tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-6px);
  background: #CFCCCC;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 10020;
}

.top-actions__link--tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%) translateY(-6px);
  border-width: 7px;
  border-style: solid;
  border-color: transparent transparent rgba(17, 26, 47, 0.96) transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 10020;
}

.top-actions__link--tooltip:hover::after,
.top-actions__link--tooltip:hover::before,
.top-actions__link--tooltip:focus-visible::after,
.top-actions__link--tooltip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.top-actions__link--tooltip:hover::after,
.top-actions__link--tooltip:hover::before,
.top-actions__link--tooltip:focus-visible::after,
.top-actions__link--tooltip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .top-actions__link--tooltip::after {
    white-space: normal;
    width: 220px;
    text-align: center;
  }
}