/* ================================================
   MENSAJES DE ÉXITO Y ERROR DEL FORMULARIO
   Pega esto al final de tu form-section.css
================================================ */

.form-alerta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 14px;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Éxito ── */
.form-alerta--success {
  background: rgba(37, 211, 102, 0.1);
  border: 0.5px solid rgba(37, 211, 102, 0.3);
  color: #c9a96e ;
}

.form-alerta--success .form-alerta__icono {
  background: rgba(37, 211, 102, 0.15);
}

/* ── Error ── */
.form-alerta--error {
  background: rgba(220, 53, 69, 0.1);
  border: 0.5px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

.form-alerta--error .form-alerta__icono {
  background: rgba(220, 53, 69, 0.15);
}

/* ── Ícono ── */
.form-alerta__icono {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Texto ── */
.form-alerta strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.form-alerta p {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
  color: inherit;
}

/* ── Botón cerrar ── */
.form-alerta__cerrar {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}

.form-alerta__cerrar:hover {
  opacity: 1;
}