.botonera {
  background-color: #c30b19;
  border: 1px solid #c30b19;
}

.boton {
  flex-direction: column;
  justify-content: center;
}

.boton.select {
  background-color: #e04750;
}

.boton:not(.select):hover {
  background-color: #8f0812;
}

.upper-navbar {
  padding: 0 20px;
}

.logo img {
  height: 70px;
  margin: 9px 6px;
}

.table-title {
  background-color: #f2a1a7;
}

.lower-navbar {
  background-color: #c30b19;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  left: 0;
}

.chem-sub {
  font-size: 0.875em;
}

.unit-sup {
  font-size: 0.875em;
}

.unselected_th {
  color: #cccccc;
}

.unselected_th .fa-ellipsis-h {
  color: #cccccc;
}

.selected_th .fa-ellipsis-h {
  color: red;
}

/* ── TABS ─────────────────────────────────────────────── */
.stations-tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #ddd;
}

.station-tab {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 8px 16px;
  cursor: pointer;
  color: #555;
  border-radius: 4px 4px 0 0;
  margin-bottom: -2px;
  transition: background 0.15s, color 0.15s;
}

.station-tab:hover {
  background: #f5f5f5;
  color: #333;
}

.station-tab.active,
.station-tab[aria-selected="true"] {
  background: #fff;
  color: #333;
  border-color: #ddd;
  border-bottom-color: #fff;
  font-weight: 600;
}

.station-panel {
  padding: 8px 18px;
}

.station-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 0 16px 0;
}

.station-img {
  border-radius: 4px;
  height: clamp(230px, 28vw, 610px);
  object-fit: cover;
  object-position: center;
  width: clamp(230px, 32vw, 610px);
}

.station-figure figcaption {
  text-align: center;
  font-size: 0.85em;
  color: #666;
  margin-top: 6px;
}

.station-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 12px;
  align-items: baseline;
}

.station-details dt {
  font-size: 1em;
  font-weight: 600;
  white-space: nowrap;
}

.station-details dt::after {
  content: ":";
}

.station-details dt:first-child {
  margin-top: 0;
}

.station-details dd {
  font-size: 2rem;
  margin: 0;
}

.station-params-title {
  font-size: 1em;
  font-weight: 600;
  margin: 24px 0 10px;
  color: #555;
  letter-spacing: 0.04em;
}

.station-params-table thead {
  background-color: #f0f0f0;
}

/* ── RESPONSIVE: móvil ─────────────────────────────────── */
@media all and (max-width: 575px) {
  .lower-navbar {
    background-color: #f3f3f3;
  }

  .stations-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .station-tab {
    white-space: nowrap;
  }

  .station-header {
    flex-direction: column;
  }
}