/* ═══════════════════════════════════════════════════════════════
 * MODALES — Recuperación de contraseña NEM
 * Paleta: guinda #9b2247, verde #1e5b4f, crema #faf5e4
 * ═══════════════════════════════════════════════════════════════ */

.nem-modal-recover {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 26, 29, 0.16);
}

.nem-modal-topbar {
  height: 4px;
  background: linear-gradient(90deg, #9b2247 0%, #611232 100%);
}

.nem-modal-topbar--success {
  background: linear-gradient(90deg, #1e5b4f 0%, #3d8a7a 100%);
}

.nem-modal-body {
  padding: 2rem 2rem 1.75rem;
  position: relative;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* Botón cerrar */
.nem-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b8d8e;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nem-modal-close:hover {
  background: #e8e8e9;
  color: #161a1d;
}

/* Icono central */
.nem-modal-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.nem-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f2d4dd;
  color: #9b2247;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.nem-modal-icon--success {
  background: #d4ece7;
  color: #1e5b4f;
}

/* Título y descripción */
.nem-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #161a1d;
  margin-bottom: 0.5rem;
  text-align: center;
}

.nem-modal-desc {
  font-size: 0.875rem;
  color: #5c6166;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Campo email */
.nem-modal-field {
  margin-bottom: 1.25rem;
}

.nem-modal-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d3136;
  margin-bottom: 0.4rem;
}

.nem-modal-label i {
  color: #9b2247;
  margin-right: 0.3rem;
  font-size: 0.75rem;
}

.nem-modal-input {
  border: 1.5px solid #e8e8e9;
  border-radius: 0.5rem;
  padding: 0.65rem 0.875rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nem-modal-input::placeholder {
  color: #c4c4c5;
}

.nem-modal-input:focus {
  border-color: #9b2247;
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 34, 71, 0.15);
}

/* Botones */
.nem-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.nem-modal-btn-primary {
  background: linear-gradient(135deg, #9b2247 0%, #611232 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.65rem 1.75rem;
  font-size: 0.9rem;
  width: 100%;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.nem-modal-btn-primary:hover {
  background: linear-gradient(135deg, #611232 0%, #3d0b20 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 26, 29, 0.14);
}

.nem-modal-btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(155, 34, 71, 0.25);
  color: #fff;
}

.nem-modal-btn-primary--success {
  background: linear-gradient(135deg, #1e5b4f 0%, #002f2a 100%);
}

.nem-modal-btn-primary--success:hover {
  background: linear-gradient(135deg, #002f2a 0%, #001a17 100%);
  color: #fff;
}

.nem-modal-btn-primary--success:focus {
  box-shadow: 0 0 0 3px rgba(30, 91, 79, 0.25);
  color: #fff;
}

.nem-modal-btn-cancel {
  background: none;
  border: none;
  color: #98989a;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  transition: color 0.2s;
}

.nem-modal-btn-cancel:hover {
  color: #5c6166;
}
