* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.last-update {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#trackingInput {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

#trackingInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.secondary-btn {
    background: #f5f5f5;
    color: #333;
    width: 100%;
    margin-top: 20px;
}

.secondary-btn:hover {
    background: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading p {
    color: #666;
    font-size: 1rem;
}

.error {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.result {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.status-icon {
    font-size: 2.5rem;
}

.status-header h2 {
    font-size: 1.8rem;
    color: #333;
}

.status-deposito {
    color: #2196F3;
}

.status-transito {
    color: #FF9800;
}

.status-proceso {
    color: #9C27B0;
}

.status-disponible {
    color: #4CAF50;
}

.tracking-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #666;
}

.value {
    color: #333;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    main {
        padding: 25px;
    }

    .search-box {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .value {
        text-align: left;
        max-width: 100%;
    }
}