/* Barra institucional UV — réplica de la cabecera de www.uv.mx/programacapacitacion/
   Archivo independiente para no afectar estilos ni funciones del repositorio SAF. */
.uv-program-header {
  --uv-header-light: #0e47a1;
  --uv-header-dark: #001f6c;
  position: sticky;
  top: 0;
  z-index: 5000;
  width: 100%;
  color: #fff;
  background: var(--uv-header-dark);
  font-family: Arial, Helvetica, sans-serif !important;
  text-align: left;
  box-shadow: none;
}
.uv-program-header, .uv-program-header * { box-sizing: border-box; }
.uv-program-header a, .uv-program-header button {
  font-family: Arial, Helvetica, sans-serif !important;
}
.uv-program-header a { color: inherit; text-decoration: none; }
.uv-program-topbar {
  height: 26px;
  background: var(--uv-header-light);
  display: flex;
  align-items: center;
  padding: 0 9px;
}
.uv-program-topbar a {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}
.uv-program-topbar a:hover { text-decoration: underline; }
.uv-program-mainbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
  padding: 0 9px;
  background: var(--uv-header-dark);
  border-bottom: 2px solid #005b88;
}
.uv-program-brand {
  display: block;
  flex: 0 1 43%;
  min-width: 0;
  max-width: 43%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
}
.uv-program-brand:hover { text-decoration: underline; }
.uv-program-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  height: 100%;
}
.uv-program-link,
.uv-program-directions-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 53px;
  padding: 7px 5px 10px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.uv-program-link--request { max-width: 330px; }
.uv-program-link--induction { max-width: 150px; }
.uv-program-link--integrity { max-width: 215px; }
.uv-program-link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: #108adb;
}
.uv-program-link:hover,
.uv-program-directions-toggle:hover { color: #dcecff !important; }
.uv-program-link:focus-visible,
.uv-program-directions-toggle:focus-visible,
.uv-program-menu-button:focus-visible,
.uv-program-dropdown a:focus-visible {
  outline: 2px solid #a5e9cd;
  outline-offset: 3px;
}
.uv-program-directions {
  position: relative;
  align-self: center;
}
.uv-program-directions-toggle { gap: 4px; white-space: nowrap; }
.uv-program-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 3px;
}
.uv-program-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  z-index: 5010;
  min-width: 176px;
  margin: 0;
  padding: 7px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d2dce9;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 12px 24px rgba(0, 22, 70, .22);
}
.uv-program-dropdown[hidden] { display: none !important; }
.uv-program-dropdown a {
  display: block;
  padding: 11px 17px;
  font-size: 15px;
  line-height: 1.35;
  color: #172d50 !important;
}
.uv-program-dropdown a:hover { background: #eef5fe; color: #003b70 !important; }
.uv-program-menu-button {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.uv-program-menu-icon {
  width: 20px;
  height: 16px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: relative;
}
.uv-program-menu-icon::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background: #fff;
}
@media (max-width: 1360px) {
  .uv-program-brand { font-size: 19px; }
  .uv-program-links { gap: 7px; }
  .uv-program-link, .uv-program-directions-toggle { font-size: 14px; }
  .uv-program-link--request { max-width: 290px; }
}
@media (max-width: 1050px) {
  .uv-program-mainbar { min-height: 70px; flex-wrap: wrap; padding: 0 13px; gap: 0; }
  .uv-program-brand { max-width: calc(100% - 122px); flex: 1 1 auto; font-size: 18px; }
  .uv-program-menu-button { display: inline-flex; margin-left: auto; }
  .uv-program-links {
    display: none;
    width: calc(100% + 26px);
    flex: 0 0 calc(100% + 26px);
    height: auto;
    margin: 0 -13px;
    padding: 5px 13px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .uv-program-links.is-open { display: flex; }
  .uv-program-link, .uv-program-directions-toggle {
    display: flex;
    max-width: none;
    width: 100%;
    min-height: 42px;
    padding: 10px 7px;
    font-size: 15px;
  }
  .uv-program-link--active::after { bottom: 4px; right: auto; width: 40px; }
  .uv-program-directions { align-self: stretch; }
  .uv-program-dropdown { position: static; box-shadow: none; border-radius: 4px; margin-bottom: 8px; width: 100%; }
}
@media (max-width: 480px) {
  .uv-program-brand { font-size: 15px; }
  .uv-program-topbar a { font-size: 14px; }
  .uv-program-menu-button { font-size: 14px; padding: 8px; }
}
