/* =====================================================================================================================
   patch608 · App de Boxfly, diseño nuevo (iOS 26 · Liquid Glass). Lo usan las vistas de resources/views/frontend/app2.
   Tipografía del sistema (SF Pro en el iPhone), colores del sistema de Apple con el verde de Boxfly como color de acento,
   listas agrupadas, barra de navegación con título grande que se achica al bajar, barra de pestañas de vidrio flotante,
   hojas de vidrio despegadas de los bordes, modo oscuro automático y transiciones entre pantallas.
   ===================================================================================================================== */

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------------------------------------------------------------- colores (claro) */
:root {
    color-scheme: light dark;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
    --font-r: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Inter", system-ui, sans-serif;
    --bg: #F2F2F7; --bg2: #FFFFFF; --bg3: #F2F2F7; --hl: #E5E5EA;
    --label: #000; --label2: rgba(60,60,67,.6); --label3: rgba(60,60,67,.3); --label4: rgba(60,60,67,.18);
    --sep: rgba(60,60,67,.29);
    --fill: rgba(120,120,128,.2); --fill2: rgba(120,120,128,.16); --fill3: rgba(118,118,128,.12); --fill4: rgba(116,116,128,.08);
    --tint: #009E68; --tint-ink: #00865A; --tint-soft: rgba(0,158,104,.12); --on-tint: #fff; /* verde Boxfly sólido (pedido de Angel: sin degradé, que el blanco se lea bien) */
    --red: #FF3B30; --orange: #FF9500; --yellow: #FFCC00; --green: #34C759; --mint: #00C7BE; --teal: #30B0C7;
    --blue: #007AFF; --indigo: #5856D6; --purple: #AF52DE; --pink: #FF2D55; --gray: #8E8E93;
    --red-ink: #D70015; --orange-ink: #CC6A00; --blue-ink: #0040DD; --green-ink: #248A3D;
    --glass: rgba(255,255,255,.6);
    --glass-tint: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 48%, rgba(255,255,255,.24) 100%);
    --glass-rim: linear-gradient(150deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.55) 18%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 62%, rgba(255,255,255,.45) 84%, rgba(255,255,255,.95) 100%);
    --glass-glow: inset 0 0 0 .5px rgba(255,255,255,.55), inset 0 1.5px 6px -1px rgba(255,255,255,.85);
    --glass-shadow: 0 0 0 .5px rgba(0,0,0,.05), 0 6px 22px -4px rgba(0,0,0,.16), 0 1px 3px rgba(0,0,0,.05);
    --glass-blur: blur(14px) saturate(190%);
    --tab-sel: rgba(0,0,0,.075);
    --seg-thumb: #fff; --seg-thumb-sh: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04);
    --sheet: rgba(255,255,255,.94); --scrim: rgba(0,0,0,.22); /* patch609: más opaca (se transparentaban botones y textos de atrás) */
    --mono: #969AA5;
    --ease: cubic-bezier(.32,.72,0,1); --spring: cubic-bezier(.34,1.36,.5,1);
}
/* ---------------------------------------------------------------- colores (oscuro) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000; --bg2: #1C1C1E; --bg3: #2C2C2E; --hl: #3A3A3C;
        --label: #fff; --label2: rgba(235,235,245,.6); --label3: rgba(235,235,245,.3); --label4: rgba(235,235,245,.16);
        --sep: rgba(84,84,88,.65);
        --fill: rgba(120,120,128,.36); --fill2: rgba(120,120,128,.32); --fill3: rgba(118,118,128,.24); --fill4: rgba(118,118,128,.18);
        --tint: #00A36B; --tint-ink: #2BD495; --tint-soft: rgba(0,163,107,.2); --on-tint: #fff;
        --red: #FF453A; --orange: #FF9F0A; --yellow: #FFD60A; --green: #30D158; --mint: #63E6E2; --teal: #40CBE0;
        --blue: #0A84FF; --indigo: #5E5CE6; --purple: #BF5AF2; --pink: #FF375F; --gray: #8E8E93;
        --red-ink: #FF6961; --orange-ink: #FFB340; --blue-ink: #409CFF; --green-ink: #30DB5B;
        --glass: rgba(38,38,42,.56);
        --glass-tint: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.02) 50%, rgba(255,255,255,.05) 100%);
        --glass-rim: linear-gradient(150deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.14) 20%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 62%, rgba(255,255,255,.1) 84%, rgba(255,255,255,.32) 100%);
        --glass-glow: inset 0 0 0 .5px rgba(255,255,255,.1), inset 0 1px 4px -1px rgba(255,255,255,.22);
        --glass-shadow: 0 0 0 .5px rgba(0,0,0,.6), 0 8px 26px -4px rgba(0,0,0,.55);
        --tab-sel: rgba(255,255,255,.12); --tab-on: #2BD495;
        --seg-thumb: #636366; --seg-thumb-sh: 0 3px 8px rgba(0,0,0,.3);
        --sheet: rgba(30,30,32,.94); --scrim: rgba(0,0,0,.48);
        --mono: #7C808A;
    }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--label); font: 400 17px/22px var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
a { color: var(--tint-ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
/* patch609: los campos de escritura no usan el contorno del navegador (se dibujaba alrededor del campo entero y se montaba sobre las
   líneas y el texto): cada campo tiene su marca de foco a medida, dentro de su propio espacio (ver .cell.f, .dims, .srch) */
