:root {
    --yi-red: #d80003;
    --yi-red-bright: #ff0000;
    --yi-gray: #808080;
    --yi-gradient: linear-gradient(135deg, #ff0000 0%, #d80003 100%);
    --yi-dark: #1a1a1a;
    --yi-success: #1d9d5b;
    --yi-warning: #e0930b;
    --yi-error: #e8541e;
}

body,
.alt-font,
h1, h2, h3, h4, h5, h6,
.navbar .nav-link,
.btn {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

body {
    color: #3a3a3a;
}

.text-yi { color: var(--yi-red) !important; }

.bg-yi-gradient {
    background: var(--yi-gradient) !important;
    color: #fff !important;
}

.bg-yi-red { background-color: var(--yi-red) !important; }

.bg-base-color { background-color: var(--yi-red) !important; }
.text-base-color { color: var(--yi-red) !important; }
.border-base-color { border-color: var(--yi-red) !important; }

.btn-yi {
    background: var(--yi-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: .3px;
    transition: filter .25s ease, transform .15s ease, box-shadow .25s ease;
}
.btn-yi:hover,
.btn-yi:focus {
    color: #fff;
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(216, 0, 3, .28);
}

.btn-yi-outline {
    background: transparent;
    border: 2px solid var(--yi-red);
    color: var(--yi-red);
    font-weight: 600;
    transition: all .25s ease;
}
.btn-yi-outline:hover,
.btn-yi-outline:focus {
    background: var(--yi-red);
    color: #fff;
}

.btn-base-color {
    background: var(--yi-gradient) !important;
    border-color: transparent !important;
}
.btn-base-color:hover { filter: brightness(1.07); }

a { color: var(--yi-red); }
a:hover { color: #b30002; }

header.yi-header { position: static !important; }
.yi-header .navbar {
    position: relative !important;
    top: auto !important;
    width: 100%;
}

@media (min-width: 992px) {
    .yi-header .navbar > .container-fluid {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    .yi-header .navbar > .container-fluid > [class*="col-"] { display: flex; align-items: center; }

    .yi-header .navbar .col-lg-2.text-end { display: flex !important; align-items: center; justify-content: flex-end; }
    .yi-header .navbar-nav { align-items: center; margin: 0; }
}
.yi-header .navbar-brand img { height: 40px; width: auto; }
.yi-nav .nav-link {
    color: #2b2b2b !important;
    font-weight: 600;
    font-size: 15px;
}
.yi-nav .nav-link:hover { color: var(--yi-red) !important; }

@keyframes yiActiveShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.yi-nav-active,
a.yi-nav-active,
li.yi-nav-active > a,
.yi-nav .nav-item.active > .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    background: linear-gradient(270deg, #ff0000, #d80003, #ff4d2e, #b80003);
    background-size: 300% 300%;
    animation: yiActiveShift 5s ease infinite;
    border-radius: 8px;
    padding: 7px 16px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(216, 0, 3, 0.40);
}
.yi-nav .nav-item.active > .nav-link:hover { color: #fff !important; }

.yi-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 30px;
    background: var(--yi-gradient);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
}
.yi-account-chip:hover { color: #fff !important; filter: brightness(1.07); }

.yi-mobile-account { display: none; }

.yi-footer .footer-logo img { height: 42px; width: auto; }

.yi-page-title {
    background: linear-gradient(135deg, #2a0708 0%, #1a1a1a 60%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.yi-page-title::before {
    content: "";
    position: absolute;
    top: -40%; right: -8%;
    width: 380px; height: 380px;
    background: var(--yi-gradient);
    opacity: .18;
    border-radius: 50%;
    filter: blur(20px);
}
.yi-page-title h1 { color: #fff; position: relative; z-index: 1; }
.yi-page-title p { color: rgba(255,255,255,.75); position: relative; z-index: 1; }

.yi-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .2px;
}
.yi-badge-pending   { background: #fff4e0; color: #b9740a; }
.yi-badge-confirmed { background: #e6f0ff; color: #1f5fd6; }
.yi-badge-paid      { background: #e3f8ec; color: var(--yi-success); }
.yi-badge-expired   { background: #fdeaea; color: #c0392b; }
.yi-badge-process   { background: #eef0f3; color: #5a6472; }
.yi-badge-transit   { background: #e6f0ff; color: #1f5fd6; }
.yi-badge-customs   { background: #fff4e0; color: #b9740a; }
.yi-badge-delivered { background: #e3f8ec; color: var(--yi-success); }

.yi-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(20, 20, 20, .07);
    border: 1px solid #f0f0f0;
}
.yi-card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.yi-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(216, 0, 3, .14);
}

.yi-segmented { display: flex; gap: 10px; flex-wrap: wrap; }
.yi-segmented label {
    flex: 1 1 0;
    min-width: 120px;
    cursor: pointer;
    border: 2px solid #e3e3e3;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    color: #555;
    transition: all .2s ease;
    margin: 0;
}
.yi-segmented label i { display: block; font-size: 22px; margin-bottom: 6px; color: var(--yi-gray); }
.yi-segmented input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; margin: 0; }
.yi-segmented input:checked + label {
    border-color: var(--yi-red);
    color: var(--yi-red);
    background: linear-gradient(135deg, rgba(255,0,0,.06), rgba(216,0,3,.08));
}
.yi-segmented input:checked + label i { color: var(--yi-red); }

.yi-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px dashed #e8e8e8;
}
.yi-result-row:last-child { border-bottom: none; }
.yi-result-label { color: #666; font-size: 14px; }
.yi-result-value { font-weight: 600; color: #1f1f1f; font-variant-numeric: tabular-nums; }

.yi-result-charged {
    background: linear-gradient(135deg, rgba(255,0,0,.08), rgba(216,0,3,.10));
    border: 2px solid var(--yi-red);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px 0;
}
.yi-result-charged .yi-result-label { color: var(--yi-red); font-weight: 700; }
.yi-result-charged .yi-result-value { color: var(--yi-red); font-size: 18px; }

.yi-total {
    background: var(--yi-gradient);
    color: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    text-align: center;
}
.yi-total .yi-total-label { font-size: 14px; opacity: .9; letter-spacing: .4px; text-transform: uppercase; }
.yi-total .yi-total-amount { font-size: 34px; font-weight: 800; line-height: 1.1; margin-top: 4px; }

input.form-control:focus,
select.form-control:focus,
.form-control:focus {
    border-color: var(--yi-red);
    box-shadow: 0 0 0 .15rem rgba(216, 0, 3, .12);
}

.yi-note {
    font-size: 13px;
    color: var(--yi-gray);
    background: #f7f7f7;
    border-left: 3px solid var(--yi-red);
    padding: 10px 14px;
    border-radius: 4px;
}

.yi-stepper {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    position: relative;
}
.yi-stepper li {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 4px;
}

.yi-stepper li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -50%;
    width: 100%;
    height: 4px;
    background: #e2e2e2;
    z-index: 0;
}
.yi-stepper li:first-child::before { display: none; }
.yi-stepper li.done::before,
.yi-stepper li.current::before {
    background: var(--yi-gradient);
}
.yi-step-dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e2e2;
    color: var(--yi-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
}
.yi-stepper li.done .yi-step-dot {
    background: var(--yi-red);
    border-color: var(--yi-red);
    color: #fff;
}
.yi-stepper li.current .yi-step-dot {
    background: var(--yi-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(216, 0, 3, .15);
    transform: scale(1.12);
}
.yi-step-num {
    position: absolute;
    top: -6px; right: -6px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e2e2;
    color: var(--yi-gray);
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.yi-stepper li.done .yi-step-num,
.yi-stepper li.current .yi-step-num {
    border-color: var(--yi-red);
    color: var(--yi-red);
}
.yi-step-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #888;
    line-height: 1.25;
    display: block;
    padding: 0 4px;
}
.yi-stepper li.done .yi-step-label,
.yi-stepper li.current .yi-step-label { color: #1f1f1f; }
.yi-stepper li.current .yi-step-label { color: var(--yi-red); }

@media (max-width: 767px) {
    .yi-stepper { flex-direction: column; }
    .yi-stepper li {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 14px;
        padding: 8px 0;
    }
    .yi-stepper li::before {
        top: -50%;
        left: 22px;
        width: 4px;
        height: 100%;
    }
    .yi-step-dot { margin: 0; }
    .yi-step-label { padding: 0; }
}

.yi-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.yi-timeline::before {
    content: "";
    position: absolute;
    left: 9px; top: 6px; bottom: 6px;
    width: 2px;
    background: #e2e2e2;
}
.yi-timeline li { position: relative; padding: 0 0 26px 40px; }
.yi-timeline li:last-child { padding-bottom: 0; }
.yi-timeline-dot {
    position: absolute;
    left: 0; top: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #d2d2d2;
}
.yi-timeline li.done .yi-timeline-dot { background: var(--yi-red); border-color: var(--yi-red); }
.yi-timeline li.current .yi-timeline-dot {
    background: var(--yi-gradient);
    border-color: transparent;
    box-shadow: 0 0 0 5px rgba(216, 0, 3, .15);
}
.yi-timeline-date { font-size: 12px; color: var(--yi-gray); font-weight: 600; }
.yi-timeline-title { font-weight: 700; color: #1f1f1f; margin: 2px 0; }
.yi-timeline-desc { font-size: 14px; color: #666; }

.yi-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.yi-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--yi-gray);
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}
.yi-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
    font-size: 14.5px;
}
.yi-table tbody tr:hover { background: #fafafa; }
.yi-folio { font-weight: 700; color: var(--yi-red); white-space: nowrap; }

.yi-method { display: inline-flex; align-items: center; gap: 7px; color: #444; font-weight: 600; font-size: 13.5px; }
.yi-method i { color: var(--yi-red); }

.yi-hero {
    background: linear-gradient(135deg, #2a0708 0%, #1a1a1a 65%);
    color: #fff;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.yi-hero::after {
    content: "";
    position: absolute;
    bottom: -30%; left: -5%;
    width: 460px; height: 460px;
    background: var(--yi-gradient);
    opacity: .16;
    border-radius: 50%;
    filter: blur(30px);
}
.yi-hero h1, .yi-hero p { position: relative; z-index: 1; }

.yi-feature-icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: var(--yi-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}

.yi-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 6px 24px rgba(20,20,20,.06);
    padding: 22px 24px;
}
.yi-summary-card .yi-sum-num { font-size: 28px; font-weight: 800; color: #1f1f1f; }
.yi-summary-card .yi-sum-label { font-size: 13px; color: var(--yi-gray); font-weight: 600; }

.yi-rastreo .yi-page-title { padding-top: 60px; }

.yi-modal .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 20, 20, .22);
}
.yi-modal .modal-header {
    background: var(--yi-gradient);
    color: #fff;
    border-bottom: none;
    padding: 20px 26px;
    align-items: flex-start;
}
.yi-modal .modal-header .modal-title {
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
}
.yi-modal .modal-header .yi-modal-sub {
    font-size: 12.5px;
    opacity: .9;
    font-weight: 500;
    margin-top: 2px;
}
.yi-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: .9;
    margin-top: 2px;
}
.yi-modal .modal-body { padding: 26px; }
.yi-modal .modal-footer { border-top: 1px solid #f0f0f0; padding: 16px 26px; }

.yi-modal-meta { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-bottom: 18px; }
.yi-modal-meta > div { min-width: 130px; }
.yi-modal-meta .yi-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--yi-gray);
    font-weight: 700;
    margin-bottom: 3px;
}
.yi-modal-meta .yi-meta-value { font-weight: 600; color: #1f1f1f; font-size: 15px; }

.yi-pay-amount {
    background: var(--yi-gradient);
    color: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    text-align: center;
    margin-bottom: 20px;
}
.yi-pay-amount .yi-pay-label { font-size: 13px; opacity: .9; text-transform: uppercase; letter-spacing: .4px; }
.yi-pay-amount .yi-pay-value { font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 3px; }

@media (max-width: 991.98px) {
    .yi-header .navbar { position: relative; }

    .yi-header .navbar > .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    .yi-header .navbar .menu-order {
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0;
    }

    .yi-header .navbar .col-lg-2.text-end { display: none !important; }

    .yi-header .navbar-toggler {
        display: inline-block !important;
        position: relative;
        width: 42px;
        height: 42px;
        padding: 0;
        border: none;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
        float: none;
        vertical-align: middle;
    }
    .yi-header .navbar-toggler:focus,
    .yi-header .navbar-toggler:focus-visible { outline: none; box-shadow: none !important; }
    .yi-header .navbar-toggler-line {
        position: absolute !important;
        left: 50%;
        margin-left: -13px;
        width: 26px;
        height: 3px;
        border-radius: 3px;
        background: var(--yi-red) !important;
        transition: top .2s ease, transform .25s ease, opacity .2s ease;
    }
    .yi-header .navbar-toggler-line:nth-child(1) { top: 14px; }
    .yi-header .navbar-toggler-line:nth-child(2) { top: 20px; }
    .yi-header .navbar-toggler-line:nth-child(3) { top: 26px; }
    .yi-header .navbar-toggler-line:nth-child(4) { display: none; }

    .yi-header #yiNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        display: block !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        z-index: 1000;
        padding: 0 12px;
        transition: max-height .32s ease, opacity .25s ease;
    }
    body.yi-nav-open .yi-header #yiNav {
        max-height: 75vh;
        opacity: 1;
        padding-bottom: 12px;
    }
    .yi-header #yiNav .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background: #fff;
        border: 1px solid #efefef;
        border-radius: 12px;
        box-shadow: 0 14px 34px rgba(20, 20, 20, .14);
        padding: 8px;
        margin-top: 10px;
    }
    .yi-header #yiNav .nav-item { width: 100%; }
    .yi-header #yiNav .nav-link {
        display: block;
        width: 100%;
        padding: 13px 14px !important;
        border-radius: 8px;
        color: #2b2b2b !important;
    }
    .yi-header #yiNav .nav-item + .nav-item .nav-link { border-top: 1px solid #f3f3f3; }

    .yi-header #yiNav .yi-nav-active { width: 100%; justify-content: flex-start; color: #fff !important; }

    body.yi-nav-open .yi-header .navbar-toggler-line:nth-child(2) { opacity: 0; }
    body.yi-nav-open .yi-header .navbar-toggler-line:nth-child(1) { top: 20px; transform: rotate(45deg); }
    body.yi-nav-open .yi-header .navbar-toggler-line:nth-child(3) { top: 20px; transform: rotate(-45deg); }

    .yi-mobile-account { display: block; list-style: none; margin-top: 6px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
    .yi-mobile-account > a {
        display: flex; align-items: center; gap: 10px;
        padding: 12px 14px; border-radius: 8px;
        font-weight: 600; color: var(--yi-red) !important;
    }
    .yi-mobile-account > a i { font-size: 16px; }
}

.yi-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    background: #f3f4f6;
    border: 1px dashed #c9ccd1;
    border-radius: 10px;
    padding: 12px;
}
.yi-ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9aa0a6;
    font-weight: 600;
    margin-bottom: 8px;
}
.yi-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e4e6e9;
    display: block;
}

.yi-ad-leaderboard { margin-top: 26px; margin-bottom: 6px; min-height: 114px; }
.yi-ad-rect { margin-top: 6px; min-height: 274px; }
.yi-ad-fullwidth { margin-top: 30px; min-height: 114px; }

.yi-stepper li { cursor: default; }

.yi-step-trigger {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: default;
    display: inline-block;
}

.yi-step-tip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 240px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: 3px solid var(--yi-red);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 20, 20, .18);
    padding: 14px 16px;
    text-align: left;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.yi-stepper li:hover .yi-step-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.yi-step-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}
.yi-step-tip-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.yi-step-tip-name i { color: var(--yi-red); }
.yi-step-tip-trans { font-size: 12.5px; color: #555; line-height: 1.4; margin-bottom: 6px; }
.yi-step-tip-trans strong { color: var(--yi-red); }
.yi-step-tip-date {
    font-size: 11.5px;
    color: var(--yi-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.yi-step-tip-date i { color: var(--yi-gray); }

.yi-stepper li:first-child .yi-step-tip { left: 0; transform: translateX(0) translateY(6px); }
.yi-stepper li:first-child:hover .yi-step-tip { transform: translateX(0) translateY(0); }
.yi-stepper li:first-child .yi-step-tip::after { left: 28px; }
.yi-stepper li:last-child .yi-step-tip { left: auto; right: 0; transform: translateX(0) translateY(6px); }
.yi-stepper li:last-child:hover .yi-step-tip { transform: translateX(0) translateY(0); }
.yi-stepper li:last-child .yi-step-tip::after { left: auto; right: 28px; transform: translateX(0); }

@media (max-width: 767px) {
    .yi-step-tip {
        left: calc(100% + 14px);
        right: auto;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) translateX(6px);
        width: 220px;
    }
    .yi-stepper li:hover .yi-step-tip { transform: translateY(-50%) translateX(0); }
    .yi-step-tip::after {
        top: 50%;
        left: -8px;
        transform: translateY(-50%);
        border: 8px solid transparent;
        border-right-color: #fff;
        border-top-color: transparent;
    }
    .yi-stepper li:first-child .yi-step-tip,
    .yi-stepper li:last-child .yi-step-tip { left: calc(100% + 14px); right: auto; }
    .yi-stepper li:first-child .yi-step-tip::after,
    .yi-stepper li:last-child .yi-step-tip::after { left: -8px; right: auto; top: 50%; }
}

.yi-next-phase {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 26px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255,0,0,.05), rgba(216,0,3,.07));
    border: 1px solid rgba(216, 0, 3, .15);
    border-radius: 10px;
    font-size: 14.5px;
    color: #444;
}
.yi-next-phase i { color: var(--yi-red); }
.yi-next-phase .yi-next-name { font-weight: 700; color: var(--yi-red); }
.yi-countdown {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
    color: #1f1f1f;
}

.yi-eta-countdown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    background: var(--yi-gradient);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    line-height: 1;
}
.yi-eta-countdown i { font-size: 13px; }
