* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f6fa;
  color: #1e2230;
  line-height: 1.5;
}
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}
h1 { font-size: 1.5rem; margin: 1rem 0; }
h2 { font-size: 1.15rem; margin-top: 2rem; }
.muted { color: #666; font-size: 0.9rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.lista { list-style: none; padding: 0; margin: 1rem 0; }
.lista li { margin: 0.4rem 0; }

.btn-block, .btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  background: #3b5bdb;
  color: white;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}
.btn-block:active, .btn-primary:active { background: #2f49ac; }
.link { background: none; border: none; color: #3b5bdb; cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }

.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.form label { display: flex; flex-direction: column; font-weight: 600; gap: 0.3rem; }
.form input[type="text"],
.form input[type="password"],
.form textarea {
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccd;
  border-radius: 8px;
  font-family: inherit;
}
.form textarea { resize: vertical; }

.slider-group {
  background: white;
  padding: 0.8rem;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  align-items: center;
}
.slider-group label { grid-column: 1 / -1; font-weight: 600; }
.slider-group input[type="range"] { width: 100%; }
.slider-group output {
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 2.2rem;
  text-align: right;
  color: #3b5bdb;
}

.alert {
  background: #ffe3e3;
  color: #a61b1b;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}
.card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card .total { font-size: 2.2rem; font-weight: 800; margin: 0.5rem 0 0; color: #3b5bdb; }
.card .total span { font-size: 1rem; color: #888; font-weight: 500; }
.dims { list-style: none; padding: 0; margin: 0.7rem 0 0; font-size: 0.9rem; }
.dims li { display: flex; justify-content: space-between; padding: 0.25rem 0; border-top: 1px dashed #eee; }

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e9ecf3;
}
.nivel-inicial     { background: #ffe0e0; color: #a61b1b; }
.nivel-desarrollo  { background: #fff1cc; color: #8a5a00; }
.nivel-logrado     { background: #d9ecff; color: #1a4b91; }
.nivel-consolidado { background: #d3f7dd; color: #126b2e; }
