:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d8dee9;
  --primary: #0f5f9e;
  --primary-dark: #084c80;
  --soft: #eef6fc;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.hero {
  background: linear-gradient(135deg, #0f5f9e, #0b3f6e);
  color: white;
  padding: 34px 18px;
}
.hero-inner { max-width: 1180px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; opacity: .85; }
h1 { margin: 6px 0 8px; font-size: clamp(1.7rem, 4vw, 2.7rem); }
p { margin: 0; }
.updated { margin-top: 12px; font-size: .95rem; opacity: .92; }
.wrap { max-width: 1180px; margin: -24px auto 36px; padding: 0 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 95, 158, .08);
}
.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; color: #374151; }
select, input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  background: white;
}
button {
  align-self: end;
  min-height: 42px;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: var(--primary-dark); }
.section-card { padding: 18px; margin-top: 18px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 1.25rem; }
.section-head span { color: var(--muted); font-weight: 650; }
.station-list { display: grid; gap: 12px; }
.island-block { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.island-title {
  background: var(--soft);
  padding: 12px 14px;
  font-weight: 800;
  color: #0b3f6e;
  border-bottom: 1px solid var(--line);
}
.station-card { padding: 14px; border-bottom: 1px solid #edf0f5; }
.station-card:last-child { border-bottom: none; }
.station-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.station-title strong { font-size: 1.05rem; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e7f0f8;
  color: #0b3f6e;
  padding: 3px 8px;
  font-size: .8rem;
  font-weight: 750;
}
.grid-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
  color: #374151;
}
.info-line span:first-child { color: var(--muted); font-weight: 650; }
a { color: var(--primary); }
.muted { color: var(--muted); padding: 14px; }
.error { color: var(--danger); padding: 14px; font-weight: 700; }
.lineas { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.lineas .badge { background: #f1f5f9; color: #334155; }
@media (max-width: 800px) {
  .filters { grid-template-columns: 1fr; }
  .grid-info { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; }
}