input:not([type="checkbox"]):not([type="radio"]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
::selection { background: var(--tint-soft); }
.num { font-variant-numeric: tabular-nums; }
.r { font-family: var(--font-r); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En navegadores sin la letra del sistema de Apple (vista previa en computadora): un poco más cerrada, como SF */
@supports not (font: -apple-system-body) {
    body { letter-spacing: -.012em; }
    .lt, .t1, .t2, .price { letter-spacing: -.022em; }
}

.app { position: relative; width: 100%; max-width: 500px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); }
.pg { padding: 0 16px calc(120px + env(safe-area-inset-bottom)); }
.pg.sin-tab { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- textos */
.lt { margin: 0; font: 700 34px/41px var(--font); letter-spacing: .01em; color: var(--label); overflow-wrap: anywhere; }
.eyebrow { display: block; margin: 0 0 1px; font: 600 13px/18px var(--font); letter-spacing: .02em; text-transform: uppercase; color: var(--label2); }
.t1 { font: 700 28px/34px var(--font); margin: 0; }
.t2 { font: 700 22px/28px var(--font); margin: 0; }
.t3 { font: 600 20px/25px var(--font); margin: 0; }
.hd { font: 600 17px/22px var(--font); }
.sub { font: 400 15px/20px var(--font); color: var(--label2); }
.foot { font: 400 13px/18px var(--font); color: var(--label2); }
.cap { font: 400 12px/16px var(--font); color: var(--label2); }
.mut { color: var(--label2); }

/* ---------------------------------------------------------------- vidrio (Liquid Glass) */
.glass { position: relative; isolation: isolate; background: var(--glass); background-image: var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow), var(--glass-glow); }
.glass::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--glass-rim);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* botón redondo de vidrio (barra de navegación) */
.gb { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 22px; border: 0; padding: 0;
    color: var(--label); font-size: 20px; text-decoration: none; transition: transform .35s var(--spring); }
.gb:active { transform: scale(.88); }
.gb .i { font-size: 20px; }
.gb .bdg { position: absolute; top: -3px; right: -3px; z-index: 3; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff;
    font: 600 12px/20px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.gbs { display: inline-flex; align-items: center; height: 44px; border-radius: 22px; padding: 0 4px; }  /* grupo de botones en una cápsula */
.gbs .gb { background: none; box-shadow: none; width: 40px; }
.gbs .gb::before { display: none; }

/* círculo con iniciales (como Contactos) */
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mono); color: #fff;
    font: 600 17px/1 var(--font-r); letter-spacing: .02em; text-decoration: none; transition: transform .35s var(--spring); }
.avatar:active { transform: scale(.9); }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; }

/* ---------------------------------------------------------------- barra de navegación */
.nb { position: sticky; top: 0; z-index: 20; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; margin: 0 -16px;
    display: flex; align-items: center; gap: 10px; pointer-events: none; }
.nb > * { pointer-events: auto; }
.nb::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -26px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s ease;
    background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 46%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.nb.sc::before { opacity: 1; }
.nb-l, .nb-r { flex: 1 1 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.nb-r { justify-content: flex-end; }
.nb-t { flex: 0 1 auto; min-width: 0; max-width: 60%; text-align: center; font: 600 17px/22px var(--font); color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .3s var(--ease); }
.nb.ct .nb-t, .nb.fijo .nb-t { opacity: 1; transform: none; }
.lt-wrap { padding: 2px 0 12px; }
.lt-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* ---------------------------------------------------------------- barra de pestañas (vidrio flotante + botón aparte) */
.tb { position: fixed; z-index: 40; left: 50%; bottom: max(14px, calc(env(safe-area-inset-bottom) - 8px)); width: calc(100% - 32px); max-width: 468px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px; pointer-events: none; }
.tb > * { pointer-events: auto; }
.tb-cap { flex: 1; min-width: 0; height: 64px; border-radius: 32px; padding: 4px; display: flex; view-transition-name: bx-tabbar; }
.tb-ind { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: calc(4px + (100% - 8px) / var(--n, 4) * var(--i, 0)); width: calc((100% - 8px) / var(--n, 4));
    border-radius: 28px; background: var(--tab-sel); box-shadow: inset 0 .5px 0 rgba(255,255,255,.35); view-transition-name: bx-tabpill;
    transition: left .5s var(--spring); }
.tb-it { position: relative; z-index: 3; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 28px;
    color: var(--label); text-decoration: none; font: 600 10px/12px var(--font); letter-spacing: .01em; transition: transform .35s var(--spring), color .2s ease; }
.tb-it .i { font-size: 26px; margin-bottom: 1px; }
.tb-it.on { color: var(--tab-on, var(--tint)); }
.tb-it:active { transform: scale(.9); }
.tb-fab { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 32px; color: #fff;
    background: var(--tint); box-shadow: 0 8px 22px -8px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.06);
    transition: transform .35s var(--spring); view-transition-name: bx-tabfab; }
.tb-fab .i { font-size: 27px; }
.tb-fab .fab-l { display: none; } /* patch627: solo en Android (botón flotante extendido) */
.tb-fab:active { transform: scale(.9); }
.tb-fab.on { filter: brightness(.94); }
/* desvanecido de abajo, debajo de la barra (como el borde de desplazamiento de iOS 26) */
.edge-b { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: calc(110px + env(safe-area-inset-bottom)); pointer-events: none;
    background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 75%, transparent) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 100%); }

