:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1c2430;
  --text-muted: #5b6472;
  --accent: #2f5d8a;
  --accent-soft: #e7eef5;
  --border: #e3e6ea;
  --negative: #b4432c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, 'Segoe UI', sans-serif;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

header h1 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.resumen {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tarjeta {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.tarjeta .etiqueta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tarjeta .valor {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 4px;
}

.grafico-contenedor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
}

.lista-movimientos {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.movimiento {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.movimiento:last-child { border-bottom: none; }

.movimiento .comercio { font-weight: 500; }
.movimiento .detalle { font-size: 0.8rem; color: var(--text-muted); }
.movimiento .monto { font-weight: 600; }

.estado {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
}

.config {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.config input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

.config button, .barra-superior button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  cursor: pointer;
}

.barra-superior {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.barra-superior button {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 6px 10px;
}
