/* ========================================
   SISTEMA TÉCNICO - CELL SPACE
   Solo Rastreo de Equipos
   ======================================== */

.tech-header {
  text-align: center;
  padding: 60px 20px 30px;
  background: linear-gradient(180deg, rgba(255,106,0,0.15) 0%, transparent 100%);
  position: relative;
}

.back-btn {
  position: absolute;
  left: 20px;
  top: 20px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s;
  border: 1px solid rgba(255,106,0,0.3);
}

.back-btn:hover { 
  background: rgba(255,106,0,0.2); 
  transform: translateX(-3px);
}

.tech-header h1 {
  font-size: 2.5rem;
  margin: 0;
  color: white;
  font-weight: 700;
}

.tech-header h1 span { color: var(--orange); }
.tech-header p { color: var(--muted); margin: 10px 0 0; font-size: 1.1rem; }

.tech-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.card {
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,106,0,0.2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.card h2 { 
  color: white; 
  margin: 0 0 10px; 
  font-size: 1.8rem; 
  text-align: center;
}

.subtitle { 
  color: var(--muted); 
  margin: 0 0 30px; 
  text-align: center;
  font-size: 1rem;
}

.search-box { 
  display: flex; 
  gap: 12px; 
  margin-bottom: 15px; 
}

.search-box input {
  flex: 1; 
  background: rgba(255,255,255,0.05); 
  border: 2px solid rgba(255,255,255,0.1);
  color: white; 
  padding: 15px 20px; 
  border-radius: 12px; 
  font-size: 1.1rem;
  transition: all 0.3s;
}

.search-box input:focus { 
  outline: none; 
  border-color: var(--orange);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(255,106,0,0.2);
}

.search-box button {
  background: var(--orange); 
  color: white; 
  border: none; 
  padding: 0 30px; 
  border-radius: 12px; 
  cursor: pointer; 
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
}

.search-box button:hover {
  background: #ff8533;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255,106,0,0.4);
}

.hint { 
  color: var(--muted); 
  font-size: 0.9rem; 
  margin: 0;
  text-align: center;
  padding: 15px;
  background: rgba(255,106,0,0.05);
  border-radius: 10px;
}

/* RESULTADO DE ORDEN */
.result-container { margin-top: 30px; }

.order-card {
  background: rgba(255,255,255,0.03); 
  border: 2px solid rgba(255,106,0,0.3);
  border-radius: 16px; 
  padding: 30px; 
  margin-top: 20px;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(20px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.order-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.order-header h3 { 
  margin: 0; 
  color: white; 
  font-size: 1.5rem; 
}

.date { 
  color: var(--muted); 
  font-size: 0.9rem; 
  margin: 5px 0 0; 
}

.status-badge { 
  padding: 8px 16px; 
  border-radius: 25px; 
  font-weight: 700; 
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 15px; 
  margin-bottom: 25px; 
}

.info-box {
  background: rgba(255,255,255,0.05); 
  padding: 15px; 
  border-radius: 12px;
  display: flex; 
  flex-direction: column;
  border-left: 3px solid var(--orange);
}

.info-box span { 
  color: var(--muted); 
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.info-box strong { 
  color: white; 
  font-size: 1.05rem;
}

.fault-box {
  background: rgba(255,106,0,0.05); 
  padding: 15px; 
  border-radius: 12px; 
  margin-bottom: 25px;
  border-left: 4px solid var(--orange);
}

.fault-box strong {
  color: var(--orange);
  display: block;
  margin-bottom: 5px;
}

/* TIMELINE */
.timeline-title {
  color: white;
  margin: 25px 0 15px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  position: relative; 
  padding-left: 25px; 
}

.timeline::before {
  content: ''; 
  position: absolute; 
  left: 8px; 
  top: 5px; 
  bottom: 5px; 
  width: 2px; 
  background: rgba(255,255,255,0.1);
}

.timeline-item { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
  position: relative; 
}

.timeline-dot {
  width: 16px; 
  height: 16px; 
  border-radius: 50%; 
  background: #333; 
  border: 3px solid #555; 
  flex-shrink: 0;
  transition: all 0.3s;
}

.timeline-item.done .timeline-dot { 
  background: var(--orange); 
  border-color: var(--orange);
  box-shadow: 0 0 10px rgba(255,106,0,0.5);
}

.timeline-item.active .timeline-dot { 
  background: #2196F3; 
  border-color: #2196F3; 
  box-shadow: 0 0 15px #2196F3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 15px #2196F3; }
  50% { box-shadow: 0 0 25px #2196F3; }
}

.timeline-item span { 
  color: var(--muted); 
  font-weight: 500;
  font-size: 1rem;
}

.timeline-item.done span { 
  color: white; 
}

.timeline-item.active span {
  color: #2196F3;
  font-weight: 700;
}

/* LOADING & ERROR */
.loading {
  text-align: center;
  color: var(--muted);
  padding: 30px;
  font-size: 1.1rem;
}

.error {
  text-align: center;
  color: #ff4444;
  padding: 20px;
  background: rgba(255,68,68,0.1);
  border-radius: 12px;
  margin-top: 20px;
  border: 1px solid rgba(255,68,68,0.3);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .tech-header h1 { font-size: 1.8rem; }
  .card { padding: 25px; }
  .search-box { flex-direction: column; }
  .search-box button { padding: 15px; }
  .info-grid { grid-template-columns: 1fr; }
  .order-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}