/* ---------------------------------------------------------------- secciones y listas agrupadas */
.sec { margin: 0 0 30px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 9px; padding: 0 2px; }
.sec-h h2 { margin: 0; font: 700 22px/28px var(--font); color: var(--label); }
.sec-h a, .sec-h button { flex: none; border: 0; background: none; padding: 0; font: 400 17px/22px var(--font); color: var(--tint-ink); }
.sec-hs { margin: 0 0 7px; padding: 0 16px; font: 400 13px/18px var(--font); color: var(--label2); }
.sec-f { margin: 7px 0 0; padding: 0 16px; font: 400 13px/18px var(--font); color: var(--label2); }
.sec-f a { color: var(--tint-ink); }

.lst { position: relative; background: var(--bg2); border-radius: 26px; overflow: hidden; }
.lst + .lst { margin-top: 16px; }
.cell { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 11px 16px; border: 0; background: transparent;
    color: var(--label); text-decoration: none; text-align: left; font: 400 17px/22px var(--font); transition: background-color .25s ease; }
.cell + .cell::before, .cell + .cell-g::before, .cell-g + .cell::before { content: ""; position: absolute; top: 0; right: 0; left: var(--sep-in, 16px); height: .5px; background: var(--sep); }
.lst.ic { --sep-in: 60px; }
.lst.fl { --sep-in: 72px; }
a.cell:active, button.cell:active, label.cell.tap:active, .cell.tap:active { background-color: var(--hl); transition: none; }
.cell-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--c, var(--gray)); color: #fff; font-size: 18px; }
.cell-ic.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 24px; }
.cell-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cell-t { font: 400 17px/22px var(--font); color: var(--label); overflow-wrap: anywhere; }
.cell-t.b { font-weight: 600; }
.cell-s { font: 400 15px/20px var(--font); color: var(--label2); overflow-wrap: anywhere; }
.cell-v { flex: none; max-width: 55%; font: 400 17px/22px var(--font); color: var(--label2); text-align: right; overflow-wrap: anywhere; }
.cell-chev { flex: none; font-size: 14px; color: var(--label3); margin-right: -2px; }
.cell-ext { flex: none; font-size: 13px; color: var(--label3); }
.cell.tinted .cell-t { color: var(--tint-ink); }
.cell.red .cell-t { color: var(--red); }
.cell.center { justify-content: center; }
.cell.center .cell-t { text-align: center; }
.cell .badge-n { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font: 600 13px/22px var(--font); text-align: center; }

/* bandera del destino */
.flag { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--fill4);
    font: 26px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.flag.xl { width: 64px; height: 64px; border-radius: 18px; font-size: 38px; }

