.rastreo-avanzado {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rastreo-avanzado h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-button {
  background: #eff6ff;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-button:hover {
  background: #3b82f6;
  color: #fff;
}

.filter-button.active {
  background: #2563eb;
  color: #fff;
}

.pedido-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #3b82f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pedido-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.pedido-card p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #475569;
}

.notification {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #fee2e2;
  border-radius: 0.25rem;
  display: inline-block;
}

.pedido-card img {
  max-width: 150px;
  border-radius: 0.5rem;
  margin-top: 0.75rem;
}

.pedido-card .print-btn {
  background: #10b981;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  transition: background 0.2s ease;
}

.pedido-card .print-btn:hover {
  background: #059669;
}

.custom-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.custom-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.custom-section p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

.custom-section ul {
  list-style-type: none;
  padding-left: 0;
}

.custom-section ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.custom-section ul li:before {
  content: "👉";
  position: absolute;
  left: 0;
}

@media (max-width: 640px) {
  .rastreo-avanzado {
    padding: 1rem;
  }
  .filtros {
    flex-direction: column;
    gap: 0.5rem;
  }
  .pedido-card {
    padding: 1rem;
  }
  .custom-section {
    padding: 1rem;
  }
}