:root {
    /* INCOEX Logistics brand palette */
    --brand-primary: #409ad5;
    --brand-accent: #2cacf4;
    --brand-ink: #101230;
    --brand-surface: #fafffd;
    --brand-muted: #d9e0e2;
    --brand-citrine: #bdbf09;

    --shadow-ink: rgba(16, 18, 48, 0.14);
    --shadow-ink-soft: rgba(16, 18, 48, 0.10);

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;

    --glass-bg: rgba(250, 255, 253, 0.68);
    --glass-border: rgba(217, 224, 226, 0.65);
    --focus-ring: rgba(44, 172, 244, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: linear-gradient(120deg, var(--brand-ink) 0%, var(--brand-primary) 100%);
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.35;
    color: var(--brand-ink);
    position: relative;
    overflow-x: hidden;
}

/* Fondo animado */
.abc-bg-anim {
    position: fixed;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
}

.abc-bg-anim .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.16;
    filter: blur(14px);
    animation: moveY 18s ease-in-out infinite alternate;
}

.abc-bg-anim .circle.orange {
    background: var(--brand-citrine);
    width: 310px;
    height: 310px;
    left: -90px;
    top: 60vh;
    animation-delay: 0s;
}

.abc-bg-anim .circle.green {
    background: var(--brand-accent);
    width: 210px;
    height: 210px;
    left: 80vw;
    top: 24vh;
    animation-delay: 5s;
}

.abc-bg-anim .circle.yellow {
    background: var(--brand-muted);
    width: 160px;
    height: 160px;
    left: 30vw;
    top: 84vh;
    animation-delay: 2.5s;
}

@keyframes moveY {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(-60px) scale(1.08);
    }
}

.abc-bg-anim .truck {
    position: absolute;
    width: 145px;
    left: 60vw;
    top: 80vh;
    opacity: 0.14;
    filter: drop-shadow(0 10px 28px rgba(16, 18, 48, 0.22));
    animation: truckmove 24s linear infinite alternate;
}

@keyframes truckmove {
    0% {
        left: 60vw;
        top: 80vh;
    }

    100% {
        left: 10vw;
        top: 75vh;
    }
}

/* Main container */
.container {
    max-width: 760px;
    margin: 56px auto;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 80px rgba(16, 18, 48, 0.22);
    padding: 44px 34px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    pointer-events: none;
    background: linear-gradient(135deg, rgba(44, 172, 244, 0.14), rgba(189, 191, 9, 0.10));
    mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    padding: 1px;
    opacity: 0.8;
}

.logo {
    width: 120px;
    margin-bottom: 20px;
    background: var(--brand-ink);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 30px rgba(16, 18, 48, 0.22);
}

.logo {
    position: relative;
    isolation: isolate;
}

.logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(250, 255, 253, 0.14), rgba(250, 255, 253, 0));
    mix-blend-mode: screen;
    z-index: 0;
}

h1 {
    color: var(--brand-ink);
    margin: 0 0 20px;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 i {
    color: var(--brand-primary);
    margin-right: 10px;
}

form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    align-items: stretch;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

input[type="text"] {
    flex: 1;
    padding: 13px 16px;
    border: 1.5px solid rgba(44, 172, 244, 0.55);
    border-radius: 12px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    background: rgba(250, 255, 253, 0.92);
    color: var(--brand-ink);
    box-shadow: 0 10px 26px rgba(16, 18, 48, 0.06);
}

input[type="text"]:focus {
    border-color: var(--brand-citrine);
    box-shadow: 0 0 0 4px var(--focus-ring), 0 14px 32px rgba(16, 18, 48, 0.10);
}

button {
    background: var(--brand-ink);
    color: var(--brand-surface);
    border: none;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 16px 42px rgba(16, 18, 48, 0.18);
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(44, 172, 244, 0.22);
}

button::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -30%;
    width: 70%;
    height: 200%;
    background: linear-gradient(90deg, rgba(250, 255, 253, 0.22), rgba(250, 255, 253, 0));
    transform: rotate(18deg);
    opacity: 0.9;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 56px rgba(16, 18, 48, 0.20);
    filter: brightness(1.08) saturate(1.02);
}

button:active {
    transform: translateY(0px);
    box-shadow: 0 14px 38px rgba(16, 18, 48, 0.18);
}

button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring), 0 20px 56px rgba(16, 18, 48, 0.20);
}

.card {
    background: rgba(250, 255, 253, 0.72);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(16, 18, 48, 0.10);
    margin-bottom: 22px;
    padding: 22px 18px 18px;
    text-align: left;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    border: 1px solid rgba(217, 224, 226, 0.65);
    border-left: 10px solid rgba(44, 172, 244, 0.65);
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 60px rgba(16, 18, 48, 0.14);
}