/* fila de un envío: bandera, número de guía, para quién, estado y, si falta pagar, el importe */
.env { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
.env .flag { width: 40px; height: 40px; border-radius: 11px; font-size: 24px; margin-top: 2px; }
.env .cell-tx { gap: 1px; }
.env-1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.env-1 .cell-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-1 .fe { flex: none; font: 400 15px/20px var(--font); color: var(--label2); }
.env-n { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.env .el { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-p { color: var(--label); }
.env-3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.env-3 .st { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--label2); }
.env-3 .st.c-bad { color: var(--red-ink); }
.env-3 .st::before { background: var(--c, var(--label3)); }
.env-3 .deb { flex: none; font: 600 15px/20px var(--font); font-variant-numeric: tabular-nums; color: var(--orange-ink); }
.env .cell-chev { align-self: center; }
.lst.fl { --sep-in: 68px; }

/* estado de un envío: punto de color + texto */
.st { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/20px var(--font); color: var(--c, var(--label2)); }
.st::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 4px; background: currentColor; }
.c-ok { --c: var(--green-ink); } .c-run { --c: var(--blue-ink); } .c-bad { --c: var(--red-ink); } .c-ret { --c: var(--orange-ink); } .c-pay { --c: var(--orange-ink); } .c-mut { --c: var(--label3); }
.env-3 .c-ok::before { background: var(--green); } .env-3 .c-run::before { background: var(--blue); } .env-3 .c-ret::before, .env-3 .c-pay::before { background: var(--orange); } .env-3 .c-bad::before { background: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font: 600 13px/18px var(--font); white-space: nowrap;
    color: var(--c, var(--label2)); background: color-mix(in srgb, var(--c, var(--gray)) 14%, transparent); }
.pill .i { font-size: 13px; }

/* tarjetas */
.card { background: var(--bg2); border-radius: 26px; padding: 18px; }
.card + .card { margin-top: 16px; }

/* ---------------------------------------------------------------- botones
   patch619 (23/11/2026, pedido de Angel: había botones de todos los tamaños y grosores): un solo sistema, con medidas fijas.
   Principal    .btn          50 px · verde · 17 semibold · ancho completo. La acción que avanza (una por pantalla o por tarjeta).
   Secundario   .btn.gray     44 px · gris con letra verde · 17 semibold · ancho completo. La alternativa a la principal.
   Destructivo  .btn.red      44 px · gris con letra roja · 17 semibold. Eliminar, cancelar.
   Compacto     .btn.sm       34 px · cápsula · 15 semibold · ancho según el texto. Dentro de listas y tarjetas (.gray gris, .soft verde suave).
   Texto        .btn.plain    sin fondo · 17 regular · verde · 44 px de zona de toque. Enlaces de acción ("Ver todos tus envíos").
   Íconos: 44 px en la barra de arriba (.gb) y en las hojas (.sh-h .sb); 36 px dentro de una fila (.cp). Alertas: 44 px.
   Para un botón nuevo, usar una de estas clases; no cambiarles el alto ni la letra en cada pantalla. */
.btn { position: relative; appearance: none; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 22px; border: 0;
    border-radius: 25px; background: var(--tint); color: var(--on-tint); font: 600 17px/22px var(--font); text-align: center; text-decoration: none; cursor: pointer;
    box-shadow: none; transition: transform .35s var(--spring), opacity .2s ease, filter .2s ease; }
.btn:active { transform: scale(.97); filter: brightness(.94); }
.btn { white-space: nowrap; overflow: hidden; } /* patch612: el texto de un botón nunca va en dos renglones */
.btn .i { font-size: 19px; }
.btn.gray, .btn.red { min-height: 44px; border-radius: 22px; background: var(--fill3); color: var(--tint-ink); }
.btn.gray .i, .btn.red .i { font-size: 18px; }
.btn.gray.lbl { color: var(--label); }
.btn.red { color: var(--red); }
.btn.plain { min-height: 44px; padding: 0 12px; border-radius: 22px; background: transparent; color: var(--tint-ink); font-weight: 400; }
.btn.wa { background: #25D366; color: #fff; }
.btn.sm { width: auto; min-height: 34px; padding: 0 14px; border-radius: 17px; font: 600 15px/20px var(--font); }
.btn.sm .i { font-size: 15px; }
.btn.sm.soft { background: var(--tint-soft); color: var(--tint-ink); }
.btn[disabled], .btn.busy { opacity: .5; pointer-events: none; }
.btn.busy { opacity: .85; }
.btns { display: flex; flex-direction: column; gap: 10px; }
.btns.row { flex-direction: row; }
.btns.row .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }

/* indicador de actividad (rueda de iOS) */
:root { --spin-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 4v7' opacity='1'/%3E%3Cpath d='M31.3 8.7l-5 5' opacity='.88'/%3E%3Cpath d='M36 20h-7' opacity='.76'/%3E%3Cpath d='M31.3 31.3l-5-5' opacity='.64'/%3E%3Cpath d='M20 36v-7' opacity='.52'/%3E%3Cpath d='M8.7 31.3l5-5' opacity='.4'/%3E%3Cpath d='M4 20h7' opacity='.3'/%3E%3Cpath d='M8.7 8.7l5 5' opacity='.22'/%3E%3C/g%3E%3C/svg%3E"); }
.spin { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 4v7' opacity='1'/%3E%3Cpath d='M31.3 8.7l-5 5' opacity='.88'/%3E%3Cpath d='M36 20h-7' opacity='.76'/%3E%3Cpath d='M31.3 31.3l-5-5' opacity='.64'/%3E%3Cpath d='M20 36v-7' opacity='.52'/%3E%3Cpath d='M8.7 31.3l5-5' opacity='.4'/%3E%3Cpath d='M4 20h7' opacity='.3'/%3E%3Cpath d='M8.7 8.7l5 5' opacity='.22'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23000' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 4v7' opacity='1'/%3E%3Cpath d='M31.3 8.7l-5 5' opacity='.88'/%3E%3Cpath d='M36 20h-7' opacity='.76'/%3E%3Cpath d='M31.3 31.3l-5-5' opacity='.64'/%3E%3Cpath d='M20 36v-7' opacity='.52'/%3E%3Cpath d='M8.7 31.3l5-5' opacity='.4'/%3E%3Cpath d='M4 20h7' opacity='.3'/%3E%3Cpath d='M8.7 8.7l5 5' opacity='.22'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
    animation: bx-spin .8s steps(8) infinite; }
.spin.lg { width: 30px; height: 30px; }
@keyframes bx-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- control segmentado */
.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); height: 36px; padding: 2px; border-radius: 18px; background: var(--fill3); }
.seg-th { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: calc(2px + (100% - 4px) / var(--n, 2) * var(--i, 0)); width: calc((100% - 4px) / var(--n, 2));
    border-radius: 16px; background: var(--seg-thumb); box-shadow: var(--seg-thumb-sh); transition: left .45s var(--spring); }
.seg-b { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; border: 0; border-radius: 16px; background: none;
    padding: 0 8px; font: 500 15px/20px var(--font); color: var(--label); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-b.on { font-weight: 600; }
.seg-b .bdg { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font: 600 12px/20px var(--font); }
/* patch612: en celulares chicos la pestaña usa el texto corto (con el contador no entraba) */
.seg-b .seg-c { display: none; }
@media (max-width: 374px) { .seg-b .seg-l { display: none; } .seg-b .seg-c { display: inline; } }
/* patch623 (aviso de Angel: al pasar de Envíos a Ventas de tiendas los textos del selector tardaban en aparecer): entre esas dos pantallas
   solo se mueve el indicador; la pista gris, los textos y el título grande quedan quietos y siempre a la vista (antes el indicador animado se
   dibujaba encima de los textos y el resto hacía el fundido de toda la pantalla). Si la otra pantalla no los tiene (al venir desde otra
   pestaña), hacen el fundido de siempre (:only-child), para que no se encimen con lo que se va. */
.seg.nav-seg { view-transition-name: bx-segpista; }
.seg.nav-seg .seg-b:nth-of-type(1) { view-transition-name: bx-seg1; }
.seg.nav-seg .seg-b:nth-of-type(2) { view-transition-name: bx-seg2; }
::view-transition-group(bx-segpista), ::view-transition-group(bx-seg1), ::view-transition-group(bx-seg2), ::view-transition-group(bx-lt-env) { animation: none; }
::view-transition-old(bx-segpista), ::view-transition-old(bx-seg1), ::view-transition-old(bx-seg2), ::view-transition-old(bx-lt-env) { animation: none; opacity: 0; }
::view-transition-new(bx-segpista), ::view-transition-new(bx-seg1), ::view-transition-new(bx-seg2), ::view-transition-new(bx-lt-env) { animation: none; }
::view-transition-new(bx-segpista):only-child, ::view-transition-new(bx-seg1):only-child, ::view-transition-new(bx-seg2):only-child, ::view-transition-new(bx-lt-env):only-child { animation: bx-vt-fade-in .2s ease both; }
::view-transition-old(bx-segpista):only-child, ::view-transition-old(bx-seg1):only-child, ::view-transition-old(bx-seg2):only-child, ::view-transition-old(bx-lt-env):only-child { opacity: 1; animation: bx-vt-fade-out .16s ease both; }

/* ---------------------------------------------------------------- filtros en cápsula */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border: 0; border-radius: 18px; background: var(--bg2);
    color: var(--label); font: 500 15px/20px var(--font); text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 .5px var(--label4) inset; transition: transform .3s var(--spring); }
