/* Contenedores y Títulos */
.video-portfolio-section {
  padding: 60px 20px;
  background-color: #f8f9fa; /* Fondo gris muy sutil acorde a la web */
  text-align: center;
}
.video-section-title {
  font-size: 2rem;
  color: #212529;
  margin-bottom: 10px;
  font-weight: 700;
}
.video-section-subtitle {
  color: #6c757d;
  margin-bottom: 40px;
}

/* Grilla de Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Tarjeta de Video */
.video-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.video-thumbnail {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}

/* Filtro Oscuro y Textos encima */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}
.video-card:hover .video-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* Botón Play */
.play-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #212529; /* Puedes cambiar esto por el color de acento de la web si tiene uno */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.video-card:hover .play-btn {
  transform: scale(1.15);
}

.video-card-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Modal / Lightbox (Efecto de pantalla completa para el video) */
.video-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 800px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  user-select: none;
}
.iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Relación 16:9 */
  height: 0;
  border-radius: 4px;
  overflow: hidden;
}
.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}