:root {
    --primary: #0062ff;
    --dark: #0a0f1a;
    --text: #475569;
    --light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #f8fafc; color: var(--dark); overflow-x: hidden; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.navbar { background: white; padding: 15px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.nav-layout { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-weight: 800; font-size: 1.5rem; }
.logo-text span { color: var(--primary); }
.menu { list-style: none; display: flex; gap: 20px; align-items: center; }
.menu a { text-decoration: none; color: var(--text); font-weight: 600; }
.nav-btn { background: var(--dark); color: white !important; padding: 8px 20px; border-radius: 6px; }

/* HERO */
.hero { background: var(--dark); color: white; padding: 100px 0; text-align: center; }
.badge { background: rgba(0,98,255,0.2); color: var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.hero h1 { font-size: 3rem; margin: 20px 0; }
.btn-main { background: var(--primary); color: white; text-decoration: none; padding: 15px 30px; border-radius: 8px; font-weight: 700; display: inline-block; margin-top: 20px; }

/* SEARCH CARD */
.tracking-section { margin-top: -50px; padding-bottom: 50px; }
.card-search { background: white; border-radius: 20px; padding: 40px; box-shadow: var(--shadow); max-width: 800px; margin: 0 auto; }
.search-form { display: flex; gap: 10px; margin: 30px 0; background: #f1f5f9; padding: 10px; border-radius: 12px; }
.input-group { flex: 1; display: flex; align-items: center; padding-left: 15px; }
.input-group input { border: none; background: transparent; padding: 10px; width: 100%; outline: none; font-size: 1rem; }
.search-form button { background: var(--primary); color: white; border: none; padding: 10px 25px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* RESULTADOS */
.destinatario-info { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; background: #f8fafc; padding: 20px; border-radius: 12px; margin: 20px 0; }
.info-box span { font-size: 0.7rem; color: var(--text); text-transform: uppercase; }
.info-box p { font-weight: 700; }
.status-badge { background: #dcfce7; color: #166534; padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; }

.timeline { margin-top: 30px; border-left: 2px solid #eee; padding-left: 20px; position: relative; }
.timeline-item { margin-bottom: 30px; position: relative; }
.timeline-icon { position: absolute; left: -31px; background: white; border: 2px solid #eee; width: 20px; height: 20px; border-radius: 50%; }
.timeline-item.active .timeline-icon { background: var(--primary); border-color: var(--primary); }
.timeline-info h5 { font-size: 1rem; }
.timeline-info p { font-size: 0.9rem; color: var(--text); }

/* ADMIN */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--dark); color: white; padding: 30px; }
.admin-content { flex: 1; padding: 50px; }
.sidebar-link { color: #94a3b8; text-decoration: none; display: block; padding: 10px 0; }
.sidebar-link.active { color: white; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group.full { grid-column: span 2; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.btn-submit { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; margin-top: 20px; }

.error-msg { background: #fee2e2; color: #991b1b; padding: 15px; border-radius: 8px; text-align: center; }
.alert.success { background: #dcfce7; color: #166534; padding: 15px; border-radius: 8px; margin-bottom: 20px; }