/* Informe "Movilidades Plan+" (Informes): reutiliza las variables y tarjetas del observatorio */
.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 2.2vw, 28px);
  border-radius: var(--obs-radius-lg);
  background: #009579;
  box-shadow: 0 4px 12px rgba(0, 116, 115, 0.18);
  color: #fff;
}

.plan-header h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-header p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
}

.plan-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  white-space: nowrap;
}

.plan-download {
  padding: 7px 16px;
  border: 0;
  border-radius: var(--obs-radius);
  background: #fff;
  color: #007473;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.plan-download:hover {
  background: var(--obs-teal-soft);
}

.plan-card .obs-card-title {
  display: flex;
  align-items: center;
}

.plan-table-wrap {
  overflow-x: auto;
  padding: 6px 18px 14px;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.plan-table th {
  padding: 7px 14px;
  border-bottom: 1px solid var(--obs-line);
  color: var(--obs-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
  vertical-align: bottom;
}

.plan-table th.dim,
.plan-table td.dim {
  width: 130px;
  text-align: left;
}

.plan-table th.year {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--obs-split);
  color: var(--obs-ink);
  font-size: 13px;
  letter-spacing: 0;
  text-align: center;
}

.plan-table th.sem {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.plan-current-tag {
  display: block;
  color: #009579;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.plan-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--obs-split);
  color: var(--obs-ink);
}

.plan-table td.num {
  text-align: right;
}

.plan-table td.zero {
  color: #bfbfbf;
}

.plan-table td.scope {
  border-left: 3px solid var(--scope-color);
  color: var(--obs-ink);
  font-weight: 500;
  vertical-align: middle;
}

.plan-table td.via {
  color: var(--obs-secondary);
  white-space: nowrap;
}

.plan-via-dot {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--via-color);
  color: #fff;
  font-size: 11px;
}

.plan-table .year-start {
  border-left: 1px solid var(--obs-split);
}

.plan-table .is-current {
  background: rgba(0, 149, 121, 0.06);
}

.plan-table .total {
  background: #fafafa;
  font-weight: 700;
}

.plan-table tbody.plan-scope tr:last-child td {
  border-bottom-color: var(--obs-line);
}

.plan-table tfoot td {
  border-bottom: 0;
  color: var(--obs-secondary);
  font-weight: 600;
}

@media (max-width: 760px) {
  .plan-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
