:root {
  --azul: #D02013;
  --azul-osc: #9E180E;
  --naranja: #515769;
  --verde: #1b8a4b;
  --rojo: #c0392b;
  --fondo: #F2F3F5;
  --card: #ffffff;
  --texto: #333333;
  --muted: #555555;
  --borde: #DFE1E5;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font-family: 'Montserrat', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .4; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.05rem; margin: 26px 0 10px; }
h3 { font-size: .95rem; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: .85rem; }
.verde { color: var(--verde); }
.rojo { color: var(--rojo); }
.chico { font-size: .78rem; }
.centro { text-align: center; margin-top: 10px; }
.grow { flex: 1; min-width: 0; }

/* contenedor */
.shell { margin: 0 auto; min-height: 100vh; background: var(--fondo); }
.shell.phone { max-width: 480px; padding-bottom: 90px; }
.shell.wide { max-width: 1100px; padding-bottom: 40px; }
.main { padding: 0 16px; }

/* barra superior */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; position: sticky; top: 0; z-index: 20; background: var(--fondo); }
.marca { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: var(--azul); }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--naranja); display: grid; place-items: center; font-size: 1.2rem; }
.campana { position: relative; font-size: 1.25rem; padding: 6px; }
.campana i, .bottom i { position: absolute; top: 0; right: -2px; background: var(--rojo); color: #fff; font-style: normal; font-size: .65rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.roles { display: flex; gap: 6px; margin: 0 16px 14px; padding: 4px; background: #E6E7EB; border-radius: 12px; }
.roles button { flex: 1; padding: 8px 4px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.roles button.on { background: #fff; color: var(--azul); box-shadow: var(--sombra); }

/* barra inferior */
.bottom { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #fff; border-top: 1px solid var(--borde); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
.bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--muted); padding: 4px 0; }
.bottom button span { font-size: 1.3rem; position: relative; filter: grayscale(1); opacity: .7; }
.bottom button.on { color: var(--azul); }
.bottom button.on span { filter: none; opacity: 1; }

/* tarjetas y listas */
.card { background: var(--card); border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); }
.titulo { font-size: 1.45rem; font-weight: 800; margin: 4px 0 4px; }
.sub { margin-bottom: 14px; }
.hola h1 { font-size: 1.6rem; font-weight: 800; }
.hola { margin: 6px 0 14px; }
.ahorro { background: linear-gradient(135deg, #515769, #3A3F4D); color: #fff; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.ahorro::after { content: '🐯'; position: absolute; right: -10px; bottom: -22px; font-size: 6rem; opacity: .14; }
.ahorro p { font-size: .85rem; opacity: .85; }
.ahorro strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.ahorro span { font-size: .85rem; opacity: .85; }
.btn-claro { align-self: flex-start; margin-top: 10px; background: rgba(255,255,255,.16); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: .85rem; font-weight: 600; }
.activo { width: 100%; text-align: left; margin-top: 12px; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--naranja); }
.activo > div { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.flecha { font-size: 1.6rem; color: var(--muted); }
.accesos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.accesos button { background: #fff; border-radius: 14px; padding: 14px 6px; box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; }
.accesos span { font-size: 1.6rem; }
.carrusel { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.mini { flex: 0 0 150px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.mini-img { height: 92px; border-radius: 14px; display: grid; place-items: center; font-size: 2.4rem; position: relative; margin-bottom: 6px; }
.mini-img em, .desc { font-style: normal; background: var(--naranja); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 8px; border-radius: 8px; }
.mini-img em { position: absolute; top: 8px; left: 8px; }
.mini b { font-size: .88rem; }
.lista { display: flex; flex-direction: column; gap: 8px; }
.fila { background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--sombra); }
.fila > div:not(.der) { flex: 1; min-width: 0; }
.fila p { margin-top: 2px; }
.ico { font-size: 1.4rem; line-height: 1.2; }
.dia { background: #ECEDF1; color: #515769; font-weight: 700; font-size: .75rem; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.der { text-align: right; display: flex; flex-direction: column; font-size: .9rem; }
.der .verde { font-size: .78rem; }
.vacio { text-align: center; color: var(--muted); padding: 26px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tip { background: #F3F4F6; border: 1px dashed #BFC1C7; border-radius: 12px; padding: 10px 12px; font-size: .82rem; margin-top: 10px; }
.aviso { background: #fdecea; color: var(--rojo); padding: 10px 12px; border-radius: 12px; font-size: .85rem; margin-top: 12px; }

/* comprar */
.buscar { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--borde); background: #fff; margin-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; flex-wrap: nowrap; }
.chip { white-space: nowrap; padding: 8px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--borde); font-size: .82rem; font-weight: 600; }
.chip.on { background: var(--azul); border-color: var(--azul); color: #fff; }
.sel { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: .9rem; }
.sel select { border: 0; background: transparent; font-weight: 600; color: var(--azul); }
.comercio { width: 100%; text-align: left; background: #fff; border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center; box-shadow: var(--sombra); }
.comercio.cerrado { opacity: .55; }
.comercio .info, .prod .info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.avatar { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; flex: none; }
.avatar.chico { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 10px; }
.volver { color: var(--azul); font-weight: 700; padding: 4px 0 10px; }
.hero { height: 130px; border-radius: var(--radio); display: grid; place-items: center; font-size: 4rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { background: #fff; border: 1px solid var(--borde); padding: 5px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; }
.tag.desc { background: var(--naranja); border-color: var(--naranja); color: #fff; }
.productos { display: flex; flex-direction: column; gap: 8px; }
.prod { background: #fff; border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center; box-shadow: var(--sombra); }
.prod.agotado { opacity: .5; }
.prod-ico { font-size: 1.8rem; width: 44px; text-align: center; flex: none; }
.precio { font-weight: 700; color: var(--verde); margin-top: 2px; }
.precio s { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: 4px; }
.add { width: 36px; height: 36px; border-radius: 50%; background: var(--azul); color: #fff; font-size: 1.3rem; font-weight: 700; flex: none; }
.qty { display: flex; align-items: center; gap: 8px; background: #FBE9E7; border-radius: 20px; padding: 3px; flex: none; }
.qty button { width: 30px; height: 30px; border-radius: 50%; background: #fff; font-weight: 700; color: var(--azul); }
.qty b { min-width: 14px; text-align: center; }
.barra-carrito { position: fixed; left: 50%; transform: translateX(-50%); bottom: 74px; width: 100%; max-width: 480px; padding: 0 16px; z-index: 25; }
.btn { background: var(--azul); color: #fff; font-weight: 700; padding: 12px 16px; border-radius: 12px; width: 100%; }
.btn.grande { padding: 15px; font-size: 1.02rem; margin-top: 16px; }
.barra-carrito .btn { box-shadow: 0 8px 24px rgba(208, 32, 19, .35); padding: 15px; }
.link { color: var(--azul); font-weight: 600; font-size: .85rem; padding: 6px 0; }
.link.rojo { color: var(--rojo); }

/* hoja inferior */
.velo { position: fixed; inset: 0; background: rgba(10, 20, 30, .45); z-index: 40; animation: fade .2s; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); z-index: 50; animation: sube .25s ease-out; }
.sheet h2 { margin-top: 0; padding-right: 30px; }
.sheet > .muted { margin: 16px 0 8px; }
.cerrar { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: #eef1f5; }
.linea-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); font-size: .9rem; }
.totales { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.linea { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 3px 0; }
.linea.total { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--borde); padding-top: 8px; }
.compara { background: #eaf6ef; color: #15603a; border-radius: 10px; padding: 9px 12px; font-size: .8rem; }
.pagos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pagos button { border: 1.5px solid var(--borde); border-radius: 12px; padding: 11px 10px; font-size: .85rem; font-weight: 600; text-align: left; }
.pagos button.on, .opcion.on { border-color: var(--azul); background: #FBE9E7; color: var(--azul); }
.pagando { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.spinner { width: 46px; height: 46px; border: 4px solid #E6E7EB; border-top-color: var(--azul); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes sube { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } }

/* pedidos */
.pedido { margin-bottom: 12px; }
.ped-cab { display: flex; gap: 10px; align-items: center; }
.ped-cab > div { display: flex; flex-direction: column; }
.pasos { list-style: none; display: flex; padding: 0; margin: 16px 0; counter-reset: p; }
.pasos li { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); position: relative; padding-top: 30px; font-weight: 600; }
.pasos li::before { counter-increment: p; content: counter(p); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #E6E7EB; display: grid; place-items: center; z-index: 1; }
.pasos li::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: #E6E7EB; }
.pasos li:first-child::after { display: none; }
.pasos li.hecho::before { content: '✓'; background: var(--verde); color: #fff; }
.pasos li.hecho::after, .pasos li.actual::after { background: var(--verde); }
.pasos li.actual { color: var(--azul); }
.pasos li.actual::before { background: var(--naranja); color: #fff; box-shadow: 0 0 0 5px #DFE1E5; }
.retiro { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f6f8fb; border-radius: 12px; padding: 12px; }
.retiro > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.codigo { font-size: 1.6rem; letter-spacing: .15em; color: var(--azul); }
details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--azul); padding: 4px 0; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #E6E7EB; white-space: nowrap; align-self: flex-start; }
.pill.recibido { background: #FBE9E7; color: var(--azul); }
.pill.preparacion, .pill.en-curso { background: #ECEDF1; color: #515769; }
.pill.listo, .pill.resuelto { background: #e2f4ea; color: var(--verde); }
.pill.abierto { background: #fdecea; color: var(--rojo); }

/* qr y credencial */
.qr svg { display: block; width: 100%; height: auto; }
.qr.chico { width: 76px; flex: none; background: #fff; padding: 6px; border-radius: 8px; }
.qr.grande { width: 200px; margin: 18px auto 8px; background: #fff; padding: 12px; border-radius: 14px; }
.qr-falta { font-size: .65rem; word-break: break-all; color: var(--muted); }
.credencial { background: linear-gradient(150deg, #D02013, #9E180E 75%); color: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 12px 30px rgba(158, 24, 14, .3); position: relative; overflow: hidden; }
.credencial::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--naranja); opacity: .18; top: -90px; right: -80px; }
.cred-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; position: relative; }
.muted-claro { font-size: .75rem; opacity: .75; font-weight: 500; }
.cred-timer { text-align: center; font-size: .78rem; opacity: .85; }
.cred-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; position: relative; }
.cred-datos div { display: flex; flex-direction: column; }
.cred-datos span { font-size: .7rem; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.cred-datos b { font-size: .92rem; }
.grande-num { font-size: 1.8rem; font-weight: 800; color: var(--verde); }
.barras { display: flex; gap: 8px; align-items: flex-end; height: 140px; margin-top: 14px; }
.barra { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.barra span { width: 100%; max-width: 34px; background: #F0C4BF; border-radius: 6px 6px 3px 3px; }
.barra.hoy span { background: var(--azul); }
.barra em { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 600; }
.barra small { font-size: .65rem; color: var(--muted); }

/* formularios */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea { padding: 11px 12px; border: 1px solid var(--borde); border-radius: 10px; background: #fff; font-size: .95rem; font-weight: 500; }
.form .chips { margin-bottom: 0; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opcion { border: 1.5px solid var(--borde); border-radius: 12px; padding: 11px 10px; font-size: .82rem; font-weight: 600; text-align: left; }
.opciones.cuatro { grid-template-columns: repeat(4, 1fr); }
.opcion-radio input { position: absolute; opacity: 0; }
.opcion-radio span { display: block; text-align: center; border: 1.5px solid var(--borde); border-radius: 12px; padding: 10px 4px; font-size: .75rem; color: var(--texto); }
.opcion-radio input:checked + span { border-color: var(--azul); background: #FBE9E7; color: var(--azul); }
.seg { display: flex; gap: 4px; background: #E6E7EB; padding: 4px; border-radius: 12px; margin: 10px 0 6px; }
.seg button { flex: 1; padding: 9px 6px; border-radius: 9px; font-weight: 600; font-size: .85rem; color: var(--muted); }
.seg button.on { background: #fff; color: var(--azul); box-shadow: var(--sombra); }

/* panel comercio */
.panel-cab { display: flex; gap: 12px; align-items: center; background: #fff; padding: 14px; border-radius: var(--radio); box-shadow: var(--sombra); }
.panel-cab .grow { display: flex; flex-direction: column; gap: 2px; }
.sel-comercio { font-size: 1.15rem; font-weight: 800; border: 0; background: transparent; padding: 0; max-width: 100%; }
.switch { border: 1.5px solid var(--borde); border-radius: 20px; padding: 7px 12px; font-size: .8rem; font-weight: 700; white-space: nowrap; color: var(--muted); }
.switch.on { border-color: #b9e2c9; background: #e2f4ea; color: var(--verde); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.col { background: #ECEDF1; border-radius: var(--radio); padding: 10px; min-height: 200px; display: flex; flex-direction: column; gap: 10px; }
.col h3 { margin: 4px 4px 0; display: flex; justify-content: space-between; }
.col h3 span { background: #fff; border-radius: 10px; padding: 0 8px; font-size: .8rem; }
.vacio-col { text-align: center; padding: 20px 0; }
.tped { background: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; box-shadow: var(--sombra); }
.tped-cab { display: flex; justify-content: space-between; }
.validar { display: flex; gap: 6px; }
.validar input { width: 90px; padding: 10px; border: 1.5px solid var(--borde); border-radius: 10px; text-align: center; letter-spacing: .2em; font-weight: 700; }
.fila-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
.fila-form label { flex: 1 1 140px; }
.fila-form label.angosto { flex: 0 0 70px; }
.fila-form label.grow { flex: 2 1 200px; }
.fila-form .btn { width: auto; flex: 0 0 auto; }
.tabla { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.trow { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--sombra); }
.trow.agotado b { opacity: .5; }
.precio-input { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.precio-input input { width: 100px; padding: 8px; border: 1px solid var(--borde); border-radius: 8px; }

/* tablero */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.kpi { background: #fff; border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 1.35rem; font-weight: 800; }
.kpi small { font-size: .72rem; color: var(--muted); }
.kpi.verde b { color: var(--verde); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.hbar { display: grid; grid-template-columns: 130px 1fr 92px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: .84rem; }
.hbar-t { display: flex; flex-direction: column; font-weight: 600; }
.hbar-t small { color: var(--muted); font-weight: 400; font-size: .72rem; }
.hbar-b { background: #eef1f5; height: 12px; border-radius: 6px; overflow: hidden; }
.hbar-b i { display: block; height: 100%; background: var(--azul); border-radius: 6px; }
.hbar-b i.naranja { background: var(--naranja); }
.hbar b { text-align: right; font-size: .82rem; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: #15202b; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: .88rem; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 32px); width: max-content; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .kanban, .dos { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 100px 1fr 80px; }
  .trow { flex-wrap: wrap; }
}

/* ---------- v3 ---------- */
.top-der { display: flex; align-items: center; gap: 4px; }
.sos { background: #fdecea; border-radius: 10px; padding: 5px 8px; font-size: 1.05rem; }
.bottom button.on span, .bottom button span { line-height: 1.2; }
.resultados { margin-bottom: 12px; }
.resultados .fila, .lista button.fila { width: 100%; text-align: left; }
.rio-mini { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; margin-top: 12px; border-left: 4px solid var(--verde); }
.rio-mini.atencion { border-left-color: var(--naranja); }
.rio-mini.alerta { border-left-color: var(--rojo); }
.rio-mini > div { flex: 1; display: flex; flex-direction: column; }
.rio-ico { font-size: 1.6rem; }
.accesos { grid-template-columns: repeat(4, 1fr); }
.accesos button { font-size: .74rem; padding: 12px 4px; }
.tigri-card { width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; margin-top: 14px; background: #F3F4F6; border: 1px solid #DFE1E5; }
.tigri-card > div { display: flex; flex-direction: column; gap: 2px; }
.tg-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--naranja); display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 0 0 3px #DFE1E5; }
.fab { position: fixed; z-index: 35; bottom: 84px; right: max(16px, calc(50% - 240px + 16px)); display: flex; align-items: center; gap: 6px; background: var(--naranja); color: #fff; padding: 8px 14px 8px 8px; border-radius: 30px; box-shadow: 0 8px 22px rgba(81, 87, 105, .45); font-weight: 800; }
.fab span { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.2rem; }

/* ingreso */
.ingreso { text-align: center; padding-top: 30px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
.ing-logo { width: 96px; height: 96px; border-radius: 28px; background: var(--naranja); font-size: 3.4rem; display: grid; place-items: center; margin: 0 auto; box-shadow: 0 12px 30px rgba(208, 32, 19, .35); }
.ingreso h1 { font-size: 1.9rem; font-weight: 800; color: var(--azul); }
.ing-lista { list-style: none; padding: 0; margin: 8px 0 12px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.ing-lista li { background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; box-shadow: var(--sombra); font-size: .9rem; }
.btn.mia { background: #515769; }
.btn.claro { background: #fff; color: var(--azul); border: 1.5px solid var(--azul); }

/* beneficios */
.benef-txt { color: #515769; font-weight: 700; font-size: .85rem; }
.tag-mini { font-size: .68rem; font-weight: 700; background: #ECEDF1; color: #515769; padding: 3px 7px; border-radius: 6px; white-space: nowrap; align-self: center; }
.tag-mini.app { background: #FBE9E7; color: var(--azul); }
.mapa { height: 360px; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); margin: 6px 0 8px; z-index: 1; background: #E6E7EB; }
.chico-mapa { height: 220px; }
.pin { background: none; border: 0; font-size: 1.7rem; line-height: 1; }
.leaflet-popup-content { font-family: inherit; font-size: .85rem; }
.benef-det { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.benef-grande { font-size: 1.3rem; font-weight: 800; color: #515769; }
.grande-emoji { font-size: 3rem; }

/* reclamos */
.opcion-btn { border: 1.5px solid var(--borde); border-radius: 12px; padding: 10px 4px; font-size: .75rem; text-align: center; }
.opcion-btn.on { border-color: var(--azul); background: #FBE9E7; color: var(--azul); }
.foto-btn { position: relative; border: 2px dashed var(--borde); border-radius: 12px; min-height: 70px; display: grid !important; place-items: center; cursor: pointer; overflow: hidden; color: var(--azul) !important; font-size: .95rem !important; }
.foto-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-btn img { width: 100%; max-height: 220px; object-fit: cover; }
.reclamo { margin-bottom: 4px; }
.rec-cab { display: flex; gap: 12px; }
.rec-cab img, .gest img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.rec-cab p { margin-top: 2px; font-size: .88rem; }
.timeline { list-style: none; padding: 0 0 0 14px; margin: 12px 0 0; border-left: 2px solid #E6E7EB; display: flex; flex-direction: column; gap: 8px; }
.timeline li { position: relative; padding-left: 10px; font-size: .82rem; color: var(--muted); display: flex; flex-direction: column; }
.timeline li::before { content: ''; position: absolute; left: -21px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #E6E7EB; }
.timeline li.hecho { color: var(--texto); }
.timeline li.hecho::before { background: var(--verde); }
.pill.asignado { background: #ECEDF1; color: #515769; }

/* pagos y subpantallas */
.saldo { display: flex; flex-direction: column; gap: 6px; }
.saldo strong { font-size: 2rem; font-weight: 800; }
.saldo .chips { margin: 6px 0 0; }
.estac-activo { margin-top: 12px; border-left: 4px solid var(--naranja); }
.estac-num { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; font-weight: 800; }
.estac-num #estacT { font-size: 2rem; }
.estac-num #estacC { font-size: 1.4rem; color: var(--rojo); }
.rojo-btn { background: var(--rojo); }
.estac-activo .btn, .form .btn.grande { margin-top: 0; }
.rio-grande { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border-left: 5px solid var(--verde); margin-bottom: 12px; }
.rio-grande.atencion { border-left-color: var(--naranja); }
.rio-grande.alerta { border-left-color: var(--rojo); }
.rio-grande strong { font-size: 2.4rem; font-weight: 800; color: var(--azul); }
.rio-svg { width: 100%; height: auto; }
.rio-linea { fill: none; stroke: var(--azul); stroke-width: 2.5; stroke-linejoin: round; }
.rio-punto { fill: var(--naranja); stroke: #fff; stroke-width: 2; }
.lim-alerta { stroke: var(--rojo); stroke-dasharray: 4 3; }
.lim-aten { stroke: var(--naranja); stroke-dasharray: 4 3; }
.lim-txt { font-size: 7px; fill: var(--muted); }
.linea-num { min-width: 44px; height: 36px; border-radius: 8px; color: #fff; font-weight: 800; display: grid; place-items: center; }
.grande-min { font-size: 1.2rem; color: var(--azul); }
.alertas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alertas button { background: #fff; border: 2px solid #f3c1bb; border-radius: 16px; padding: 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; }
.alertas button span { font-size: 2rem; }
.tels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tels a { background: #fff; border-radius: 12px; padding: 12px; text-decoration: none; color: var(--texto); font-weight: 800; font-size: 1.1rem; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.tels a span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.alerta-ok { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.alerta-ok h2 { margin: 0; }
.comprobante { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 10px 0; }
.comprobante h2 { margin: 0; padding: 0; }
.switch-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; padding: 6px 0; }
.cred-ok { position: relative; text-align: right; font-size: .75rem; margin-top: 10px; opacity: .85; }

/* chat de Tigri */
.sheet.chat { display: flex; flex-direction: column; height: 86vh; padding: 0; }
.chat-cab { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--borde); position: relative; }
.chat-cab > div { display: flex; flex-direction: column; }
.chat-cab .cerrar { top: 18px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #f7f8fa; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.45; }
.msg.yo { align-self: flex-end; background: var(--azul); color: #fff; border-bottom-right-radius: 4px; }
.msg.tg { align-self: flex-start; background: #fff; border: 1px solid var(--borde); border-bottom-left-radius: 4px; }
.msg-acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-acc .chip { background: #F3F4F6; border-color: #DFE1E5; color: #515769; }
.chat-sug { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
.chat-in { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.chat-in input { flex: 1; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 22px; }
.chat-in .btn { width: 46px; border-radius: 50%; padding: 0; }
.escribiendo { display: inline-flex; gap: 4px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: #b9c2cc; animation: salto 1s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes salto { 50% { transform: translateY(-4px); } }

/* municipio */
.gest { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.gest .ico { font-size: 1.3rem; }
.mini-btn { width: auto; padding: 7px 10px; font-size: .78rem; }
.rojo-kpi b { color: var(--rojo); }

/* letra grande */
body.letra-grande { --muted: #3f4954; --borde: #c5ced8; }
body.letra-grande .muted { font-size: .92rem; }

/* Identidad del Municipio de Tigre (tigre.gob.ar): rojo #D02013, pizarra #515769, Gotham → Montserrat */
.marca b { text-transform: uppercase; letter-spacing: .02em; font-weight: 800; color: #D02013; }
.marca b span { color: #515769; font-weight: 400; }
.top { background: #FFFFFF; border-bottom: 4px solid #D02013; margin-bottom: 12px; }
.logo { background: #D02013; color: #fff; }
.titulo, .hola h1 { color: #515769; }
h2 { color: #515769; }
.ingreso h1 { color: #D02013; text-transform: uppercase; }
.fab { background: #D02013; box-shadow: 0 8px 22px rgba(208, 32, 19, .4); }
.tg-avatar { background: #D02013; box-shadow: 0 0 0 3px #F6C9C4; }
.mini-img em, .desc, .tag.desc { background: #D02013; border-color: #D02013; }
.ahorro::after, .credencial::before { opacity: .12; }
.credencial::before { background: #fff; }
.chip.on, .roles button.on, .seg button.on { color: #D02013; }
.chip.on { background: #D02013; color: #fff; border-color: #D02013; }
.pasos li.actual::before { background: #D02013; box-shadow: 0 0 0 5px #F6C9C4; }

.demo-banda { background: #3A3F4D; color: #FFFFFF; font-size: .72rem; font-weight: 600; text-align: center; padding: 5px 10px; letter-spacing: .02em; }

/* Puntos Tigre */
.puntos-mini { width: 100%; display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1.5px solid #F6C9C4; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: .9rem; }
.puntos-mini b { color: #D02013; font-size: 1.05rem; }
.puntos-card { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid #D02013; }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-num { font-size: 1.8rem; font-weight: 800; color: #D02013; }
.barra-nivel { height: 10px; background: #ECEDF1; border-radius: 6px; overflow: hidden; }
.barra-nivel i { display: block; height: 100%; background: linear-gradient(90deg, #D02013, #E85A4F); border-radius: 6px; }
.canje .mini-btn { flex: none; align-self: center; }
.cupon-fila { width: 100%; background: #FBE9E7; border-radius: 10px; padding: 8px 10px; color: #9E180E; font-weight: 700; }
.escaner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; border: 2px dashed #BFC1C7; }

/* ---------- Escritorio (desde 1024 px): menú al costado y dos columnas ---------- */
.dash, .dcol { display: block; }
@media (min-width: 1024px) {
  .shell.phone { max-width: 1240px; padding: 0 28px 48px; display: grid; grid-template-columns: 236px minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .shell.phone.sin-sesion { display: block; max-width: 520px; }
  .shell.phone .top { grid-column: 1 / -1; grid-row: 1; margin: 0 -28px 16px; padding: 14px 28px 10px; }
  .shell.phone .roles { grid-column: 1 / -1; grid-row: 2; margin: 0 0 20px; max-width: 560px; }
  .shell.phone .bottom { grid-column: 1; grid-row: 3; position: sticky; top: 96px; left: auto; transform: none; width: auto; max-width: none; flex-direction: column; gap: 2px; background: #fff; border: 0; border-radius: 16px; box-shadow: var(--sombra); padding: 10px; z-index: 5; }
  .shell.phone .bottom button { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: .95rem; padding: 12px 14px; border-radius: 10px; text-align: left; }
  .shell.phone .bottom button span { font-size: 1.25rem; }
  .shell.phone .bottom button.on { background: #FBE9E7; }
  .shell.phone .bottom i { top: -4px; right: -10px; }
  .shell.phone .main { grid-column: 2; grid-row: 3; padding: 0; min-width: 0; max-width: 1000px; }
  .dash { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .dash .dcol > .tigri-card:first-child { margin-top: 0; }
  .carrusel { margin: 0; padding-left: 0; padding-right: 0; }
  .accesos button { padding: 16px 6px; font-size: .82rem; }
  .mapa { height: 480px; }
  .chico-mapa { height: 280px; }
  .productos, .lista { max-width: 860px; }
  .fab { right: 36px; bottom: 32px; }
  .barra-carrito { left: auto; right: 36px; transform: none; bottom: 104px; width: 420px; }
  #toast { bottom: 40px; }
  .velo { animation: fade .2s; }
  .sheet { top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -50%); max-width: 540px; max-height: 86vh; border-radius: 22px; animation: aparece .2s ease-out; }
  .sheet.chat { height: 80vh; }
  @keyframes aparece { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
}

/* ---------- Perfiles y recorrido guiado ---------- */
.shell.landing { max-width: 1040px; padding: 0 16px 48px; }
.perfiles { text-align: center; padding-top: 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.perfiles h1 { font-size: 2.1rem; font-weight: 800; color: #D02013; text-transform: uppercase; letter-spacing: .01em; }
.perfiles h1 span { color: #515769; font-weight: 400; }
.perfiles .lead { font-size: 1.05rem; color: #515769; max-width: 520px; }
.tour-btn { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 10px 26px rgba(208, 32, 19, .3); }
.tour-btn small { font-weight: 500; opacity: .85; font-size: .78rem; }
.perfiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; width: 100%; margin-top: 8px; }
.perfil-card { background: #fff; border-radius: 18px; padding: 20px 16px; box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.perfil-card:hover { border-color: #D02013; transform: translateY(-2px); }
.perfil-card b { font-size: 1.2rem; color: #333; }
.perfil-rol { font-size: .82rem; font-weight: 700; color: #D02013; }
.perfil-hace { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.perfil-entra { font-size: .72rem; color: #515769; background: #F2F3F5; border-radius: 8px; padding: 4px 8px; margin-top: 4px; }
.avatar-p { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.3rem; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,0,0,.06); }
.avatar-p.grande { width: 72px; height: 72px; font-size: 2.4rem; }
.quien { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 2px; border-radius: 30px; }
.quien-txt { display: none; flex-direction: column; text-align: left; line-height: 1.15; }
.quien-txt small { font-size: .7rem; color: var(--muted); }
.marca-sub { font-size: .72rem; font-weight: 700; color: #515769; background: #ECEDF1; border-radius: 6px; padding: 2px 7px; margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }
.panel-nombre { font-size: 1.2rem; color: #333; }
.gest.de-app { background: #FFF6F5; border-radius: 10px; padding: 8px; }
.perfil-hoja { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.perfil-hoja h2 { margin: 4px 0 0; padding: 0; }
.perfil-hoja .btn { margin-top: 4px; }
.tour { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: 74px; background: #3A3F4D; color: #fff; border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 14px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; animation: fade .25s; max-width: 460px; margin: 0 auto; }
.landing .tour { bottom: 16px; }
.tour-cab { display: flex; gap: 10px; align-items: center; }
.tour-cab small { display: block; font-size: .7rem; opacity: .75; }
.tour-cab b { font-size: 1rem; }
.tour p { font-size: .88rem; line-height: 1.45; color: #E6E7EB; }
.tour .btn { background: #D02013; padding: 11px; }
.tour-barra { height: 4px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.tour-barra i { display: block; height: 100%; background: #FF8A80; }
.cerrar-tour { color: #fff; opacity: .7; font-size: 1rem; padding: 4px 6px; }
.shell.wide .tour { bottom: 20px; }
@media (min-width: 760px) { .quien-txt { display: flex; } }
@media (min-width: 1024px) {
  .tour { left: 24px; right: auto; bottom: 24px; width: 380px; margin: 0; }
  .perfiles h1 { font-size: 2.6rem; }
}
.perfiles .ing-logo { background: #D02013; box-shadow: 0 12px 30px rgba(208, 32, 19, .3); }
@media (min-width: 1024px) { .tour { left: auto; right: 24px; } }
@media (max-width: 1023px) {
  .tour, .landing .tour, .shell.wide .tour { top: 8px; bottom: auto; }
  .en-tour .sheet { max-height: 60vh; }
}
.qr-entrada { display: none; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--sombra); text-align: left; margin-top: 6px; }
.qr-entrada .qr { width: 110px; flex: none; }
.qr-entrada div:last-child { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 760px) { .qr-entrada { display: flex; } }

/* =====================================================================
   Rediseño v12: estilo sobrio, íconos de línea, sin look "generado"
   ===================================================================== */
:root { --radio: 12px; --sombra: 0 0 0 1px #E3E5EA; --linea: #E3E5EA; }
body { letter-spacing: -0.005em; }
.ic, [data-lucide] { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; stroke-width: 1.8; flex: none; }
svg.lucide { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.titulo { font-size: 1.35rem; letter-spacing: -0.02em; }
h2 { font-size: 1rem; letter-spacing: -0.01em; margin: 24px 0 10px; }
.muted { color: #6B6F7B; }

/* barra superior y logo */
.top { padding: 12px 16px 10px; border-bottom: 3px solid #D02013; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: #D02013; color: #fff; font-size: 1rem; }
.logo svg { width: 18px; height: 18px; }
.marca b { font-size: 1rem; }
.sos { background: transparent; color: #D02013; border: 1.5px solid #F2C4BF; border-radius: 8px; padding: 4px 7px; }
.campana { color: #515769; }
.avatar-p { font-weight: 700; color: #fff; font-size: 1rem; box-shadow: none; }
.avatar-p.grande { font-size: 1.9rem; }

/* tarjetas: planas, con borde fino */
.card, .fila, .comercio, .prod, .accesos button, .tped, .trow, .kpi, .mini, .perfil-card, .panel-cab, .ing-lista li, .tels a, .tigri-card, .puntos-mini, .qr-entrada { box-shadow: none !important; border: 1px solid var(--linea); }
.card { border-radius: 12px; }
.fila { border-radius: 10px; }
.ico { width: 38px; height: 38px; border-radius: 10px; background: #F2F3F5; color: #515769; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.ico svg { width: 20px; height: 20px; }

/* inicio */
.hola h1 { font-size: 1.45rem; }
.ahorro { background: #fff; color: #333; border: 1px solid var(--linea); border-left: 4px solid #D02013; }
.ahorro::after { display: none; }
.ahorro p, .ahorro span { color: #6B6F7B; opacity: 1; }
.ahorro strong { color: #D02013; font-size: 2rem; }
.btn-claro { background: #FBE9E7; color: #9E180E; }
.accesos { gap: 8px; }
.accesos button { border-radius: 12px; padding: 14px 4px 12px; background: #fff; color: #333; font-weight: 600; }
.accesos span { width: 40px; height: 40px; border-radius: 12px; background: #FBE9E7; color: #D02013; display: grid; place-items: center; font-size: 1.15rem; }
.accesos span svg { width: 20px; height: 20px; }
.rio-mini { border-left-width: 4px; }
.rio-ico { width: 38px; height: 38px; border-radius: 10px; background: #E8F3FB; color: #1F6FB2; display: grid; place-items: center; }
.tigri-card { background: #fff; }
.tg-avatar { background: #D02013; color: #fff; box-shadow: none; font-size: 1.2rem; }
.puntos-mini { border-color: #F2C4BF; }

/* barra inferior */
.bottom { border-top: 1px solid var(--linea); }
.bottom button span { filter: none; opacity: .55; font-size: 1.25rem; color: #515769; }
.bottom button.on span { opacity: 1; color: #D02013; }
.bottom button span svg { width: 22px; height: 22px; }

/* comercios y productos */
.avatar, .mini-img, .hero { color: #fff; }
.avatar svg { width: 24px; height: 24px; }
.mini-img svg { width: 36px; height: 36px; }
.hero { height: 110px; }
.hero svg { width: 48px; height: 48px; }
.prod-ico { width: 40px; height: 40px; border-radius: 10px; background: #F2F3F5; color: #6B6F7B; display: grid; place-items: center; font-size: 1.05rem; }
.prod-ico svg { width: 20px; height: 20px; }
.mini-img em, .desc, .tag.desc { border-radius: 6px; }
.chip { border-radius: 8px; }
.chip svg { width: 15px; height: 15px; }
.seg, .roles { border-radius: 10px; }
.btn { border-radius: 10px; }
.fab { padding: 6px 14px 6px 6px; border-radius: 12px; box-shadow: 0 6px 18px rgba(208, 32, 19, .28); }
.fab span { width: 30px; height: 30px; border-radius: 8px; color: #D02013; }
.credencial { border-radius: 16px; }
.credencial::before { display: none; }

/* perfiles */
.perfil-card { border-radius: 14px; }
.perfil-card:hover { border-color: #D02013; }
.ing-logo { border-radius: 22px; font-size: 2.6rem; color: #fff; }
.ing-logo svg { width: 46px; height: 46px; }

/* contenidos de la Diplomatura */
.metodo-btn { max-width: 520px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.metodo { text-align: left; padding-top: 16px; max-width: 760px; margin: 0 auto; }
.diamante { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 8px 0 14px; }
.diamante div { border: 1.5px solid #D02013; padding: 14px; display: flex; flex-direction: column; gap: 2px; text-align: center; background: #fff; }
.diamante div:first-child { border-radius: 60px 0 0 60px; border-right: 0; }
.diamante div:last-child { border-radius: 0 60px 60px 0; background: #FBE9E7; }
.diamante span { font-size: .8rem; color: #6B6F7B; }
.metodo-item .tag-mini { display: inline-block; margin-top: 6px; }
.flash { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; border-color: #F2C4BF !important; background: #FFF8F7; }
.flash-tag { align-self: flex-start; background: #D02013; color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.flash-panel { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; align-items: flex-start; }
.flash-panel .btn { width: auto; }
.nps { margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.nps-cab { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.cerrar-nps { color: #6B6F7B; }
.nps-escala { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nps-escala button { border: 1px solid var(--linea); border-radius: 8px; padding: 8px 0; font-weight: 700; font-size: .85rem; background: #fff; }
.nps-escala button:hover { background: #FBE9E7; border-color: #D02013; color: #D02013; }
.nps-ref { display: flex; justify-content: space-between; font-size: .72rem; color: #6B6F7B; }
.referidos { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.ref-cod { display: flex; gap: 10px; align-items: center; }
.ref-cod code { background: #F2F3F5; border: 1px dashed #BFC1C7; border-radius: 8px; padding: 8px 12px; font-weight: 700; letter-spacing: .06em; }
.emb { margin-bottom: 10px; }
.emb-bar { width: var(--w); background: #D02013; color: #fff; border-radius: 6px; padding: 6px 10px; display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; min-width: 190px; }
.smart { margin-bottom: 10px; }
.onb { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 10px 0; }
.onb h2 { margin: 0; padding: 0; font-size: 1.2rem; }
.onb-ico { width: 64px; height: 64px; border-radius: 18px; background: #FBE9E7; color: #D02013; display: grid; place-items: center; font-size: 1.8rem; }
.onb-ico svg { width: 32px; height: 32px; }
.onb-puntos { display: flex; gap: 6px; }
.onb-puntos i { width: 8px; height: 8px; border-radius: 50%; background: #DFE1E5; }
.onb-puntos i.on { background: #D02013; width: 22px; border-radius: 4px; }

/* reclamos de compras */
.rp-link { display: inline-flex; gap: 6px; align-items: center; text-align: left; font-size: .82rem; color: #9E180E; margin-top: 6px; padding: 4px 0; }
.rp-box { margin-top: 10px; border: 1px solid #F2C4BF; background: #FFF8F7; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.rp-box.resuelto, .rp-box.cerrado { border-color: #CFE9DA; background: #F3FAF6; }
.rp-cab { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.rp-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rp-acc.col-acc { flex-direction: column; align-items: stretch; }
.rp-card { display: flex; flex-direction: column; gap: 8px; }
.rp-plazo { font-size: .8rem; font-weight: 700; color: #9E180E; }
.rp-parcial { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.rp-parcial input { width: 100px; padding: 7px 8px; border: 1px solid var(--linea); border-radius: 8px; }
.mini-btn.claro { background: #fff; color: #D02013; border: 1.5px solid #D02013; }
.rp-foto { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.rp-motivos { flex-wrap: wrap; }

/* feedback de visitantes */
.fb { max-width: 520px; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; margin-top: 6px; }
.fb > b { font-size: 1.05rem; color: #515769; }
.fb-tigres { display: flex; gap: 8px; margin-top: 4px; }
.fb-tigre { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--linea); background: #fff; color: #BFC1C7; display: grid; place-items: center; font-size: 1.4rem; transition: transform .15s, color .15s, background .15s; }
.fb-tigre svg { width: 24px; height: 24px; }
.fb-tigre:hover { transform: translateY(-2px); color: #D02013; }
.fb-tigre.on { background: #FBE9E7; border-color: #F2C4BF; color: #D02013; }
.fb-tigre.on svg { fill: #D02013; }
.fb-etq { font-size: .85rem; font-weight: 600; color: #9E180E; min-height: 1.2em; }
.fb-campo { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 600; color: #6B6F7B; }
.fb-campo input, .fb-campo textarea { padding: 10px 12px; border: 1px solid var(--linea); border-radius: 10px; font-size: .95rem; font-weight: 500; background: #fff; }
.fb .btn { align-self: flex-start; width: auto; padding: 11px 22px; }
.fb-ok { border-color: #CFE9DA !important; background: #F3FAF6; }

/* =====================================================================
   Rediseño v13: minimalista. Fondo blanco, menos cajas, rojo solo para
   acciones y marca. Referencias: Mi Argentina, Mercado Pago, PedidosYa.
   ===================================================================== */
:root { --fondo: #FFFFFF; --suave: #F5F6F8; --linea: #ECEDF0; --texto: #1F2229; --muted: #6B6F7B; }
html, body, .shell, .top { background: #fff; }
body { color: var(--texto); }
.demo-banda { background: var(--suave); color: #6B6F7B; font-weight: 500; font-size: .68rem; padding: 4px 10px; }
.top { border-bottom: 1px solid var(--linea); padding: 10px 16px; }
.marca b { font-weight: 800; letter-spacing: -.01em; }
.sos { border: 0; padding: 6px; color: #D02013; }
.campana { padding: 6px; }
.quien .avatar-p { width: 32px; height: 32px; font-size: .9rem; }
h2 { font-size: .95rem; font-weight: 700; margin: 28px 0 8px; }
.main { padding: 0 20px; }

/* inicio */
.hola { margin: 18px 0 12px; }
.hola h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.buscar { background: var(--suave) !important; border: 0 !important; border-radius: 12px !important; }
.resumen { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; padding: 0 0 18px; border-bottom: 1px solid var(--linea); }
.res-et { font-size: .8rem; color: var(--muted); font-weight: 500; }
.resumen strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--texto); line-height: 1.15; }
.res-sub { font-size: .8rem; color: var(--muted); }
.res-puntos { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; background: var(--suave); border-radius: 10px; padding: 10px 12px; font-size: .85rem; font-weight: 600; text-align: left; }
.res-puntos span:last-child { color: #D02013; font-weight: 700; }
.res-puntos svg { color: #D02013; }
.accesos4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 18px 0 6px; }
.accesos4 button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 4px 0; }
.accesos4 span { width: 52px; height: 52px; border-radius: 50%; background: var(--suave); color: #1F2229; display: grid; place-items: center; font-size: 1.3rem; transition: background .15s; }
.accesos4 span svg { width: 22px; height: 22px; }
.accesos4 button:hover span { background: #FBE9E7; color: #D02013; }
.h2-fila { display: flex; justify-content: space-between; align-items: baseline; }
.h2-fila .link { font-size: .8rem; font-weight: 600; color: #D02013; }
.lista-limpia { display: flex; flex-direction: column; }
.lista-limpia button { display: flex; align-items: center; gap: 12px; padding: 11px 0; text-align: left; border-bottom: 1px solid var(--linea); }
.lista-limpia button:last-child { border-bottom: 0; }
.lista-limpia div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lista-limpia b { font-size: .9rem; font-weight: 600; }
.lista-limpia small { font-size: .78rem; color: var(--muted); }
.lista-limpia .ico { background: transparent; color: #515769; width: 28px; }
.flecha { color: #B5B8C0; }
.aviso-rio { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FFF6E5; color: #7A4B00; }
.aviso-rio.alerta { background: #FDECEA; color: #9E180E; }
.aviso-rio div { display: flex; flex-direction: column; }
.aviso-rio small { font-size: .78rem; opacity: .85; }
.card.activo { margin-top: 12px; }

/* tarjetas: sin bordes cuando están sobre blanco, solo fondo suave */
.card, .fila, .mini, .comercio, .prod, .tped, .trow, .kpi, .panel-cab { border-color: var(--linea) !important; }
.mini { border: 0 !important; background: transparent; padding: 0; }
.mini-img { border-radius: 12px; }
.fila { border-radius: 12px; }
.lista { gap: 8px; }

/* chips y segmentos */
.chip { background: var(--suave); border: 0 !important; border-radius: 20px; font-weight: 600; }
.chip.on { background: #1F2229; color: #fff; }
.seg { background: var(--suave); border-radius: 10px; }

/* barra inferior */
.bottom { border-top: 1px solid var(--linea); box-shadow: none; }
.bottom button { font-size: .66rem; font-weight: 600; }
.bottom button span { opacity: .5; color: #1F2229; }
.bottom button.on { color: #D02013; }

/* Tigri: botón redondo, sin texto */
.fab { width: 54px; height: 54px; padding: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(31, 34, 41, .18); }
.fab b { display: none; }
.fab span { width: auto; height: auto; background: transparent; color: #fff; font-size: 1.4rem; }
.fab span svg { width: 26px; height: 26px; }

/* landing de perfiles */
.perfiles { max-width: 460px; margin: 0 auto; gap: 14px; }
.perfiles h1 { font-size: 1.9rem; letter-spacing: -.02em; }
.perfiles .lead { color: var(--muted); font-size: .95rem; max-width: 360px; }
.perfiles-grid { display: flex !important; flex-direction: column; gap: 0 !important; width: 100%; border-top: 1px solid var(--linea); }
.perfil-card { flex-direction: row !important; align-items: center; gap: 14px; text-align: left; border: 0 !important; border-bottom: 1px solid var(--linea) !important; border-radius: 0 !important; padding: 14px 4px !important; background: transparent !important; }
.perfil-card:hover { background: var(--suave) !important; }
.perfil-card .avatar-p.grande { width: 46px; height: 46px; font-size: 1.15rem; flex: none; }
.perfil-txt { flex: 1; display: flex; flex-direction: column; }
.perfil-txt b { font-size: 1rem; }
.perfil-rol { font-size: .82rem; color: var(--muted); }
.tour-btn { width: 100%; }
.pie-links { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: .85rem; color: var(--muted); }
.pie-links .link { color: #515769; font-weight: 600; }
.qr-entrada { border: 0 !important; background: var(--suave); }

/* paneles anchos (comercio y municipio): mismo lenguaje */
.shell.wide { background: #fff; }
.kpi { background: var(--suave) !important; border: 0 !important; }
/* listas del vecino como filas con separador, no como cajas */
.shell.phone .lista { gap: 0; }
.shell.phone .lista > .fila { border: 0 !important; border-bottom: 1px solid var(--linea) !important; border-radius: 0; padding: 12px 0; background: transparent; }
.shell.phone .lista > .fila:last-child { border-bottom: 0 !important; }
.titulo { color: var(--texto); }
.ing-logo { box-shadow: none !important; width: 64px; height: 64px; }
/* Marina: 4 indicadores principales + lista compacta */
.kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
.kpi-mas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 28px; margin: 14px 0 6px; }
.kpi-mas div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: .88rem; }
.kpi-mas span { color: var(--muted); }
.kpi-mas small { display: block; font-size: .72rem; }
.kpi-mas b { font-size: 1rem; white-space: nowrap; }
.shell.wide .card { border: 1px solid var(--linea) !important; }

/* =====================================================================
   Rediseño v14 · Billetera. La tarjeta Soy Tigre es la protagonista;
   fondo gris claro, tarjetas blancas sin bordes, esquinas generosas.
   ===================================================================== */
:root { --fondo-b: #F2F2F4; --texto: #17181C; }
html, body, .shell, .shell.phone, .shell.wide { background: var(--fondo-b); }
.top { background: var(--fondo-b); border-bottom: 0; }
.demo-banda { background: #E6E6EA; }
.hola { margin: 10px 0 14px; }
.hola h1 { font-size: 1.15rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.buscar { background: #fff !important; border-radius: 14px !important; }

/* la tarjeta */
.wallet { margin: 16px 0 6px; perspective: 1200px; }
.wcard { position: relative; height: 200px; cursor: pointer; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,.7,.2,1); z-index: 2; }
.wcard.dada { transform: rotateY(180deg); }
.wcara { position: absolute; inset: 0; border-radius: 20px; padding: 18px 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; overflow: hidden; }
.wfrente { background: #D02013; color: #fff; box-shadow: 0 14px 30px -12px rgba(208, 32, 19, .55); }
.wfrente::after { content: ''; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 34px solid rgba(255,255,255,.07); }
.wfila { display: flex; justify-content: space-between; align-items: center; }
.wmarca { font-weight: 800; font-size: .78rem; letter-spacing: .14em; }
.wmuni { font-size: .7rem; opacity: .8; }
.wmonto { font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; margin-top: auto; line-height: 1; }
.wet { font-size: .8rem; opacity: .88; margin-top: 4px; }
.wpie { margin-top: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .95; }
.wqr { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: #17181C; display: grid; place-items: center; }
.wqr svg { width: 24px; height: 24px; }
.wdorso { background: #fff; color: #17181C; transform: rotateY(180deg); flex-direction: row; align-items: center; gap: 16px; box-shadow: 0 14px 30px -14px rgba(23, 24, 28, .3); }
.wdorso .qr { width: 150px; flex: none; }
.wdorso-txt { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.wdorso-txt b { color: #17181C; font-size: 1rem; }
.wvolver { margin-top: 10px; font-weight: 600; color: #D02013; }
.wcard2 { display: flex; justify-content: space-between; width: calc(100% - 28px); margin: -14px auto 0; padding: 24px 16px 12px; border-radius: 0 0 18px 18px; background: #3A3F4D; color: #fff; font-size: .85rem; font-weight: 600; position: relative; z-index: 1; }
.wcard2 span:last-child { color: #FFB4AC; }
.wcard2 svg { color: #FFD166; }

/* accesos: círculos blancos sobre gris */
.accesos4 { margin: 22px 0 4px; }
.accesos4 span { background: #fff; width: 56px; height: 56px; }

/* tarjetas blancas sin bordes */
.card, .fila, .comercio, .prod, .tped, .trow, .kpi, .panel-cab, .perfil-card, .tigri-card, .qr-entrada, .seg { border: 0 !important; }
.card { background: #fff; border-radius: 18px; }
.card.activo { border-radius: 18px; }
.lista-limpia { background: #fff; border-radius: 18px; padding: 4px 16px; }
.shell.phone .lista { background: #fff; border-radius: 18px; padding: 2px 16px; }
.seg { background: #E6E6EA; border-radius: 12px; }
.seg button.on { border-radius: 10px; }
.chip { background: #fff; }
.chip.on { background: #17181C; color: #fff; }

/* "Para vos, hoy": tarjetas grandes deslizables */
.carrusel { gap: 12px; padding-bottom: 4px; }
.mini { flex: none; width: 168px; background: #fff !important; border-radius: 18px; padding: 8px !important; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.mini-img { height: 96px; border-radius: 12px; position: relative; display: grid; place-items: center; }
.mini-img em { position: absolute; top: 8px; left: 8px; background: #fff; color: #D02013; font-style: normal; font-weight: 800; font-size: .72rem; padding: 2px 7px; border-radius: 8px; }
.mini-txt { display: flex; flex-direction: column; padding: 0 4px 4px; }
.mini-txt b { font-size: .88rem; }
.mini-txt .muted { font-size: .75rem; }

/* barra inferior flotante */
.bottom { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 0; box-shadow: 0 -1px 0 rgba(0,0,0,.04); }
.fab { bottom: 84px; }

/* credencial con el mismo lenguaje */
.credencial { border-radius: 20px; box-shadow: 0 14px 30px -12px rgba(208, 32, 19, .55); }

/* paneles anchos */
.kpi { background: #fff !important; border-radius: 16px; }
.shell.wide .card { border: 0 !important; }
.perfiles-grid { background: #fff; border-radius: 18px; border-top: 0; padding: 0 12px; }
.perfil-card:last-child { border-bottom: 0 !important; }
.qr-entrada { background: #fff; }
/* botón de alerta visible en todas las pantallas del vecino */
.sos { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px !important; border-radius: 19px !important; background: #D02013 !important; color: #fff !important; border: 0 !important; font-weight: 800; font-size: .85rem; letter-spacing: .02em; box-shadow: 0 6px 14px -6px rgba(208, 32, 19, .7); }
.sos svg { width: 20px; height: 20px; }
.sos:active { transform: scale(.96); }
.top-der { gap: 6px; }

/* Tigri, cachorro de tigre */
.tigri-svg { display: block; width: 100%; height: 100%; }
.fab { width: 64px; height: 64px; background: #fff !important; border: 3px solid #D02013 !important; padding: 4px !important; overflow: visible; box-shadow: 0 8px 20px -6px rgba(23, 24, 28, .35); }
.fab .tigri-svg { animation: tg-asoma 4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes tg-asoma { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-9deg); } 86% { transform: rotate(7deg); } 94% { transform: rotate(-3deg); } }
.tigri-svg .tg-ojo { animation: tg-parpadeo 5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tg-parpadeo { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.fab-globo { position: absolute; right: 72px; top: 12px; white-space: nowrap; background: #17181C; color: #fff; font-size: .78rem; font-weight: 700; padding: 7px 11px; border-radius: 12px 12px 2px 12px; animation: tg-globo .5s .6s both; }
@keyframes tg-globo { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.tg-avatar { width: 48px; height: 48px; background: #FFF1E3 !important; border-radius: 50%; padding: 3px; box-shadow: none !important; }
.tg-avatar.chico { width: 36px; height: 36px; flex: none; }
.msg-fila { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.msg-fila .msg.tg { max-width: none; }
.tg-mini { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #FFF1E3; padding: 2px; }
@media (prefers-reduced-motion: reduce) { .fab .tigri-svg, .tigri-svg .tg-ojo, .fab-globo { animation: none; } }
.fab .fab-globo { display: block; width: auto; height: auto; background: #17181C !important; color: #fff !important; font-size: .78rem; }

/* Publicidad: rotulada siempre, color del anunciante */
.pub-fila { display: flex; gap: 12px; overflow-x: auto; margin: 22px -20px 4px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pub-fila::-webkit-scrollbar { display: none; }
.pub-fila.sola { margin: 12px 0 14px; padding: 0; overflow: visible; }
.pub { flex: none; width: 270px; min-height: 128px; scroll-snap-align: start; position: relative; text-align: left; border-radius: 18px; padding: 16px 16px 14px; background: var(--pc); color: #fff; display: flex; flex-direction: column; gap: 3px; overflow: hidden; background-size: cover; background-position: center; }
.pub-fila.sola .pub { width: 100%; }
.pub::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05)); opacity: var(--velo, 0); }
.pub > * { position: relative; }
.pub-tipo { align-self: flex-start; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 2px 7px; border-radius: 6px; margin-bottom: 8px; }
.pub-ico { position: absolute !important; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.pub-ico svg { width: 22px; height: 22px; }
.pub b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; padding-right: 46px; }
.pub-txt { font-size: .8rem; opacity: .92; }

/* Deporte en Tigre */
.dep-home { width: 100%; margin-top: 18px; display: flex; align-items: center; gap: 12px; text-align: left; background: #17181C; color: #fff; border-radius: 18px; padding: 18px; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.dep-home div { display: flex; flex-direction: column; gap: 3px; flex: 1; position: relative; }
.dep-home small { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFB4AC; }
.dep-home b { font-size: 1.1rem; font-weight: 800; }
.dep-home span { font-size: .8rem; opacity: .85; }
.dep-home-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; background: #D02013; display: grid !important; place-items: center; opacity: 1 !important; position: relative; }
.dep-home-ico svg { width: 24px; height: 24px; }
.dep-colonia { display: flex; gap: 14px; background: #FFF4E5; border-radius: 18px; padding: 16px; margin: 16px 0 4px; }
.dep-colonia p { font-size: .84rem; color: #6B4A1F; margin: 4px 0 10px; }
.dep-colonia .btn { width: auto; padding: 10px 16px; }
.dep-colonia-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: #F59E0B; color: #fff; display: grid; place-items: center; }
.dep-lista { background: #fff; border-radius: 18px; padding: 2px 16px; margin-top: 10px; }
.dep-act { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--linea); }
.dep-act:last-child { border-bottom: 0; }
.dep-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #FBE9E7; color: #D02013; display: grid; place-items: center; }
.dep-ico svg { width: 22px; height: 22px; }
.dep-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dep-txt b { font-size: .92rem; }
.dep-txt span, .dep-txt small { font-size: .76rem; color: var(--muted); }
.dep-der { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .7rem; }
.dep-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dep-tags em { font-style: normal; font-size: .68rem; font-weight: 600; background: var(--fondo-b); padding: 2px 7px; border-radius: 6px; }
.dep-der .mini-btn { background: #D02013; color: #fff; font-weight: 700; font-size: .78rem; padding: 7px 12px; border-radius: 18px; white-space: nowrap; }
.dep-der small { white-space: nowrap; }

/* Inicio: accesos a Salud, Deporte y Trabajo */
.tiles2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.tile { text-align: left; border-radius: 18px; padding: 14px 12px; min-height: 132px; display: flex; flex-direction: column; gap: 3px; color: #fff; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.55)); opacity: var(--velo, 0); }
.tile > * { position: relative; }
.tile-sal { background-color: #0E7C86; }
.tile-dep { background-color: #17181C; }
.tile-trab { background-color: #3A3F4D; }
.tile-ico { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: auto; }
.tile-ico svg { width: 20px; height: 20px; }
.tile small { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 10px; }
.tile b { font-size: .82rem; font-weight: 700; line-height: 1.25; }

/* Trabajo */
.emp { background: #fff; border-radius: 18px; padding: 14px 16px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.emp-cab { display: flex; gap: 12px; align-items: center; }
.emp .btn { align-self: flex-start; width: auto; padding: 9px 18px; }
.emp-estado { display: flex; gap: 6px; flex-wrap: wrap; }
.emp-estado span { font-size: .7rem; font-weight: 600; padding: 4px 9px; border-radius: 12px; background: var(--fondo-b); color: var(--muted); }
.emp-estado span.on { background: #E8F5EE; color: #1B7A47; }
.aviso-cv { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #FFF4E5; color: #6B4A1F; border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: .85rem; }
.aviso-cv span { flex: 1; }
.cv-card { background: #fff; border-radius: 18px; padding: 18px; margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.cv-cab { display: flex; gap: 12px; align-items: center; }
.cv-cab div { display: flex; flex-direction: column; }
.cv-cab span:not(.avatar-p) { font-size: .78rem; color: var(--muted); }
.cv-sec small { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D02013; }
.cv-sec p { font-size: .88rem; margin-top: 3px; }
.pe-card { background: #E8F3FB; color: #12466F; border-radius: 18px; padding: 14px 16px; margin-top: 12px; font-size: .85rem; }
.pe-card p { margin-top: 4px; }

/* Salud */
.sal-urg { display: flex; align-items: center; gap: 12px; background: #FDECEA; border-radius: 16px; padding: 12px 14px; margin: 8px 0 14px; }
.sal-urg div { flex: 1; display: flex; flex-direction: column; font-size: .8rem; color: #7A1A12; }
.sal-urg b { font-size: .92rem; }
.sal-tel { background: #D02013; color: #fff; text-decoration: none; font-weight: 800; padding: 9px 14px; border-radius: 20px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.sal-tel svg { width: 16px; height: 16px; }
.sal-esp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sal-esp button { background: #fff; border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; text-align: center; border: 2px solid transparent; }
.sal-esp button span { width: 38px; height: 38px; border-radius: 12px; background: #E3F2F3; color: #0E7C86; display: grid; place-items: center; }
.sal-esp button span svg { width: 20px; height: 20px; }
.sal-esp button.on { border-color: #0E7C86; }
.dep-tags em.guardia { background: #FDECEA; color: #9E180E; }
.foto-banner { height: 130px; border-radius: 18px; background-size: cover; background-position: center; position: relative; overflow: hidden; margin: 6px 0 12px; display: flex; align-items: flex-end; }
.foto-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6)); }
.foto-banner span { position: relative; color: #fff; font-weight: 800; padding: 12px 14px; font-size: .95rem; }
.pub b, .pub-txt, .pub-tipo { text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* =====================================================================
   v16 · Inicio como centro: hub de accesos sin scroll + Inicio al medio
   ===================================================================== */
.hola-fila { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 4px; }
.lupa { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #17181C; }
.lupa svg { width: 20px; height: 20px; }
.lupa.on { background: #17181C; color: #fff; }
.wallet { margin-top: 10px; }
.wcard { height: 172px; }
.wmonto { font-size: 2.3rem; }
.wpie { margin-top: 10px; }
.card.activo, .aviso-rio { margin-top: 14px; }
.hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; background: #fff; border-radius: 20px; padding: 16px 8px 14px; margin-top: 16px; }
.hub button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; line-height: 1.15; text-align: center; }
.hub span { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; transition: transform .12s; }
.hub span svg { width: 23px; height: 23px; }
.hub button:active span { transform: scale(.92); }
.hub-r span { background: #FBE9E7; color: #D02013; }
.hub-p span { background: #ECEDF1; color: #3A3F4D; }
.hub-s span { background: #E3F2F3; color: #0E7C86; }
.hub-n span { background: #FFF1E3; color: #C2410C; }
.hub-a span { background: #E8F1FB; color: #1F5F99; }

/* barra inferior: Inicio elevado al centro */
.bottom { overflow: visible; align-items: flex-end; }
.bottom button.centro { position: relative; }
.bottom button.centro span { width: 58px; height: 58px; margin-top: -30px; border-radius: 50%; background: #D02013; color: #fff !important; opacity: 1 !important; display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(208, 32, 19, .7); border: 4px solid var(--fondo-b); }
.bottom button.centro span svg { width: 26px; height: 26px; }
.bottom button.centro.on { color: #D02013; }
.bottom button.centro:not(.on) span { background: #3A3F4D; box-shadow: 0 8px 18px -8px rgba(23, 24, 28, .6); }
@media (min-width: 760px) { .hub { grid-template-columns: repeat(6, 1fr); } }
.hola-acc { display: flex; gap: 8px; align-items: center; }
.tigri-hola { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px 0 4px; border-radius: 21px; background: #fff; font-weight: 700; font-size: .85rem; }
.tigri-hola .tigri-svg { width: 34px; height: 34px; }

/* =====================================================================
   v17 · Lugares cercanos: mapa + lista por distancia, mismo diseño en todas las secciones
   ===================================================================== */
.cerca-box { background: #fff; border-radius: 20px; padding: 4px 14px 12px; margin: 14px 0 6px; }
.cerca-box .h2-fila { margin-top: 8px; }
.cerca-box h2 { margin: 10px 0 8px; }
.mapa-cerca { height: 200px; border-radius: 14px; overflow: hidden; background: #E9EEE6; z-index: 0; }
.cerca-lista { margin-top: 6px; }
.cerca-fila { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linea); }
.cerca-fila:last-child { border-bottom: 0; }
.cerca-pin { width: 38px; height: 38px; flex: none; border-radius: 12px; color: #fff; display: grid; place-items: center; }
.cerca-pin svg { width: 19px; height: 19px; }
.cerca-der { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: .78rem; }
.cerca-der b { font-size: .85rem; }
.ir { background: #17181C; color: #fff; text-decoration: none; font-weight: 700; font-size: .74rem; padding: 6px 11px; border-radius: 16px; white-space: nowrap; }
.cerca-der .mini-btn { background: #1F5F99; color: #fff; font-weight: 700; font-size: .74rem; padding: 6px 11px; border-radius: 16px; white-space: nowrap; }
.ver-mas { display: block; margin: 6px auto 0; font-weight: 700; color: #D02013; }
.leaflet-popup-content a { color: #D02013; font-weight: 700; }

/* encabezado de secciones: volver grande y claro, para todo el mundo */
.volver { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #17181C !important; border-radius: 20px; padding: 8px 14px 8px 10px !important; margin: 8px 0 4px; font-size: .9rem; }
.titulo { font-size: 1.5rem; margin-top: 8px; }
.sub { font-size: .88rem; line-height: 1.45; }

/* =====================================================================
   v18 · Más cerca de la app oficial (Tigre Municipio / Soy Tigre):
   barra roja con marca en blanco, íconos de línea rojos, acento celeste.
   ===================================================================== */
:root { --celeste: #3BA3D9; }
.top { background: #D02013 !important; border-bottom: 0; color: #fff; }
.top .marca, .top .marca b, .top .marca b span { color: #fff !important; }
.top .marca-sub { background: rgba(255,255,255,.18) !important; color: #fff !important; }
.top .logo { background: #fff; padding: 2px; border-radius: 50%; width: 34px; height: 34px; }
.top .campana { color: #fff; }
.top .sos { background: #fff !important; color: #D02013 !important; box-shadow: none; }
.top .quien .avatar-p { box-shadow: 0 0 0 2px #fff; }
.top .quien-txt b, .top .quien-txt small { color: #fff; }
.demo-banda { background: #9E180E; color: #fff; }
.hola h1 { color: #17181C; }

/* tarjeta con las franjas de la marca */
.wfrente::before { content: ''; position: absolute; left: -40px; bottom: -60px; width: 200px; height: 120px; background: linear-gradient(115deg, transparent 40%, rgba(59,163,217,.45) 40%, rgba(59,163,217,.45) 58%, transparent 58%, transparent 66%, rgba(255,255,255,.18) 66%, rgba(255,255,255,.18) 80%, transparent 80%); }

/* hub: íconos de línea rojos, como la app oficial */
.hub span, .hub-r span, .hub-p span, .hub-s span, .hub-n span, .hub-a span { background: #fff !important; color: #D02013 !important; border: 1.5px solid #F4CDC9; }
.hub span svg { stroke-width: 1.7; width: 25px; height: 25px; }
.hub button { color: #17181C; }
.bottom button.on span { color: #D02013; }

/* beneficios en lista, estilo directorio oficial */
.benef-lista { background: #fff; border-radius: 18px; padding: 2px 14px; margin-top: 12px; }
.benef-fila { width: 100%; display: flex; gap: 12px; text-align: left; padding: 13px 0; border-bottom: 1px solid var(--linea); align-items: flex-start; }
.benef-fila:last-child { border-bottom: 0; }
.benef-foto { width: 64px; height: 64px; flex: none; border-radius: 12px; background: #FBE9E7 center/cover; color: #D02013; display: grid; place-items: center; }
.benef-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.benef-info b { font-size: .9rem; text-transform: uppercase; letter-spacing: .01em; }
.benef-dir { font-size: .74rem; color: var(--muted); }
.benef-dias { font-size: .76rem; font-weight: 700; color: var(--celeste); margin-top: 3px; }
.benef-txt { font-size: .8rem; color: #17181C; }
.benef-det-foto { height: 150px; border-radius: 16px; background: center/cover; margin-bottom: 12px; }
.benef-det .ir { display: inline-block; margin: 8px 0; }
.aviso-demo { font-size: .76rem; background: #E8F4FB; color: #1C5A80; border-radius: 12px; padding: 9px 12px; margin: 8px 0 4px; }
.aviso-demo .link { font-size: inherit; color: #1C5A80; text-decoration: underline; padding: 0; }
.chip.on { background: #D02013 !important; color: #fff; }
.benef-det-foto { width: 100%; align-self: stretch; display: block; }

/* ubicación: real (GPS) o punto elegido en el mapa */
.ubic-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #E8F4FB; border-radius: 14px; padding: 8px 10px 8px 12px; margin: 4px 0 4px; }
.ubic-txt { flex: 1; min-width: 140px; font-size: .8rem; color: #1C5A80; }
.ubic-txt svg { width: 15px; height: 15px; }
.ubic-btn { background: #1F6FB2; color: #fff; font-weight: 700; font-size: .78rem; padding: 8px 13px; border-radius: 18px; white-space: nowrap; }
.ubic-btn.claro { background: #fff; color: #1F6FB2; }
.ubic-tip { font-size: .72rem; color: var(--muted); margin: 2px 2px 8px; }
.benef-km { font-style: normal; font-weight: 600; color: var(--muted); }

/* un solo estilo de íconos en toda la app: línea roja sobre blanco */
.accesos span, .sal-esp button span, .dep-ico { background: #fff !important; color: #D02013 !important; border: 1.5px solid #F4CDC9; }
.sal-esp button.on { border-color: #D02013; }
.ing-logo { background: #fff !important; border-radius: 50% !important; padding: 6px; box-shadow: 0 6px 18px -8px rgba(208,32,19,.5) !important; width: 76px !important; height: 76px !important; }

/* modelo de negocio */
.dest-tag { display: inline-block; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9E180E; background: #FFE9A8; padding: 1px 6px; border-radius: 5px; margin: 0 6px 2px 0; vertical-align: middle; }
.mini-txt .dest-tag { align-self: flex-start; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan.activo { box-shadow: inset 0 0 0 2px #D02013 !important; }
.plan-cab { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.plan-cab div { display: flex; flex-direction: column; gap: 2px; }
.plan-cab strong { font-size: 1.4rem; color: #D02013; white-space: nowrap; }
.plan-cab small { font-size: .75rem; color: var(--muted); font-weight: 600; }
.plan-lista { margin: 0; padding-left: 18px; font-size: .86rem; display: flex; flex-direction: column; gap: 4px; }
.plan-pie { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-pie .btn { width: auto; padding: 10px 18px; }
.plan-inf { background: var(--fondo-b); border-radius: 12px; padding: 10px 12px; font-size: .85rem; }
.sost { margin: 16px 0; }
.sost-cab { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.sost-cab h3 { margin-bottom: 2px; }
.sost-res { font-weight: 800; font-size: .9rem; padding: 6px 12px; border-radius: 16px; background: #FDECEA; color: #9E180E; white-space: nowrap; }
.sost-res.ok { background: #E8F5EE; color: #1B7A47; }
.sost-t { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: .88rem; }
.sost-t td { padding: 8px 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.sost-t td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.sost-t small { display: block; font-size: .72rem; color: var(--muted); }
.sost-t tr.tot td { font-weight: 800; border-bottom: 2px solid #17181C; }

/* recorridos guiados: elegir uno, anterior / siguiente */
.tours { width: 100%; background: #fff; border-radius: 18px; padding: 6px 12px; }
.tours-tit { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #D02013; margin: 8px 4px 2px; text-align: left; }
.tour-op { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 4px; border-bottom: 1px solid var(--linea); }
.tour-op:last-child { border-bottom: 0; }
.tour-num { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #FBE9E7; color: #D02013; font-weight: 800; display: grid; place-items: center; }
.tour-op.prin .tour-num { background: #D02013; color: #fff; }
.tour-txt { flex: 1; display: flex; flex-direction: column; }
.tour-txt b { font-size: .95rem; }
.tour-txt small { font-size: .76rem; color: var(--muted); }
.tour-ok { color: #D02013; font-size: .9rem; }
.tour-acc { display: flex; gap: 8px; }
.tour-acc .btn { flex: 1; }
.tour .tour-ant { flex: 0 0 auto !important; background: rgba(255,255,255,.12) !important; color: #fff !important; border: 0 !important; padding: 11px 14px; }
.tour-acc .btn { width: auto !important; min-width: 0; }
.tour-acc .btn:last-child { flex: 1 1 auto; }

/* =====================================================================
   v23 · Paneles de comercio y municipio
   ===================================================================== */
/* Marina: números */
.fin { margin: 16px 0; }
.fin-dos { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 10px; }
@media (min-width: 900px) { .fin-dos { grid-template-columns: 1fr 1fr; } }
.fin-tit { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #D02013; margin-bottom: 6px; }
.fin-t { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: 6px; }
.fin-t th { text-align: right; font-size: .72rem; color: var(--muted); font-weight: 700; padding: 4px 0 6px; }
.fin-t td { padding: 7px 0; border-bottom: 1px solid var(--linea); }
.fin-t td:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 10px; font-weight: 600; }
.fin-t tr.tot td { border-bottom: 2px solid #17181C; }
.fin-grande { font-size: 1rem; margin: 8px 0 4px; } .fin-grande b { color: #1B7A47; font-size: 1.3rem; }
.sim { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--muted); margin: 6px 0; }
.sim b { color: #17181C; } .sim input { accent-color: #D02013; width: 100%; }
.m-filtros, .c-filtros { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.m-filtros .seg { margin: 0; }
.m-exp { width: auto !important; padding: 8px 14px; margin-left: auto; }
.c-filtros .chips { flex: 1; margin: 0; }
.mini-seg { margin: 0 !important; } .mini-seg button { padding: 4px 10px; font-size: .75rem; }
/* Carlos: plazos */
.plazo { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #E8F5EE; color: #1B7A47; margin-top: 3px; }
.plazo.venc { background: #FDECEA; color: #9E180E; }
/* Rosa: hoy, local, cobros */
.hoy-com { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 12px; }
.hoy-com div { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.hoy-com small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.hoy-com b { font-size: .95rem; }
@media (max-width: 700px) { .hoy-com { grid-template-columns: 1fr 1fr; } }
.foto-local { height: 150px; }
.foto-local img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.fila-horario { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.fila-horario label { flex: 1; min-width: 90px; }
.fila-horario .check { flex-direction: row !important; align-items: center; gap: 6px; font-weight: 600; }
.vista-tit { margin: 0 0 8px; }
.cobro-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.cobro-tot div { background: var(--fondo-b); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.cobro-tot small { font-size: .7rem; color: var(--muted); } .cobro-tot b { font-size: 1rem; }
.local-info { font-size: .82rem; color: var(--muted); margin: 8px 0 0; display: flex; flex-direction: column; gap: 2px; }
.local-info span { color: #17181C; }

/* comparación con otras contrataciones */
.comp { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linea); }
.comp-f { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.comp-t { display: flex; flex-direction: column; } .comp-t b { font-size: .86rem; } .comp-t small { font-size: .72rem; color: var(--muted); }
.comp-b { height: 10px; background: var(--fondo-b); border-radius: 6px; overflow: hidden; } .comp-b i { display: block; height: 100%; background: #9AA0AC; border-radius: 6px; }
.comp-f.yo .comp-b i { background: #D02013; } .comp-f.yo .comp-t b, .comp-f.yo .comp-m { color: #D02013; }
.comp-m { font-size: .86rem; white-space: nowrap; }

/* Tigri con voz */
.voz-btn { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--fondo-b); color: #6B6F7B; display: grid; place-items: center; }
.voz-btn.on { background: #FBE9E7; color: #D02013; }
.voz-btn svg { width: 18px; height: 18px; }
.chat-cab .cerrar { position: static !important; }
.chat-in .mic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #FBE9E7; color: #D02013; display: grid; place-items: center; }
.chat-in .mic svg { width: 20px; height: 20px; }
.chat-in .mic.on { background: #D02013; color: #fff; animation: tg-pulso 1s infinite; }
@keyframes tg-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(208,32,19,.45); } 50% { box-shadow: 0 0 0 8px rgba(208,32,19,0); } }
.tg-avatar.hablando { animation: tg-habla .45s ease-in-out infinite alternate; }
@keyframes tg-habla { from { transform: scale(1); } to { transform: scale(1.08) rotate(-3deg); } }

/* =====================================================================
   v26 · Inicio ordenado en 4 categorías (todo sigue a un toque)
   ===================================================================== */
.cats { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cat { background: #fff; border-radius: 18px; padding: 12px 8px 12px; }
.cat h2 { margin: 0 8px 10px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #D02013; display: flex; align-items: center; gap: 8px; }
.cat h2::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: #D02013; }
.cat .hub { background: transparent; padding: 0; margin: 0; border-radius: 0; grid-template-columns: repeat(4, 1fr) !important; gap: 4px; }
.cat-p h2 { color: #3A3F4D; } .cat-p h2::before { background: #3A3F4D; }
.cat-s h2 { color: #0E7C86; } .cat-s h2::before { background: #0E7C86; }
.cat-a h2 { color: #1F5F99; } .cat-a h2::before { background: #1F5F99; }
.cat-p .hub span { color: #3A3F4D !important; border-color: #D9DCE3 !important; }
.cat-s .hub span { color: #0E7C86 !important; border-color: #BFE3E6 !important; }
.cat-a .hub span { color: #1F5F99 !important; border-color: #C6DCF1 !important; }
@media (min-width: 1024px) {
  /* menú lateral de la compu: Inicio primero y como un ítem más, alineado a la izquierda */
  .shell.phone .bottom { align-items: stretch; }
  .shell.phone .bottom button { justify-content: flex-start !important; width: 100%; }
  .shell.phone .bottom button.centro { order: -1; }
  .shell.phone .bottom button.centro span { width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; color: inherit !important; opacity: .55 !important; display: inline; }
  .shell.phone .bottom button.centro.on span { opacity: 1 !important; color: #D02013 !important; }
  .shell.phone .bottom button.centro span svg { width: 22px; height: 22px; }
}

/* =====================================================================
   v28 · Pantalla de entrada: un botón principal, lo demás en bloques chicos
   ===================================================================== */
.entrada { max-width: 480px; margin: 0 auto; padding: 0 0 28px !important; display: flex; flex-direction: column; gap: 18px; }
.ent-hero { background: #D02013; color: #fff; padding: 26px 22px 28px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.ent-hero::after { content: ''; position: absolute; right: -90px; bottom: -70px; width: 320px; height: 190px; background: linear-gradient(115deg, transparent 40%, rgba(59,163,217,.45) 40%, rgba(59,163,217,.45) 58%, transparent 58%, transparent 66%, rgba(255,255,255,.16) 66%, rgba(255,255,255,.16) 80%, transparent 80%); }
.ent-hero > * { position: relative; z-index: 1; }
.ent-marca { display: flex; align-items: center; gap: 10px; font-size: 1rem; letter-spacing: .02em; }
.ent-marca b span { font-weight: 500; opacity: .85; }
.ent-logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.ent-hero h1 { font-size: 2.3rem; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 8px; color: #fff; }
.ent-hero p { font-size: .98rem; opacity: .95; max-width: 300px; }
.ent-cta { margin-top: 20px; width: 100%; background: #fff; color: #D02013; border-radius: 16px; padding: 14px 18px; font-weight: 800; font-size: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 12px 26px -12px rgba(0,0,0,.45); }
.ent-cta small { font-size: .78rem; font-weight: 600; color: #6B6F7B; }
.ent-cta:active { transform: scale(.98); }
.ent-bloque { padding: 0 18px; }
.ent-bloque h2 { margin: 0 2px 10px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6B6F7B; }
.ent-otros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ent-perfil { background: #fff; border-radius: 16px; padding: 14px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ent-perfil .avatar-p { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 4px; }
.ent-perfil b { font-size: .92rem; }
.ent-perfil small { font-size: .7rem; color: #6B6F7B; line-height: 1.25; }
.ent-tours { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ent-tours::-webkit-scrollbar { display: none; }
.ent-tour { flex: none; width: 150px; scroll-snap-align: start; background: #17181C; color: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; min-height: 118px; }
.ent-tour-n { width: 30px; height: 30px; border-radius: 50%; background: #D02013; display: grid; place-items: center; font-size: .8rem; margin-bottom: auto; }
.ent-tour-n svg { width: 14px; height: 14px; }
.ent-tour b { font-size: .88rem; line-height: 1.2; }
.ent-tour small { font-size: .7rem; opacity: .7; }
.ent-fb { margin: 0 18px; background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-align: left; }
.ent-fb > span:first-child { width: 38px; height: 38px; border-radius: 12px; background: #FBE9E7; color: #D02013; display: grid; place-items: center; flex: none; }
.ent-fb > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ent-fb small { font-size: .76rem; color: #6B6F7B; }
.entrada .fb { margin: 0 18px; width: auto; max-width: none; }
.entrada .qr-entrada { margin: 0 18px; }
.entrada .pie-links, .entrada .centro { padding: 0 18px; }
@media (min-width: 760px) {
  .entrada { max-width: 560px; padding-top: 24px !important; }
  .ent-hero { border-radius: 28px; padding: 34px 32px 36px; }
  .ent-tour { width: auto; flex: 1; }
  .ent-tours { overflow: visible; }
}
@media (max-width: 759px) { .shell.landing .entrada { margin: 0 -16px; } }

.ent-pie { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 18px; }
.ent-pie-b { background: #fff; border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 10px; text-align: left; }
.ent-pie-b svg { width: 20px; height: 20px; color: #D02013; flex: none; }
.ent-pie-b span { display: flex; flex-direction: column; min-width: 0; }
.ent-pie-b b { font-size: .82rem; line-height: 1.2; }
.ent-pie-b small { font-size: .68rem; color: #6B6F7B; line-height: 1.25; }

a.ent-fb { text-decoration: none; color: inherit; }

/* efecto local: tu compra trabaja tres veces */
.imp-mini { width: 100%; margin-top: 12px; display: flex; align-items: center; gap: 12px; text-align: left; background: #E8F5EE; color: #14532D; border-radius: 16px; padding: 12px 14px; }
.imp-mini > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.imp-mini b { font-size: .9rem; }
.imp-mini small { font-size: .74rem; opacity: .8; }
.imp-mini .flecha { color: #1B7A47; }
.imp-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; background: #1B7A47; color: #fff; display: grid; place-items: center; }
.imp-ico svg { width: 20px; height: 20px; }
.imp-ico.grande { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto; }
.imp-ico.grande svg { width: 28px; height: 28px; }
.imp-hoja { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.imp-hoja h2 { margin: 0; font-size: 1.2rem; }
.imp-paso { display: flex; gap: 12px; text-align: left; background: var(--fondo-b); border-radius: 14px; padding: 12px; }
.imp-paso i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #1B7A47; color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.imp-paso div { display: flex; flex-direction: column; gap: 2px; }
.imp-paso b { font-size: .92rem; }
.imp-paso span { font-size: .82rem; color: #4B4F5A; line-height: 1.4; }
.imp-paso strong { color: #1B7A47; }

/* envío con cadete propio */
.env-dir { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; margin: 10px 0 6px; }
.env-dir input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linea, #DCDDE2); font: inherit; font-weight: 500; }
.tped-env { background: #FBE9E7; color: #9E1A10; border-radius: 10px; padding: 8px 10px; font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tped-env svg { width: 16px; height: 16px; flex: none; }
.envio-card { margin-top: 12px; }
.envio-pros { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; line-height: 1.5; color: #4B4F5A; }
.envio-pros li { margin-bottom: 4px; }
.envio-pros b { color: var(--tinta, #17181C); }
.envio-card .plan-cab .btn { flex: none; width: auto; padding: 10px 18px; }
.btn.compartir { width: 100%; margin-top: 12px; }

/* v29 · Entrada sin desplazar: dos columnas en compu, compacta en celu */
@media (min-width: 1024px) {
  .entrada { max-width: 1060px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; row-gap: 14px; align-items: start; padding: 20px 0 0 !important; }
  .entrada > .ent-hero { grid-column: 1; grid-row: 1 / span 4; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 40px 38px; }
  .entrada > .ent-hero h1 { font-size: 3.2rem; margin-top: 28px; }
  .entrada > .ent-hero p { font-size: 1.1rem; max-width: 360px; }
  .entrada > .ent-bloque, .entrada > .ent-fb, .entrada > .qr-entrada { grid-column: 2; }
  .entrada > .ent-bloque { padding: 0; }
  .entrada > .ent-fb, .entrada > .qr-entrada { margin: 0; }
  .entrada .qr-entrada .qr { width: 84px; }
  .entrada .ent-tours { margin: 0; padding: 0; }
}
@media (max-width: 759px) {
  .entrada { gap: 12px; padding-bottom: 14px !important; }
  .ent-hero { padding: 18px 20px 20px; }
  .ent-hero h1 { font-size: 2rem; margin: 14px 0 6px; }
  .ent-cta { margin-top: 14px; padding: 12px 16px; }
  .ent-perfil { padding: 10px 6px 9px; }
  .ent-bloque h2 { margin-bottom: 7px; }
  .ent-tours { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .ent-tour { width: auto; min-height: 96px; padding: 10px; }
  .ent-tour b { font-size: .78rem; }
  .ent-fb { padding: 10px 14px; }
}
.shell.landing { min-height: 0 !important; }
.shell.landing .entrada { min-height: 0 !important; }
@media (max-width: 759px) and (max-height: 720px) {
  .ent-hero p { display: none; }
  .ent-hero h1 { font-size: 1.8rem; margin: 10px 0 0; }
  .ent-logo { width: 34px; height: 34px; }
  .entrada { gap: 10px; padding-bottom: 8px !important; }
  .ent-tour { min-height: 84px; }
}
/* v30 · Entrada centrada en la pantalla, que llena el alto */
@media (min-width: 1024px) {
  body:has(.shell.landing) { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
  .shell.landing { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; padding: 20px 28px; box-sizing: border-box; }
  .shell.landing .entrada { width: 100%; max-width: 1180px; padding: 0 !important; margin: 0; column-gap: 26px; row-gap: 16px; grid-template-columns: 1.05fr 1fr; }
  .entrada > .ent-hero { padding: 48px 46px; min-height: min(560px, calc(100vh - 110px)); }
  .entrada > .ent-hero h1 { font-size: clamp(3rem, 4.2vw, 4.2rem); }
  .entrada > .ent-hero p { font-size: 1.2rem; max-width: 400px; }
  .entrada .ent-logo { width: 54px; height: 54px; }
  .entrada .ent-marca { font-size: 1.2rem; }
  .entrada .ent-cta { padding: 18px; font-size: 1.25rem; margin-top: 28px; }
  .entrada .ent-perfil { padding: 20px 8px 18px; }
  .entrada .ent-perfil .avatar-p { width: 48px; height: 48px; }
  .entrada .ent-perfil b { font-size: 1.05rem; }
  .entrada .ent-perfil small { font-size: .8rem; }
  .entrada .ent-tour { min-height: 138px; padding: 18px; }
  .entrada .ent-tour b { font-size: 1rem; }
  .entrada .ent-tour small { font-size: .8rem; }
  .entrada .ent-bloque h2 { font-size: .8rem; }
  .entrada .ent-fb { padding: 18px 20px; }
  .entrada .qr-entrada .qr { width: 96px; }
}
@media (max-width: 759px) {
  body:has(.shell.landing) { display: flex; flex-direction: column; min-height: 100dvh; margin: 0; }
  .shell.landing { flex: 1; display: flex; flex-direction: column; }
  .shell.landing .entrada { flex: 1; }
  .shell.landing .ent-hero { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; }
  .shell.landing .ent-marca { margin-bottom: auto; }
}
@media (min-width: 1024px) {
  .shell.landing { max-width: none !important; }
  .entrada > .ent-hero h1 { font-size: clamp(2.8rem, 3.5vw, 3.9rem); white-space: nowrap; }
}
@media (max-width: 759px) and (max-height: 720px) { .shell.landing .ent-hero { min-height: 0; } }

/* antecedentes */
.antec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 8px; }
.antec p { margin: 0; background: var(--fondo-b, #F4F4F6); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.antec b { font-size: .88rem; }
.antec span { font-size: .8rem; color: #4B4F5A; line-height: 1.4; }
@media (max-width: 700px) { .antec { grid-template-columns: 1fr; } }

/* v31 · Paneles estilo CRM: pestañas, embudo y tablas */
.crm-tabs { display: flex; gap: 4px; margin: 16px 0 12px; border-bottom: 2px solid var(--linea, #E3E5EA); overflow-x: auto; scrollbar-width: none; }
.crm-tabs::-webkit-scrollbar { display: none; }
.crm-tabs button { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: .9rem; font-weight: 700; color: var(--muted, #5F6370); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; border-radius: 10px 10px 0 0; }
.crm-tabs button svg { width: 17px; height: 17px; }
.crm-tabs button.on { color: #D02013; border-bottom-color: #D02013; background: #FFF6F5; }
.crm-tabs em { font-style: normal; font-size: .72rem; font-weight: 800; background: #E6E7EB; color: #3A3F4D; border-radius: 999px; padding: 2px 8px; }
.crm-tabs button.on em { background: #D02013; color: #fff; }
.crm-pipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin: 2px 0 12px; }
.crm-etapa { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px 12px 26px; background: #F4F4F6; color: #3A3F4D; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); margin-right: -6px; }
.crm-etapa:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 16px; border-radius: 12px 0 0 12px; }
.crm-etapa b { font-size: 1.35rem; line-height: 1; }
.crm-etapa span { font-size: .76rem; font-weight: 600; color: var(--muted, #5F6370); }
.crm-etapa.ok b { color: #1B7A47; }
button.crm-etapa:hover { background: #ECEDF1; }
.crm-etapa.on { background: #D02013; color: #fff; }
.crm-etapa.on span, .crm-etapa.on b { color: #fff; }
.crm-card { padding: 16px; }
.crm-scroll { overflow-x: auto; margin: 4px -4px 8px; }
.crm-t { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 720px; }
.crm-t th { text-align: left; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #5F6370); padding: 8px 10px; border-bottom: 2px solid var(--linea, #E3E5EA); white-space: nowrap; }
.crm-t td { padding: 10px; border-bottom: 1px solid var(--linea, #E3E5EA); vertical-align: middle; }
.crm-t td small { display: block; font-size: .74rem; color: var(--muted, #5F6370); font-weight: 500; margin-top: 2px; }
.crm-t tbody tr:hover { background: #FAFAFB; }
.crm-t tr.de-app { background: #FFF6F5; }
.crm-t .num { text-align: right; white-space: nowrap; }
.crm-t td.acc { text-align: right; white-space: nowrap; }
.crm-t .plazo { margin: 0; }
.crm-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .kpis { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .crm-pipe { grid-template-columns: 1fr 1fr; gap: 6px; }
  .crm-etapa, .crm-etapa:first-child { clip-path: none; margin: 0; border-radius: 10px; padding: 10px 12px; }
  .crm-tabs button { padding: 10px 12px; font-size: .85rem; }
}

/* v32 · Panel del comercio estilo CRM */
.pc-cab { align-items: center; }
.pc-quien { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pc-quien .avatar { flex: none; }
.pc-quien .titulo { margin: 0; }
.pc-quien .sub { margin: 2px 0 0; }
.crm-card .h2-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.crm-card .h2-fila p { margin: 0; }
.crm-t .validar { display: inline-flex; gap: 6px; align-items: center; }
.crm-t .validar input { width: 78px; padding: 6px 8px; }

/* v33 · Envío: la dirección sale de la ubicación del celular */
.env-ubi { margin: 10px 0 6px; }
.env-btn { width: 100%; }
.env-ubi > .chico { margin: 6px 0 0; }
.env-ok { display: flex; align-items: center; gap: 10px; background: #F1F8F4; border-radius: 12px; padding: 10px 12px; }
.env-ok .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.env-ok small { color: var(--muted, #5F6370); font-size: .78rem; }
.env-pin { font-size: 1.2rem; }

/* v34 · Envío: hora de llegada y aviso de demora */
.llega { background: #F1F8F4; border-radius: 12px; padding: 10px 12px; font-size: .86rem; margin: 6px 0 8px; }
.ped-llega { background: #F1F8F4; border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin: 10px 0 4px; }
.ped-llega.dem { background: #FFF4E5; }
.tped-dem { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
