/* Panel 3D · modelo base · ESTILOS DE LA PLANTILLA (2026-12-01). Iguales para todos los negocios.
   Valores copiados del panel real de Sofino (taller3d.css, formal3d.css, botones.css puntos-2/barra-1/luz-5,
   ronda2.css iconos-3, propuestas.css hoja-2, vista-todo.css). Colores en catalogo.js (TEMA): aquí van como variables. */
.pb { position: fixed; inset: 0; overflow: hidden; background: var(--fondo); color: var(--ink); font: 16px/1.45 "Source Sans 3", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb [hidden] { display: none !important; }
.pb button { font-family: inherit; }
.pb-local { position: absolute; inset: 0; } .pb-local canvas { display: block; width: 100%; height: 100%; }

/* ---------- arriba ---------- */
.pb-top { position: absolute; left: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); top: clamp(14px, 2.4vw, 28px); z-index: 3; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.pb-top > * { pointer-events: auto; }
.pb-marca { font: 500 clamp(26px, 2.4vw, 34px)/1 Fraunces, Georgia, serif; letter-spacing: .01em; color: #1C1A17; }
.pb.noche .pb-marca { color: #E9ECEF; }
.pb-reloj { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); color: rgba(28, 26, 23, .6); font-size: 15px; font-weight: 600; }
.pb.noche .pb-reloj { background: rgba(29, 33, 38, .9); color: rgba(233, 236, 239, .75); }
.pb-acc { position: relative; margin-left: auto; display: flex; gap: 8px; align-items: center; }
/* Ver todo: el ojo que se abre al pasar */
.pb-vt { display: inline-flex; align-items: center; gap: 8px; width: 40px; height: 40px; padding: 0 11px; border: 0; border-radius: 12px; background: var(--sup); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; overflow: hidden; white-space: nowrap; box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(28, 26, 23, .08); transition: width .25s cubic-bezier(.2, .8, .2, 1); -webkit-tap-highlight-color: transparent; }
.pb-vt svg { flex: none; width: 18px; height: 18px; } .pb-vt span { opacity: 0; transition: opacity .2s; }
@media (hover: hover) { .pb-vt:hover, .pb-vt:focus-visible, .pb-vt[aria-pressed=true] { width: 118px; } .pb-vt:hover span, .pb-vt:focus-visible span, .pb-vt[aria-pressed=true] span { opacity: 1; } }
.pb-vt[aria-pressed=true] { color: var(--acc); box-shadow: 0 0 0 1.5px var(--acc), 0 4px 14px rgba(28, 26, 23, .08); }
.pb-vt:focus:not(:focus-visible) { outline: none; } .pb-vt:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
/* Día / Noche: el interruptor con sol y luna */
.pb-luz { position: relative; display: block; flex: none; width: 60px; height: 32px; padding: 0; border: 0; border-radius: 34px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pb-luz:focus-visible { outline: 3px solid #1E88D0; outline-offset: 2px; }
.pb-carril { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; background: #FFFFFF; box-shadow: 0 4px 14px rgba(28, 26, 23, .1), inset 0 0 0 1px rgba(28, 26, 23, .06); transition: background .45s, box-shadow .45s; }
.pb-astro { position: absolute; left: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 11px #E8A93B; transition: transform .45s cubic-bezier(.4, 0, .2, 1), box-shadow .45s cubic-bezier(.4, 0, .2, 1); }
.pb.noche .pb-carril { background: #1D2126; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pb.noche .pb-astro { transform: translateX(28px); box-shadow: inset 7px -3px 0 0 #F2B441; }
/* el usuario: su inicial, el punto rojo si hay algo sin leer, y su menú */
.pb-yo { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #1C1A17; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(28, 26, 23, .15); }
.pb.noche .pb-yo { background: #262B33; color: #E9ECEF; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.pb-yo:not([data-n=""])::after { content: ""; position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #C0392B; box-shadow: 0 0 0 2px #fff; }
.pb-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; display: grid; min-width: 220px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(20, 30, 50, .22); }
.pb-menu > button, .pb-menu > a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: #1C1A17; font-size: 16px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.pb-menu > button:hover, .pb-menu > a:hover { background: #F2F4F7; }
.pb-menu .pb-salir { color: #B3261E; border-top: 1px solid #EEF0F3; border-radius: 0 0 12px 12px; }
.pb-mn:not(:empty) { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: #C0392B; color: #fff; font-size: 12.5px; }
.pb.noche .pb-menu { background: #1D2126; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 44px rgba(0, 0, 0, .5); }
.pb.noche .pb-menu > button, .pb.noche .pb-menu > a { color: #E9ECEF; } .pb.noche .pb-menu > button:hover, .pb.noche .pb-menu > a:hover { background: #262B33; }
.pb.noche .pb-menu .pb-salir { color: #FF8A80; border-color: rgba(255, 255, 255, .1); }

/* ---------- un botón por área (círculo con su ícono y el nombre debajo) ---------- */
.pb-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pb-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); pointer-events: auto; cursor: pointer; }
.pb-ico { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; box-shadow: 0 6px 14px rgba(20, 40, 70, .25); transition: transform .15s; }
.pb-ico svg { width: 19px; height: 19px; }
.pb-pin:hover .pb-ico, .pb-pin:focus-visible .pb-ico { transform: scale(1.08); }
.pb-pin > span { display: grid; padding: 2px 9px 3px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #1C1A17; box-shadow: 0 2px 8px rgba(20, 30, 50, .12); white-space: nowrap; }
.pb.noche .pb-pin > span { background: #1D2126; color: #E9ECEF; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.pb-pin b { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.45; }
/* la ayuda de la primera vez, junto al primer botón */
.pb-ayuda { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 34px)); width: max-content; max-width: 240px; padding: 10px 14px; border-radius: 14px; background: #1C1A17; color: #fff; font-size: 14px; line-height: 1.35; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); cursor: pointer; animation: pb-flota 1.6s ease-in-out infinite alternate; }
.pb-ayuda::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); }
.pb.noche .pb-ayuda { background: #E9ECEF; color: #14171B; }
@keyframes pb-flota { to { margin-top: -6px; } }
/* el nombre sobre cada persona, del color de su área */
.pb-nombre { position: absolute; transform: translate(-50%, -100%); padding: 1px 8px; border-radius: 999px; background: var(--c); color: #fff; font: 600 11.5px/1.5 "Source Sans 3", sans-serif; white-space: nowrap; pointer-events: none; }

/* ---------- la frase de abajo ---------- */
.pb-aviso { position: absolute; left: 50%; bottom: clamp(14px, 3vw, 36px); z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; width: max-content; max-width: calc(100vw - 24px); padding: 16px 16px 16px 22px; border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 50px rgba(28, 26, 23, .16); }
.pb.noche .pb-aviso { background: rgba(29, 33, 38, .96); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 50px rgba(0, 0, 0, .5); }
.pb-luzf { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #3E9A4A; box-shadow: 0 0 0 6px rgba(62, 154, 74, .18); }
.pb-luzf.ambar { background: #E2A13A; box-shadow: 0 0 0 6px rgba(226, 161, 58, .22); }
.pb-txt p { margin: 0; }
.pb-hola { margin: 0 0 2px; font-size: 15px; color: rgba(28, 26, 23, .62); white-space: nowrap; }
.pb-frase { font: 600 21px/1.25 Fraunces, Georgia, serif; }
.pb-frase small { display: block; margin-top: 3px; font: 400 15px "Source Sans 3", sans-serif; color: rgba(28, 26, 23, .62); }
.pb.noche .pb-hola, .pb.noche .pb-frase small { color: rgba(233, 236, 239, .64); }
.pb-aviso > button { flex: none; height: 52px; padding: 0 22px; border: 0; border-radius: 16px; background: #1C1A17; color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }
.pb.noche .pb-aviso > button { background: #262B33; color: #E9ECEF; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }

/* ---------- la ventana: centrada en la compu, desde abajo en el celular ---------- */
.pb-velo { position: absolute; inset: 0; z-index: 4; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; } .pb-velo.si { opacity: 1; }
.pb-hoja { position: absolute; left: 50%; top: 50%; z-index: 5; width: min(1000px, calc(100vw - 64px)); max-height: min(86vh, 900px); overflow: auto; overscroll-behavior: contain; padding: 28px 34px 34px; border-radius: 24px; background: var(--sup); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .3s cubic-bezier(.23, 1, .32, 1), opacity .2s; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent; }
.pb-hoja.si { transform: translate(-50%, -50%); opacity: 1; }
.pb.noche .pb-hoja { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .6); }
.pb-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pb-cab h2 { margin: 0; font: 400 26px/1.1 Fraunces, Georgia, serif; }
.pb-cerrar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.pb-volver { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin: -6px 0 4px -8px; padding: 0 12px 0 4px; border: 0; border-radius: 999px; background: none; color: var(--acc); font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer; }
.pb-volver svg { width: 22px; height: 22px; } .pb-volver:hover { background: rgba(0, 0, 0, .05); } .pb-volver:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- los mosaicos (el primero grande, en el color de la plantilla) ---------- */
.pb-mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.pb-mosaico.pocos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pb-mosaico.pocos .dest { grid-column: 1 / -1; }
.pb-mosaico button { position: relative; display: grid; gap: 2px; align-content: start; justify-items: start; min-height: 108px; padding: 13px; border: 0; border-radius: 16px; background: var(--sup-2); color: var(--ink); text-align: left; cursor: pointer; transition: box-shadow .12s; }
.pb-mosaico button:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.pb-mosaico button > svg { margin-bottom: 8px; }
.pb-mosaico button:not(.dest) > svg { width: 42px; height: 42px; padding: 9px; border-radius: 99px; background: var(--ic); color: #fff; }
.pb-mosaico b { font-size: 16px; font-weight: 600; } .pb-mosaico small { color: var(--muted); font-size: 13.5px; }
.pb-mosaico .dest { grid-column: span 2; background: var(--dest, #8E3B4A); color: #fff; }
.pb-mosaico .dest > svg { opacity: .75; } .pb-mosaico .dest b { font: 500 32px/1.05 Fraunces, Georgia, serif; } .pb-mosaico .dest small { color: inherit; opacity: .72; }
.pb-mosaico .dest:hover { box-shadow: none; filter: brightness(1.1); }
.pb-mosaico .bloq { opacity: .55; } .pb-mosaico .bloq:hover { opacity: .8; }
.pb-candado { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sup); color: var(--muted); }
.pb-mosaico .pb-n { position: absolute; top: 14px; right: 14px; font: 500 26px/1 Fraunces, Georgia, serif; }
.pb-enlaces { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.pb-enlaces button { padding: 6px 4px; border: 0; background: none; color: var(--acc); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pb-sec { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 14px; font-weight: 700; } .pb-sec:first-child { margin-top: 0; }
.pb-sec .pb-ic { width: 26px; height: 26px; } .pb-sec .pb-ic svg { width: 15px; height: 15px; } .pb-sec b { margin-left: auto; color: var(--muted); }
.pb-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 99px; background: var(--ic); color: #fff; } .pb-ic svg { width: 24px; height: 24px; }
.pb-mosaico .pb-ic { margin-bottom: 8px; }

/* ---------- «Ver todo»: una tarjeta por área ---------- */
.pb-pins, .pb-aviso, .pb-nombre { transition: opacity .25s ease-out, filter .25s ease-out, visibility 0s; }
.pb.vt-on .pb-pins, .pb.vt-on .pb-aviso { opacity: 0; filter: blur(5px); visibility: hidden; pointer-events: none; }
.pb-vtcapa { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pb-vtc { position: absolute; transform: translate(-50%, -50%); width: 196px; display: grid; gap: 2px; padding: 12px 14px 14px; border-radius: 18px; background: var(--sup); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(20, 30, 50, .18); pointer-events: auto; }
.pb-vtc header { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); } .pb-vtc header i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pb-vtc > b { font: 500 30px/1.05 Fraunces, Georgia, serif; } .pb-vtc p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.pb-vtc.aviso { box-shadow: 0 0 0 2px #E8A93B, 0 14px 34px rgba(20, 30, 50, .18); } .pb-vtc.mal { box-shadow: 0 0 0 2px var(--mal), 0 14px 34px rgba(20, 30, 50, .18); }
.pb-vtc button { justify-self: start; min-height: 36px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--sup-2); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.pb-vtcapa.lista { inset: auto 0 0; max-height: 78%; overflow: auto; display: grid; gap: 8px; padding: 18px 14px 24px; border-radius: 22px 22px 0 0; background: var(--sup); box-shadow: 0 -20px 50px rgba(0, 0, 0, .25); pointer-events: auto; }
.pb-vtcapa.lista .pb-vtc { position: static; transform: none; width: auto; background: var(--sup-2); box-shadow: none; }
.pb-vt-tit { margin: 0 0 4px; font: 400 22px/1.1 Fraunces, Georgia, serif; }

/* ---------- herramientas: formularios, listas y cifras (mismos tokens) ---------- */
.pb-nota { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.pb-sub { margin: 18px 0 8px; font-size: 15px; font-weight: 700; }
.pb-form { display: grid; gap: 12px; max-width: 640px; }
.pb-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pb-form :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--sup-2); color: var(--ink); font: 400 16px "Source Sans 3", system-ui, sans-serif; }
.pb-form textarea { min-height: 72px; resize: vertical; }
.pb-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pb-fila { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pb-b { min-height: 50px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--dest, #8E3B4A); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.pb-b.sec { background: var(--sup-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); } .pb-b.mini { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.pb-b:disabled { opacity: .5; cursor: default; }
.pb-msg { min-height: 1.3em; margin: 0; font-size: 14.5px; font-weight: 600; } .pb-msg.mal { color: var(--mal); } .pb-msg.ok { color: var(--ok); }
.pb-lista { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pb-lista > li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sup-2); }
.pb-lista .pb-l { flex: 1; min-width: 0; display: grid; gap: 1px; } .pb-lista .pb-l b { font-size: 16px; } .pb-lista .pb-l small { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.pb-punto { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ok)); }
.pb-etq { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--sup); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pb-etq.aviso { background: color-mix(in srgb, var(--aviso) 22%, transparent); color: inherit; } .pb-etq.mal { background: color-mix(in srgb, var(--mal) 20%, transparent); color: inherit; } .pb-etq.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: inherit; }
.pb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.pb-total b { font: 500 26px/1 Fraunces, Georgia, serif; }
.pb-barras { display: flex; gap: 6px; align-items: flex-end; height: 130px; margin: 6px 0 4px; }
.pb-barras div { flex: 1; display: grid; justify-items: center; gap: 4px; height: 100%; align-content: end; font-size: 12px; color: var(--muted); }
.pb-barras i { width: 100%; border-radius: 6px 6px 3px 3px; background: #2FA866; min-height: 4px; }
.pb-barras div.hoy i { background: var(--dest, #8E3B4A); }
.pb-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pb-cifras div { padding: 13px 14px; border-radius: 16px; background: var(--sup-2); } .pb-cifras b { display: block; font: 500 26px/1.1 Fraunces, Georgia, serif; } .pb-cifras small { color: var(--muted); font-size: 13.5px; }
.pb-paquetes, .pb-extras { display: grid; gap: 8px; } .pb-extras { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pb-op { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sup-2); cursor: pointer; }
.pb-op input { margin-top: 4px; accent-color: var(--dest, #8E3B4A); } .pb-op span { display: grid; gap: 1px; } .pb-op b { font-size: 16px; } .pb-op small { color: var(--muted); font-size: 13px; }
.pb-op.futuro, .pb-op.inc { opacity: .6; cursor: default; } .pb-op.chica b { font-size: 14.5px; }
.pb-candado-hoja { display: grid; justify-items: start; gap: 10px; } .pb-candado-hoja p { margin: 0; font-size: 16px; }
.pb-gusto { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.pb-gusto label { grid-template-columns: 1fr 72px; align-items: center; padding: 6px 10px; border-radius: 12px; background: var(--sup-2); color: var(--ink); font-weight: 600; }
.pb-gusto input { min-height: 38px; padding: 4px 8px; background: var(--sup); }

/* ---------- variantes para comparar (las de Sofino, botones.css): ?puntos=1|3 y ?barra=2|3 ---------- */
.pb-b2 { display: none; }
.pb.pts-1 .pb-pin > span { display: none; }
.pb.pts-1 .pb-ico { width: 46px; height: 46px; background: #fff; color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 50%, #fff), 0 6px 16px rgba(20, 40, 70, .24); } .pb.pts-1 .pb-ico svg { width: 22px; height: 22px; }
.pb.noche.pts-1 .pb-ico { background: #1D2126; color: color-mix(in srgb, var(--c) 60%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 70%, #000), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.pb.pts-3 .pb-pin { flex-direction: row; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(20, 30, 50, .18); transform: translate(-50%, calc(-100% - 16px)); }
.pb.pts-3 .pb-pin > span { padding: 0; background: none; box-shadow: none; } .pb.pts-3 .pb-pin b { font-size: 13.5px; } .pb.pts-3 .pb-ico { width: 28px; height: 28px; box-shadow: none; } .pb.pts-3 .pb-ico svg { width: 16px; height: 16px; }
.pb.pts-3 .pb-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 12px; margin-left: -1px; background: #fff; }
.pb.pts-3 .pb-pin::before { content: ""; position: absolute; left: 50%; top: calc(100% + 12px); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
.pb.noche.pts-3 .pb-pin { background: #1D2126; color: #E9ECEF; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); } .pb.noche.pts-3 .pb-pin::after { background: rgba(233, 236, 239, .7); } .pb.noche.pts-3 .pb-pin::before { box-shadow: 0 0 0 2px #14171B; }
.pb.br-2 .pb-b2 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 56px; height: 50px; padding: 0; border: 0; border-radius: 16px; background: var(--sup); color: var(--ink); font-size: 11px; font-weight: 600; cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(28, 26, 23, .08); }
.pb.br-3 .pb-luz { position: absolute; right: 54px; top: calc(100% + 22px); z-index: 6; display: none; } .pb.br-3 .pb-acc:has(.pb-menu:not([hidden])) .pb-luz { display: block; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .pb-marca { font-size: 22px; } .pb-reloj { display: none; } .pb-acc { gap: 6px; }
  .pb-vt { padding: 0; justify-content: center; width: 40px !important; } .pb-vt span { display: none; }
  .pb-luz { transform: scale(.9); }
  .pb-pin { gap: 4px; } .pb-ico { width: 29px; height: 29px; box-shadow: 0 3px 8px rgba(20, 40, 70, .22); } .pb-ico svg { width: 15px; height: 15px; }
  .pb-pin > span { padding: 1px 6px 2px; } .pb-pin b { font-size: 10.5px; font-weight: 600; }
  .pb-nombre { display: none; }
  .pb-aviso { left: 12px; right: 12px; width: auto; transform: none; flex-wrap: wrap; gap: 12px; padding: 16px; }
  .pb-frase { font-size: 18px; } .pb-aviso > button { width: 100%; }
  .pb.vt-on .pb-pins, .pb.vt-on .pb-aviso { filter: none; }
  .pb-hoja { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 92vh; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(100%); opacity: 1; transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
  .pb-hoja.si { transform: none; }
  .pb-mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-dos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pb *, .pb *::before { transition-duration: .01s !important; } }

.pb-hoja .pb-mosaico button, .pb-hoja .pb-enlaces button { line-height: 1.45; }
.pb-hoja .pb-mosaico button { font-size:16px; }
.pb-sec + .pb-mosaico + .pb-mosaico { margin-top: 12px; }
.pb-semana { display:flex; gap:3px; align-items:flex-end; height:30px; width:100%; }
.pb-semana i { flex:1; background:#2FA866; border-radius:3px; }
.pb-puntos { display:flex; gap:4px; }
.pb-puntos i { width:18px; height:10px; border-radius:9px; background:var(--sup-2); }
.pb-puntos .on { background:var(--ok); }
@media(min-width:760px) {
  .pb-hoja:has(.pb-sec) { width:min(1140px, calc(100vw - 64px)); max-height:calc(100dvh - 24px); padding:20px 34px 22px; }
}
@media(max-width:759px) { .pb-hoja { max-height:94dvh; box-shadow:none; } }

.pfo-busca>div,.pfo-opciones,.pb-cal header,.pfo-pasos{display:flex;align-items:center;gap:6px}.pfo-opciones{flex-wrap:wrap}.pfo-busca input{flex:1;min-width:0}.pfo-busca input:focus{outline:2px solid var(--acc)}.pfo-busca section{display:grid;gap:6px;max-height:220px;overflow:auto}.pfo-busca button,.pfo-opciones button,.pb-cal button,.pfo-pasos button{cursor:pointer;border:1px solid var(--line);border-radius:12px;background:var(--sup-2);color:var(--ink);font:inherit;padding:7px 10px}.pfo-producto{display:flex;align-items:center;gap:12px;text-align:left}.pfo-producto span{display:grid;justify-items:start}.pfo-producto small{border-radius:14px;background:white;color:#1c1a17;padding:2px 8px}.pb-foto,.pfo-producto>svg{width:52px;height:52px;border-radius:10px;object-fit:cover}.pb-foto.grande{width:min(100%,280px);height:160px}.pfo-opciones button[aria-pressed=true],.pfo-producto[aria-pressed=true]{outline:2px solid var(--op,var(--acc))}.pfo-opciones svg{border-radius:50%;padding:8px;background:var(--op);color:white;width:38px;height:38px;vertical-align:middle;margin-right:7px}.pb-cal{max-width:340px}.pb-cal header{justify-content:space-between}.pb-cal section{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:2px}.pb-cal .hoy{box-shadow:inset 0 0 0 2px var(--acc)}.pb-cal [aria-pressed=true],.pfo-pasos [aria-current=step]{background:var(--ink);color:var(--sup)}.pfo-pasos{padding:4px;border-radius:14px;background:var(--sup-2)}.pfo-pasos button{min-height:42px;flex:1;padding:3px;border:0;font-weight:600}.pb-form [hidden]{display:none!important}.pb-form small{color:var(--muted)}

.pfo-pasos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--sup-2); }
.pfo-pasos button { min-height: 42px; padding: 0 6px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 14px var(--f-ui, "Source Sans 3", sans-serif); cursor: pointer; }
.pfo-pasos button[aria-current=step] { background: var(--ink); color: var(--sup); } .pfo-pasos button:disabled { opacity: .45; cursor: default; }
@media(max-width:480px){.pfo-pasos button{font-size:12.5px}}
.pfo-opciones:not(.ent-ops) button{border-radius:99px}
.ent-ops{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:8px}
.ent-ops .ent-op{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:14px 8px;border:2px solid var(--line);border-radius:14px;font-weight:700}
.ent-op i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--op);color:white}
.ent-op i svg{width:24px;height:24px;margin:0;padding:0;background:none}
.ent-op[aria-pressed=true]{outline:0;border-color:var(--op);background:color-mix(in srgb,var(--op) 14%,var(--sup))}
.pb-form .ent-c{display:block;position:relative}.ent-c i{position:absolute;top:50%;left:12px;transform:translateY(-50%);display:grid;color:var(--acc)}.pb-form .ent-c input{padding-left:44px}

/* Tanda 6 */
.pfo-busca{min-width:0}.pfo-barra{display:flex;align-items:center;gap:8px;min-height:46px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--sup-2);color:var(--muted)}.pfo-barra input{height:42px;border:0!important;outline:0!important;background:transparent!important;color:var(--ink)!important;font:inherit}.pfo-barra button{width:36px;height:36px;padding:0!important;border:0!important;background:transparent!important;font-size:22px;color:var(--muted)}.pfo-busca section{gap:8px;margin-top:8px;max-height:min(38vh,280px);overscroll-behavior:contain}.pfo-busca section[hidden]{display:none}.pfo-producto{width:100%;min-height:64px;padding:7px 10px!important;border-radius:12px!important}.pfo-producto small{background:transparent;color:var(--muted);padding:2px 0}.pb-cal section{gap:1px}.pb-cal section button,.pb-cal section small{min-width:0;min-height:32px;padding:3px;font-size:12px;border-radius:8px}.pb-cal header button,.pb-cal>[data-dia]{min-height:40px}.pb-form input:focus{scroll-margin-bottom:45vh}@media(max-width:600px){.pb-hoja{overflow:auto;overscroll-behavior:contain}.pb-hoja button,.pb-hoja [role=button]{min-height:44px}.pb-cal{max-width:100%}.pb-cal section button,.pb-cal section small{min-height:34px}}

/* buscador = el de Sofino: un renglón por producto, variantes en botones (tienda.css .t-tomar-res / .t-tomar-vars) */
.pfo-barra svg{flex:none}.pfo-barra input::-webkit-search-cancel-button{display:none}
.pfo-busca section{display:grid;gap:8px}.pfo-grupo{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:var(--sup-2)}
.pfo-grupo>.pb-foto,.pfo-grupo>svg{flex:none;width:52px;height:52px;border-radius:10px;object-fit:cover}.pfo-grupo>div{min-width:0;flex:1}.pfo-grupo b{display:block}
.pfo-vars{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.pfo-vars .pfo-producto{width:auto;min-height:40px!important;padding:0 12px!important;border:0!important;border-radius:20px!important;background:var(--sup)!important;box-shadow:inset 0 0 0 1px var(--line);font-size:14px;display:inline-flex;align-items:center;gap:6px}
.pfo-vars .pfo-producto small{font-size:12px;padding:0}.pfo-vars .pfo-producto[aria-pressed=true]{outline:0;box-shadow:inset 0 0 0 2px var(--acc);font-weight:600}
.pfo-nada{color:var(--muted);font-size:14px;margin:4px 2px}
@media(max-width:600px){.pfo-vars .pfo-producto{min-height:44px!important}}

/* renglón de producto en Nuevo pedido / Fiado: buscador arriba; cantidad y Quitar en una línea */
.fl-linea{display:grid;grid-template-columns:1fr auto;gap:8px 10px;align-items:end;padding:12px;border-radius:14px;background:var(--sup);box-shadow:inset 0 0 0 1px var(--line);margin-bottom:10px}
.fl-linea>.pfo-busca{grid-column:1/-1}.fl-linea>label{margin:0}.fl-linea>button{min-height:44px;align-self:end}

/* ventanas sin mosaico (formularios, listas): del ancho de su contenido, sin hueco a la derecha */
@media(min-width:760px){.pb-hoja:not(:has(.pb-sec)):not(:has(.fe-tablero)){width:min(720px,calc(100vw - 64px))}}
.pb-hoja .pb-form{max-width:none}
/* grupo de botones al pie de una ventana: separados y parejos */
.pb-botones{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.pb-botones .pb-b{flex:1 1 160px;margin:0}

.pb-hoja:focus{outline:none}
.pfo-pasos button{white-space:nowrap}@media(max-width:480px){.pfo-pasos{grid-auto-columns:auto}.pfo-pasos button{font-size:12px;padding:0 4px}}
