.gradient-bg {
  background: linear-gradient(
    262deg,
    rgba(46, 76, 140, 0) 27%,
    rgba(22, 13, 13, 0.445) 50%
  );
}

/* Galería */
.gallery-item {
  transition: all 0.4s ease;
  overflow: hidden;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .video-thumbnail img {
  transform: scale(1.08);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(67, 97, 238, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  z-index: 2;
}

.gallery-item:hover .play-button {
  background-color: rgba(247, 37, 133, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
}

.video-wrapper {
  position: relative;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 50px;
  cursor: pointer;
}

.video-info {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Video duration badge */
.duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}

/* Video category badge */
.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(67, 97, 238, 0.8);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}
