/* Fácil de leer: sin serifa, letra grande, mucho espacio, fondo blanco cálido */
:root {
  --bg: #fbf7f0;
  --card: #fffdf9;
  --ink: #1f1f1f;
  --muted: #5b5750;
  --line: #e6dfd3;
  --accent: #1f5f8b;
  --ok: #1e7b3c;
  --ok-bg: #e3f3e8;
  --review: #8a5a00;
  --review-bg: #fdf0d3;
  --alert: #b3261e;
  --alert-bg: #fbe3e1;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { font-size: 19px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Atkinson Hyperlegible", Verdana, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65; letter-spacing: 0.01em; word-spacing: 0.06em;
}
h1 { font-size: 1.7rem; line-height: 1.3; margin: 0.4em 0; }
h2 { font-size: 1.3rem; margin: 0.2em 0 0.6em; }
h3 { font-size: 1.1rem; margin: 0.2em 0; }
a { color: var(--accent); }
button, input, select { font: inherit; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--card); }
.brand span { font-weight: 700; font-size: 1.25rem; }
.brand small { color: var(--muted); margin-left: 10px; }
.who { color: var(--muted); }
.who button { margin-left: 12px; }
.view { max-width: 1180px; margin: 0 auto; padding: 18px 28px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0; }
.narrow { max-width: 440px; margin: 60px auto; }
label { display: block; margin: 14px 0; font-weight: 600; }
input, select { display: block; width: 100%; padding: 12px 14px; margin-top: 6px; border: 1px solid #cfc6b6; border-radius: 10px; background: #fff; }
button { padding: 12px 20px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; font-weight: 400; }
.error { color: var(--alert); font-weight: 600; min-height: 1.4em; }
.hint { color: var(--muted); }
.sub { color: var(--muted); margin: 0; }
.updated { color: var(--muted); font-size: 0.85rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.proj { cursor: pointer; display: flex; gap: 18px; align-items: center; }
.proj:hover { border-color: var(--accent); }

.head-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.grade { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 18px; font-size: 3rem; font-weight: 800; color: #fff; flex: none; }
.grade.small { width: 64px; height: 64px; font-size: 2.2rem; }
.g-A { background: #1e7b3c; } .g-B { background: #4f8a2a; } .g-C { background: #a06a00; } .g-D { background: #c2410c; } .g-E { background: #b3261e; }
.grade-box { display: flex; align-items: center; gap: 14px; }
.grade-box .txt { max-width: 280px; font-weight: 600; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 12px; }
.tabs button { background: #efe8dc; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
#map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); }

.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.s-ok { background: var(--ok-bg); color: var(--ok); }
.s-review { background: var(--review-bg); color: var(--review); }
.s-alert { background: var(--alert-bg); color: var(--alert); }
.s-muted { background: #ece7de; color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--line); }
.timeline li { position: relative; margin: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.timeline .card { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ph { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.ph img { width: 100%; height: 170px; object-fit: cover; display: block; background: #ddd; }
.ph .body { padding: 10px 14px; font-size: 0.9rem; }

.list { list-style: none; padding: 0; }
.list li { background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--review); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.list li.high { border-left-color: var(--alert); }
.meta { color: var(--muted); font-size: 0.85rem; }

dialog { border: 0; border-radius: var(--radius); max-width: 860px; width: 94vw; padding: 24px; background: var(--card); }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog img { max-width: 100%; border-radius: 10px; }
dialog .close { float: right; background: #efe8dc; color: var(--ink); }
.comments { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.comments p { margin: 6px 0; }

@media (max-width: 640px) {
  html { font-size: 17px; }
  .view { padding: 12px 14px 40px; }
  #map { height: 380px; }
}
