.shipment,.shipment-tabs,.shipment-dialog{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;font-size:16px;font-weight:400;line-height:1.45;--sh-graphite:#374151;--sh-muted:#6b7280;--sh-line:#e5e7eb;color-scheme:light}.shipment *,.shipment-dialog *{box-sizing:border-box}.shipment [hidden],.shipment-tabs[hidden],.shipment[hidden]{display:none!important}#vistaPedido.shipment-active{width:100%;max-width:900px!important;padding:0;margin:0 auto;background:#fff;border:0}.shipment-active>:not(#shipment-root){display:none!important}.shipment h1,.shipment h2,.shipment h3,.shipment p,.shipment ol{margin:0}.shipment button,.shipment a,.shipment select,.shipment-dialog button{font:inherit;cursor:pointer;touch-action:manipulation}.shipment button,.shipment a,.shipment-dialog button{min-height:44px}.shipment svg,.shipment-dialog svg{display:block;width:24px;height:24px;flex-shrink:0}.shipment-header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:calc(15px + env(safe-area-inset-top)) 18px 6px;background:#fff}.shipment-header h1{font-size:30px;font-weight:750;letter-spacing:-1px;line-height:1.1}.shipment-header p{font-size:16px;color:var(--sh-muted);margin-top:5px}.shipment .sh-detail{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:52px;min-height:60px;border:0;background:transparent;color:var(--sh-graphite);padding:0;font-size:13px}.sh-detail svg{width:30px;height:30px}.shipment-tabs{display:flex;align-items:center;gap:24px;padding:0 18px;background:#fff;border-bottom:1px solid #f3f4f6}.shipment-tabs button{min-height:44px;min-width:64px;padding:10px 0 9px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#6b7280;font-size:14px;font-weight:500;line-height:1.4;display:flex;align-items:center;justify-content:center;gap:8px}.shipment-tabs button[aria-current=page]{border-bottom-color:#374151;color:#374151;font-weight:750}.shipment-menu-tabs{padding:2px 0 0;max-width:100%}.sh-activity{display:inline-block;width:6px;height:6px;background:#16a34a;border-radius:50%}.shipment .sh-preparation{list-style:none;display:flex;margin:14px 14px 12px;padding:16px 8px 13px;background:#fff;border:1px solid #f3f4f6;border-radius:20px;box-shadow:0 3px 15px #11182709}.sh-preparation li{position:relative;display:flex;flex:1;align-items:center;flex-direction:column;gap:8px;font-size:13px;font-weight:650;text-align:center;color:#6b7280;min-width:0}.sh-preparation li:not(:last-child):after{content:"";position:absolute;height:3px;left:calc(50% + 18px);right:calc(-50% + 18px);top:16px;background:#e5e7eb}.sh-preparation li.done:not(:last-child):after{background:#374151}.sh-step{width:34px;height:34px;display:grid;place-items:center;border:2px solid #e5e7eb;border-radius:50%;background:#f8fafc;z-index:1}.sh-step svg{width:21px;height:21px}.sh-preparation .done{color:#111827}.sh-preparation .done .sh-step{background:#374151;border-color:#374151;color:#fff}.sh-preparation .current{color:#111827}.sh-preparation .current .sh-step{background:#fff;border:3px solid #374151;box-shadow:0 0 0 4px #f1f5f9}.sh-step i{height:10px;width:10px;border-radius:50%;background:#374151}.shipment .sh-notice{margin:0 14px 12px;padding:12px 14px;min-height:48px;border-radius:15px;background:#f1f5f9;color:#374151;display:flex;align-items:center;font-weight:600;font-size:15px;gap:9px}.shipment .sh-notice.confirmed{color:#15803d;background:#e8f8ef}.sh-notice.confirmed:before{content:'✓';background:#16a34a;color:#fff;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;flex-shrink:0;font-size:17px}.sh-map-wrap{height:clamp(340px,49svh,460px);position:relative;background:#edf1f4;width:100%;overflow:hidden}#sh-map{position:absolute;inset:0}.shipment #sh-map-error{position:absolute;left:16px;right:16px;top:36%;padding:12px 15px;background:#ffffffed;border-radius:14px;font-size:14px;color:#4b5563;text-align:center;pointer-events:none}.shipment .sh-center{position:absolute;right:15px;bottom:45px;width:50px;height:50px;min-height:50px;display:grid;place-items:center;border:0;border-radius:50%;background:#fff;box-shadow:0 4px 18px #11182720;color:#111827}.sh-bottom{position:relative;background:#fff;border-radius:27px 27px 0 0;padding:10px 18px 20px;box-shadow:0 -3px 16px #11182706}.sh-handle{width:36px;height:4px;background:#d1d5db;border-radius:5px;margin:0 auto 16px}.sh-stage{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;min-height:32px;border-radius:30px;background:#e8f8ef;color:#15803d;font-size:13px;font-weight:650}.sh-stage:before{content:'✓';border-radius:50%;width:16px;height:16px;display:grid;place-items:center;background:#16a34a;color:#fff;font-size:11px}.shipment #sh-eta{font-size:clamp(23px,6.2vw,28px);font-weight:750;letter-spacing:-.7px;line-height:1.25;margin:12px 0 7px;overflow-wrap:anywhere}.sh-muted{font-size:14px;color:#6b7280;line-height:1.5}#sh-store-eta:empty{display:none}.sh-courier-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.sh-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#f1f5f9;color:#374151;overflow:hidden;flex-shrink:0}.sh-avatar img{width:100%;height:100%;object-fit:cover}.sh-avatar svg{width:29px;height:29px}.sh-courier-row>div:nth-child(2){flex:1;min-width:170px}.shipment .sh-courier-row h3{font-size:17px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}.sh-contact{display:flex;gap:8px;flex-wrap:wrap}.shipment .sh-contact a{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;color:#374151;text-decoration:none;border:1px solid #374151;border-radius:13px;padding:9px 15px;min-height:46px;font-weight:600;font-size:15px}.sh-contact svg{width:20px;height:20px}.shipment .sh-freshness{display:flex;align-items:center;gap:9px;border-top:1px solid #e5e7eb;margin-top:17px;padding-top:13px;color:#6b7280;font-size:13px}.sh-freshness svg{width:19px;height:19px}.shipment .sh-connection{font-size:13px;color:#6b7280;padding:0 18px calc(18px + env(safe-area-inset-bottom));min-height:20px}.sh-wait{padding:30px 22px 60px;text-align:center;background:#f8fafc;border-radius:20px;margin:18px 14px}.sh-wait>div{width:56px;height:56px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#374151;margin:0 auto 15px}.shipment .sh-wait h2{font-size:22px;font-weight:700;margin-bottom:9px;letter-spacing:-.5px}.shipment .sh-wait p{font-size:15px;line-height:1.65;color:#6b7280;max-width:440px;margin:auto}.shipment .sh-final{padding:28px 18px 45px;background:#fff}.shipment .sh-final h2{font-size:27px;letter-spacing:-.7px;font-weight:700}.shipment .sh-final p{font-size:15px;color:#6b7280;margin:12px 0 22px;line-height:1.6}.shipment .sh-final button,.shipment .sh-access button{width:100%;min-height:48px;background:#374151;border:1px solid #374151;border-radius:13px;color:#fff;padding:11px 15px;font-weight:600;margin-bottom:10px}.shipment #sh-history{background:#fff;color:#374151}.sh-choose{padding:10px 16px;font-size:13px;color:#6b7280}.sh-choose label{display:block;margin-bottom:5px}.shipment .sh-choose select{background:#fff;border:1px solid #e5e7eb;min-height:44px;width:100%;border-radius:11px;color:#374151;padding:8px;font-size:14px;white-space:normal}.sh-access{padding:20px}.shipment .sh-access p{margin-bottom:16px;font-size:15px}.shipment-dialog{border:1px solid #e5e7eb;border-radius:22px;background:#fff;color:#111827;width:calc(100% - 24px);max-width:520px;padding:18px;max-height:85svh;overflow:auto;box-shadow:0 15px 80px #11182728}.shipment-dialog::backdrop{background:#11182760}.shipment-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.shipment-dialog h2{font:700 22px/1.3 Inter,system-ui,sans-serif;margin:0;letter-spacing:-.5px}.shipment-dialog h3{font-size:18px;margin:0 0 8px}.shipment-dialog p{font-size:14px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.shipment-dialog header button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;border:0;background:transparent;color:#374151}.shipment-dialog ul{list-style:none;padding:0;margin:16px 0}.shipment-dialog li{padding:12px 0;border-bottom:1px solid #e5e7eb}.shipment-dialog .sh-total{display:flex;justify-content:space-between;gap:16px}.shipment-dialog #sh-close-bottom,.shipment-dialog .sh-choice{width:100%;min-height:48px;padding:11px 13px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#374151;font-weight:600;line-height:1.5;margin:8px 0}.shipment-dialog #sh-close-bottom{background:#374151;color:#fff;border-color:#374151}.shipment button:focus-visible,.shipment a:focus-visible,.shipment-tabs button:focus-visible,.shipment-dialog button:focus-visible{outline:3px solid #2196f3;outline-offset:3px}@media(min-width:720px){.shipment-header{padding-left:26px;padding-right:26px}.sh-bottom{padding-left:26px;padding-right:26px}.sh-courier-row>div:nth-child(2){min-width:200px}.sh-map-wrap{height:450px}.shipment .sh-preparation{margin-left:22px;margin-right:22px}.shipment .sh-notice{margin-left:22px;margin-right:22px}.sh-preparation li{font-size:15px}.sh-courier-row{flex-wrap:nowrap}.shipment .sh-contact a{white-space:nowrap}}
.shipment h1,.shipment h2,.shipment h3,.shipment-dialog h2,.shipment-dialog h3{font-family:inherit}.shipment-tabs button:focus-visible{outline:3px solid #2196f3;outline-offset:2px}.shipment-dialog [hidden]{display:none!important}
.shipment #sh-retry{display:block;margin:0 18px 20px;padding:10px 15px;min-height:44px;background:#fff;border:1px solid #374151;border-radius:12px;color:#374151;font-weight:600}.shipment #sh-retry[hidden]{display:none!important}

.shipment .sh-choose{display:flex;align-items:center;gap:12px;justify-content:space-between}.shipment #sh-other-orders{min-height:44px;min-width:100px;padding:9px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#374151;font-size:13px}.shipment #sh-selected-order{min-width:0;overflow-wrap:anywhere;font-size:13px}

/* Seguimiento sin encabezado grande ni avisos de aceptación y asignación. */
.shipment-header{justify-content:flex-end}.sh-wait{padding:30px 22px;margin:18px 14px}.sh-wait>div{margin:0 auto}.shipment .sh-connection:empty{display:none}

.sh-avatar{position:relative;background-size:cover;background-position:center}.sh-avatar img{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover}.shipment-header{justify-content:space-between;flex-wrap:wrap}

.sh-receipt{text-align:center;padding:14px;margin:12px;border:2px solid #bfdbfe;border-radius:14px;background:#eff6ff}.sh-receipt p{margin:4px 0;font-size:.9rem;color:#1e3a8a}.sh-receipt strong{display:block;color:#1565d8;font-size:clamp(3rem,9vw,4rem);font-weight:800;line-height:1.15;letter-spacing:.16em;font-variant-numeric:tabular-nums}
/* Alternativa al mapa: avance temporal discreto, sin simular GPS. */
.shipment .sh-timeline{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:36px 32px;background:linear-gradient(155deg,#fefcf7,#f9f4e8);color:#362f1d}
.shipment .sh-timeline-title{font-size:14px;color:#8c7e5f;margin-bottom:8px}
.shipment .sh-timeline-time{font-size:clamp(19px,5vw,27px);font-weight:750;line-height:1.3;min-height:52px}
.sh-timeline-track{position:relative;margin:52px 16px 18px 8px;height:6px;border-radius:8px;background:#e8dfcb;--delivery-progress:0%}
.sh-timeline-fill{position:absolute;inset:0 auto 0 0;width:var(--delivery-progress);background:#8d743a;border-radius:8px;transition:width 4.8s linear}
.sh-timeline-bike{position:absolute;left:var(--delivery-progress);top:50%;transform:translate(-50%,-50%);background:#fff;color:#8d743a;border:2px solid #f1e8d2;border-radius:50%;padding:10px;box-shadow:0 4px 12px #795e1f12;transition:left 4.8s linear}
.shipment .sh-timeline-bike svg{width:30px;height:30px}
.sh-timeline-home{position:absolute;right:-15px;top:50%;transform:translateY(-50%);color:#8d743a;background:#fbf7ed;padding:5px}
.sh-timeline-labels{display:flex;justify-content:space-between;font-size:13px;color:#80755b}
.shipment .sh-timeline-distance{font-size:15px;font-weight:650;margin-top:26px}
.shipment .sh-timeline-caption{font-size:12px;color:#94886c;margin-top:6px}
@media(prefers-reduced-motion:reduce){.sh-timeline-fill,.sh-timeline-bike{transition:none}}
