/* Navegación móvil basada en navgation tabs / LightNavBar de CodeXR. */
.store-dock {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  max-width: calc(100vw - 24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 32px;
  background: rgba(8, 40, 61, 0.94);
  color: #e3f1f5;
  box-shadow:
    0 12px 38px rgba(7, 40, 57, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}
.store-dock[inert] {
  visibility: hidden;
}
.dock-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 64px;
  min-width: 48px;
  min-height: 58px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 19px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.dock-action svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease-out;
}
.dock-action > span:not(.dock-count) {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.dock-action:hover,
.dock-action[aria-current],
.dock-action[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  color: #b8f4ee;
}
.dock-action:focus-visible,
.dock-search-panel button:focus-visible {
  outline: 3px solid #b8f4ee;
  outline-offset: 3px;
}
@media (hover: hover) {
  .dock-action:hover svg {
    transform: translateY(-3px) scale(1.12);
  }
}
.dock-action:active svg {
  transform: scale(0.92);
}
.dock-count) {
  display: none;
}
.store-dock:focus-within .dock-action {
  min-height: 58px;
}
.store-dock:focus-within .dock-action > span:not(.dock-count) {
  display: block;
}
.dock-count {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: 21px;
  padding: 2px 4px;
  border: 2px solid #08283d;
  border-radius: 12px;
  background: #b8f4ee;
  color: #08283d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.dock-count[hidden],
.dock-search-panel[hidden] {
  display: none;
}
.dock-search-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  background: #08283d;
  box-shadow: 0 12px 32px rgba(7, 40, 57, 0.2);
}
.dock-search-panel label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}
.dock-search-panel form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dock-search-panel input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid #a9c8d5;
  border-radius: 10px;
  background: #fff;
  color: #152d3e;
  font-size: 16px;
}
.dock-search-panel input:focus-visible {
  outline: 3px solid #10cdb5;
  outline-offset: 2px;
}
.dock-search-panel button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #b8f4ee;
  color: #08283d;
  font-weight: 700;
  cursor: pointer;
}
.dock-search-panel .dock-search-close {
  flex-basis: 100%;
  background: transparent;
  color: #e3f1f5;
}
@media (max-width: 680px) {
  body {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  }
  .store-toast {
    bottom: calc(124px + env(safe-area-inset-bottom, 0px));
  }
  .store-dock {
    display: flex;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 8px 12px;
    gap: 4px;
  }
  .dock-action {
    width: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock-action svg {
    transition: none;
  }
  .dock-action:hover svg,
  .dock-action:active svg {
    transform: none;
  }
}

/* Recurso: navgation tabs / LightNavBar. Etiquetas siempre visibles. */
.dock-action {
  min-width: 0;
  width: auto;
  border: 0;
  border-radius: 20px;
  color: #4c6070;
  transition:
    background-color 0.18s,
    color 0.18s;
}
.dock-action svg {
  width: 22px;
  height: 22px;
  transition: none;
}
.dock-action:hover svg,
.dock-action:active svg {
  transform: none;
}
.dock-action:hover {
  background: #edf4f7;
  color: #133e57;
}
.dock-action[aria-current],
.dock-action[aria-expanded='true'] {
  background: #0b4b68;
  color: #fff;
}
.dock-action:focus-visible,
.dock-search-panel button:focus-visible {
  outline-color: #087da0;
}
.dock-count {
  border-color: #fff;
  background: #0b4b68;
  color: #fff;
}
.dock-search-panel {
  background: #fff;
  color: #133e57;
  border-color: #d6e2e8;
}
.dock-search-panel button {
  background: #0b4b68;
  color: #fff;
}
.dock-search-panel .dock-search-close {
  background: #edf4f7;
  color: #133e57;
}
@media (max-width: 680px) {
  body {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
  .store-toast {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
  .store-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    width: min(440px, calc(100% - 20px));
    max-width: none;
    padding: 6px;
    border: 1px solid #d6e2e8;
    border-radius: 28px;
    background: #fff;
    color: #133e57;
    box-shadow: 0 8px 28px #07344724;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .dock-action {
    width: auto;
    min-height: 58px;
    padding: 8px 2px;
  }
}