.chip:active { transform: scale(.95); }
.chip .n { color: var(--label2); font-weight: 400; }
.chip.on { background: var(--tint); color: #fff; box-shadow: none; font-weight: 600; }
.chip.on .n { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------- campos */
.srch { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 20px; background: var(--fill3); color: var(--label2); }
.srch .i { font-size: 17px; }
.srch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--label); font: 400 17px/22px var(--font); -webkit-appearance: none; appearance: none; }
.srch input::placeholder { color: var(--label2); }
.srch { transition: box-shadow .16s ease; }
.srch:focus-within { box-shadow: inset 0 0 0 2px var(--tint); } /* patch609: el recuadro es la misma cápsula del buscador */
.srch input::-webkit-search-cancel-button { display: none; }
.srch .x { display: none; border: 0; background: none; padding: 4px; color: var(--label3); font-size: 17px; }
.srch.has .x { display: flex; }

/* fila con campo (etiqueta a la izquierda, valor a la derecha) */
.cell.f { gap: 12px; padding-top: 0; padding-bottom: 0; cursor: text; }
.cell.f .cell-tx { flex: 0 0 auto; max-width: 58%; }
.cell.f .cell-t { flex: none; white-space: nowrap; }
.cell.f input, .cell.f select, .cell.f textarea { flex: 1 1 auto; min-width: 0; height: 52px; border: 0; background: none; padding: 0; text-align: right; color: var(--label);
    font: 400 17px/22px var(--font); -webkit-appearance: none; appearance: none; }
.cell.f input::placeholder, .cell.f textarea::placeholder { color: var(--label3); }
.cell.f .u { flex: none; color: var(--label2); }
.cell.f.l input, .cell.f.l textarea { text-align: left; }
.cell.f.l .cell-t, .cell.f.l .cell-tx { flex: none; width: 112px; white-space: normal; }
.cell.f textarea { height: auto; min-height: 52px; padding: 15px 0; resize: none; line-height: 22px; }
.cell.f.err .cell-t { color: var(--red); }
/* patch609: foco de una fila con campo: recuadro verde DENTRO de la fila (no toca las líneas ni el texto), con las esquinas en línea con la lista */
.cell.f { isolation: isolate; }
.cell.f::after { content: ""; position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 6px; right: 6px; border-radius: 20px; pointer-events: none;
    box-shadow: inset 0 0 0 2px var(--tint); background: color-mix(in srgb, var(--tint) 6%, transparent); opacity: 0; transform: scale(.985);
    transition: opacity .16s ease, transform .3s var(--spring); }
.cell.f:has(> input:focus, > textarea:focus, > .sel-i select:focus)::after { opacity: 1; transform: none; }
/* desplegable dentro de una fila */
.cell.f .sel-i { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; }
.cell.f .sel-i select { width: 100%; padding-right: 22px; text-align: right; text-align-last: right; cursor: pointer; }
.cell.f .sel-i .i { position: absolute; right: 0; font-size: 13px; color: var(--label3); pointer-events: none; }
/* valor elegido en una hoja (menú) */
.cell .pop { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--label2); max-width: 62%; }
.cell .pop .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .pop .v.on { color: var(--label); }
.cell .pop .i { font-size: 13px; color: var(--label3); }

/* medidas en una fila: 40 × 30 × 20 cm */
.dims { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.cell.f .dims input, .dims input, .numf { flex: none; width: 58px; height: 36px; border: 0; border-radius: 10px; background: var(--fill3); text-align: center; color: var(--label);
    font: 500 17px/22px var(--font); font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; padding: 0 4px; transition: box-shadow .2s ease; }
.cell.f .dims input:focus, .numf:focus { box-shadow: inset 0 0 0 2px var(--tint); background: var(--bg2); } /* patch609: el recuadro va justo en el borde de la cajita */
.dims input::placeholder, .numf::placeholder { color: var(--label3); font-weight: 400; }
.dims input::placeholder { font-size: 14px; }
.dims .x { color: var(--label3); font-size: 15px; }
.numf.w { width: 88px; }
/* patch612: las tres medidas se achican en celulares angostos para que no pisen "Medidas" ni corten "cm" */
.cell.f .dims input, .dims input { width: clamp(44px, calc((100vw - 220px) / 3), 58px); }
.dims .u, .cell .u { color: var(--label2); }

/* paso + / − (como el de iOS) */
.stp { flex: none; display: inline-flex; align-items: center; height: 34px; border-radius: 17px; background: var(--fill3); }
.stp button { display: flex; align-items: center; justify-content: center; width: 46px; height: 34px; border: 0; background: none; color: var(--label); font-size: 17px; transition: opacity .2s; }
.stp button:disabled { opacity: .3; }
.stp button:active { opacity: .5; }
.stp i.sp { width: .5px; height: 18px; background: var(--sep); }
.stp-n { min-width: 26px; text-align: center; font: 600 17px/22px var(--font); font-variant-numeric: tabular-nums; }

/* interruptor */
.sw { position: relative; flex: none; width: 51px; height: 31px; -webkit-appearance: none; appearance: none; margin: 0; border-radius: 16px; background: var(--fill); transition: background .25s ease; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform .35s var(--spring); }
.sw:checked { background: var(--green); }
.sw:checked::after { transform: translateX(20px); }

/* mensajes en línea */
.msg { display: flex; align-items: flex-start; gap: 8px; font: 400 15px/20px var(--font); color: var(--red); padding: 0 4px; }
.msg .i { font-size: 17px; margin-top: 1px; }
.msg.ok { color: var(--green-ink); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--bg2); font: 400 15px/20px var(--font); color: var(--label); }
.note .i { flex: none; font-size: 22px; color: var(--c, var(--blue)); margin-top: -1px; }
.note b { font-weight: 600; }

