/* ================================
   NAVEGACION REGRESO
================================ */
.back-nav {
    display: flex;
    align-items: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1.5px solid #0078A7;
    border-radius: 8px;
    color: #0078A7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.back-btn i {
    font-size: 16px;
    line-height: 1;
}

.back-btn:hover {
    background-color: #0078A7;
    color: #fff;
}

/* ================================
   BASE
================================ */
body {
    margin-top: 24px;
    background-color: #f0f4f8;
    font-family: 'Amazon Ember', Arial, sans-serif;
}

/* ================================
   CARD PRINCIPAL
================================ */
.card {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.08);
}

.bg-dark {
    background: linear-gradient(135deg, #1a2333 0%, #253448 100%) !important;
}

.bg-secondary {
    background-color: #6d7782 !important;
}

/* ================================
   STATUS BAR
================================ */
.status-bar {
    background-color: #f8fafc;
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 1px solid #eaeff4;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-label {
    color: #8a9bb0;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-value {
    color: #0078A7;
    font-weight: 700;
    font-size: 13px;
    background: #e6f4fa;
    padding: 3px 12px;
    border-radius: 20px;
}

/* ================================
   STEPS
================================ */
.steps {
    padding: 14px 16px 14px;
}

.steps .step {
    width: 100%;
    text-align: center;
}

.step-icon-wrap {
    position: relative;
    height: 68px;
    margin-bottom: 10px;
}

.step-icon-wrap::before,
.step-icon-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 38px);
    height: 2px;
    background-color: #dde4ea;
    border-radius: 2px;
}

.step-icon-wrap::before {
    left: 0;
}

.step-icon-wrap::after {
    right: 0;
}

.step:first-child .step-icon-wrap::before {
    display: none;
}

.step:last-child .step-icon-wrap::after {
    display: none;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: auto;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid #dde4ea;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: #b0bec8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step.completed .step-icon {
    background: linear-gradient(135deg, #0078A7, #00a3d9);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 120, 167, 0.32);
}

.step.completed .step-icon-wrap::before,
.step.completed .step-icon-wrap::after {
    background: linear-gradient(90deg, #0078A7, #00a3d9);
}

.step-title {
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    color: #a0adb8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.step.completed .step-title {
    color: #0078A7;
}

/* ================================
   SECTION TITLES
================================ */
.section-title {
    background-color: #fff;
    border-bottom: none;
    color: #0078A7;
    font-weight: 700;
    padding: 16px 16px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    align-items: center;
}

/* ================================
   TRACKING INFO / LIST BLOCKS
================================ */
.tracking-info,
.tracking-list {
    /*border: 1px solid #e8edf2;*/
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tracking-info-border {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

.tracking-info-border:last-child {
    border-bottom: none;
}

.tracking-info label {
    font-weight: 700;
    color: #36424b;
}

.tracking-info span {
    color: #52606d;
}

/* ================================
   DETAIL ROWS
================================ */
.detail-row {
    display: flex;
    align-items: center;
    padding: 10px 6px;
    border-bottom: 1px solid #f0f4f7;
    gap: 12px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row:hover {
    background: #f6fafc;
}

.detail-icon {
    font-size: 17px;
    color: #0078A7;
    width: 24px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    width: 120px;
    font-size: 13px;
    flex-shrink: 0;
}

.detail-value {
    color: #627082;
    flex-grow: 1;
    font-size: 13px;
}

/* ================================
   IMAGES
================================ */
.image-photo {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-photo:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

/* ================================
   ESTADO VACIO - SIN IMAGENES
================================ */
.no-evidence {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    text-align: center;
    gap: 6px;
}

.no-evidence-icon {
    font-size: 42px;
    color: #c8d9e5;
    line-height: 1;
}

.no-evidence-title {
    font-size: 13px;
    font-weight: 700;
    color: #7a8fa0;
    margin: 0;
}

.no-evidence-text {
    font-size: 12px;
    color: #a8b8c4;
    margin: 0;
    max-width: 260px;
}

/* ================================
   MOVIMIENTOS TIMELINE
================================ */
.tracking-item {
    position: relative;
    border-left: 2px solid #0078A7;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    margin-left: 2.8rem;
}

.tracking-icon {
    position: absolute;
    left: -1.2rem;
    top: 1.15rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078A7, #00a3d9);
    border: 2px solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 15px;
}

/* Primer icono: pulse suave */
.tracking-item:first-child .tracking-icon {
    animation: iconPulse 2.4s ease-in-out infinite;
}

@keyframes iconPulse {
    0%   { box-shadow: 0 0 0 0    rgba(0, 120, 167, 0.45); }
    60%  { box-shadow: 0 0 0 10px rgba(0, 120, 167, 0);    }
    100% { box-shadow: 0 0 0 0    rgba(0, 120, 167, 0);    }
}

.tracking-date {
    margin-bottom: 6px;
}

.tracking-date span {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #7a8fa0;
    background: #eef3f7;
    padding: 2px 9px;
    border-radius: 20px;
    margin-right: 4px;
    letter-spacing: 0.2px;
}

.tracking-content {
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #edf1f5;
}

.tracking-content span,
.tracking-content p {
    font-size: 13px;
    color: #627082;
}

.tracking-content .fw-bold {
    font-size: 13px;
    color: #36424b;
}
