/* =============================================================
   utilities.css — Clases utility para reemplazar inline styles.
   Necesarias para permitir CSP sin 'unsafe-inline' en style-src.
   ============================================================= */

/* --- Visibilidad --- */
/* Sin !important: el JS usa element.style.display = 'block' para mostrar
   elementos que parten con esta clase (register-email, verify-email, etc).
   El inline style gana por especificidad a la clase. */
.u-hidden { display: none; }

/* --- Texto --- */
.u-text-sm { font-size: 13px; }
.u-text-center { text-align: center; }
.u-no-underline { text-decoration: none; }

/* --- Cursor --- */
.u-clickable { cursor: pointer; }

/* --- Márgenes --- */
.u-m-0 { margin: 0; }
.u-mt-8  { margin-top: 8px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-24 { margin-top: 24px; }
.u-mb-8  { margin-bottom: 8px; }
.u-mb-20 { margin-bottom: 20px; }
.u-mx-8  { margin-left: 8px; margin-right: 8px; }
.u-my-24 { margin-top: 24px; margin-bottom: 24px; }

/* --- Componentes específicos --- */

/* Asterisco rojo de campo obligatorio */
.form-required { color: #dc2626; }

/* Pista secundaria dentro de títulos (small después del asterisco) */
.form-required-hint {
  color: #6b7280;
  font-weight: 400;
}

/* Separador de puntos " · " entre enlaces */
.separator-dot {
  margin: 0 8px;
  color: #9ca3af;
}

/* Enlace con herencia de color (para alerts con link "adoptar") */
.link-inherit {
  color: inherit;
  font-weight: 600;
}

/* --- SVG icons --- */
.svg-icon-sm {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  vertical-align: middle;
}

.svg-icon-xl {
  width: 64px;
  height: 64px;
}

.svg-success { color: #16a34a; }

/* --- Spinners --- */
@keyframes util-spin { to { transform: rotate(360deg); } }

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #fff;
  border-radius: 50%;
  animation: util-spin 0.6s linear infinite;
}

.spinner--lg {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #055CB4;
  border-radius: 50%;
  animation: util-spin 0.6s linear infinite;
  margin: 0 auto;
}

.spinner--inline {
  animation: util-spin 1s linear infinite;
}

/* --- Botones especiales --- */
.btn--link-block {
  display: block;
  text-align: center;
  text-decoration: none;
}