/* ---------------------------------------------------------------- selección en listas */
.chk { flex: none; position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--label3); transition: background-color .2s ease, box-shadow .2s ease; }
.chk::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .35s var(--spring);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.on > .chk, .chk.on, input:checked + .chk { background: var(--tint); box-shadow: none; }
.on > .chk::after, .chk.on::after, input:checked + .chk::after { opacity: 1; transform: none; }
.cell .okm { flex: none; font-size: 17px; color: var(--tint); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .35s var(--spring); }
.cell.on .okm { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- pasos de un trámite */
.prog-w { margin: 0 2px 22px; }
.prog-w .foot { display: block; margin-bottom: 8px; }
.prog { display: flex; gap: 6px; }
.prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--fill2); transition: background-color .3s ease; }
.prog i.on { background: var(--tint); }
/* barra de abajo con el botón principal (en los trámites, sin la barra de pestañas) */
.bbar { position: fixed; z-index: 45; left: 50%; bottom: 0; width: 100%; max-width: 500px; transform: translateX(-50%); display: flex; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.bbar::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -28px; bottom: 0; pointer-events: none;
    background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 55%, color-mix(in srgb, var(--bg) 0%, transparent) 100%); }
.bbar > * { pointer-events: auto; }
html.flujo .tb, html.flujo .edge-b { display: none; }
html.flujo .pg { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
/* listo: tilde animado */
.listo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 8px 8px; }
.listo-c { width: 96px; height: 96px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
    animation: bx-pop .6s var(--spring) both; }
