.modal {
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;

  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-contenido {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-contenido {
  transform: scale(1);
  opacity: 1;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.cerrar:hover { color: #000; }

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporción 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.iframe-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.texto-descriptivo {
  margin-top: 20px;
  font-size: 16px;
  color: #333;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.texto-descriptivo.oculto {
  opacity: 0;
  height: 0;
  overflow: hidden;
}



/* Responsive ajustes si es necesario */
@media (max-width: 768px) {
  .modal-contenido { padding: 20px; }
}

@media (max-width: 480px) {
  .modal-contenido { padding: 15px; }
}
