/* Carrusel de Carteles */
.carrusel-cart-section {
  padding: 80px 20px;
  width: 100%;
  background: #f8f9fa;

  
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.carrusel-cart-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.carrusel-cart-header {
  text-align: center;
  margin-bottom: 50px;
}

.carrusel-cart-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.carrusel-cart-subtitle {
  font-size: 18px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Wrapper del carrusel */
.carrusel-cart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* Track container con overflow */
.carrusel-cart-track-container {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

/* Track de items */
.carrusel-cart-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Items individuales */
.carrusel-cart-item {
  flex: 0 0 calc(25% - 15px); /* 4 items en desktop */
  min-width: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.carrusel-cart-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.carrusel-cart-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2/3; /* Proporción típica de cartel de cine */
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Botones de navegación */
.carrusel-nav {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.carrusel-nav:hover:not(:disabled) {
  background: #e91e63;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.carrusel-nav:active:not(:disabled) {
  transform: scale(0.95);
}

.carrusel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.carrusel-nav svg {
  width: 24px;
  height: 24px;
}

/* Indicadores */
.carrusel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.carrusel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #d0d0d0;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carrusel-indicator:hover {
  border-color: #e91e63;
  transform: scale(1.2);
}

.carrusel-indicator.active {
  background: #e91e63;
  border-color: #e91e63;
  width: 30px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 1200px) {
  .carrusel-cart-item {
    flex: 0 0 calc(33.333% - 14px); /* 3 items en tablets grandes */
  }
}

@media (max-width: 1024px) {
  .carrusel-cart-section {
    padding: 60px 20px;
  }
  
  .carrusel-cart-title {
    font-size: 36px;
  }
  
  .carrusel-cart-subtitle {
    font-size: 16px;
  }
  
  .carrusel-cart-item {
    flex: 0 0 calc(33.333% - 14px); /* 3 items en tablets */
  }
}

@media (max-width: 768px) {
  .carrusel-cart-section {
    padding: 50px 15px;
  }
  
  .carrusel-cart-header {
    margin-bottom: 40px;
  }
  
  .carrusel-cart-title {
    font-size: 32px;
  }
  
  .carrusel-cart-subtitle {
    font-size: 15px;
  }
  
  .carrusel-cart-wrapper {
    gap: 15px;
  }
  
  .carrusel-cart-track {
    gap: 15px;
  }
  
  .carrusel-cart-item {
    flex: 0 0 calc(50% - 7.5px); /* 2 items en móviles */
  }
  
  .carrusel-nav {
    width: 45px;
    height: 45px;
  }
  
  .carrusel-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .carrusel-indicators {
    gap: 8px;
  }
  
  .carrusel-indicator {
    width: 10px;
    height: 10px;
  }
  
  .carrusel-indicator.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .carrusel-cart-section {
    padding: 40px 10px;
  }
  
  .carrusel-cart-header {
    margin-bottom: 30px;
  }
  
  .carrusel-cart-title {
    font-size: 28px;
  }
  
  .carrusel-cart-subtitle {
    font-size: 14px;
  }
  
  .carrusel-cart-wrapper {
    gap: 10px;
  }
  
  .carrusel-cart-track {
    gap: 10px;
  }
  
  .carrusel-cart-item {
    flex: 0 0 100%; /* 1 item en móviles pequeños */
  }
  
  .carrusel-nav {
    width: 40px;
    height: 40px;
  }
  
  .carrusel-nav svg {
    width: 18px;
    height: 18px;
  }
}

/* Animaciones adicionales */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carrusel-cart-item {
  animation: slideIn 0.5s ease forwards;
}

.carrusel-cart-item:nth-child(1) { animation-delay: 0.1s; }
.carrusel-cart-item:nth-child(2) { animation-delay: 0.2s; }
.carrusel-cart-item:nth-child(3) { animation-delay: 0.3s; }
.carrusel-cart-item:nth-child(4) { animation-delay: 0.4s; }
