* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 16px;
  background: #f4f4f4;
  color: #212121;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}

main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

#anios { display: flex; flex-direction: column; flex: 0 0 220px; }
#anios button {
  padding: 10px 12px;
  border: 1px solid transparent;
  background: none;
  color: #555;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
#anios button:hover { color: #1a67c4; }
#anios button.activo { border-color: #1a67c4; color: #1a67c4; background: rgba(26, 103, 196, .08); }

.tarjeta {
  flex: 1;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

h1 { margin: 0 0 14px; font-size: 18px; font-weight: 400; text-align: center; }

table { width: 100%; border-collapse: collapse; border: 1px solid #e0e0e0; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e0e0e0; text-align: left; }
th { font-size: 12px; font-weight: 700; }
tbody tr:hover { background: #fafafa; }
td.vacio { text-align: center; font-size: 12px; }

a.pdf { color: #1a67c4; font-weight: 500; text-decoration: none; }
a.pdf:hover { text-decoration: underline; }

@media (max-width: 700px) {
  main { flex-direction: column; }
  #anios { order: -1; }
  #anios { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 600px) {
  th, td { padding: 10px 8px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
}
