/* App ARGAR · estilos comunes (misma línea visual que la calculadora) */
:root {
  --bg: #2f2f31;
  --surface: #3b3b3e;
  --surface-2: #454549;
  --line: #57575c;
  --fg: #ffffff;
  --muted: #b9b7bd;
  --accent: #ff2d8a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 45, 138, .16);
  --danger: #ff6b6b;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r: 6px;
  --tabbar: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 28px; height: auto; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .16em; }
.brand-sub { font-family: var(--display); font-size: 10px; letter-spacing: .3em; color: var(--muted); }

/* ---------- Formularios ---------- */
label, .lbl { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--fg); font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--r);
}
.btn:disabled { opacity: .5; cursor: progress; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn.block { width: 100%; margin-top: 22px; }
.btn.sm { padding: 7px 12px; font-size: 14px; }

.msg { margin-top: 14px; padding: 10px 12px; border-radius: var(--r); font-size: 15px; }
.msg.err { background: rgba(255, 107, 107, .12); color: var(--danger); }
.msg.ok { background: var(--accent-soft); color: var(--fg); }

/* ---------- Pantallas de acceso ---------- */
.gate { max-width: 400px; margin: 0 auto; padding: 56px 20px 40px; }
.gate .brand { margin-bottom: 40px; }
.gate h1 { margin-bottom: 8px; }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 12px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.tag.accent { background: var(--accent-soft); color: var(--fg); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
