/* LPDO REV 1.43 - Header oficial estable
   Header único para Inicio, Carta y Pedir.
   No reconstruye contenido. No depende de JS.
*/

.lpdo-header-oficial {
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  min-height: 86px;
  background: #fbf6ef;
  border-bottom: 1px solid rgba(54, 32, 18, .12);
  box-shadow: none;
}

.lpdo-header-oficial__inner {
  width: 100%;
  min-height: 86px;
  box-sizing: border-box;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 160px minmax(520px, 1fr) 190px;
  align-items: center;
  gap: 22px;
}

.lpdo-header-oficial__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.lpdo-header-oficial__brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 106px;
  object-fit: contain;
}

.lpdo-header-oficial__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.lpdo-header-oficial__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 14px;
  color: #111321;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  border: 0;
}

.lpdo-header-oficial__nav a:hover {
  color: #c96b32;
}

.lpdo-header-oficial__nav a.is-active {
  color: #c96b32;
}

.lpdo-header-oficial__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: #c96b32;
}

.lpdo-header-oficial__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lpdo-header-oficial__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: #c96b32;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(201, 107, 50, .18);
}

.lpdo-header-oficial__cta:hover {
  background: #b85f2b;
  color: #fff;
}

@media (max-width: 900px) {
  .lpdo-header-oficial {
    min-height: 76px;
  }

  .lpdo-header-oficial__inner {
    min-height: 76px;
    padding: 0 16px;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .lpdo-header-oficial__brand img {
    max-height: 54px;
    max-width: 82px;
  }

  .lpdo-header-oficial__nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .lpdo-header-oficial__nav::-webkit-scrollbar {
    display: none;
  }

  .lpdo-header-oficial__nav a {
    font-size: 13px;
  }

  .lpdo-header-oficial__cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }
}

/* LPDO REV 1.45 - Pedir header: Clientes + Bolsa */
.lpdo-header-oficial__actions--pedir {
  gap: 10px;
}

.lpdo-header-oficial__client {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff8ef;
  color: #111321;
  border: 1px solid rgba(54, 32, 18, .14);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.lpdo-header-oficial__client:hover {
  color: #c96b32;
  border-color: rgba(201, 107, 50, .45);
}

.lpdo-header-oficial__bag {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c96b32;
  color: #fff;
  border: 0;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(201, 107, 50, .18);
}

.lpdo-header-oficial__bag:hover {
  background: #b85f2b;
}

.lpdo-header-oficial__bag strong {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: #c96b32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

@media (max-width: 900px) {
  .lpdo-header-oficial__client {
    display: none;
  }

  .lpdo-header-oficial__bag {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .lpdo-header-oficial__bag span:nth-child(2) {
    display: none;
  }
}
