:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --accent: #FA751B;
  --ok: #16a34a;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

/* Reset */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 40px 24px;
}

/* Layout */

.container {
  max-width: 1100px;
  margin: auto;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Buscador */

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.search-box input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.9rem;
}

.search-box input:focus {
  outline: none;
  border-color: #cbd5f5;
  box-shadow: 0 0 0 2px #eef2ff;
}

.search-box button {
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.search-box button:hover {
  filter: brightness(1.05);
}

/* Tabla resultados */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.85rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
}

th {
  background: #f8fafc;
  font-weight: 600;
  text-align: center;
}

td {
  text-align: center;
}

td.left {
  text-align: left;
}

/* Estados */

.empty {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
}

.caption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Nota normativa */

.nota-cm {
  margin-top: 14px;
  padding: 12px;
  border-left: 4px solid var(--accent);
  background: #fff7ed;
  font-size: 0.82rem;
  color: #7c2d12;
  border-radius: 6px;
}

/* Cards jurisdicciones */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all .18s ease;
}

.card.active {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.card.disabled {
  opacity: .55;
}

.provincia {
  font-weight: 600;
  font-size: 1.05rem;
}

.status {
  margin-top: 8px;
  font-size: 0.82rem;
}

.ok {
  color: var(--ok);
  font-weight: 600;
}

.pending {
  color: var(--muted);
}

/* Footer */

.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.nota-legal {
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fb;
  border-left: 4px solid #1a1858;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
}

.nota-legal h3 {
  margin-top: 0;
  font-size: 16px;
}

.nota-legal .disclaimer {
  margin-top: 10px;
  font-style: italic;
  opacity: 0.8;
}

.nota-superior {
  background: #f9fafc;
  border-left: 4px solid #1a1858;
  margin-bottom: 18px;
}

.ali {
  display: block;
  line-height: 1.3;
  padding: 1px 0;
}
