:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #111827;
    --bg-card: #1f2937;
    --text-main: #ffffff;
    --text-secondary: #9ca3af;
    --border: #374151;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

header {
    padding: 20px 5%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hero .transportadoras {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.search-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
}

.search-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.input-group {
    display: flex;
    gap: 15px;
}

input {
    flex: 1;
    background: #111827;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.btn-rastrear {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-rastrear:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.format-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Resultado Section */
#result-section {
    display: none;
    margin-top: 30px;
}

.status-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.progress-container {
    margin: 30px 0;
}

.progress-bar {
    height: 8px;
    background: #111827;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    width: 65%;
    border-radius: 4px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.step {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    position: relative;
}

.step.active {
    color: var(--text-main);
    font-weight: 600;
}

.step i {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

#map {
    height: 400px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

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

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.timeline-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.timeline-content {
    font-size: 14px;
    font-weight: 500;
}

.timeline-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.partner-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.partner-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.partner-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.partner-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.partner-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

footer {
    border-top: 1px solid var(--border);
    padding: 50px 5%;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-rastrear {
        padding: 15px;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    #map {
        height: 300px;
    }
}
