/* BON GON V10.3 REV16 — carrusel de colecciones a ancho completo.
   Cuatro paneles visibles en escritorio, loop infinito y autoplay gestionados por JS. */
.home-collection--carousel {
  background: #574e47;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.home-collection--carousel .home-collection-carousel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-collection-carousel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: clamp(30px, 3.2vw, 48px) clamp(26px, 4.6vw, 72px) clamp(24px, 2.7vw, 38px);
  box-sizing: border-box;
}

.home-collection--carousel .home-collection__title {
  margin: 0;
  padding: 0;
  color: #f9f5ef;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 3.7vw, 58px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: .005em;
}

.home-collection-carousel__intro {
  margin: 9px 0 0;
  color: rgba(249,245,239,.74);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-collection-carousel__controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.home-collection-carousel__button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.home-collection-carousel__button:hover,
.home-collection-carousel__button:focus-visible {
  background: #f9f5ef;
  color: #574e47;
  border-color: #f9f5ef;
  transform: translateY(-1px);
}

.home-collection-carousel__button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-collection-carousel__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.home-collection-carousel__viewport::-webkit-scrollbar { display: none; }

.home-collection-carousel__track {
  --collection-gap: 0px;
  display: flex;
  gap: var(--collection-gap);
  width: 100%;
  min-width: 0;
}

.home-collection-carousel__card {
  position: relative;
  flex: 0 0 25%;
  aspect-ratio: 2025 / 2850;
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
  background: #eee8df;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  isolation: isolate;
}

.home-collection-carousel__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 58%, rgba(20,14,12,.52) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.home-collection-carousel__card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.home-collection-carousel__action {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.home-collection-carousel__action::after {
  content: '→';
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

.home-collection-carousel__card:hover::after,
.home-collection-carousel__card:focus-visible::after { opacity: 1; }
.home-collection-carousel__card:hover img,
.home-collection-carousel__card:focus-visible img { transform: scale(1.025); filter: brightness(.94); }
.home-collection-carousel__card:hover .home-collection-carousel__action,
.home-collection-carousel__card:focus-visible .home-collection-carousel__action { opacity: 1; transform: translateY(0); }
.home-collection-carousel__card:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

.home-collection-carousel__mobile-hint { display: none; }

@media (max-width: 1023px) {
  .home-collection-carousel__card { flex-basis: 50%; }
  .home-collection-carousel__header {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 767px) {
  .home-collection-carousel__header {
    align-items: center;
    padding: 26px 18px 18px;
    gap: 12px;
  }

  .home-collection--carousel .home-collection__title {
    font-size: clamp(30px, 9.4vw, 40px);
    line-height: .98;
  }

  .home-collection-carousel__intro {
    margin-top: 6px;
    max-width: 250px;
    font-size: 9px;
    line-height: 1.45;
    letter-spacing: .08em;
  }

  .home-collection-carousel__controls { display: none; }

  .home-collection-carousel__viewport {
    padding-inline: 14px;
    scroll-padding-inline: 14px;
  }

  .home-collection-carousel__track {
    --collection-gap: 10px;
  }

  .home-collection-carousel__card {
    flex-basis: min(84vw, 350px);
    border-radius: 2px;
  }

  .home-collection-carousel__card::after { opacity: .14; }
  .home-collection-carousel__action { display: none; }

  .home-collection-carousel__mobile-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 11px 18px 17px;
    color: rgba(249,245,239,.72);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .home-collection-carousel__mobile-arrow { font-size: 17px; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-collection-carousel__viewport { scroll-behavior: auto; }
  .home-collection-carousel__card img,
  .home-collection-carousel__button,
  .home-collection-carousel__action { transition: none; }
}
