/* ==========================================================================
   COMPONENTE: DESCARGA DE MODELOS CON REGISTRO (blog)
   Estilos propios de assets/js/descarga-modelos.js.
   Reutiliza la base visual del modal del lead magnet (.lm-modal, .lm-form,
   .submit-btn, .form-row) definida en styles.css; aquí solo se agrega lo que
   esa base no cubre (casilla, opciones, lista desplegable, avisos y campo trampa).
   ========================================================================== */

.dm-modal [hidden] { display: none !important; }

.dm-modal .lm-modal-content {
  max-height: 92vh;
  overflow-y: auto;
}

.dm-form .dm-hint {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.dm-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--off);
  transition: var(--transition);
}
.dm-form select:focus {
  outline: none;
  border-color: var(--violet);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(92, 53, 165, 0.1);
}

.dm-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  min-width: 0;
}
.dm-fieldset legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding: 0;
}
.dm-radios {
  display: flex;
  gap: 1.5rem;
}

.dm-form label.dm-radio,
.dm-form label.dm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
  line-height: 1.45;
}
.dm-form label.dm-radio {
  align-items: center;
  font-size: 0.92rem;
}
.dm-form input[type="radio"],
.dm-form input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--violet);
}
.dm-form label.dm-radio input[type="radio"] {
  margin: 0;
}
.dm-check-texto {
  font-size: 0.8rem;
  color: var(--text-light);
}
.dm-check-texto a {
  color: var(--magenta);
  text-decoration: underline;
}

.dm-form .dm-nota {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0.75rem 0 0;
  text-align: center;
}

.dm-exito {
  text-align: center;
  padding: 1rem 0;
}
.dm-exito h3 {
  color: var(--violet-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.dm-exito p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}
.dm-exito a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: underline;
}

/* Campo trampa contra envíos automáticos: fuera de pantalla, sin foco */
.dm-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .dm-modal .lm-modal-content { padding: 1.75rem 1.25rem; }
  .dm-radios { flex-direction: column; gap: 0.5rem; }
}
