/* Tarjeta de Paquete y Timeline Vivo */
.tracking-results {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-summary {
  background: #EEF2FF;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-card);
}

.order-summary-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.order-summary-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.package-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.tracking-code {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 214, 160, 0.12);
  color: #047857;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-color);
  box-shadow: 0 0 0 0 var(--live-glow);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--live-glow); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 214, 160, 0); }
}

/* Timeline y Puntos de Control */
.timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 32px 0 16px;
  padding: 0 10px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: var(--pending-color);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 18px;
  left: 20px;
  height: 4px;
  background: var(--primary);
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.node-bullet {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 4px solid var(--pending-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.3s ease;
}

/* Punto Completado */
.timeline-node.completed .node-bullet {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* Punto Vivo / Actual */
.timeline-node.active .node-bullet {
  background: var(--live-color);
  border-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 0 0 5px var(--live-glow), 0 4px 10px rgba(6, 214, 160, 0.3);
  animation: bullet-glow 2s infinite ease-in-out;
}

@keyframes bullet-glow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px var(--live-glow); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 9px rgba(6, 214, 160, 0.25); }
}

.node-label {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
}

.timeline-node.active .node-label {
  color: var(--primary);
  font-weight: 800;
}

.timeline-node.completed .node-label {
  color: var(--text-main);
}

.status-detail-bar {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.status-detail-text {
  font-weight: 700;
  color: var(--primary);
}

.status-detail-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}
