* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f5f9;
  color: #1e293b;
  padding-bottom: 95px;
}

header {
  background-color: #0f172a;
  color: #ffffff;
  padding: 20px 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 4px;
}

.buscador-contenedor {
  max-width: 600px;
  margin: 12px auto 0;
}

#buscador {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.contenedor {
  max-width: 600px;
  margin: 15px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mensaje-estado {
  text-align: center;
  color: #64748b;
  padding: 20px;
}

.tarjeta {
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  border-left: 5px solid #cbd5e1;
  transition: border-color 0.2s, background-color 0.2s;
}

.tarjeta.seleccionada {
  border-left-color: #2563eb;
  background-color: #eff6ff;
}

.tarjeta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.store-id {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background-color: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.tarjeta-header h2 {
  font-size: 1rem;
  line-height: 1.3;
}

.direccion {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 12px;
  line-height: 1.4;
}

.check-ruta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  white-space: nowrap;
}

.check-ruta input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.botones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn {
  text-decoration: none;
  text-align: center;
  padding: 10px 5px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.btn-llamar { background-color: #0284c7; }
.btn-whatsapp { background-color: #16a34a; }
.btn-waze { background-color: #33ccff; color: #0f172a; }

.btn-deshabilitado {
  background-color: #cbd5e1;
  color: #64748b;
  pointer-events: none;
}

.panel-flotante {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.oculto {
  display: none;
}

.acciones-ruta {
  display: flex;
  gap: 10px;
}

button {
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secundario { background-color: #475569; color: #ffffff; }
.btn-ruta { background-color: #2563eb; color: #ffffff; }
