:root {
  --azul: #1f3a5f;
  --azul-claro: #eef2f7;
  --texto: #1d2733;
  --gris: #5f6b7a;
  --borde: #d5dce5;
  --verde: #1e7b4a;
  --rojo: #b42318;
  --ambar: #9a6700;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: #f7f9fb;
  line-height: 1.5;
}
header {
  background: var(--azul);
  color: #fff;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header a { color: #fff; text-decoration: none; margin-left: 1rem; }
header .marca { font-weight: 700; letter-spacing: 0.02em; margin-left: 0; }
main { max-width: 960px; margin: 2rem auto; padding: 0 1.25rem; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; color: var(--azul); }
.tarjeta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
label { display: block; font-weight: 600; margin: 0.9rem 0 0.25rem; }
.ayuda { color: var(--gris); font-size: 0.88rem; font-weight: 400; }
input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
textarea.codigo { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; min-height: 5rem; }
.fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
button, .boton {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 1rem;
}
.boton.secundario, button.secundario { background: #fff; color: var(--azul); border: 1px solid var(--azul); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--borde); font-size: 0.94rem; }
th { background: var(--azul-claro); }
.aviso, .error, .ok {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.error { background: #fdecea; color: var(--rojo); border: 1px solid #f5c2bd; }
.aviso { background: #fff7e0; color: var(--ambar); border: 1px solid #f0d98a; }
.ok { background: #e7f5ee; color: var(--verde); border: 1px solid #b6e0c9; }
.etiqueta { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.etiqueta.si { background: #e7f5ee; color: var(--verde); }
.etiqueta.no { background: #fdecea; color: var(--rojo); }
.saldo { font-size: 1.05rem; }
footer { color: var(--gris); font-size: 0.85rem; text-align: center; padding: 2rem 1rem; }
