/* ================================================================
   MODAL DE DESCARGAS - Estilos corregidos
   ================================================================ */

/* Modal principal */
.download-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-modal.active {
  display: flex !important;
  opacity: 1;
}

/* Overlay */
.download-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* Contenedor del modal */
.download-modal__content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  padding: 2rem;
}

.download-modal.active .download-modal__content {
  transform: scale(1);
}

/* Botón cerrar */
.download-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.download-modal__close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Header del modal */
.download-modal__header {
  text-align: center;
  margin-bottom: 2rem;
}

.download-modal__icon {
  font-size: 3rem;
  color: #d35400;
  margin-bottom: 1rem;
}

.download-modal__title {
  font-size: 1.5rem;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.download-modal__subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Formulario */
.download-modal__form {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group label i {
  color: #d35400;
  margin-right: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #d35400;
}

/* Botón submit */
.download-modal__submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.download-modal__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 84, 0, 0.3);
}

.download-modal__submit:active {
  transform: translateY(0);
}

/* Mensaje de privacidad */
.download-modal__privacy {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
}

.download-modal__privacy i {
  color: #28a745;
  margin-right: 0.25rem;
}

/* Feedback */
.download-modal__feedback {
  display: none;
  text-align: center;
  padding: 2rem;
}

.download-modal__feedback.active {
  display: block;
}

.feedback-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.feedback-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.feedback-message {
  font-size: 1rem;
  color: #666;
}

/* Prevenir scroll cuando modal está abierto */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Responsive */
@media (max-width: 600px) {
  .download-modal__content {
    padding: 1.5rem;
    max-height: 95vh;
  }
  
  .download-modal__title {
    font-size: 1.25rem;
  }
  
  .download-modal__submit {
    font-size: 1rem;
    padding: 0.875rem;
  }
}