﻿.tutorial-section {
  width: 100%;
  padding: 60px 50px;
  background-color: #ECF5FE;
  font-family: Arial, sans-serif;
  display: flex
;
      justify-content: center;
      align-items: center;
      flex-direction: column;
}

.tutorial-section-title {
  color: #0a2463 !important;
  font-size: 32px !important;
  margin-bottom: 40px !important;
  text-transform: none !important;
  text-align: left;
  width: 80%;
}

.tutorial-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* NUEVO: Wrapper para manejar el overflow correctamente */
.tutorial-carousel-wrapper {
  flex: 1;
  margin: 0 60px; /* Espacio para los botones */
  overflow: hidden; /* Aquí va el overflow hidden */
}

.tutorial-carousel-container {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
  /* Removido overflow hidden de aquí */
}

.tutorial-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0; /* Importante: evita que los elementos se compriman */
}

.tutorial-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-video-container {
  position: relative;
  background-color: #1a3a5a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.tutorial-video-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.tutorial-item:hover .tutorial-video-container::after {
  background: rgba(0, 0, 0, 0.1);
}

.tutorial-video-container img {
  width: 100%;
  height: auto;
  opacity: 0.7;
}

.tutorial-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tutorial-play-button svg {
  width: 25px;
  height: 25px;
  fill: #0a2463;
}

.tutorial-video-text {
  color: #0a2463;
  font-size: 16px;
  text-align: left;
}

.tutorial-nav-button {
  background-color: transparent !important;
  border: none;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
  flex-shrink: 0; /* Evita que los botones se compriman */
}

.tutorial-nav-button svg {
  width: 100px;
  height: 100px;
  fill: #0a2463;
}

.tutorial-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tutorial-download-link {
  margin-top: 50px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px !important;
  color: #00c1d5 !important;
  font-weight: 500;
  margin-top: 30px;
}

.tutorial-download-link:hover {
  color: #0a2463 !important;
}

.tutorial-download-link svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: #0a2463;
}

/* Estilos para el modal de YouTube */
.youtube-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.youtube-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  animation: slideIn 0.3s ease-in-out;
}

.youtube-modal-close {
  position: absolute;
  top: 15px;
  right: 0px;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: transparent !important;
  width: 30px;
  height: 30px;
}

.youtube-modal-close:hover {
  transform: scale(1.1);
}

.youtube-video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
}

.youtube-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1199px) {
  .tutorial-carousel-wrapper {
    margin: 0 40px;
  }
}

@media (max-width: 768px) {
  .tutorial-section {
    padding: 40px 20px;
  }

  .tutorial-carousel-wrapper {
    margin: 0 30px;
  }

  .youtube-modal-content {
    width: 95%;
    margin: 20px;
  }

  .youtube-modal-close {
    top: -35px;
    font-size: 25px;
    width: 35px;
    height: 35px;
  }

  .tutorial-nav-button {
    width: 40px;
    height: 40px;
  }

  .tutorial-nav-button svg {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .youtube-modal-content {
    width: 90%;
    margin: 10px;
  }
}