:root {
    --ink: #152440;
    --blue: #0d5797;
    --muted: #526478;
    --line: #d8e1e9;
    --page: #f0f4f7;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--page); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
main { flex: 1; }
.wrap { width: min(1120px, 88%); margin-inline: auto; }
.mast { background: white; }
.bar, .foot, nav { display: flex; align-items: center; justify-content: space-between; }
.bar { min-height: 78px; }
.logo { display: block; width: 155px; height: auto; }
nav { gap: 30px; }
a { color: var(--blue); text-underline-offset: 4px; }
nav a { font-weight: 650; color: var(--ink); text-decoration: none; font-size: .94rem; }
nav .active { color: var(--blue); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 9px; }
nav .site-link { border-left: 1px solid var(--line); padding-left: 28px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #188bc0; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-150%); background: white; padding: 10px; z-index: 10; }
.skip:focus { transform: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #0a1725; color: white; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 29%; background: linear-gradient(90deg,#0a1725,transparent 44%), linear-gradient(0deg,rgba(9,22,35,.30),transparent 84%),url("../img/rastreo.webp") 50% 69% / cover no-repeat; }
.hero-inner { padding: 62px 0 88px; }
.kicker { display: flex; align-items: center; gap: 11px; font-size: .72rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.kicker i { width: 27px; height: 3px; background: #36aee3; }
.hero h1 { font-size: clamp(3.4rem,6vw,5.7rem); line-height: .97; letter-spacing: -.065em; margin: 22px 0 17px; max-width: 6em; }
.hero h1 em { display: block; color: #74cef4; font-style: normal; }
.hero-inner > p:last-child { color: #e0e9f0; max-width: 350px; margin-bottom: 0; }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; }
.lookup { position: relative; margin-top: -40px; padding: 28px 36px 34px; box-shadow: 0 9px 25px rgba(21,40,64,.07); }
h2, caption { margin: 0; font-size: 1.55rem; font-weight: 720; line-height: 1.23; letter-spacing: -.035em; }
label { display: block; font-size: .91rem; font-weight: 650; margin: 17px 0 7px; }
.controls { display: flex; gap: 12px; }
.field { flex: 1; display: flex; align-items: center; border: 1px solid #91a2b5; border-radius: 6px; background: #fafcfe; }
.field:focus-within { outline: 2px solid var(--blue); }
.field > span { padding-left: 16px; color: var(--muted); font-size: 1.2rem; }
input { width: 100%; min-width: 0; padding: 13px 12px; color: var(--ink); background: transparent; border: 0; font: inherit; }
input:focus-visible { outline: none; }
button { cursor: pointer; border: 0; border-radius: 6px; background: var(--blue); color: white; font: 700 .98rem "Segoe UI",Arial,sans-serif; padding: 14px 25px; }
button:hover { background: #103878; }
button span { margin-left: 14px; }
.notice { background: #fff5de; border-left: 3px solid #be8529; padding: 12px 15px; margin: 16px 0 0; }
.help { display: grid; grid-template-columns: 1fr 1.8fr; gap: 28px; padding: 48px 0 65px; }
.support { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-weight: 630; padding: 16px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); }
details[open] summary::after { content: "−"; }
details p { margin: 0 20px 18px 0; color: var(--muted); }
footer { background: #101f30; color: #dce4ec; }
.foot { padding-block: 23px; font-size: .83rem; gap: 12px; flex-wrap: wrap; }
.results { padding-block: 34px 60px; }
.back { display: inline-block; margin-bottom: 22px; }
.results h1 { font-size: clamp(2.25rem,5vw,4rem); letter-spacing: -.055em; margin: 0 0 22px; line-height: 1.1; }
.order { padding: clamp(18px,3vw,36px); margin-bottom: 20px; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; padding: 20px 0; border-block: 1px solid var(--line); }
dt { font-size: .86rem; color: var(--muted); }
dd { margin: 3px 0 0; font-weight: 650; }
table { border-collapse: collapse; width: 100%; text-align: left; }
caption { text-align: left; margin: 12px 0; font-size: 1.16rem; }
td, th { padding: 12px; border-bottom: 1px solid var(--line); }
thead { background: #eef3f8; font-size: .86rem; }
.status { display: inline-block; color: #17497a; background: #e6eff7; padding: 3px 10px; border-radius: 5px; font-size: .9rem; }
@media(max-width:700px) {
    .wrap { width: 91%; }
    .bar { min-height: 64px; }
    .logo { width: 100px; }
    nav { gap: 13px; }
    nav a { font-size: .81rem; }
    nav .site-link { padding-left: 10px; }
    .hero-inner { padding: 37px 0 73px; }
    .hero::before { inset-inline-start: 14%; background-position: center, center, 55% 62%; opacity: .48; }
    .hero h1 { font-size: 3.7rem; }
    .hero-inner > p:last-child { max-width: 275px; }
    .lookup { padding: 23px 20px; }
    .controls { flex-direction: column; }
    .help { grid-template-columns: 1fr; padding: 31px 0 42px; gap: 18px; }
    .foot { flex-direction: column; align-items: flex-start; gap: 1px; }
    dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
    table, tbody, tr { display: block; }
    caption { display: block; }
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    tbody tr { border: 1px solid var(--line); border-radius: 8px; padding: 13px; margin-top: 10px; }
    tbody th { display: block; padding: 0 0 8px; }
    td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border: none; padding: 6px 0 0; text-align: right; }
    td::before { content: attr(data-label); color: var(--muted); font-size: .83rem; text-align: left; }
}