.listo-c svg { width: 52px; height: 52px; }
.listo-c path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: bx-tilde .45s .25s ease-out forwards; }
.listo h2 { margin: 0; font: 700 28px/34px var(--font); }
.listo p { margin: 0; font: 400 17px/22px var(--font); color: var(--label2); max-width: 330px; }
@keyframes bx-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes bx-tilde { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- precio */
.price { font: 700 40px/46px var(--font-r); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price.md { font-size: 34px; line-height: 40px; }
.price.sm { font-size: 28px; line-height: 34px; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kv .k { color: var(--label2); }
.kv .v { font-weight: 500; text-align: right; }

/* ---------------------------------------------------------------- hojas (sheets) */
.sh { position: fixed; inset: 0; z-index: 60; }
.sh-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .4s ease; }
.sh.open .sh-scrim { opacity: 1; }
.sh-p { position: absolute; left: 0; right: 0; bottom: 0; max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; max-height: calc(100% - 44px);
    border-radius: 38px 38px 0 0; background: var(--sheet); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 -2px 30px rgba(0,0,0,.12), inset 0 .5px 0 rgba(255,255,255,.5); transform: translateY(105%); transition: transform .5s var(--ease); overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom); }
.sh.open .sh-p { transform: translateY(var(--drag, 0px)); }
/* hoja mediana: despegada de los bordes (iOS 26); la alta va de borde a borde. --kb = alto del teclado */
.sh:not(.alto) .sh-p { left: 8px; right: 8px; bottom: calc(max(8px, env(safe-area-inset-bottom)) + var(--kb, 0px)); max-height: calc(100% - 60px - var(--kb, 0px)); border-radius: 36px; padding-bottom: 0; }
.sh.alto .sh-p { bottom: var(--kb, 0px); max-height: calc(100% - 44px - var(--kb, 0px)); }
.sh.alto.kb .sh-p { height: calc(100% - 44px - var(--kb, 0px)); }
.sh.alto .sh-p { height: calc(100% - 44px); }
.sh.arrastrando .sh-p { transition: none; }
.sh-grab { flex: none; align-self: center; width: 36px; height: 5px; margin: 6px 0 0; border-radius: 3px; background: var(--label3); }
.sh-h { flex: none; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 4px 14px 4px; }
.sh-h h2 { flex: 1; margin: 0; text-align: center; font: 600 17px/22px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-h .sb { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--fill3); color: var(--label); font-size: 17px; transition: transform .3s var(--spring); }
.sh-h .sb:active { transform: scale(.9); }
.sh-h .sb.ok { background: var(--tint); color: #fff; }
.sh-h .sb.vacio { visibility: hidden; }
.sh-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 16px 24px; }
.sh-b .lst { background: var(--bg2); }
html.sh-on, html.sh-on body { overflow: hidden; }

/* ---------------------------------------------------------------- alerta (diálogo de iOS 26) */
.al { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--scrim); opacity: 0; transition: opacity .25s ease; }
.al.open { opacity: 1; }
.al-p { width: 100%; max-width: 300px; padding: 22px 18px 16px; border-radius: 34px; background: var(--sheet); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; transform: scale(1.12); transition: transform .45s var(--spring); }
.al.open .al-p { transform: none; }
.al-p h3 { margin: 0 0 6px; font: 600 17px/22px var(--font); }
.al-p p { margin: 0 0 18px; font: 400 15px/20px var(--font); color: var(--label); white-space: pre-line; }
.al-b { display: flex; gap: 10px; }
.al-b.v { flex-direction: column; }
.al-b button { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 22px; background: var(--fill3); color: var(--label); font: 500 17px/22px var(--font); padding: 0 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* patch612: en un renglón; si no entran lado a lado, se apilan (como iOS) */
.al-b button.def { background: var(--tint); color: #fff; font-weight: 600; }
.al-b button.des { color: var(--red); font-weight: 600; }

/* ---------------------------------------------------------------- aviso arriba (como los de iOS) */
.hud { position: fixed; z-index: 90; left: 50%; top: calc(10px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
    min-height: 50px; padding: 12px 20px 12px 16px; border-radius: 25px; color: var(--label); font: 600 15px/20px var(--font);
    transform: translate(-50%, -140%); transition: transform .55s var(--spring); pointer-events: none; } /* patch622: el aviso no frena los toques (tapaba el selector de arriba) */
.hud.open { transform: translate(-50%, 0); }
.hud .i { flex: none; font-size: 22px; color: var(--c, var(--tint)); }

/* ---------------------------------------------------------------- vacío (ContentUnavailableView) */
.vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; }
.vacio .i { font-size: 52px; color: var(--label3); margin-bottom: 8px; }
.vacio h3 { margin: 0; font: 700 22px/28px var(--font); }
.vacio p { margin: 0; font: 400 17px/22px var(--font); color: var(--label2); }

/* ---------------------------------------------------------------- entrada animada de bloques */
.in { animation: bx-in .5s var(--ease) both; }
@keyframes bx-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.expand { animation: bx-expand .45s var(--ease) both; transform-origin: top center; }
@keyframes bx-expand { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------------------------------------------------------------- respuesta al toque mientras llega la pantalla */
a.cell.nav-pend { background-color: var(--hl); transition: none; }
a.cell.nav-spin .cell-chev, a.cell.nav-spin .cell-ext { visibility: hidden; }
a.cell.nav-spin::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--label2);
    -webkit-mask: var(--spin-mask) center/contain no-repeat; mask: var(--spin-mask) center/contain no-repeat; animation: bx-spin .8s steps(8) infinite; }
.tb-it.nav-pend { transform: scale(.94); }
a.btn.nav-pend, a.chip.nav-pend { opacity: .7; } /* patch623: el selector de arriba ya no se atenúa al tocarlo (el indicador se mueve en el momento) */
/* arrastrar para volver (app instalada) */
.app.arr { transition: none !important; box-shadow: -12px 0 32px rgba(0,0,0,.14); will-change: transform; }

/* ---------------------------------------------------------------- transiciones entre pantallas */
::view-transition-group(root) { animation-duration: .4s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }
html:active-view-transition-type(tab)::view-transition-old(root) { animation: bx-vt-fade-out .16s ease both; }
html:active-view-transition-type(tab)::view-transition-new(root) { animation: bx-vt-fade-in .2s ease both; }
html:active-view-transition-type(swipe)::view-transition-old(root) { animation: none; opacity: 0; }
html:active-view-transition-type(swipe)::view-transition-new(root) { animation: bx-vt-in-l .32s var(--ease) both; }
@keyframes bx-vt-fade-out { to { opacity: 0; } }
/* patch612: la barra de abajo de los trámites (Siguiente, Crear envío…) entra deslizándose desde abajo y la barra de pestañas que se va
   desaparece al instante (antes se mezclaban un momento y el botón se veía borroso al tocar "+") */
.bbar { view-transition-name: bx-bbar; }
::view-transition-group(bx-bbar) { animation-duration: .32s; animation-timing-function: var(--ease); }
::view-transition-new(bx-bbar):only-child { animation: bx-vt-sube .36s var(--ease) both; }
::view-transition-old(bx-bbar):only-child { animation: bx-vt-baja .22s ease both; }
::view-transition-old(bx-tabpill):only-child, ::view-transition-old(bx-tabbar):only-child, ::view-transition-old(bx-tabfab):only-child { animation: none; opacity: 0; }
@keyframes bx-vt-sube { from { transform: translateY(110%); } }
@keyframes bx-vt-baja { to { transform: translateY(110%); } }
@keyframes bx-vt-fade-in { from { opacity: 0; } }
::view-transition-group(bx-tabpill) { animation-duration: .5s; animation-timing-function: var(--spring); }
::view-transition-group(bx-tabbar), ::view-transition-group(bx-tabfab) { animation: none; }
::view-transition-old(bx-tabbar), ::view-transition-old(bx-tabfab) { animation: none; opacity: 0; }
::view-transition-new(bx-tabbar), ::view-transition-new(bx-tabfab) { animation: none; }
html:active-view-transition-type(push)::view-transition-old(root) { animation: bx-vt-out-l .36s var(--ease) both; } /* patch624: más ágil (antes .46 y .40 s) */
html:active-view-transition-type(push)::view-transition-new(root) { animation: bx-vt-in-r .36s var(--ease) both; box-shadow: -8px 0 30px rgba(0,0,0,.12); }
html:active-view-transition-type(pop)::view-transition-old(root) { z-index: 1; animation: bx-vt-out-r .32s var(--ease) both; box-shadow: -8px 0 30px rgba(0,0,0,.12); }
html:active-view-transition-type(pop)::view-transition-new(root) { animation: bx-vt-in-l .32s var(--ease) both; }
@keyframes bx-vt-in-r { from { transform: translateX(100%); } }
@keyframes bx-vt-out-l { to { transform: translateX(-28%); opacity: .6; } }
@keyframes bx-vt-out-r { to { transform: translateX(100%); } }
@keyframes bx-vt-in-l { from { transform: translateX(-28%); opacity: .6; } }

/* ---------------------------------------------------------------- patch613: elegir de una lista guardada (direcciones, destinatarios)
   En la pantalla, una fila con el elegido (abre la hoja de bx.elegir); en la hoja, buscador, "nuevo" arriba y la lista con tilde. */
.elg { padding-top: 12px; padding-bottom: 12px; }
.elg .cell-t { font-weight: 500; }
.elg.vacia .cell-t { color: var(--tint-ink); font-weight: 400; }
.elg .cell-chev { font-size: 13px; }
.lnk { border: 0; background: none; padding: 0; color: var(--tint-ink); font: inherit; cursor: pointer; text-align: left; }
.sh-s { flex: none; padding: 0 16px 10px; }
.el-nuevo { margin-bottom: 22px; }
.el-nuevo .cell-t { color: var(--tint-ink); }
.el-nuevo .cell > .i:first-child { flex: none; font-size: 24px; color: var(--tint); margin: -2px 0; }
.el-l .lst + .sec-hs { margin-top: 22px; }
.el-l .sec-hs { font-weight: 600; color: var(--label2); }
.el-sin { margin: 0; padding: 28px 16px; text-align: center; color: var(--label2); font: 400 15px/20px var(--font); }

/* ---------------------------------------------------------------- patch613: sugerencias de direcciones (Google Maps), dentro de la lista */
.dir-sug { position: relative; --sep-in: 16px; animation: bx-expand .28s var(--ease) both; } /* patch637: sin el pin rojo (pedido de Angel: más limpio), solo el texto */
.dir-sug::before { content: ""; position: absolute; z-index: 1; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.dir-sug + .cell::before { content: ""; position: absolute; top: 0; right: 0; left: var(--sep-in, 16px); height: .5px; background: var(--sep); }
.dir-op { gap: 0; min-height: 54px; padding-top: 8px; padding-bottom: 8px; }
.dir-op .cell-t { font: 400 16px/21px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-op .cell-s { font: 400 14px/19px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-op.sel { background-color: var(--hl); }
.dir-g { padding: 2px 16px 9px; text-align: right; font: 500 11px/14px var(--font); letter-spacing: .01em; color: var(--label2); }

/* ---------------------------------------------------------------- patch617: Mis cajas (fila en la tarjeta del paquete y hojas de cajas.js) */
.cj-f .cell-t { flex: 1 1 auto; }
.cj-f .pop { max-width: 64%; }
.cj-s { padding: 0; gap: 0; }
.cj-u { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 58px; padding: 9px 8px 9px 16px; border: 0; background: none; color: inherit;
    font: inherit; text-align: left; cursor: pointer; transition: background-color .25s; }
.cj-u:active { background-color: var(--hl); transition: none; }
.cj-g { flex: none; min-height: 34px; margin: 0 14px 0 6px; padding: 0 14px; border: 0; border-radius: 17px; background: var(--tint-soft); color: var(--tint-ink); font: 600 15px/20px var(--font);
    transition: transform .3s var(--spring); }
.cj-g:active { transform: scale(.94); }
.cj-b .msg { margin: 12px 0 0; }
.cj-del { margin-top: 26px; }
.cj-pie { margin-top: 14px; }
.cj-busca { display: flex; align-items: center; gap: 8px; } /* patch624: mientras llegan las sugeridas */
.cj-busca .spin { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- computadora: la app centrada */
@media (min-width: 560px) {
    html { background: var(--hl); }
    .app { box-shadow: 0 0 0 .5px var(--sep); }
}

/* ---------------------------------------------------------------- patch631: sin barra de desplazamiento (pedido de Angel: las apps no la
   muestran). Se sigue pudiendo desplazar con el dedo, la rueda del mouse o el teclado; solo deja de verse la barra (en la computadora). */
html, body, .sh-b, .chips, .ml-lista { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .sh-b::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; width: 0; height: 0; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------------------------------------------------------------- patch637: completar quien recibe con una foto (foto-destinatario.js)
   patch638 (pedido de Angel: la fila con texto era invasiva): solo un ícono de cámara a la derecha del título de la sección. */
/* patch639 (pedido de Angel: el título chico y la cámara suelta no se veían como una sola cosa): el título va dentro de la tarjeta,
   como primera fila y más grande, con la cámara a la derecha en esa misma fila. */
.lst-h { gap: 12px; min-height: 58px; padding: 10px 10px 10px 16px; cursor: default; }
.lst-ht { flex: 1; min-width: 0; font: 600 18px/23px var(--font); color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 8px 0 0; padding: 0; border: 0; border-radius: 17px;
    background: var(--tint-soft); color: var(--tint-ink); font-size: 17px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .3s var(--spring); }
.cam:active { transform: scale(.9); }
.cam.busy { pointer-events: none; }
.cam .spin { width: 17px; height: 17px; }
.fx-lleno { animation: bx-lleno 1.6s var(--ease); } /* el campo que se completó con la foto se marca un momento */
@keyframes bx-lleno { from { background-color: var(--tint-soft); } }
