/* ============================================================
   THEME DE MIMIFY — fuente única de verdad para landing, login
   y dashboard. Cambia un valor aquí y se refleja en los tres sitios
   (todos lo cargan desde /theme.css, mismo origen, un solo archivo).
   ============================================================ */

:root {
  --bg: #111111;
  --bg-alt: #1A1A18;
  --card: #1D1D1A;
  --ink: #F7F7F5;
  --ink-soft: #B8B8B4;
  --ink-muted: #8A8A86;
  --border: #2E2E2B;
  --dark: #F7F7F5;
  --dark-alt: #E4E4E0;
  --accent: #F7F7F5;
  /* Color de marca — cambia solo este valor para probar otro color en todo el sitio
     (gradientes, brillos y detalles se recalculan solos con color-mix). */
  --accent-2: #8B87FF;
  color-scheme: dark;
  --serif: 'Inter', "Inter Fallback", system-ui, sans-serif;
  --sans: 'Inter', "Inter Fallback", system-ui, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- Botones (mismo componente en los tres sitios) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 12px 24px;
  height: 46px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), color-mix(in srgb, var(--accent-2) 55%, black));
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 80%, white), var(--accent-2));
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-danger {
  background: transparent;
  border: 1px solid #4A2A2A;
  color: #F09090;
}
.btn-danger:hover { border-color: #F09090; }
.btn-full { width: 100%; }

/* ---------- Tarjetas ---------- */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}
.card .meta { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }

/* ---------- Formularios ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; color: var(--ink-soft); }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-2); }
textarea { resize: vertical; }

/* ---------- Estados de feedback ---------- */
.status { font-size: 13px; margin-top: 8px; }
.status.ok { color: #8FE3A6; }
.status.err { color: #F09090; }

code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}
