/* ================================================================
   localidades.css — estilos exclusivos de localidades.html
   ================================================================ */

/* Hero color naranja/ámbar en lugar de azul */
.loc-hero {
  background: linear-gradient(135deg, #7a2d0a 0%, #c0450f 50%, #e45d16 100%) !important;
}
.loc-stat--highlight {
  border: 2px solid rgba(228, 93, 22, 0.5) !important;
  background: rgba(228, 93, 22, 0.15) !important;
}
.loc-stat--highlight .cob-stat-num {
  color: #ffd4b3;
}

/* ---- Layout principal: tabla izq + mapa derecha ---- */
.loc-main-section {
  width: 100%;
  padding: 56px 24px 72px;
  background: #f4f7fb;
}
.loc-main-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* ---- Tabla ---- */
.loc-table-wrap {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(23, 67, 127, 0.09);
  overflow: hidden;
}
.loc-table-header {
  padding: 24px 24px 0;
}
.loc-table-header h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #17437f;
}
.loc-table-header p {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: #7a96ae;
}
.loc-table-scroll {
  overflow-x: auto;
}
.loc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.loc-table thead tr th {
  background: #17437f;
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  text-align: left;
}
.loc-table thead tr th:first-child {
  width: 36px;
  text-align: center;
  border-radius: 0;
}
.loc-table thead tr th:last-child {
  text-align: right;
}
.loc-table tbody tr {
  border-bottom: 1px solid #eef3f9;
  transition: background 0.15s ease;
}
.loc-table tbody tr:hover {
  background: #f0f6ff;
}
.loc-table tbody td {
  padding: 9px 16px;
  color: #2a3f54;
}
.loc-table tbody td:first-child {
  text-align: center;
  color: #9ab0c8;
  font-size: 0.78rem;
  font-weight: 600;
}
.loc-table tbody td:nth-child(2) {
  font-weight: 600;
  color: #17437f;
}
.loc-td-num {
  text-align: right;
  padding-right: 20px !important;
}

/* Barra visual proporcional */
.loc-bar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-weight: 700;
  color: #17437f;
  position: relative;
}
.loc-bar::before {
  content: "";
  display: inline-block;
  width: calc(var(--pct) * 0.7);
  max-width: 90px;
  min-width: 4px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e45d16, #c0390f);
  opacity: 0.7;
  flex-shrink: 0;
}

.loc-table tfoot .loc-tr-total td {
  background: #17437f;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.loc-table tfoot .loc-tr-total td:last-child {
  text-align: right;
  padding-right: 20px;
}

/* ---- Mapa ---- */
.loc-map-wrap {
  position: sticky;
  top: 76px;
}
.loc-map-header {
  margin-bottom: 16px;
}
.loc-map-header h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #17437f;
}
.loc-map-header p {
  margin: 0;
  font-size: 0.82rem;
  color: #7a96ae;
}
.loc-map-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9ab0c8;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .loc-main-inner {
    grid-template-columns: 1fr;
  }
  .loc-map-wrap {
    position: static;
  }
}
