/*===== CARRUSEL AÑOS SEBASTIANE =====*/
.carrusel-anios {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-top: -18px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 7%;
  position: relative;
}
.banner:empty {
  display: none;
}

.banner:empty + .carrusel-anios {
  margin-top: 8px;
}


/* ===== TIRA DE PELÍCULA ===== */
#scroll-anios {
  position: relative;
  display: flex;
  align-items: center;
  width: 78%;
  max-width: 950px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  background: #080808;
  padding: 16px 5px;
  box-sizing: border-box;
  scrollbar-width: none;
  isolation: isolate;
}


/* perforaciones superiores */
#scroll-anios button::before,
#scroll-anios button::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #bfc0c2 0px,
    #bfc0c2 7px,
    transparent 7px,
    transparent 15px
  );
  pointer-events: none;
}
#scroll-anios button::before {
  top: -12px;
}
#scroll-anios button::after {
  bottom: -12px;
}

/* ===== BOTONES DE AÑOS ===== */
#scroll-anios button {

    position: relative;
    flex: 0 0 115px;
    height: 44px;
    border: none;
    border-left: 4px solid #080808;
    border-right: 4px solid #080808;
    background: linear-gradient(
        135deg,
        #292929,
        #171717
  );
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

/* Hover */
#scroll-anios button:hover {
  background: #383838;
}

/* Año seleccionado */
#scroll-anios button.active {
  background: linear-gradient(
    135deg,
    var(--color-principal),
    #6f43a0
  );
  color: white;
}

/* ===== FLECHAS FLOTANTES ===== */
.carrusel-anios .flecha {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(30, 30, 30, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.carrusel-anios .flecha:hover {
  background: var(--color-principal);
  border-color: var(--color-principal);
  transform: scale(1.07);
}

/* anulamos las posiciones antiguas */
.carrusel-anios .flecha.izquierda {
  left: auto;
}

.carrusel-anios .flecha.derecha {
  right: auto;
}
