/* Popup de videos para soluciones */
.video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-popup.active {
  display: block;
  opacity: 1;
}

.video-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-popup__content {
  background: white;
  border-radius: 15px;
  width: 95%;
  height: 80vh;
  max-width: 840px;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  animation: popupSlideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.video-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.video-popup__header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-negro);
}

.video-popup__close {
  background: none;
  border: none;
  font-size: 35px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.video-popup__close:hover {
  background: #f0f0f0;
  color: #333;
}


.video-popup__player {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-player {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

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

.video-player p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 18px;
  color: #999;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .video-popup__overlay {
    padding: 5px;
  }
  
  .video-popup__content {
    width: 100%;
    height: 85vh;
    max-width: none;
  }
  
  .video-popup__header {
    padding: 12px 15px;
  }
  
  .video-popup__header h3 {
    font-size: 20px;
  }
  
  .video-popup__player {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .video-popup__overlay {
    padding: 0;
  }
  
  .video-popup__content {
    width: 100%;
    height: 90vh;
    border-radius: 10px;
  }
  
  .video-popup__header {
    padding: 10px 12px;
  }
  
  .video-popup__header h3 {
    font-size: 18px;
  }
  
  .video-popup__player {
    padding: 8px;
  }
}
