body {
  font-family: Arial, sans-serif;
}

.popup {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s;
}

.popup-content {
  position: relative;
  margin: 15% auto;
  padding: 20px;
  width: 50%;
  max-width: 500px;
  background-color: transparent;
  animation: scaleUp 0.5s;
  
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  color: white;
  background-color: #333;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.popup-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes scaleUp {
  from {transform: scale(0);}
  to {transform: scale(1);}
}

@keyframes fadeOut {
  from {opacity: 1;}
  to {opacity: 0;}
}

@keyframes scaleDown {
  from {transform: scale(1);}
  to {transform: scale(0);}
}
/* Asegura que el contenido del popup se ajuste */
.popup-content {
    /* Tu estilo actual... */
    max-width: 90%; /* Evita que sea muy ancho en móviles */
    width: 600px;   /* Un ancho base razonable */
}

/* Estilo para que el video se adapte al contenedor */
.popup-video {
    width: 100%;    /* Ocupa todo el ancho disponible del popup */
    height: auto;   /* Mantiene la proporción */
    display: block;
    border-radius: 8px; /* Opcional: bordes redondeados */
}

