/* =============================================
   CAROUSEL — Leyendas del Golf
   Todos los selectores están dentro de
   .leyendas-section para no pisar el template
   ============================================= */

.leyendas-section {
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  user-select: none;
  position: relative;
}

.carousel-stage {
  position: relative;
  width: 900px;
  height: 480px;
  perspective: 1200px;
  cursor: grab;
}

.carousel-stage:active {
  cursor: grabbing;
}

/* Flechas — FUERA del stage */
.carousel-wrapper .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  padding: 0;
  line-height: 1;
}

.carousel-wrapper .nav-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.07);
}

.carousel-wrapper .nav-btn svg {
  color: #aaa;
  transition: color 0.2s;
  display: block;
}

.carousel-wrapper .nav-btn:hover svg { 
  color: #555; 
}

.carousel-wrapper .nav-btn.prev { 
  left: -72px; 
}

.carousel-wrapper .nav-btn.next { 
  right: -72px; 
}

/* Contenedor de cards */
.cards-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Card individual */
.cards-container .card {
  position: absolute;
  width: 320px;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
  top: 0;
  /* Reset por si el template sobreescribe */
  float: none;
  margin: 0;
}

.cards-container .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  pointer-events: none;
  border-radius: 0;
  max-width: none;
}

.cards-container .card:hover img { 
  transform: scale(1.04); 
}

.cards-container .card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    transparent 75%
  );
}

.cards-container .card .card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  color: #fff;
}

.cards-container .card .card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.cards-container .card .card-subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.85;
  letter-spacing: 0.01em;
  color: #fff;
}

/* Dots */
.carousel-wrapper .dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-wrapper .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  border: none;
  padding: 0;
  display: inline-block;
}

.carousel-wrapper .dot.active {
  background: #c2b482;
  width: 22px;
  border-radius: 4px;
}