/* Estilos para el Portal de Seguimiento de Clientes */
:root {
    --bg-client-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
}

.bg-client {
    background: var(--bg-client-gradient);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

.client-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.client-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.client-header .logo {
    justify-content: center;
    margin-bottom: 8px;
}

.client-header p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-glass h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid #ddd;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--c-cyan);
    box-shadow: 0 0 0 4px rgba(19, 182, 236, 0.1);
}

/* Resultados de Pedidos */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--c-cyan);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.orders-grid {
    display: grid;
    gap: 16px;
}

.order-row-card {
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.order-row-card:hover {
    transform: translateX(5px);
    border-color: var(--c-cyan);
    box-shadow: var(--shadow-soft);
}

.order-main-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.order-main-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Timeline */
.card-detail {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.detail-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 24px;
}

.badge-folio {
    background: #eef2f7;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.order-eta label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    text-align: right;
}

.order-eta strong {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 60px;
    padding: 0 20px;
}

.timeline-track {
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #eef2f7;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 80px;
}

.step-icon {
    width: 34px;
    height: 34px;
    background: white;
    border: 3px solid #eef2f7;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #cbd5e0;
    transition: all 0.3s;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e0;
    transition: all 0.3s;
}

/* Estados actvos en Timeline */
.timeline-step.completed .step-icon {
    background: #34c759;
    border-color: #34c759;
    color: white;
}

.timeline-step.completed .step-label {
    color: #34c759;
}

.timeline-step.active .step-icon {
    background: white;
    border-color: var(--c-cyan);
    color: var(--c-cyan);
    box-shadow: 0 0 0 5px rgba(19, 182, 236, 0.1);
}

.timeline-step.active .step-label {
    color: var(--text-primary);
    font-weight: 700;
}

.detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.client-footer {
    margin-top: auto;
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .timeline-container {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
        padding-left: 40px;
    }

    .timeline-track {
        left: 56px;
        width: 4px;
        height: calc(100% - 40px);
    }

    .timeline-step {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
        text-align: left;
    }

    .step-icon {
        margin: 0;
    }

    .search-box {
        flex-direction: column;
    }
}