.carousel-container {
  position: relative;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 20px;
  padding-bottom: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 20px;
  padding: 40px 0;
}

.video-slide {
  flex: 0 0 auto;
  width: 350px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.video-slide.center {
  transform: scale(1.1);
  z-index: 3;
}

.video-slide.side {
  opacity: 0.6;
  filter: blur(2px);
  z-index: 1;
}

.video-slide.hidden {
  opacity: 0.3;
  filter: blur(4px);
  z-index: 0;
}

.video-content {
  background: #1d1d1f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.video-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-slide:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #1d1d1f;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.video-info {
  padding: 20px;
  color: white;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.video-description {
  font-size: 14px;
  color: #a1a1a6;
  line-height: 1.4;
  margin-bottom: 16px;
}

.watch-button {
  display: inline-block;
  background: white;
  color: #1d1d1f;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease;
}

.watch-button:hover {
  background: #f5f5f7;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2d2d7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #007aff;
  transform: scale(1.2);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0.8;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.nav-button.prev {
  left: 10px;
}

.nav-button.next {
  right: 10px;
}

.nav-button svg {
  width: 20px;
  height: 20px;
  fill: #1d1d1f;
}

.nav-button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* RESPONSIVE DESIGN CORREGIDO */

@media (max-width: 768px) {
  .carousel-container {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .video-slide {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .video-slide.center {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  .carousel-track {
    gap: 15px;
    padding: 20px 0;
  }
}

@media (max-width: 768px) {
  .nav-button {
    display: none;
  }
}

@media (max-width: 768px) {
  .video-thumbnail {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .video-info {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .video-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .video-slide {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .carousel-track {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .video-thumbnail {
    height: 140px;
  }
}

/* Modal para reproducir video */

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.close-modal {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #1d1d1f;
}

