/* Dots original del prototipo v3. Sin reglas globales ni cambios a carruseles. */
.psc-dots-rail {
  position: fixed;
  z-index: 99990;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0;
  padding: 3px 0;
  border-radius: 5px;
  background: rgba(233, 238, 242, 0.78);
  backdrop-filter: blur(8px);
}
.psc-dots-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  cursor: pointer;
}
.psc-dots-glyph {
  display: block;
  flex: none;
  box-sizing: border-box;
  transition:
    width 0.18s,
    height 0.18s,
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
.psc-dots-index {
  display: none;
}
.psc-dots-glyph {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #73878e;
}
:is(.psc-dots-rail, .psc-dots-menu) a[aria-current="location"] .psc-dots-glyph {
  width: 7px;
  height: 7px;
  background: #a46c48;
  box-shadow: 0 0 0 4px rgba(164, 108, 72, 0.12);
}
.psc-dots-rail a:hover .psc-dots-glyph {
  background: #a46c48;
  box-shadow: 0 0 0 4px rgba(164, 108, 72, 0.12);
}
.psc-dots-label {
  position: absolute;
  top: 50%;
  right: 51px;
  transform: translate(4px, -50%);
  opacity: 0;
  pointer-events: none;
  background: #17333d;
  color: #f1f3ef;
  white-space: nowrap;
  font:
    12px/1.2 "Avenir Next",
    Arial,
    sans-serif;
  letter-spacing: 0.02em;
  padding: 10px 13px;
  border-radius: 3px;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.psc-dots-rail a:hover .psc-dots-label,
.psc-dots-rail a:focus-visible .psc-dots-label {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}
.psc-dots-label:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 12px;
  height: 100%;
}
.psc-dots-rail[data-labels-hidden] a .psc-dots-label {
  opacity: 0;
  pointer-events: none;
}
.psc-dots-rail a:focus-visible,
.psc-dots-menu-button:focus-visible,
.psc-dots-menu a:focus-visible,
.psc-dots-close:focus-visible {
  outline: 3px solid #a46a46;
  outline-offset: 3px;
  border-radius: 3px;
}
.psc-dots-menu-button {
  display: none;
}
.psc-dots-menu {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(16, 35, 43, 0.32);
  color: #17333d;
  padding: max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  align-items: flex-end;
  justify-content: flex-end;
}
.psc-dots-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 390px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #e9eef2;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 12px 50px #17333d33;
  animation: psc-dots-enter 0.2s ease-out;
}
@keyframes psc-dots-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.psc-dots-menu[open] {
  display: flex;
}
.psc-dots-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #c7d0d1;
  padding-bottom: 22px;
  margin-bottom: 14px;
}
.psc-dots-menu-top strong {
  font:
    37px/1 Georgia,
    serif;
  letter-spacing: -3px;
}
.psc-dots-close {
  color: #17333d;
  border: 1px solid #c7d0d1;
  background: transparent;
  padding: 12px 16px;
  font:
    13px "Avenir Next",
    Arial,
    sans-serif;
  cursor: pointer;
  min-height: 44px;
}
.psc-dots-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 16px;
  padding: 12px 0;
  min-height: 54px;
  border-bottom: 1px solid #c7d0d1;
  text-decoration: none;
  color: #17333d;
  font:
    26px/1.2 Georgia,
    serif;
  letter-spacing: -0.6px;
}
.psc-dots-menu a[aria-current="location"] {
  color: #9a6341;
}
.psc-dots-menu p {
  font:
    11px/1.6 "Avenir Next",
    Arial,
    sans-serif;
  margin: 24px 0 0;
  color: #65777c;
}
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .psc-dots-rail {
    display: none;
  }
  .psc-dots-menu-button {
    position: fixed;
    z-index: 99993;
    right: 16px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 16px;
    background: #17333d;
    color: #eef2f1;
    border: 1px solid rgba(239, 241, 239, 0.25);
    border-radius: 30px;
    font:
      12px "Avenir Next",
      Arial,
      sans-serif;
    box-shadow: 0 3px 18px #17333d22;
    cursor: pointer;
  }
  .psc-dots-menu-icon {
    display: grid;
    gap: 4px;
    width: 19px;
  }
  .psc-dots-menu-icon:before,
  .psc-dots-menu-icon:after {
    content: "";
    height: 1px;
    background: currentColor;
  }
}
@media (max-width: 360px) {
  .psc-dots-menu-button {
    gap: 9px;
    padding: 12px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .psc-dots-rail * {
    transition: none !important;
  }
}

.psc-dots-menu {
  box-sizing: border-box;
}
.psc-dots-menu-button {
  bottom: max(18px, env(safe-area-inset-bottom));
}
.psc-dots-menu-button {
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}
.psc-dots-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psc-dots-menu-title,
.psc-dots-menu-icon {
  flex-shrink: 0;
}

/* Compact desktop handle; expand on pointer hover or keyboard focus. */
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .psc-dots-rail {
    width: 44px;
    height: 44px;
    padding: 0;
    box-sizing: border-box;
    transition:
      height 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease;
  }
  .psc-dots-rail:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 4px;
    height: 24px;
    border-radius: 4px;
    background: #a46c48;
    transform: translateY(-50%);
    opacity: 0.65;
    transition: opacity 0.15s;
  }
  .psc-dots-links {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.15s,
      visibility 0.15s;
  }
  .psc-dots-rail:is(:hover, :focus-within) {
    height: 314px;
    padding: 3px 0;
    background: rgba(233, 238, 242, 0.92);
    box-shadow: 0 4px 20px #17333d10;
  }
  .psc-dots-rail:is(:hover, :focus-within):before {
    opacity: 0;
  }
  .psc-dots-rail:is(:hover, :focus-within) .psc-dots-links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.08s;
  }
  .psc-dots-rail:focus-visible {
    outline: 2px solid #a46c48;
    outline-offset: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .psc-dots-rail,
  .psc-dots-rail:before,
  .psc-dots-links {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psc-dots-panel {
    animation: none;
  }
}
