/* Deli · páginas del repartidor (diseño Coral) */
:root { --c: #6b2fd6; --sol: #d4f56b; --acento: #d4f56b; --tx: #24103a; --mu: #6a6178; --fondo: #f7f4fc; --linea: #e7e1f0; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--tx); font-family: Inter, system-ui, sans-serif; }
.cab { background: var(--c); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 18px 16px; display: flex; align-items: center; justify-content: space-between; }
.dl-marca { display: inline-flex; align-items: center; gap: 8px; }
.dl-ico { border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.etq { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.hero { background: #fff; border-radius: 24px; padding: 20px; text-align: center; }
.hero h1 { font-size: 26px; margin: 4px 0 6px; letter-spacing: -.02em; }
.hero p { color: var(--mu); margin: 0 0 10px; line-height: 1.4; }
.moto { display: block; }
h2 { font-size: 17px; margin: 22px 0 8px; }
.form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mu); font-weight: 600; }
input, select { border: 0; background: #fff; border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--tx); width: 100%; }
input:focus-visible, select:focus-visible, .btn:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; }
.dos, .tres { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.tres { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 420px) { .tres { grid-template-columns: 1fr; } }
.archivo input { padding: 10px; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
legend { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.op { flex-direction: row; align-items: center; gap: 10px; color: var(--tx); font-size: 15px; font-weight: 500; }
.op input { width: auto; accent-color: var(--c); transform: scale(1.3); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: var(--c); color: #fff; font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; margin-top: 8px; }
.btn:disabled { background: #d8d6de; cursor: default; }
.btn.gris { background: var(--tx); }
.link { display: inline-block; margin-top: 12px; color: var(--c); font-weight: 700; text-decoration: none; }
.alerta { margin: 12px 0; padding: 14px; border-radius: 14px; background: #f1eaff; color: #b8321a; font-weight: 600; }
.caja { margin: 14px 0; padding: 16px; border-radius: 18px; background: #fff; }
.mut { color: var(--mu); font-size: 14px; line-height: 1.4; }
.contrato { background: #fff; border-radius: 24px; padding: 20px; line-height: 1.5; font-size: 15px; }
.contrato h1 { font-size: 22px; margin: 0; }
.hola { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 12px; }
.hola h1 { font-size: 28px; margin: 0; }
.estado { padding: 7px 12px; border-radius: 999px; background: #e8e6ee; font-weight: 700; font-size: 14px; }
.estado.on { background: #e3f6ec; color: #11744a; }
.horas { background: #fff; border-radius: 18px; padding: 16px; margin-top: 14px; }
.horas .fila { display: flex; justify-content: space-between; font-size: 14px; }
.barra { height: 10px; border-radius: 5px; background: var(--linea); margin-top: 10px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--c); border-radius: 5px; }
.salir { text-align: center; margin-top: 18px; }
.activo { border: 2px solid var(--c); }
.activo h2 { margin: 8px 0 4px; font-size: 20px; }
.etq-c { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #f1eaff; color: var(--c); font-weight: 800; font-size: 13px; }
.activo .dos .btn { margin-top: 8px; min-height: 48px; font-size: 15px; }
.oferta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--linea); }
.oferta small { display: block; color: var(--mu); font-size: 13px; margin-top: 2px; }
.btn.chico { width: auto; min-height: 44px; padding: 0 14px; font-size: 15px; margin: 0; white-space: nowrap; }
.semana { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--tx); }
.semana span, .semana small { color: var(--mu); font-size: 14px; }
.semana b { font-size: 30px; letter-spacing: -.02em; }
.semana small { color: var(--c); font-weight: 700; }
.tit { font-size: 26px; margin: 4px 0 10px; }
.liq .fila { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; }
.liq .tot { border-top: 1px solid var(--linea); margin-top: 6px; padding-top: 8px; font-weight: 800; }
.pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff4d1; color: #8a6200; }
.pill.pagada { background: #e3f6ec; color: #11744a; }
.pill.por_pagar { background: #e8eefc; color: #2747a8; }
.redes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.redes.columna { flex-direction: column; margin: 16px 0; }
.btn-red { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border-radius: 16px; background: #fff; border: 2px solid var(--linea); color: var(--tx); font-weight: 800; text-decoration: none; flex: 1 1 140px; }
.redes.columna .btn-red, .redes.columna .btn { width: 100%; margin: 0; }
.redes.columna .btn-red { flex: 0 0 auto; }
.etq-c.nivel { background: #d4f56b; color: #24103a; font-weight: 800; }
.instr { background: #fff7d6; border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 15px; }
.chat .msgs { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.chat .msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 15px; }
.chat .msg.mio { align-self: flex-end; background: #6b2fd6; color: #fff; border-bottom-right-radius: 4px; }
.chat .msg.otro { align-self: flex-start; background: #ece4ff; color: #24103a; border-bottom-left-radius: 4px; }
.chat .msg.sis { align-self: center; background: #f1f1f4; color: #555; font-size: 13px; }
.chat .rapidas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.chat .rap { flex: 0 0 auto; border: 1.5px solid #c4a8ff; background: #fff; color: #5b21b6; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; border: 2px solid #ece4ff; border-radius: 12px; padding: 10px; font: inherit; }
.codigo { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-weight: 700; }
.codigo small { font-weight: 400; color: #6b6680; }
.codigo input { font-size: 30px; letter-spacing: .35em; text-align: center; border: 2px solid #c4a8ff; border-radius: 14px; padding: 10px; font-family: inherit; }
.chat .msg img { display: block; max-width: 100%; border-radius: 10px; margin-bottom: 4px; }
.foto-chat { cursor: pointer; display: flex; align-items: center; }
.foto-ent { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; font-weight: 700; }
.foto-ent small { font-weight: 400; color: #6b6680; }
.foto-ent input[type=file] { font: inherit; font-size: 14px; }
.foto-ent input[type=file]::file-selector-button { border: 0; background: #24103a; color: #fff; border-radius: 10px; padding: 8px 14px; margin-right: 10px; font: inherit; }

/* 20.0.20 — Modo destino y segundo pedido en la ruta */
.destino { background: var(--fondo); border-radius: 14px; padding: 12px 14px; margin: 4px 0 14px; }
.destino summary { cursor: pointer; font-size: 15px; color: var(--tx); list-style: none; }
.destino summary::-webkit-details-marker { display: none; }
.destino summary b { color: var(--c); }
.destino form { margin-top: 8px; }
.destino.on { display: flex; align-items: center; gap: 12px; background: var(--tx); color: #fff; }
.destino.on > div { flex: 1; }
.destino.on b { display: block; font-size: 17px; margin-top: 4px; }
.destino.on small { display: block; color: #d9cfe8; font-size: 13px; margin-top: 4px; line-height: 1.35; }
.destino.on .etq-c { background: var(--sol); color: var(--tx); }
.destino.on .btn { width: auto; min-height: 44px; padding: 0 16px; margin: 0; background: #3a2656; }
.dest-lista { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.dest-op { text-align: left; border: 0; background: #fff; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--tx); cursor: pointer; }
.dest-op:focus-visible { outline: 3px solid var(--sol); }
.caja.ruta { border: 2px solid var(--sol); }
/* 20.0.21 — llamada por Deli */
.llamada { position: fixed; inset: 0; z-index: 60; background: linear-gradient(160deg, #24103a, #3b1d66); color: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.llamada[hidden] { display: none; }
.llamada .ll-ini { width: 112px; height: 112px; border-radius: 50%; background: #6b2fd6; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; }
.llamada b { font-size: 26px; margin-top: 10px; }
.llamada small { font-size: 16px; color: #d9cfe8; }
.llamada .ll-priv { font-size: 13px; max-width: 260px; }
.ll-bot { display: flex; gap: 48px; margin-top: 48px; }
.ll-bot button { width: 72px; height: 72px; border-radius: 50%; border: 0; font-size: 28px; color: #fff; }
.ll-bot button[hidden] { display: none; }
.ll-si { background: #1fa463; }
.ll-no { background: #e5484d; }
body > .alerta { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 70; }
