/* Accesorios Rastreo - Styles */
#rastreo-accesorios-wrap { max-width: 720px; margin: 0 auto; font-family: inherit; }

.rastreo-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 32px 28px;
    margin-bottom: 24px;
}
.rastreo-title { font-size: 1.4em; font-weight: 700; margin: 0 0 6px; color: #222; }
.rastreo-subtitle { color: #666; margin: 0 0 24px; font-size: 0.97em; }

.rastreo-fields { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rastreo-field { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.rastreo-field label { font-size: 0.88em; font-weight: 600; color: #444; }
.rastreo-field input {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s;
}
.rastreo-field input:focus { border-color: #E85A00; }

.rastreo-submit-btn {
    background: #E85A00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}
.rastreo-submit-btn:hover { background: #c74e00; }
.rastreo-submit-btn:active { transform: scale(0.98); }
.rastreo-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Resultado */
.rastreo-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    color: #664d03;
    font-size: 0.97em;
}

.rastreo-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    overflow: hidden;
}

.rastreo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 12px;
}
.rastreo-order-info { display: flex; flex-direction: column; gap: 4px; }
.rastreo-order-num { font-size: 1.15em; font-weight: 700; color: #222; }
.rastreo-cliente { font-size: 0.9em; color: #666; }

.rastreo-estado-badge {
    color: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.88em;
    font-weight: 700;
    white-space: nowrap;
}

.rastreo-meta {
    display: flex;
    gap: 24px;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.rastreo-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.9em; color: #555; }

/* Timeline */
.rastreo-timeline { padding: 20px 24px; }
.rastreo-timeline-title { font-size: 1em; font-weight: 700; color: #444; margin: 0 0 16px; }
.rastreo-timeline-list { display: flex; flex-direction: column; gap: 0; }

.rastreo-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 20px;
    position: relative;
}
.rastreo-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.rastreo-timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    flex-shrink: 0;
    z-index: 1;
}
.rastreo-timeline-content { padding-top: 6px; }
.rastreo-timeline-label { font-size: 0.97em; font-weight: 600; color: #222; }
.rastreo-timeline-date { font-size: 0.82em; color: #888; margin-top: 2px; }
.rastreo-timeline-comment { font-size: 0.85em; color: #555; margin-top: 4px; font-style: italic; }

.rastreo-timeline-current .rastreo-timeline-label { color: #E85A00; }
.rastreo-timeline-current .rastreo-timeline-dot { box-shadow: 0 0 0 4px rgba(232,90,0,0.15); }

@media (max-width: 500px) {
    .rastreo-form-card { padding: 20px 16px; }
    .rastreo-fields { flex-direction: column; }
    .rastreo-header { flex-direction: column; align-items: flex-start; }
    .rastreo-timeline { padding: 16px; }
}
