/* ===================== Buscador Sepulturas - Estilo sitio ===================== */

:root {
  --sep-bg: transparent;
  --sep-card: #ffffff;
  --sep-border: rgba(15, 23, 42, .12);
  --sep-text: #0f172a;
  --sep-muted: rgba(15, 23, 42, .65);
  --sep-strip: #f8fafc;
  --sep-head: #f1f5f9;
  --sep-primary: #0b5c7a;
  --sep-primary-2: #0ea5e9;
  --sep-shadow: 0 10px 30px rgba(2, 6, 23, .12);
}

.sep-wrap {
  color: var(--sep-text);
  background: var(--sep-bg);
}

.sep-wrap#sep-root {
  background: var(--sep-card);
  border: 1px solid var(--sep-border);
  border-radius: 18px;
  box-shadow: var(--sep-shadow);
  padding: 22px 22px 18px;
  max-width: 1200px;
  margin: 24px auto;
}

.sep-h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.sep-sub {
  margin: 0 0 18px;
  color: var(--sep-muted);
  font-size: 14px;
}

.sep-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.sep-bar input {
  flex: 1;
  min-width: 260px;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--sep-border);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.sep-bar input:focus {
  border-color: rgba(14, 165, 233, .55);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .18);
}

/* Botón buscar (amarillo) */
.sep-btn {
  appearance: none;
  border: none;
  background: #f4c21d;
  color: #000;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all .15s ease;
  box-shadow: 0 4px 0 #c89f00;
}

.sep-btn:hover {
  filter: brightness(1.05);
}

.sep-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c89f00;
}

.sep-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sep-pill {
  font-size: 13px;
  color: var(--sep-muted);
}

.sep-tablewrap {
  border: 1px solid var(--sep-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.sep-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.sep-table thead th {
  background: var(--sep-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .25px;
  text-transform: uppercase;
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--sep-border);
  color: rgba(15, 23, 42, .85);
}

.sep-table tbody td {
  padding: 14px 14px;
  font-size: 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.sep-table tbody tr:nth-child(even) {
  background: var(--sep-strip);
}

/* Botón "Ver en mapa" */
.sep-table .sep-btn-map,
.sep-table a.sep-btn-map,
.sep-table button.sep-btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sep-primary-2);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: filter .15s ease, transform .06s ease;
}

.sep-table .sep-btn-map:hover {
  filter: brightness(1.05);
}

.sep-table .sep-btn-map:active {
  transform: translateY(1px);
}

.sep-nores {
  padding: 16px;
  color: var(--sep-muted);
  display: none;
  font-size: 16px;
  font-weight: 500;
}

.sep-pager {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px;
  font-size: 13px;
  background: #fff;
  border-top: 1px solid var(--sep-border);
}

.sep-pagebtn {
  appearance: none;
  border: 1px solid var(--sep-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.sep-pagebtn:disabled {
  opacity: .45;
  cursor: default;
}

/* ===================== MÓVIL: convertir tabla a cards ===================== */
@media (max-width: 768px) {
  .sep-wrap#sep-root {
    padding: 16px 14px 12px;
    border-radius: 16px;
  }

  /* evita scroll horizontal */
  .sep-tablewrap { overflow: visible; }
  .sep-table { min-width: 0; }

  /* ocultar encabezado */
  .sep-table thead { display: none; }

  /* convertir tabla a cards */
  .sep-table,
  .sep-table tbody,
  .sep-table tr,
  .sep-table td {
    display: block;
    width: 100%;
  }

  /* tarjeta */
  .sep-table tbody tr {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    margin: 12px 0;
    overflow: hidden;
  }

  /* cada "campo" */
  .sep-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    text-align: left; /* importante */
  }

  .sep-table tbody td:last-child {
    border-bottom: 0;
    padding-top: 14px;
  }

  /* label arriba */
  .sep-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .25px;
    color: rgba(15, 23, 42, .60);
  }

  /* valores con buena lectura */
  .sep-table tbody td strong {
    font-weight: 800;
  }

  /* botón full width */
  .sep-table .sep-btn-map,
  .sep-table a.sep-btn-map,
  .sep-table button.sep-btn-map {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 999px;
  }
}