* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; margin-bottom: 12px; color: #333; }

select, input, button {
  font-size: 0.95rem;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

button {
  background: #1a73e8;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
button:hover { background: #1558b0; }

main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  main { grid-template-columns: 2fr 1fr; }
}

section {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

th { background: #fafafa; font-weight: 600; }

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#mensaje {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #1a7f37;
}