body {
    background: linear-gradient(135deg, #2351A7 0%, #1BCED6 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}
.fondo-awbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
}
.fondo-awbox svg {
    position: absolute;
    animation-timing-function: linear;
}
.fondo-avion {
    left: 10vw;
    top: 20vh;
    width: 120px;
    opacity: 0.19;
    animation: avionVuelo 13s infinite alternate;
}
@keyframes avionVuelo {
    0% { left: 10vw; top: 20vh; }
    100% { left: 70vw; top: 28vh; }
}
.fondo-caja {
    left: 70vw;
    top: 55vh;
    width: 70px;
    opacity: 0.13;
    animation: cajaVuelo 16s infinite alternate-reverse;
}
@keyframes cajaVuelo {
    0% { left: 70vw; top: 55vh; }
    100% { left: 20vw; top: 61vh; }
}

/* Logo siempre pequeño y centrado */
.logo-awbox {
    max-width: 110px;
    height: auto;
    display: block;
    margin: 26px auto 12px auto;
}

/* Responsive logo aún más pequeño */
@media (max-width: 500px) {
    .logo-awbox {
        max-width: 80px;
        margin-top: 16px;
    }
}

.container {
    max-width: 430px;
    margin: 56px auto 0 auto; /* Más centrado vertical */
    background: rgba(255,255,255,0.98);
    border-radius: 1.7em;
    box-shadow: 0 0 24px #1BCED633;
    padding: 2.2em 2em 2em;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .container {
        padding: 1.2em 0.5em;
        font-size: 1.07em;
        margin-top: 22vw;
    }
    .result-card { padding: 1em .3em 1.3em .3em; }
    input, button {
        font-size: 1.09em;
    }
}

.titulo-awbox {
    color: #2351A7;
    margin-bottom: 14px;
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: 1px;
}

.buscador-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    gap: 12px;
}

input#tracking {
    width: 90%;
    max-width: 320px;
    padding: 11px 14px;
    font-size: 1.12em;
    border-radius: 1.4em;
    border: 1px solid #bed0f8;
    box-shadow: 0 1px 4px #e7ebf5a8;
    outline: none;
    text-align: center;
    margin-bottom: 10px; /* Más espacio debajo */
}
input#tracking:focus {
    border-color: #2351A7;
    background: #f8faff;
}
button#buscarBtn {
    padding: 10px 25px;
    font-size: 1.08em;
    border-radius: 1.5em;
    border: none;
    background: linear-gradient(90deg, #2351A7 60%, #1BCED6 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: background .19s;
    margin-top: 2px;
    box-shadow: 0 1px 7px #8ecbffd0;
    display: flex;
    align-items: center;
    gap: 8px;
}
button#buscarBtn:hover {
    background: linear-gradient(90deg, #1BCED6 60%, #2351A7 100%);
}
#res {
    margin-top: 17px;
}

/* Tarjeta resultado */
.result-card {
    background: #fff;
    border-radius: 1.1em;
    box-shadow: 0 8px 36px #1BCED625, 0 1.5px 7px #2351A720;
    margin: 0 auto 30px auto;
    padding: 1.7em 1.2em 1.5em 1.2em;
    text-align: center;
    max-width: 380px;
    width: 98%;
    position: relative;
    z-index: 2;
    animation: popin 0.5s;
}
@keyframes popin {
    0% { transform: scale(.96) translateY(24px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1;}
}
.result-ico-main {
    font-size: 2.9em;
    color: #1BCED6;
    margin-bottom: 9px;
    animation: popin 1.1s;
}
.estado-chip {
    display: inline-block;
    padding: 2px 13px;
    border-radius: 11px;
    font-size: 1.17em;
    font-weight: 600;
    background: #f1f5fa;
    color: #2351A7;
    border: 1px solid #dbeafe;
    margin: 8px 0 17px 0;
    letter-spacing: .3px;
}
.estado-chip.entregado { background: #e9fbe5; color: #22c55e; border: 1.3px solid #bae6b1;}
.estado-chip.consolidado { background: #fff9ea; color: #f7ad2f; border: 1.3px solid #ffe3a2;}
.estado-chip.alerta { background: #ffe6e6; color: #e94828; border: 1.3px solid #f9b3b3;}
.estado-chip.bodega { background: #f1f5fa; color: #2351A7; }

.dato-res {
    margin: 7px 0;
    font-size: 1.12em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.dato-res b { font-weight: 600; color: #1a1a1a;}
.dato-icon {
    font-size: 1.4em;
    min-width: 26px;
    text-align: center;
}

#buscando-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 10px;
}
.buscando-lupa {
    width: 68px; height: 68px;
    animation: buscarLupa 1.3s linear infinite alternate;
}
@keyframes buscarLupa {
    0% { transform: translateY(0) rotate(-10deg);}
    100% { transform: translateY(18px) rotate(10deg);}
}
.buscando-caja {
    width: 48px; height: 28px;
    margin-top: -13px;
}
.buscando-msg {
    color: #2351A7;
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 8px;
    text-align: center;
    letter-spacing: 1px;
}
#whatsapp-btn {
    margin: 20px auto 0 auto;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 1.15em;
    font-weight: 600;
    padding: 13px 24px;
    cursor: pointer;
    box-shadow: 0 1px 7px #cdf7e6b2;
    transition: background .18s, transform .18s;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: popin 1.2s;
}
#whatsapp-btn:hover {
    background: #198b46;
    transform: scale(1.08);
}

.timeline {
    margin-top: 25px;
    margin-bottom: 8px;
    border-left: 3px solid #F4BB3B44;
    padding-left: 14px;
    position: relative;
}
.timeline li {
    margin-bottom: 16px;
    position: relative;
    align-items: flex-start;
}
.timeline .timeline-ico {
    font-size: 1.35em;
    margin-right: 7px;
    position: absolute;
    left: -33px;
    top: 2px;
    animation: giroico 2.5s infinite alternate;
}
@keyframes giroico {
    0% { transform: rotate(-7deg);}
    100% { transform: rotate(7deg);}
}
.timeline .timeline-ico.entrega { color: #22c55e; }
.timeline .timeline-ico.envio { color: #1BCED6; }
.timeline .timeline-ico.bodega { color: #2351A7; }
.timeline .timeline-ico.alerta { color: #e94828; }
.timeline span {
    font-size: 0.97em;
    color: #8a8a8a;
}