.card-content {
    flex: 1;
    font-size: 1.02em;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(44, 172, 244, 0.12);
    border: 1px solid rgba(44, 172, 244, 0.18);
    box-shadow: 0 10px 24px rgba(16, 18, 48, 0.08);
    color: var(--brand-ink);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.status-pill i {
    color: var(--brand-primary);
}

.track-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(189, 191, 9, 0.10);
    border: 1px solid rgba(189, 191, 9, 0.18);
    color: var(--brand-ink);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(16, 18, 48, 0.06);
}

.track-pill i {
    color: var(--brand-citrine);
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 10px;
}

.meta-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(250, 255, 253, 0.55);
    border: 1px solid rgba(217, 224, 226, 0.45);
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(44, 172, 244, 0.12);
    border: 1px solid rgba(44, 172, 244, 0.16);
    box-shadow: 0 10px 26px rgba(16, 18, 48, 0.06);
}

.meta-icon i {
    color: var(--brand-primary);
}

.meta-text {
    min-width: 0;
}

.meta-label {
    font-size: 0.86rem;
    font-weight: 800;
    color: rgba(16, 18, 48, 0.78);
    margin-bottom: 2px;
}

.meta-value {
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--brand-ink);
    word-break: break-word;
}

.meta-value .arrival {
    font-weight: 800;
}

.card-content h2 {
    color: var(--brand-ink);
    margin: 0 0 10px 0;
    font-size: 1.12rem;
    font-weight: 700;
}

.arrival {
    color: var(--brand-primary);
    font-weight: bold;
}

.img-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.img-list img {
    width: 94px;
    height: 94px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(250, 255, 253, 0.95);
    border: 1px solid rgba(44, 172, 244, 0.20);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.img-list img:hover {
    transform: scale(1.09);
    box-shadow: 0 8px 18px var(--shadow-ink);
}

.card-actions {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.action-btn {
    border: none;
    background: rgba(44, 172, 244, 0.10);
    color: var(--brand-ink);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 1.02em;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s, color 0.2s, box-shadow 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    flex: 1;
    justify-content: center;
    border: 1px solid rgba(44, 172, 244, 0.16);
    box-shadow: 0 10px 26px rgba(16, 18, 48, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: var(--brand-primary);
    color: var(--brand-surface);
    transform: translateY(-1px);
    box-shadow: 0 16px 44px rgba(16, 18, 48, 0.12);
}

.action-btn:active {
    transform: translateY(0px);
}

@media (max-width: 700px) {
    .container {
        max-width: 98vw;
        margin: 18px auto;
        padding: 22px 14px 18px;
    }

    form {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    button {
        width: 100%;
        justify-content: center;
    }

    .card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .img-list img {
        width: 90vw;
        height: auto;
        max-width: 220px;
    }

    .card-actions {
        width: 100%;
        gap: 10px;
    }

    .action-btn {
        width: 100%;
        flex: 1 1 auto;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: radial-gradient(circle at 20% 10%, rgba(44, 172, 244, 0.22), rgba(16, 18, 48, 0.84) 55%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: modalFadeIn 140ms ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 540px;
    width: 90vw;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(16, 18, 48, 0.40);
    border: 1px solid rgba(217, 224, 226, 0.28);
    animation: modalPop 160ms ease-out;
}

@keyframes modalPop {
    from { transform: translateY(8px) scale(0.985); opacity: 0.8; }
    to { transform: translateY(0px) scale(1); opacity: 1; }
}

.close {
    color: var(--brand-surface);
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1100;
    transition: color 0.2s;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(250, 255, 253, 0.10);
    border: 1px solid rgba(217, 224, 226, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.close:hover,
.close:focus {
    color: var(--brand-citrine);
}

@media (max-width: 700px) {
    .card-head {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .status-pill,
    .track-pill {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .track-pill span {
        min-width: 0;
        word-break: break-all;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Status styling (applied by JS via .status-*) */
.card.status-default {
    border-left-color: rgba(44, 172, 244, 0.65);
}

.card.status-transit {
    border-left-color: rgba(44, 172, 244, 0.85);
}

.card.status-destination {
    border-left-color: rgba(64, 154, 213, 0.85);
}

.card.status-delivered {
    border-left-color: rgba(64, 154, 213, 0.95);
}

.card.status-hold {
    border-left-color: rgba(189, 191, 9, 0.95);
}

.card.status-transit .status-pill,
.card.status-default .status-pill {
    background: rgba(44, 172, 244, 0.12);
    border-color: rgba(44, 172, 244, 0.18);
}

.card.status-destination .status-pill,
.card.status-delivered .status-pill {
    background: rgba(64, 154, 213, 0.12);
    border-color: rgba(64, 154, 213, 0.18);
}

.card.status-hold .status-pill {
    background: rgba(189, 191, 9, 0.14);
    border-color: rgba(189, 191, 9, 0.22);
}

.card.status-destination .status-pill i,
.card.status-delivered .status-pill i {
    color: var(--brand-primary);
}

.card.status-hold .status-pill i {
    color: var(--brand-citrine);
}