:root {
  --primary-color: #3B38FF;
  --secondary-color: #f5f5f5;
  --accent-color: #00D4FF;
  --text-color: #333;
  --light-gray: #eaeaea;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: white;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.title {
  font-size: 2.5rem;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  margin: 3rem 0 1.5rem;
  color: var(--primary-color);
  text-align: center;
  
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.video-item {
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.video-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-duration {
  font-size: 0.9rem;
  opacity: 0.9;
}

.video-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3B38FF;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.player-container {
  width: 80%;
  max-width: 1200px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  background-color: white;
  color: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background-color: var(--accent-color);
  color: white;
}

.player-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.reels-container {
  margin: 4rem 0;
}

.reels-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 1rem 0;
  scrollbar-width: none;
}

.reels-scroll::-webkit-scrollbar {
  display: none;
}

.reel-item {
  scroll-snap-align: start;
  flex: 0 0 350px;
  aspect-ratio: 9/16;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reel-player-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.reel-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Estilo del botón de play/pause */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.reel-player-container.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }

  .title {
    font-size: 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .player-container {
    width: 95%;
  }

  .reel-item {
    flex: 0 0 300px;
  }
}
