/**
 * Estilos para el Sistema de Rastreo de Pedidos
 * InkaBox Express
 */

/* Sección de Tracking */
.tracking-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.tracking-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tracking-header {
    text-align: center;
    margin-bottom: 30px;
}

.tracking-header i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.tracking-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.tracking-header p {
    color: #718096;
    font-size: 16px;
}

/* Formulario */
.tracking-form {
    margin-bottom: 30px;
}

.tracking-form .form-group {
    margin-bottom: 20px;
}

.tracking-form label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.tracking-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tracking-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tracking-form .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

/* Asegurar que el icono de búsqueda sea blanco */
.tracking-form .btn-primary i,
.tracking-form .btn-primary .fas,
.tracking-form .btn-primary .fa-search {
    color: white !important;
}

/* Resultado del Tracking */
.tracking-result {
    margin-top: 30px;
    animation: fadeIn 0.3s ease;
}

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

/* Loading */
.tracking-loading {
    text-align: center;
    padding: 40px;
}

.tracking-loading i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.tracking-loading p {
    color: #718096;
    font-size: 16px;
}

/* Error */
.tracking-error {
    text-align: center;
    padding: 40px;
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
}

.tracking-error i {
    font-size: 48px;
    color: #e53e3e;
    margin-bottom: 15px;
}

.tracking-error h3 {
    font-size: 20px;
    font-weight: 700;
    color: #742a2a;
    margin-bottom: 10px;
}

.tracking-error p {
    color: #c53030;
    margin-bottom: 20px;
}

/* Success */
.tracking-success {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.tracking-header-result {
    text-align: center;
    padding: 30px;
    background: #325aa6 !important;
    color: white !important;
}

.tracking-header-result i {
    font-size: 48px;
    margin-bottom: 10px;
    color: white !important;
}

.tracking-header-result h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white !important;
}

/* Info Grid */
.tracking-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tracking-info-item {
    text-align: center;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

/* Estado Actual */
.tracking-status-current {
    text-align: center;
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.status-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-description {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* Timeline */
.tracking-timeline {
    padding: 30px;
}

.tracking-timeline h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.tracking-timeline h4 i {
    color: #667eea;
    margin-right: 8px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.timeline-content {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
}

.timeline-date {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 5px;
}

.timeline-comment {
    font-size: 13px;
    color: #718096;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.timeline-comment i {
    color: #667eea;
    margin-right: 5px;
}

/* Acciones */
.tracking-actions {
    display: flex;
    padding: 30px;
    justify-content: center;
    background: #f7fafc;
    border-top: 2px solid #e2e8f0;
}

.tracking-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.tracking-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tracking-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .tracking-card {
        padding: 30px 20px;
    }

    .tracking-header h2 {
        font-size: 24px;
    }

    .tracking-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tracking-actions {
        flex-direction: column;
    }

    .tracking-actions .btn {
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .tracking-form,
    .tracking-actions,
    nav,
    footer {
        display: none !important;
    }

    .tracking-section {
        padding: 0;
        background: white;
    }

    .tracking-card {
        box-shadow: none;
        padding: 20px;
    }

    .tracking-success {
        page-break-inside: avoid;
    }
}
/* ========================================
   FIX ICONOS BLANCOS - TRACKING
   ======================================== */

/* Forzar icono blanco en botón de tracking con máxima especificidad */
.tracking-section .tracking-form .btn-primary i,
.tracking-form .btn-primary i.fa-search,
.tracking-form button.btn-primary i,
section.tracking-section .tracking-form .btn i {
    color: white !important;
}

/* Regla universal para iconos en tracking */
.tracking-form i[class*="fa-"],
.tracking-form .fas[class*="fa-"] {
    color: white !important;
}