/* Página pública de tracking — Tostatronic */
.tte-page {
    max-width: 820px;
    margin: 32px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
}

.tte-page-header { text-align: center; margin-bottom: 24px; }
.tte-page-header h1 { margin: 0 0 4px 0; font-size: 28px; letter-spacing: -0.01em; }
.tte-page-brand { margin: 0; color: #6B7280; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

.tte-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.tte-card-info,
.tte-card-error { text-align: center; }
.tte-card-info h2,
.tte-card-error h2 { margin: 0 0 8px 0; font-size: 18px; }
.tte-card-error { border-color: #FCA5A5; background: #FEF2F2; }
.tte-card-info  { border-color: #BFDBFE; background: #EFF6FF; }

/* Summary block */
.tte-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px 24px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #F3F4F6;
}
.tte-summary-block { display: flex; flex-direction: column; gap: 4px; }
.tte-summary-block small {
    color: #6B7280;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
}
.tte-summary-block strong { font-size: 16px; color: #111827; word-break: break-word; }

.tte-badge {
    display: inline-block;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    align-self: flex-start;
}

/* Progress bar */
.tte-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    margin: 8px 0 16px 0;
}
.tte-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #E5E7EB;
    z-index: 0;
}
.tte-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tte-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all .2s ease;
}
.tte-step.is-done .tte-step-dot {
    background: #111827;
    border-color: #111827;
    color: #FFFFFF;
}
.tte-step.is-current .tte-step-dot {
    background: #111827;
    border-color: #111827;
    color: #FFFFFF;
    box-shadow: 0 0 0 6px rgba(17, 24, 39, 0.12);
    transform: scale(1.08);
}
.tte-step.is-problem .tte-step-dot {
    background: #DC2626;
    border-color: #DC2626;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.14);
}
.tte-step-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    max-width: 110px;
}
.tte-step.is-current .tte-step-label,
.tte-step.is-done .tte-step-label { color: #111827; font-weight: 600; }
.tte-step.is-problem .tte-step-label { color: #DC2626; font-weight: 700; }

/* Alerts */
.tte-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.tte-alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }

.tte-last-update { color: #6B7280; font-size: 13px; text-align: center; margin: 8px 0 0 0; }

.tte-page-footer { text-align: center; color: #6B7280; font-size: 13px; margin-top: 24px; }

/* Mi cuenta de WC */
.tte-my-account-table .tte-badge { display: inline-block; }

/* Responsive */
@media (max-width: 600px) {
    .tte-progress { grid-template-columns: repeat(5, 1fr); }
    .tte-step-label { font-size: 10px; }
    .tte-step-dot { width: 28px; height: 28px; font-size: 12px; }
    .tte-page-header h1 { font-size: 22px; }
}
