/* RMX Seguimiento de Orden */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

#rmx-seguimiento {
    --rs-bg: #0b0f19;
    --rs-surface: #121829;
    --rs-surface-2: #1a2236;
    --rs-border: rgba(255,255,255,0.07);
    --rs-text: #f1f5f9;
    --rs-text-2: #94a3b8;
    --rs-text-3: #64748b;
    --rs-red: #ef4444;
    --rs-green: #22c55e;
    --rs-amber: #f59e0b;
    --rs-blue: #3b82f6;
    --rs-r: 16px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--rs-text);
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 16px;
    -webkit-font-smoothing: antialiased;
}
#rmx-seguimiento *, #rmx-seguimiento *::before, #rmx-seguimiento *::after { box-sizing: border-box; }

/* ── Form Card ── */
.rs-card {
    background: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-r);
    padding: 32px 28px;
    animation: rsFadeUp 0.4s ease both;
}
.rs-form-icon {
    width: 56px; height: 56px;
    background: rgba(239,68,68,0.1);
    border-radius: 16px;
    display: grid; place-items: center;
    margin: 0 auto 20px;
}
.rs-form-icon svg { width: 28px; height: 28px; color: var(--rs-red); }
.rs-form-title {
    text-align: center; font-size: 1.4rem; font-weight: 700;
    color: var(--rs-text); margin: 0 0 6px; letter-spacing: -0.02em;
}
.rs-form-sub {
    text-align: center; font-size: 0.85rem; color: var(--rs-text-2); margin: 0 0 28px;
}

.rs-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.rs-field {}
.rs-label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: var(--rs-text-2); text-transform: uppercase;
    letter-spacing: 0.06em; margin-bottom: 6px;
}
.rs-input {
    width: 100%; padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--rs-border);
    border-radius: 12px; color: var(--rs-text);
    font-size: 1.1rem; font-weight: 600;
    font-family: inherit; text-transform: uppercase;
    letter-spacing: 0.08em; transition: border-color 0.2s;
}
.rs-input:focus { outline: none; border-color: var(--rs-red); background: rgba(255,255,255,0.06); }
.rs-input::placeholder { color: var(--rs-text-3); text-transform: none; letter-spacing: normal; font-weight: 400; }

.rs-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none; border-radius: 12px;
    color: #fff; font-size: 0.95rem; font-weight: 700;
    font-family: inherit; letter-spacing: 0.06em;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.rs-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239,68,68,0.3); }
.rs-btn:active { transform: translateY(0); }
.rs-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.rs-error {
    text-align: center; margin-top: 16px;
    font-size: 0.85rem; color: #f87171;
    min-height: 20px;
}

/* ── Result ── */
.rs-result { animation: rsFadeUp 0.4s ease both; }

/* Status hero */
.rs-status-hero {
    text-align: center; padding: 32px 24px;
    background: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-r);
    margin-bottom: 16px;
    position: relative; overflow: hidden;
}
.rs-status-hero::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
}
.rs-status-hero.st-espera::before { background: var(--rs-amber); }
.rs-status-hero.st-servicio::before { background: var(--rs-blue); }
.rs-status-hero.st-listo::before { background: var(--rs-green); }
.rs-status-hero.st-entregado::before { background: var(--rs-text-3); }
.rs-status-hero.st-otro::before { background: var(--rs-red); }

.rs-status-icon {
    width: 64px; height: 64px;
    border-radius: 50%; margin: 0 auto 16px;
    display: grid; place-items: center;
}
.rs-status-icon svg { width: 32px; height: 32px; }

.st-espera .rs-status-icon { background: rgba(245,158,11,0.12); color: var(--rs-amber); }
.st-servicio .rs-status-icon { background: rgba(59,130,246,0.12); color: var(--rs-blue); }
.st-listo .rs-status-icon { background: rgba(34,197,94,0.12); color: var(--rs-green); }
.st-entregado .rs-status-icon { background: rgba(148,163,184,0.1); color: var(--rs-text-2); }
.st-otro .rs-status-icon { background: rgba(239,68,68,0.12); color: var(--rs-red); }

.rs-status-label {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--rs-text-3); margin-bottom: 4px;
}
.rs-status-name {
    font-size: 1.6rem; font-weight: 800; color: var(--rs-text);
    letter-spacing: -0.02em; margin-bottom: 8px;
}
.rs-status-taller {
    font-size: 0.85rem; color: var(--rs-text-2);
}

/* Vehicle info */
.rs-vehicle {
    background: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-r);
    padding: 20px 24px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 16px;
}
.rs-vehicle-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(59,130,246,0.1);
    display: grid; place-items: center; flex-shrink: 0;
}
.rs-vehicle-icon svg { width: 24px; height: 24px; color: var(--rs-blue); }
.rs-vehicle-body { flex: 1; }
.rs-vehicle-name { font-size: 1rem; font-weight: 700; color: var(--rs-text); }
.rs-vehicle-plate {
    display: inline-block; margin-top: 4px;
    padding: 2px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--rs-border);
    font-size: 0.8rem; font-weight: 700; color: var(--rs-text-2);
    letter-spacing: 0.08em;
}

/* Order details */
.rs-details {
    background: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-r);
    padding: 20px 24px; margin-bottom: 16px;
}
.rs-details-title {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--rs-text-3); margin-bottom: 14px;
}
.rs-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .rs-detail-grid { grid-template-columns: 1fr; } }
.rs-detail-item {}
.rs-detail-label { font-size: 0.72rem; color: var(--rs-text-3); font-weight: 500; }
.rs-detail-value { font-size: 0.9rem; color: var(--rs-text); font-weight: 600; margin-top: 2px; }

/* Timeline */
.rs-timeline {
    background: var(--rs-surface);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-r);
    padding: 20px 24px; margin-bottom: 16px;
}
.rs-timeline-title {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--rs-text-3); margin-bottom: 18px;
}
.rs-timeline-list { position: relative; padding-left: 24px; }
.rs-timeline-line {
    position: absolute; left: 5px; top: 8px; bottom: 8px;
    width: 2px; background: rgba(255,255,255,0.06);
}
.rs-timeline-item {
    position: relative; padding-bottom: 20px;
}
.rs-timeline-item:last-child { padding-bottom: 0; }
.rs-timeline-dot {
    position: absolute; left: -24px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--rs-surface);
}
.rs-timeline-item:last-child .rs-timeline-dot { background: var(--rs-red); box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }
.rs-timeline-item .rs-timeline-dot { background: var(--rs-text-3); }
.rs-timeline-estado { font-size: 0.85rem; font-weight: 700; color: var(--rs-text); }
.rs-timeline-fecha { font-size: 0.75rem; color: var(--rs-text-3); margin-top: 2px; }
.rs-timeline-comment {
    font-size: 0.8rem; color: var(--rs-text-2);
    margin-top: 6px; padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px; border-left: 3px solid var(--rs-red);
    line-height: 1.4;
}

/* Back button */
.rs-back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; margin-top: 8px;
    background: transparent; border: 1px solid var(--rs-border);
    border-radius: 12px; color: var(--rs-text-2);
    font-size: 0.85rem; font-weight: 600;
    font-family: inherit; cursor: pointer;
    transition: all 0.2s;
}
.rs-back:hover { border-color: var(--rs-red); color: var(--rs-text); }
.rs-back svg { width: 16px; height: 16px; }

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