* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f7f9;
}
.img-header {
  display: none;
  width: 100%;
  object-fit: contain;
}

.img-header-mobile {
  width: 100%;
  object-fit: contain;
}

.container-intro-text {
  display: flex;
  flex-direction: column;
  gap: 24px;

  padding: 16px;
  text-align: justify;
}

/* Layout: el mapa no ocupa toda la pantalla, sino una zona */
.page {
  min-height: 100vh;
  display: flex;
  gap: 24px;
  flex-direction: column;
  align-items: center;
}

/* “Card” donde vive el mapa */
.map-card {
  width: min(1100px, 100%);
  height: clamp(620px, 70vh, 760px); /* responsive alto */
  position: relative; /* para que el panel sea relativo a este contenedor */

  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  background: #fff;
}

/* El mapa llena el contenedor */
#map {
  width: 100%;
  height: 100%;
}

/* Panel flotante dentro del contenedor */
.panel {
  display: flex;
  width: 100%;
  background: var(--P-AzulUltramar);
  backdrop-filter: blur(6px);
  padding: 10px 12px;
  color: white;
  flex-direction: column;
}

.panel small {
  color: white;
  display: flex;

  margin-top: 6px;
}

.container-footer {
  display: flex;
  width: 100%;
  flex-direction: column;
  background-color: #fff;
}

.img-logo-footer {
  width: 100%;
  object-fit: cover;
}

/* En pantallas pequeñas, el panel se acomoda mejor */
@media (max-width: 480px) {
  .panel {
    left: 10px;
    right: 10px;
    width: auto;
  }
  .panel > div {
    flex-direction: column;
  }
  #btnMarcar {
    width: 100%;
  }
}

/* =========================
   ESTILOS SOLO PARA LA TABLA
   ========================= */

.table-wrap {
  width: min(1100px, 100%);
  background: #fff;

  overflow: auto; /* scroll si hay muchas filas */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px; /* para que no se rompa en pantallas pequeñas */
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--P-AzulUltramar);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  text-align: left;
  color: white;
}

.table-wrap tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

/* Zebra (filas alternas) */
.table-wrap tbody tr:nth-child(even) {
  background: #eaeaea;
}

/* Hover */
.table-wrap tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Columnas: ancho y comportamiento */
.table-wrap th:nth-child(1),
.table-wrap td:nth-child(1) {
  width: 22%;
} /* Provincia */

.table-wrap th:nth-child(2),
.table-wrap td:nth-child(2) {
  width: 22%;
} /* Cantón */

.table-wrap th:nth-child(3),
.table-wrap td:nth-child(3) {
  width: 28%; /* Distrito */
  white-space: normal; /* que pueda hacer wrap */
  word-break: break-word;
}

.table-wrap th:nth-child(4),
.table-wrap td:nth-child(4) {
  width: 18%;
  text-align: left;
}

/* Botón dentro de la tabla (si querés que se vea uniforme) */
.table-wrap .btn {
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Responsive: en móvil, permitir scroll horizontal sin romper layout */
@media (max-width: 768px) {
  .table-wrap table {
    min-width: 680px;
  }
}

.container-intro-text {
  max-width: 1100px;
}

.table-filters {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.page-info {
  color: #5b5b5b;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager-btn {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 40px;
}

.pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-num {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
}

.page-num.active {
  background: #2b165f; /* similar al header morado */
  color: #fff;
  border-color: #2b165f;
}

.per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.img-logo-footer {
  width: 140px;
}

@media (max-width: 768px) {
  .table-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .pager {
    justify-content: center;
  }
}
.logo-container {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

a {
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 620px) {
  .img-header {
    display: flex;
  }
  .img-header-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .Subtitle--AzulUltramar {
    font-size: 14px !important;
  }

  .h-44 {
    height: 44px;
  }
}

@media (min-width: 480px) {
  .Subtitle--AzulUltramar {
    font-size: 18px !important;
  }

  .img-logo-footer {
    width: 180px;
  }
}

@media (min-width: 1024px) {
  .img-header {
    display: flex;
  }

  .img-header-mobile {
    display: none;
  }

  .footer-content {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1100px;
  }

  .container-footer {
    width: 100%;
    justify-content: center;
    gap: 24px;
    align-items: center;
    padding: 16px;
    background: white;
  }

  .img-logo-footer {
    width: 240px;
    object-fit: cover;
  }
}
