body.ms-consulta-publica {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(37, 99, 235, 0.18), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(14, 165, 233, 0.14), transparent 45%),
    #0f172a;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: #0f172a;
}

body.ms-consulta-publica .wrapper,
body.ms-consulta-publica .ms-sidebar,
body.ms-consulta-publica .main-header,
body.ms-consulta-publica .ms-footer,
body.ms-consulta-publica .ms-nota-float {
  display: none !important;
}

.ms-consulta {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 2rem;
}

.ms-consulta-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28);
  overflow: hidden;
}

.ms-consulta-top {
  padding: 1.6rem 1.4rem 1.2rem;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.ms-consulta-top img {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.ms-consulta-top h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.ms-consulta-top p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.ms-consulta-form {
  padding: 1.2rem 1.3rem 1.4rem;
}

.ms-consulta-tabs {
  display: flex;
  gap: 0.4rem;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0.25rem;
  margin-bottom: 1rem;
}

.ms-consulta-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0.55rem 0.4rem;
  font-weight: 650;
  font-size: 0.86rem;
  color: #64748b;
  cursor: pointer;
}

.ms-consulta-tab.is-on {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.ms-consulta-field {
  position: relative;
  margin-bottom: 0.85rem;
}

.ms-consulta-field i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.ms-consulta-field input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 0.9rem 0 2.4rem;
  font-size: 1rem;
  outline: none;
}

.ms-consulta-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ms-consulta-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.ms-consulta-btn:hover { background: #1d4ed8; }
.ms-consulta-btn:disabled { opacity: 0.7; cursor: wait; }

.ms-consulta-msg {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.ms-consulta-msg.is-error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
}

.ms-consulta-msg.is-info {
  display: block;
  background: #eff6ff;
  color: #1d4ed8;
}

.ms-consulta-results {
  display: none;
  padding: 0 1.3rem 1.4rem;
}

.ms-consulta-results.is-on { display: block; }

.ms-consulta-cliente {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: #334155;
}

.ms-consulta-cliente b { color: #0f172a; }

.ms-consulta-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.05rem 1rem;
  margin-bottom: 0.9rem;
  background: #fff;
}

.ms-consulta-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.ms-consulta-os {
  font-weight: 800;
  color: #0f172a;
  font-size: 1rem;
}

.ms-consulta-fecha {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.ms-consulta-equipo {
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 0.85rem;
}

.ms-consulta-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: #e2e8f0;
  color: #334155;
}

.ms-consulta-badge.is-Revision { background: #f3e8ff; color: #7e22ce; }
.ms-consulta-badge.is-Diagnosticado { background: #fef3c7; color: #92400e; }
.ms-consulta-badge.is-En-reparacion { background: #dbeafe; color: #1d4ed8; }
.ms-consulta-badge.is-Espera { background: #ffedd5; color: #9a3412; }
.ms-consulta-badge.is-Terminado { background: #dcfce7; color: #166534; }
.ms-consulta-badge.is-Entregado { background: #d1fae5; color: #047857; }
.ms-consulta-badge.is-Garantia { background: #e0e7ff; color: #3730a3; }
.ms-consulta-badge.is-Anulado,
.ms-consulta-badge.is-Cancelado { background: #fee2e2; color: #b91c1c; }
.ms-consulta-badge.is-Almacenado { background: #f1f5f9; color: #475569; }

.ms-consulta-tl-title {
  margin: 0.35rem 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

.ms-consulta-tl-title i { margin-right: 0.35rem; color: #2563eb; }

.ms-consulta-tl {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.2rem 0.15rem;
}

.ms-consulta-tl li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0 1rem 0;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 650;
}

.ms-consulta-tl li:last-child { padding-bottom: 0; }

.ms-consulta-dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}

.ms-consulta-dot i {
  width: auto;
  height: auto;
  background: none;
  font-size: 0.85rem;
  color: inherit;
}

.ms-consulta-tl li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.ms-consulta-tl li.is-done { color: #1d4ed8; }
.ms-consulta-tl li.is-done .ms-consulta-dot {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.ms-consulta-tl li.is-done:not(:last-child)::before { background: #93c5fd; }

.ms-consulta-tl li.is-now { color: #0f172a; font-weight: 800; }
.ms-consulta-tl li.is-now .ms-consulta-dot {
  background: #facc15;
  border-color: #eab308;
  color: #422006;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.28);
  animation: msConsultaPulse 1.8s ease-in-out infinite;
}
.ms-consulta-tl li.is-now > span:last-child::after {
  content: " · actual";
  color: #ca8a04;
  font-size: 0.72rem;
  font-weight: 700;
}

.ms-consulta-tl li.is-now:not(:last-child)::before { background: #fde68a; }

@keyframes msConsultaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.ms-consulta-foot {
  margin-top: auto;
  padding-top: 1.2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.78rem;
}

.ms-consulta-foot a { color: #cbd5e1; }

@media (max-width: 480px) {
  .ms-consulta-top { padding: 1.25rem 1rem 1rem; }
  .ms-consulta-form,
  .ms-consulta-results { padding-left: 1rem; padding-right: 1rem; }
}
