/* Estilos para el modal */
.modal-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-video.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #111111;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: #cc0000;
}

.modal-close i {
  color: white;
  font-size: 1.2rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Aspecto 16:9 */
  height: 0;
}

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

@media (max-width: 768px) {
  .modal-container {
    width: 95%;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }
}

