/* OSLOC | Header corporativo 2026 | Solo tema de borrador */
:root {
  --osloc-deep: #062A40;
  --osloc-corporate: #0A4B73;
  --osloc-accent: #0F628C;
  --osloc-ice: #D9EAF2;
  --osloc-white: #FEFEFE;
  --osloc-steel: #6F7F88;
}
html { scroll-behavior: smooth; }
#servicios, #modelo-de-trabajo, #contacto, #clientes, #equipo { scroll-margin-top: 100px; }
#header.osloc-header {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 100000;
  width: 100%;
  margin: 0;
  border: 0;
  background: var(--osloc-white) !important;
  box-shadow: 0 1px 0 rgba(6,42,64,.09), 0 6px 22px rgba(6,42,64,.035);
  transition: box-shadow .25s ease;
  font-family: 'Poppins', sans-serif;
}
body.admin-bar #header.osloc-header { top: 32px; }
#header.osloc-header.is-compact { box-shadow: 0 2px 20px rgba(6,42,64,.12); }
#header.osloc-header .osloc-header__inner {
  width: min(100% - 44px, 1220px) !important;
  max-width: 1220px !important;
  min-height: 94px;
  margin-inline: auto;
  padding: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  transition: min-height .25s ease;
}
#header.osloc-header.is-compact .osloc-header__inner { min-height: 67px; }
#header.osloc-header .osloc-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-decoration: none;
}
#header.osloc-header .osloc-header__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 214px;
  max-height: 82px;
  object-fit: contain;
  transition: max-height .25s ease, max-width .25s ease;
}
#header.osloc-header.is-compact .osloc-header__logo {
  max-width: 172px;
  max-height: 58px;
}
#header.osloc-header .osloc-header__brand-text {
  font-weight: 700;
  color: var(--osloc-deep);
  font-size: 30px;
  letter-spacing: .04em;
}
#header.osloc-header .osloc-header__navigation { margin-left: auto; }
#header.osloc-header ul.osloc-header__links {
  display: flex;
  align-items: center;
  gap: clamp(15px, 1.8vw, 31px);
  list-style: none;
  margin: 0;
  padding: 0;
}
#header.osloc-header ul.osloc-header__links > li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
#header.osloc-header ul.osloc-header__links > li > a,
#header.osloc-header .osloc-header__group-top > a,
#header.osloc-header .osloc-header__pending {
  display: inline-block;
  padding: 17px 0;
  border: 0;
  background: none;
  color: var(--osloc-deep) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .012em;
  text-decoration: none !important;
  text-transform: none !important;
  transition: color .2s ease;
  white-space: nowrap;
}
#header.osloc-header ul.osloc-header__links a:hover,
#header.osloc-header ul.osloc-header__links a:focus-visible {
  color: var(--osloc-accent) !important;
}
#header.osloc-header .osloc-header__pending {
  color: var(--osloc-steel) !important;
  cursor: not-allowed;
}
#header.osloc-header .osloc-header__group-top {
  display: flex;
  align-items: center;
  gap: 3px;
}
#header.osloc-header .osloc-header__submenu-toggle {
  min-width: 26px;
  min-height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--osloc-deep);
  background: transparent;
  border: 0;
  padding: 5px;
  margin: 0;
  cursor: pointer;
}
#header.osloc-header .osloc-header__submenu-toggle svg { transition: transform .2s ease; }
#header.osloc-header .osloc-header__group.is-open .osloc-header__submenu-toggle svg { transform: rotate(180deg); }
#header.osloc-header .osloc-header__submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: -18px;
  z-index: 20;
  min-width: 222px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--osloc-white);
  border: 1px solid rgba(6,42,64,.09);
  border-radius: 5px;
  box-shadow: 0 18px 34px rgba(6,42,64,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
#header.osloc-header .osloc-header__group:hover > .osloc-header__submenu,
#header.osloc-header .osloc-header__group:focus-within > .osloc-header__submenu,
#header.osloc-header .osloc-header__group.is-open > .osloc-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
#header.osloc-header .osloc-header__submenu li { margin: 0; padding: 0; list-style: none; }
#header.osloc-header .osloc-header__submenu a {
  display: block;
  padding: 11px 14px;
  border-radius: 3px;
  font: 500 12.5px/1.5 'Poppins',sans-serif;
  color: var(--osloc-deep) !important;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
#header.osloc-header .osloc-header__submenu a:hover,
#header.osloc-header .osloc-header__submenu a:focus-visible {
  background: var(--osloc-ice);
  color: var(--osloc-corporate) !important;
}
#header.osloc-header .osloc-header__submenu-separator {
  border-top: 1px solid var(--osloc-ice);
  margin-top: 4px !important;
  padding-top: 4px !important;
}
.osloc-header__spacer { height: 94px; }
#header.osloc-header .osloc-header__toggle { display: none; }
#header.osloc-header a:focus-visible,
#header.osloc-header button:focus-visible {
  outline: 2px solid var(--osloc-accent);
  outline-offset: 3px;
}
@media (max-width: 991px) {
  #header.osloc-header .osloc-header__inner { min-height: 76px; width: calc(100% - 36px) !important; }
  #header.osloc-header.is-compact .osloc-header__inner { min-height: 63px; }
  #header.osloc-header .osloc-header__logo { max-height: 68px; max-width: 176px; }
  #header.osloc-header.is-compact .osloc-header__logo { max-height: 56px; max-width: 148px; }
  .osloc-header__spacer { height: 76px; }
  #header.osloc-header .osloc-header__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--osloc-ice);
    border-radius: 6px;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }
  #header.osloc-header .osloc-header__toggle span {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--osloc-deep);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  #header.osloc-header.menu-open .osloc-header__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  #header.osloc-header.menu-open .osloc-header__toggle span:nth-child(2) { opacity: 0; }
  #header.osloc-header.menu-open .osloc-header__toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  #header.osloc-header .osloc-header__navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: min(76vh, 630px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--osloc-white);
    border-top: 1px solid var(--osloc-ice);
    box-shadow: 0 18px 24px rgba(6,42,64,.09);
  }
  #header.osloc-header.menu-open .osloc-header__navigation { display: block; }
  #header.osloc-header ul.osloc-header__links {
    display: block;
    padding: 12px 22px 20px;
  }
  #header.osloc-header ul.osloc-header__links > li { border-bottom: 1px solid rgba(6,42,64,.07); }
  #header.osloc-header ul.osloc-header__links > li > a,
  #header.osloc-header .osloc-header__group-top > a,
  #header.osloc-header .osloc-header__pending { display: block; padding: 15px 5px; font-size: 14px; }
  #header.osloc-header .osloc-header__group-top > a { flex: 1; }
  #header.osloc-header .osloc-header__submenu-toggle { min-width: 46px; min-height: 46px; }
  #header.osloc-header .osloc-header__submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    width: 100%;
    min-width: 0;
    padding: 2px 0 10px 12px;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: var(--osloc-white);
  }
  #header.osloc-header .osloc-header__group:hover > .osloc-header__submenu,
  #header.osloc-header .osloc-header__group:focus-within > .osloc-header__submenu {
    display: none;
  }
  #header.osloc-header .osloc-header__group.is-open > .osloc-header__submenu { display: block; }
  #header.osloc-header .osloc-header__submenu a { font-size: 13px; padding: 12px; }
  #servicios,#modelo-de-trabajo,#contacto,#clientes,#equipo { scroll-margin-top: 82px; }
}
@media (max-width: 782px) {
  body.admin-bar #header.osloc-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #header.osloc-header *, #header.osloc-header { transition-duration: .01ms !important; }
}
