/* Estilos del modal ds-popup */
.ds-popup-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ds-popup-modal-overlay.ds-popup-modal-show {
  opacity: 1;
  visibility: visible;
}

.ds-popup-modal-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 1024px;
  height: 90%;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.ds-popup-modal-show .ds-popup-modal-container {
  transform: scale(1);
}

.ds-popup-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #1A511E;
  background: #A6C624;
  border-radius: 8px 8px 0 0;
}

.ds-popup-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #070707;
}

.ds-popup-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070707;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ds-popup-modal-close:hover {
  background-color: #e9ecef;
  color: #333;
}

.ds-popup-modal-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ds-popup-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.ds-popup-modal-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 1;
}

.ds-popup-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007cba;
  border-radius: 50%;
  animation: ds-popup-spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes ds-popup-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ds-popup-modal-loading p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ds-popup-modal-container {
    width: 95%;
    height: 95%;
    max-height: none;
  }
  
  .ds-popup-modal-header {
    padding: 15px;
  }
  
  .ds-popup-modal-title {
    font-size: 1.1rem;
  }
}

/* Evitar scroll del body cuando el modal está abierto */
body.ds-popup-modal-open {
  overflow: hidden;
}