/* ═══════════════════════════════════════════════
   NUEVOS INGRESOS — CAPO'S LUXURY
   css/arrivals.css  |  Mobile-First · Centered & Clean
   ═══════════════════════════════════════════════ */

/* ══ SECCIÓN PRINCIPAL ═══════════════════════════ */
.arrivals-section {
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.arrivals-section .section-head {
  margin-bottom: 32px;
  padding: 0 clamp(16px, 3vw, 40px);
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

/* ══ SLIDER ══════════════════════════════════════ */
.arrivals-slider {
  position: relative;
  overflow: visible;
  width: 100%;
}

.arrivals-track {
  display: flex;
  gap: clamp(12px, 2vw, 16px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 clamp(16px, 3vw, 40px);
  cursor: grab;
  width: 100%;
  /* Centrar primera tarjeta en móvil */
  scroll-padding-left: clamp(16px, 3vw, 40px);
}

.arrivals-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.arrivals-track::-webkit-scrollbar {
  display: none;
}

/* ══ TARJETA DE PRODUCTO ════════════════════════ */
.arrival-card {
  flex: 0 0 clamp(260px, 30vw, 320px);
  scroll-snap-align: center; /* CENTRAR al hacer scroll */
  display: block;
  border-radius: var(--r-card, 8px);
  overflow: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  background: #fff;
  border: 1px solid var(--border);
  margin: 0 auto; /* Centrado automático */
  text-decoration: none;
}

.arrival-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ══ IMAGEN - CENTRADA Y VISIBLE ════════════════ */
.arrival-img {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--cream-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.arrival-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* VER PRODUCTO COMPLETO */
  object-position: center;
  transition: transform 0.7s var(--ease);
}

.arrival-card:hover .arrival-img img {
  transform: scale(1.03);
}

/* ══ OVERLAY - SIN SOMBRAS OSCURAS ══════════════ */
.arrival-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(14px, 2vw, 20px);
  /* FONDO BLANCO SUAVE - SIN OSCURO QUE TAPE */
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0 0 var(--r-card) var(--r-card);
  transition: background 0.3s;
  z-index: 2;
}

/* ══ CONTENIDO CENTRADO ═════════════════════════ */
.arrival-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: center;
  align-items: center;
}

.arrival-brand {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--gold); /* DORADO PARA CONTRASTE */
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.arrival-name {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 400;
  color: var(--dark); /* TEXTO OSCURO PARA LEGIBILIDAD */
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  line-height: 1.4;
}

.arrival-price {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
  color: var(--dark);
  margin-top: 4px;
  text-align: center;
}

.arrival-cta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  text-align: center;
}

.arrival-card:hover .arrival-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ══ BOTONES DEL SLIDER ════════════════════════ */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.slider-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--dark);
}

.slider-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.slider-arrow:hover svg {
  color: #fff;
}

.sl-prev {
  left: clamp(4px, 1vw, 12px);
}

.sl-next {
  right: clamp(4px, 1vw, 12px);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE - MÓVIL (CENTRADO PERFECTO)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .arrivals-track {
    padding: 0 12px;
    gap: 12px;
    /* Centrar primera tarjeta: 50vw - mitad de tarjeta */
    scroll-padding-left: calc(50vw - 140px);
  }

  .arrival-card {
    flex: 0 0 280px; /* Tamaño fijo para mejor control */
    scroll-snap-align: center; /* SIEMPRE CENTRADA */
    margin: 0 auto;
  }

  .arrival-img {
    aspect-ratio: 4/5; /* Un poco más alto en móvil */
  }

  .arrival-overlay {
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.95);
  }

  .arrival-brand {
    font-size: 15px;
  }

  .arrival-name {
    font-size: 12px;
  }

  .arrival-price {
    font-size: 16px;
  }

  .arrival-cta {
    display: none; /* Menos desorden en móvil */
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .slider-arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* ═══════════════════════════════════════════════
   MÓVIL PEQUEÑO
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .arrivals-track {
    scroll-padding-left: calc(50vw - 130px);
  }

  .arrival-card {
    flex: 0 0 260px;
  }

  .arrival-overlay {
    padding: 12px 10px;
  }

  .arrival-brand {
    font-size: 14px;
  }

  .arrival-name {
    font-size: 11px;
  }

  .arrival-price {
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════════════
   DESKTOP
   ═══════════════════════════════════════════════ */
@media (min-width: 769px) {
  .arrivals-track {
    scroll-padding-left: 40px;
  }

  .arrival-card {
    scroll-snap-align: start;
  }

  .arrival-cta {
    display: block; /* Mostrar CTA en desktop */
  }
}

/* ═══════════════════════════════════════════════
   ACCESIBILIDAD
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .arrival-card,
  .arrival-img img,
  .arrival-overlay,
  .arrival-cta {
    transition: none !important;
    animation: none !important;
  }
}
