/* ============================================
   CSS SOLO PARA EL MODAL - NO AFECTA LA PÁGINA
   ============================================ */

#modalFormulario.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modalFormulario.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

#modalFormulario .modal-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#modalFormulario.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

#modalFormulario .modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: 2px solid #ddd;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#modalFormulario .modal-close:hover {
  background: #f5f5f5;
  border-color: #999;
  transform: rotate(90deg);
}

#modalFormulario #hubspot-form-container {
  min-height: 300px;
}

@media (max-width: 768px) {
  #modalFormulario .modal-content {
    padding: 30px 20px;
  }
}