body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d387f, #145bca);
  color: #ffffff;
}

h2, p { color: #ffffff; }

.kpi-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  color: #ffffff;
  transition: transform 0.2s;
}
.kpi-card:hover { transform: translateY(-3px); }

/* === Buscador principal === */
.search-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 0 25px;
  height: 70px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.search-wrapper:focus-within {
  box-shadow: 0 0 0 4px rgba(20,91,202,0.3);
}
.search-wrapper i {
  font-size: 1.4rem;
  color: #145bca;
}
.search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.2rem;
  margin-left: 12px;
  color: #333;
}
.search-wrapper input::placeholder { color: #777; }
.search-wrapper button {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #145bca;
  cursor: pointer;
  transition: 0.2s;
}
.search-wrapper button:hover { color: #0d387f; transform: scale(1.2); }

/* === Chips de filtros === */
.filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 15px 0;
}
.chip {
  padding: 10px 18px;
  border-radius: 30px;
  background: #f1f5f9;
  color: #333;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip.active {
  background: linear-gradient(135deg, #145bca, #0d387f);
  color: #fff;
  box-shadow: 0 4px 10px rgba(20,91,202,0.3);
}
.chip:hover { transform: translateY(-2px); }

/* === Resultados === */
.result-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  color: #000;
}
.result-card:hover { transform: translateY(-3px); }
.result-card h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0d387f;
}
.result-card .badge {
  font-size: 0.85rem;
  padding: 0.5em 0.8em;
  border-radius: 8px;
}
.badge-matricula { background: #fff7e0; color: #ff9800; }
.badge-ubicacion { background: #e6f9ee; color: #28c76f; }
.badge-piso { background: #e8f0ff; color: #145bca; }
.result-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* Resaltado */
mark {
  background: #ffeb3b;
  color: #000;
  padding: 0 3px;
  border-radius: 3px;
}

/* Info resultados */
#infoResultados {
  border-radius: 12px;
  color: #000;
  padding: 12px 16px;
  margin: 15px 0;
  font-size: 0.95rem;
}

.spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.25rem;
}

/* === Ajustes responsivos móviles === */
@media (max-width: 768px) {
  body {
    padding: 0 8px;
  }
  h2 {
    font-size: 1.2rem;
  }
  .kpi-card h3 {
    font-size: 1.3rem;
  }
  .kpi-card p {
    font-size: 0.85rem;
  }
  .search-wrapper {
    height: 60px;
    padding: 0 15px;
  }
  .search-wrapper input {
    font-size: 1rem;
  }
  .search-wrapper i,
  .search-wrapper button {
    font-size: 1.2rem;
  }
  .filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .chip {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  .result-card {
    padding: 15px;
    border-radius: 14px;
    font-size: 0.9rem;
  }
  .result-card h6 {
    font-size: 1rem;
  }
  .result-card .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.6em;
  }
}
