/* Santipollo · piezas compartidas (pedido por kilos, pago, zonas, asistente) por las tres propuestas.
   Cada página define: --w-ink, --w-paper, --w-main, --w-main-ink, --w-alt, --w-border, --w-radius, --w-shadow, --w-shadow-sm, --w-display, --w-text */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.w-overlay { position: fixed; inset: 0; z-index: 90; background: rgb(10 16 35 / .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.w-overlay.is-on { opacity: 1; pointer-events: auto; }
.w-x { width: 44px; height: 44px; border: var(--w-border); border-radius: 12px; background: #fff; color: #2B1A0E; font: 700 24px/1 var(--w-display); cursor: pointer; flex: none; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border: var(--w-border); border-radius: var(--w-radius); font: 700 16px/1.1 var(--w-display); text-decoration: none; cursor: pointer; width: 100%; transition: transform .15s, filter .2s; }
.w-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.w-btn--main { background: var(--w-main); color: var(--w-main-ink); box-shadow: var(--w-shadow-sm); }
.w-btn--alt { background: #fff; color: #2B1A0E; }
.w-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(440px, 100%); background: var(--w-paper); color: var(--w-ink); border-left: var(--w-border); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .9, .3, 1.1); visibility: hidden; font-family: var(--w-text); }
.w-drawer.is-on { transform: none; visibility: visible; }
.w-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: var(--w-border); }
.w-drawer__head h2 { font: 800 26px var(--w-display); margin: 0; }
.w-drawer__body { flex: 1; overflow-y: auto; padding: 6px 20px; }
.w-drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: var(--w-border); display: grid; gap: 10px; }
.w-line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgb(128 140 170 / .45); animation: pop .3s; }
.w-line img, .w-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--w-alt); display: grid; place-items: center; font: 800 11px var(--w-display); color: #2B1A0E; }
.w-line b { font-size: 14.5px; line-height: 1.3; display: block; }
.w-line small { opacity: .7; font-size: 12.5px; display: block; }
.w-line__row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.w-line__row strong { font-family: var(--w-display); }
.w-qty { display: inline-flex; align-items: center; border: 2px solid currentColor; border-radius: 10px; }
.w-qty button { width: 32px; height: 32px; border: 0; background: none; color: inherit; font: 800 17px var(--w-display); cursor: pointer; }
.w-qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.w-total { display: flex; justify-content: space-between; align-items: baseline; }
.w-total b { font: 800 28px var(--w-display); }
.w-empty { text-align: center; padding: 60px 10px; opacity: .7; font-weight: 700; }
.w-modal { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 20px; pointer-events: none; font-family: var(--w-text); }
.w-modal__box { pointer-events: auto; position: relative; width: min(720px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; background: var(--w-paper); color: var(--w-ink); border: var(--w-border); border-radius: calc(var(--w-radius) + 8px); box-shadow: var(--w-shadow); padding: 26px; transform: translateY(20px) scale(.97); opacity: 0; visibility: hidden; transition: .3s; }
.w-modal__box--sm { width: min(480px, 100%); }
.w-modal.is-on .w-modal__box { transform: none; opacity: 1; visibility: visible; }
.w-modal__box > .w-x { position: absolute; top: 16px; right: 16px; }
.w-modal__box h2 { font: 800 28px var(--w-display); margin: 0 50px 16px 0; }
.w-sepimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--w-radius); margin-bottom: 14px; }
.w-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.w-steps span { border: 2px solid currentColor; border-radius: 99px; padding: 5px 12px; font: 700 13px var(--w-display); opacity: .6; }
.w-steps span.on { opacity: 1; background: var(--w-alt); color: #2B1A0E; border-color: #2B1A0E; }
.w-steps span.done { opacity: 1; background: #1E9E46; color: #fff; border-color: #1E9E46; }
.w-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.w-opts button { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 2px 12px; border: 2px solid rgb(128 140 170 / .5); border-radius: 14px; background: transparent; color: inherit; padding: 12px 14px; cursor: pointer; font-family: var(--w-text); }
.w-opts button[aria-checked="true"] { border-color: var(--w-main); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-main) 30%, transparent); }
.w-opts b { font-family: var(--w-display); } .w-opts small { opacity: .7; grid-column: 1; } .w-opts em { font-style: normal; font-weight: 800; grid-row: span 2; align-self: center; }
.w-pays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.w-pays button { border: 2px solid rgb(128 140 170 / .5); border-radius: 12px; background: transparent; color: inherit; padding: 12px 6px; font: 700 14px var(--w-display); cursor: pointer; }
.w-pays button[aria-checked="true"] { background: var(--w-main); color: var(--w-main-ink); border-color: var(--w-main); }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-grid .full { grid-column: 1 / -1; }
.w-field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.w-field input, .w-field select { width: 100%; border: 2px solid rgb(128 140 170 / .6); border-radius: 12px; padding: 12px 14px; font-size: 16px; background: #fff; color: #2B1A0E; box-sizing: border-box; }
.w-err { display: none; color: #E23B2E; font-weight: 700; font-size: 13px; margin: 4px 0 0; }
.w-field.has-err .w-err { display: block; } .w-field.has-err input { border-color: #E23B2E; }
.w-sum { border: 2px solid rgb(128 140 170 / .5); border-radius: 14px; padding: 14px; margin: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px; font-weight: 700; }
.w-sum .t { font: 800 22px var(--w-display); border-top: 2px solid rgb(128 140 170 / .5); padding-top: 8px; }
.w-note { font-size: 13px; opacity: .75; margin: 6px 0 14px; }
.w-row { display: flex; gap: 10px; flex-wrap: wrap; } .w-row .w-btn { flex: 1; width: auto; min-width: 140px; }
.w-done { text-align: center; display: grid; gap: 12px; justify-items: center; }
.w-check { width: 90px; height: 90px; border-radius: 50%; background: #1E9E46; display: grid; place-items: center; color: #fff; font: 800 46px var(--w-display); animation: pop .5s; }
.w-spin { width: 54px; height: 54px; border: 5px solid rgb(128 140 170 / .3); border-top-color: var(--w-main); border-radius: 50%; animation: wrot .8s linear infinite; margin: 30px auto 14px; }
@keyframes wrot { to { transform: rotate(1turn); } }
.w-center { text-align: center; font-weight: 800; }
.w-confetti { position: absolute; width: 9px; height: 14px; top: -14px; border-radius: 2px; animation: wfall 1.4s ease-in forwards; pointer-events: none; }
@keyframes wfall { to { transform: translate(var(--dx), 520px) rotate(720deg); opacity: 0; } }
.w-toast { position: fixed; left: 50%; bottom: 24px; z-index: 99; translate: -50% 160%; visibility: hidden; background: #2B1A0E; color: #fff; border: 2px solid #fff; border-radius: 14px; padding: 12px 18px; font: 800 15px var(--w-text); box-shadow: 0 10px 30px rgb(0 0 0 / .3); transition: translate .4s, visibility 0s .4s; max-width: calc(100% - 32px); }
.w-toast.is-on { translate: -50% 0; visibility: visible; transition: translate .4s; }
.w-flyer { position: fixed; z-index: 100; width: 60px; height: 60px; border-radius: 12px; object-fit: cover; pointer-events: none; transition: transform .75s cubic-bezier(.5, -.3, .7, 1), opacity .75s; }
@media (max-width: 640px) { .w-modal { padding: 0; place-items: end center; } .w-modal__box { border-radius: 22px 22px 0 0; max-height: 94svh; padding: 20px 16px; } .w-grid { grid-template-columns: 1fr; } .w-pays { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .w-drawer, .w-modal__box, .w-toast { transition: none; } }
/* ---------- chat (estilo WhatsApp) ---------- */
.chat { display: flex; flex-direction: column; overflow: hidden; background: #0B141A; color: #E9EDEF; font-family: var(--w-text); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #202C33; }
.chat__av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.chat__head b { display: block; font-size: 15px; } .chat__head small { font-size: 12px; color: #8696A0; }
.chat__x { margin-left: auto; width: 40px; height: 40px; border: 0; background: none; color: #AEBAC1; font-size: 28px; }
.chat__body { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; background-color: #0B141A; background-image: radial-gradient(rgb(255 255 255 / .035) 1px, transparent 1px); background-size: 18px 18px; }
.msg { display: flex; animation: pop .3s ease; }
.msg--me { justify-content: flex-end; }
.msg__b { max-width: 86%; padding: 7px 10px 6px; border-radius: 10px; font-size: 14.2px; line-height: 1.45; white-space: pre-line; }
.msg--bot .msg__b { background: #202C33; border-top-left-radius: 2px; } .msg--me .msg__b { background: #005C4B; border-top-right-radius: 2px; }
.msg__t { float: right; margin: 6px 0 -2px 10px; font-size: 10.5px; color: rgb(233 237 239 / .55); }
.msg__ticks { font-style: normal; color: #53BDEB; }
.msg__img { width: 180px; border-radius: 8px; margin-bottom: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: td 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes td { 30% { transform: translateY(-4px); } }
.rec { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: #8696A0; font-style: italic; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #FF3B30; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.qlist { margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; background: rgb(255 255 255 / .06); font-size: 13px; display: grid; gap: 3px; }
.qlist div { display: flex; justify-content: space-between; gap: 10px; }
.qlist .tt { border-top: 1px solid rgb(255 255 255 / .15); margin-top: 4px; padding-top: 4px; font-weight: 800; color: #7EE2A8; }
.msg__act { display: block; width: 100%; margin-top: 8px; padding: 9px; border: 0; border-radius: 8px; background: rgb(255 255 255 / .07); color: #53BDEB; font: 700 14px var(--w-text); text-align: center; text-decoration: none; clear: both; }
.msg__act + .msg__act { margin-top: 4px; }
.vnote { display: flex; align-items: center; gap: 8px; min-width: 230px; }
.vnote__av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.vnote__play { width: 32px; height: 32px; border: 0; background: none; color: #AEBAC1; padding: 0; }
.vnote__play svg { width: 26px; height: 26px; }
.vnote__wave { flex: 1; display: flex; gap: 2px; align-items: center; height: 28px; cursor: pointer; }
.vnote__wave i { flex: 1; border-radius: 2px; background: #8696A0; opacity: .55; }
.vnote__wave i.on { background: #25D366; opacity: 1; }
.vnote__time { font-size: 11px; color: rgb(233 237 239 / .6); }
.chat__chips { display: flex; gap: 6px; padding: 0 10px 8px; overflow-x: auto; background: #0B141A; scrollbar-width: none; }
.chat__chips:empty { display: none; }
.qchip { flex: none; padding: 8px 12px; border-radius: 99px; border: 1px solid rgb(37 211 102 / .5); background: rgb(37 211 102 / .08); color: #7EE2A8; font: 700 13px var(--w-text); white-space: nowrap; }
.chat__form { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #202C33; }
.chat__form input#agentIn { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 99px; padding: 0 16px; background: #2A3942; color: #E9EDEF; outline: 0; font-size: 15px; }
.chat__clip { width: 40px; height: 40px; display: grid; place-items: center; color: #AEBAC1; cursor: pointer; flex: none; }
.chat__clip svg { width: 22px; height: 22px; }
.chat__clip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chat__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #25D366; color: #062A14; display: grid; place-items: center; flex: none; }
.chat__send svg { width: 20px; height: 20px; }
.chat__brand { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 7px; background: #111B21; color: #8696A0; font-size: 11.5px; text-decoration: none; }
.chat__brand b { color: #12B3A6; } .chat__brand img { width: 16px; height: auto; }
.agent { position: fixed; right: 22px; bottom: 100px; z-index: 80; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100svh - 130px)); border: 3px solid var(--w-ink); border-radius: 22px; overflow: hidden; box-shadow: var(--w-shadow); transform: translateY(14px) scale(.96); transform-origin: bottom right; opacity: 0; transition: .3s cubic-bezier(.2,.9,.3,1.2); }
.agent.is-on { transform: none; opacity: 1; }
.agent .chat { height: 100%; }
.fabwrap { position: fixed; right: 22px; bottom: 22px; z-index: 81; display: flex; align-items: flex-end; gap: 12px; }
.fab { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--w-ink); background: #25D366; box-shadow: var(--w-shadow-sm); display: grid; place-items: center; transition: transform .2s cubic-bezier(.2,.9,.3,1.2); }
.fab:hover { transform: scale(1.08) rotate(-8deg); }
.fab img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.fab__dot { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--w-ink); background: var(--w-main); color: #fff; font: 800 11px/18px var(--w-display); text-align: center; }
.fab__dot[hidden] { display: none; }
.fabhint { position: relative; max-width: 240px; margin: 0 0 8px; padding: 12px 30px 12px 14px; border: var(--w-border); border-radius: 16px 16px 4px 16px; background: #fff; box-shadow: var(--w-shadow-sm); font-size: 14px; line-height: 1.4; cursor: pointer; animation: pop .4s cubic-bezier(.2,.9,.3,1.2); }
.fabhint[hidden] { display: none; }
.fabhint b { display: block; }
.fabhint button { position: absolute; top: 2px; right: 4px; border: 0; background: none; font-size: 20px; width: 28px; height: 28px; }
@media (max-width: 560px) { .agent { inset: 0; width: 100%; height: 100svh; border: 0; border-radius: 0; } .agent-open .fabwrap { display: none; } .fabwrap { right: 14px; bottom: 14px; } }
.fabhint { color: #2B1A0E; }

/* ---------- Santipollo: zona, ruta, peso ---------- */
.w-link { border: 0; background: none; padding: 0; color: var(--w-main); font: 800 14px var(--w-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.w-route { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px; background: var(--w-alt); color: #2B1A0E; font-size: 13.5px; line-height: 1.4; }
.w-route .w-link { color: #2B1A0E; flex: none; }
.w-total small { font-weight: 600; opacity: .7; }
.w-min { margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFF1D6; color: #7A4300; font-size: 13px; font-weight: 700; }
.w-routebox { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--w-alt); color: #2B1A0E; font-size: 14px; line-height: 1.45; }
.w-routebox > span { font-size: 22px; }
.w-routebox .w-link { color: #2B1A0E; margin-top: 4px; }
.w-weigh { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--w-main) 55%, transparent); font-size: 13.5px; line-height: 1.45; }
.w-weigh > :first-child { font-size: 20px; }
.w-zones { display: grid; gap: 12px; }
.w-zones fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.w-zones legend { width: 100%; padding: 0; margin-bottom: 6px; font: 800 13px var(--w-text); text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.w-zones button { min-height: 40px; padding: 0 14px; border: 2px solid rgb(128 128 128 / .45); border-radius: 99px; background: transparent; color: inherit; font: 700 14px var(--w-text); cursor: pointer; }
.w-zones button:hover { border-color: var(--w-main); }
.w-zones button[aria-pressed="true"] { background: var(--w-main); border-color: var(--w-main); color: var(--w-main-ink); }
.track { display: grid; gap: 6px; margin: 4px 0; font-size: 13.5px; }
.track div { padding: 6px 10px; border-left: 3px solid rgb(255 255 255 / .2); opacity: .6; }
.track div.on { border-color: #25D366; opacity: 1; }
.pmini { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.pmini img { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; background: #fff; }
.pmini span { flex: 1; }
.msg__act:disabled { color: #7EE2A8; }
.w-line img { object-fit: contain; background: #fff; }
