/* Pinning horizontal catalog: vertical scroll on main drives translateX on the track. */

.section--lanzamientos-pin {
  width: 100%;
  min-height: min-content;
  padding-bottom: clamp(2rem, 8vw, 4rem);
}

.section--lanzamientos-pin .section-header {
  text-align: center;
  width: 100%;
}

.pin-scroller {
  --pin-count: 2;
  /* Vertical scroll distance per release (higher = slower horizontal scrub). */
  --pin-scroll-vh-per-panel: 115;
  position: relative;
  width: 100%;
  height: calc(var(--pin-count) * var(--pin-scroll-vh-per-panel) * 1dvh);
  margin-top: 0.5rem;
}

.pin-stage {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  container-type: inline-size;
  container-name: pin-stage;
}

.pin-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  column-gap: clamp(1.25rem, 4vw, 3rem);
  width: max-content;
  min-width: 100%;
  will-change: transform;
}

/* Each card is 95% of the stage width; 5% of the next card peeks at the edge. */
.pin-panel {
  flex: 0 0 95cqi;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(0.5rem, 2.5vw, 1.25rem);
}

.pin-panel__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--bpn-text);
  width: 100%;
  max-width: 100%;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.pin-panel__link:hover,
.pin-panel__link:focus-visible {
  opacity: 0.88;
}

.pin-panel__link:focus-visible {
  outline: 2px solid var(--bpn-text);
  outline-offset: 4px;
}

.pin-panel .lanzamiento-id {
  margin: 0;
  width: 100%;
  font-size: clamp(1.35rem, 4.2cqi, 2rem);
  line-height: 1.15;
  text-wrap: balance;
}

@supports (text-wrap: pretty) {
  .pin-panel .lanzamiento-id {
    text-wrap: pretty;
  }
}

.pin-panel__title {
  margin: 0;
  width: 100%;
  max-width: min(100%, 22ch);
  margin-inline: auto;
  font-size: clamp(1.85rem, 5.5cqi, 3rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}

@supports (text-wrap: pretty) {
  .pin-panel__title {
    text-wrap: pretty;
  }
}

.pin-panel .lanzamiento-image {
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(52dvh, 640px);
  aspect-ratio: 1;
  object-fit: cover;
}

.pin-stage__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.75rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
  pointer-events: none;
}

.pin-hint {
  margin: 0;
  font-family: "Roobert-Regular", sans-serif;
  font-size: clamp(0.7rem, 2cqi, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bpn-text);
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.pin-hint.pin-hint--dimmed {
  opacity: 0.2;
}

.pin-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  pointer-events: auto;
}

.pin-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--bpn-text);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pin-dot:hover,
.pin-dot:focus-visible {
  transform: scale(1.15);
}

.pin-dot:focus-visible {
  outline: 2px solid var(--bpn-text);
  outline-offset: 3px;
}

.pin-dot.is-active {
  background: var(--bpn-text);
}

@media (prefers-reduced-motion: reduce) {
  .pin-hint {
    transition: none;
  }

  .pin-dot {
    transition: none;
  }

  .pin-dot:hover,
  .pin-dot:focus-visible {
    transform: none;
  }

  .pin-scroller {
    height: auto;
    margin-top: 1rem;
  }

  .pin-stage {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .pin-track {
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
    will-change: auto;
    gap: clamp(3.5rem, 10vw, 6rem);
    align-items: center;
  }

  .pin-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: min(95vw, 520px);
  }
}
