/* ServiPago web: los mismos colores y tamaños de la app Android (letra
   grande y clara). Siempre en tema claro, como la app. */

:root {
    --navy: #003F5D;
    --azul: #1F71B8;
    --naranja: #E94E24;
    --naranja-texto: #C43D14; /* 5,2:1 con letra blanca pequeña o sobre blanco (WCAG AA); --naranja solo en botones grandes */
    --verde: #15803D; /* 5,0:1 sobre blanco (antes #16A34A, 3,3:1) */
    --rojo: #DC2626;
    --whatsapp: #0B7A3B; /* con letra blanca 5,4:1 (el #25D366 daba 2:1) */
    --fondo: #F2F8FB;
    --gris: #6B7280;
    --texto: #111827;
    --borde: #E5E7EB;
    --blanco: #FFFFFF;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font: 17px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
body.destello { background: var(--azul); transition: background .15s; }
body { transition: background .6s; }

main {
    max-width: 560px;
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
    min-height: 100vh;
}
main.sin-menu { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.cargando { text-align: center; color: var(--gris); margin-top: 40vh; }

h1 { font-size: 30px; font-weight: 900; color: var(--navy); margin: 8px 0; }
h2 { font-size: 14px; font-weight: 900; letter-spacing: 1px; color: var(--gris); margin: 0 0 8px; text-transform: uppercase; }
p { margin: 6px 0; }
.gris { color: var(--gris); }
.pequeno { font-size: 14px; }
.centro { text-align: center; }
.error { color: var(--rojo); font-weight: 700; margin: 10px 0; }
.ok { color: var(--verde); font-weight: 700; }

/* ------------------------------------------------------------- botones --- */
button { font: inherit; cursor: pointer; border: 0; }
.boton {
    display: block; width: 100%; min-height: 60px; margin: 10px 0;
    border-radius: 16px; background: var(--naranja); color: #fff;
    font-size: 19px; font-weight: 900; padding: 12px;
}
.boton:disabled { opacity: .5; }
.boton.navy { background: var(--navy); }
.boton.azul { background: var(--azul); }
.boton.verde { background: var(--whatsapp); }
.boton .detalle { display: block; font-size: 14px; font-weight: 400; opacity: .85; }
.secundario {
    display: block; width: 100%; min-height: 54px; margin: 10px 0;
    border-radius: 16px; background: transparent; border: 1.5px solid #9CA3AF;
    color: var(--navy); font-size: 17px; font-weight: 700;
}
.pastillas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pastilla {
    border-radius: 999px; padding: 9px 16px; color: #fff; background: var(--navy);
    font-size: 15px; font-weight: 700;
}
.pastilla.rojo { background: var(--rojo); }
.pastilla.azul { background: var(--azul); }
.pastilla.verde { background: var(--whatsapp); }
.pastilla.gris { background: var(--gris); }
.pastilla.naranja { background: var(--naranja-texto); }
.enlace { background: none; color: var(--azul); font-weight: 700; padding: 6px 0; }

/* -------------------------------------------------------------- campos --- */
label.campo { display: block; margin: 10px 0; font-size: 15px; font-weight: 700; color: var(--navy); }
label.campo input { margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], input:not([type]) {
    width: 100%; font: inherit; font-size: 19px; padding: 12px 14px;
    border: 1.5px solid #9CA3AF; border-radius: 12px; background: #fff; color: var(--texto);
}
input:focus { outline: none; border-color: var(--azul); }
input.grande { font-size: 26px; font-weight: 900; text-align: center; letter-spacing: 2px; }
.ayuda-campo { font-size: 13px; color: var(--gris); font-weight: 400; }
.clave { position: relative; }
.clave button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; color: var(--azul); font-weight: 700; padding: 8px; }
.casilla { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 16px; }
.casilla input { width: 26px; height: 26px; flex: none; accent-color: var(--navy); }

/* ------------------------------------------------------------- tarjetas --- */
.seccion { background: #fff; border-radius: 18px; padding: 18px; margin-top: 16px; }
.tarjeta { border: 1px solid var(--borde); border-radius: 16px; padding: 14px; margin-top: 10px; }
.tarjeta.actual { border: 2px solid var(--azul); }
.fila-titulo { display: flex; align-items: center; gap: 8px; }
.fila-titulo > :first-child { flex: 1; min-width: 0; }
.nombre { font-size: 19px; font-weight: 900; }
.etiqueta { border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.estado { border-radius: 12px; padding: 12px; margin-top: 8px; }
.estado b { display: block; font-size: 18px; font-weight: 900; }
.llave { font: 900 24px/1.2 ui-monospace, Menlo, Consolas, monospace; color: var(--navy); letter-spacing: 2px; }

/* -------------------------------------------------------- encabezado --- */
.encabezado { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.encabezado .titulo { flex: 1; min-width: 0; }
.encabezado .titulo div:first-child { font-size: 24px; font-weight: 900; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.encabezado .nombre-vendedor { font-size: 15px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.encabezado .negocios-vendedor { font-size: 14px; color: var(--navy); overflow-wrap: anywhere; }
.foto { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: rgba(0,63,93,.12); display: grid; place-items: center; font-weight: 900; font-size: 21px; color: var(--navy); }
.ayuda-redonda { width: 48px; height: 48px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; flex: none; }
.ayuda-redonda svg { width: 28px; height: 28px; fill: #fff; }
.conexion { font-size: 15px; font-weight: 700; }
.reloj { display: flex; align-items: baseline; gap: 10px; }
.reloj b { font-size: 20px; color: var(--navy); }

.banner { border-radius: 14px; padding: 14px; margin-top: 10px; color: #fff; font-size: 17px; font-weight: 700; text-align: center; width: 100%; }
.banner.naranja { background: var(--naranja-texto); }
.banner.azul { background: var(--azul); }
.banner.navy { background: var(--navy); }

/* ---------------------------------------------------------------- pagos --- */
.pago-grande { background: #fff; border-radius: 28px; padding: 22px 24px; margin-top: 12px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.12); animation: entrar .35s ease-out; width: 100%; }
.pago-grande .t { color: var(--azul); font-weight: 900; font-size: 17px; letter-spacing: 1.5px; }
.pago-grande .v { color: var(--azul); font-size: 54px; font-weight: 900; line-height: 1.1; margin: 8px 0; }
.pago-grande .q { color: var(--navy); font-size: 20px; font-weight: 700; }
@keyframes entrar { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

.total { background: #fff; border-radius: 18px; padding: 14px 18px; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.total div:first-child { flex: 1; }
.total .t { font-size: 14px; font-weight: 700; color: var(--gris); letter-spacing: 1px; }
.total .v { font-size: 34px; font-weight: 900; color: var(--azul); line-height: 1.15; }
.total .n { font-size: 17px; font-weight: 700; color: var(--navy); }
.total .promedio { margin-top: 4px; font-size: 14px; color: var(--gris); }

.lista { background: rgba(255,255,255,.92); border-radius: 18px; padding: 4px 16px; margin-top: 10px; }
.lista .vacio { padding: 14px 0; color: var(--gris); }
.fila-pago { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--borde); width: 100%; background: none; text-align: left; color: inherit; }
.fila-pago:last-child { border-bottom: 0; }
.fila-pago .h { width: 84px; flex: none; font-size: 16px; font-weight: 700; color: var(--gris); }
.fila-pago .q { flex: 1; min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila-pago .v { font-size: 18px; font-weight: 900; color: var(--azul); white-space: nowrap; }
.fila-pago .flecha { color: var(--gris); font-size: 20px; }

.pestanas { display: flex; gap: 4px; background: #fff; border-radius: 16px; padding: 4px; margin-top: 6px; }
.pestanas button { flex: 1; border-radius: 12px; padding: 12px; background: transparent; color: var(--navy); font-size: 17px; font-weight: 900; }
.pestanas button.activa { background: var(--navy); color: #fff; }
.selector { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.selector div { flex: 1; text-align: center; font-size: 20px; font-weight: 900; color: var(--navy); }
.selector button { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 20px; font-size: 20px; font-weight: 900; }
.selector button:disabled { opacity: .15; }
.buscar { margin-top: 10px; }

.beneficio { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px; margin: 6px 0; }
.beneficio span { width: 44px; height: 44px; border-radius: 50%; background: rgba(31,113,184,.10); display: grid; place-items: center; font-size: 21px; flex: none; }

.duraciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.duraciones button { border-radius: 999px; padding: 10px 16px; background: rgba(0,63,93,.08); color: var(--navy); font-size: 16px; font-weight: 700; }
.duraciones button.elegido { background: var(--navy); color: #fff; }

.chequeo { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.chequeo .m { width: 26px; font-size: 22px; font-weight: 900; }

/* ----------------------------------------------------------- menú abajo --- */
#menu {
    position: fixed; left: 0; right: 0; bottom: 0; background: #fff;
    border-top: 1px solid var(--borde); display: flex; justify-content: center;
    padding-bottom: env(safe-area-inset-bottom); z-index: 5;
}
#menu button { flex: 1; max-width: 140px; background: none; padding: 8px 0 10px; color: var(--gris); font-size: 12px; font-weight: 700; }
#menu button svg { display: block; margin: 0 auto 2px; width: 28px; height: 28px; fill: currentColor; }
#menu button.activo { color: var(--navy); }
#menu button.activo svg { background: rgba(0,63,93,.12); border-radius: 14px; padding: 2px 12px; width: 52px; }

/* ---------------------------------------------------------------- ventanas --- */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px; }
#modal[hidden] { display: none; }
.ventana { background: #fff; border-radius: 24px; padding: 22px; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; }
.ventana h3 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.ventana .acciones { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }
.ventana .acciones button { background: none; font-size: 17px; font-weight: 700; color: var(--azul); padding: 10px 6px; }
.ventana .acciones button.peligro { color: var(--rojo); }
.dato { display: flex; padding: 5px 0; }
.dato span:first-child { width: 110px; flex: none; color: var(--gris); font-size: 16px; }
.dato span:last-child { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.mensaje-nequi { background: #F3F4F6; border-radius: 12px; padding: 12px; font-size: 15px; margin-top: 6px; overflow-wrap: anywhere; }

#aviso { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--texto); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 20; font-size: 15px; }
#aviso[hidden] { display: none; }

/* ------------------------------------------------ varios puntos (2.6) --- */
.fila-pago .q .punto { display: block; font-size: 13px; font-weight: 700; color: var(--naranja-texto); }
.fila-pago .q .por-punto { display: block; font-size: 14px; white-space: normal; margin-top: 2px; }
.chips-puntos { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.chip-punto { background: #fff; border-radius: 14px; padding: 10px 14px; flex: none; display: flex; flex-direction: column; }
.chip-punto span { font-size: 14px; font-weight: 700; color: var(--gris); }
.chip-punto b { font-size: 20px; font-weight: 900; color: var(--navy); }
.chip-punto small { font-size: 13px; color: var(--gris); }
.total.mes { padding: 10px 16px; margin-top: 8px; }
.total.mes .t { flex: 1; }
.total.mes .v { font-size: 20px; }
.total.mes .n { font-size: 14px; font-weight: 400; color: var(--gris); }
.chips-filtro { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.chips-filtro button { flex: none; border-radius: 999px; padding: 9px 16px; background: #fff; color: var(--navy); font-size: 16px; font-weight: 700; }
.chips-filtro button.elegido { background: var(--azul); color: #fff; }

.interruptor { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(0,63,93,.05); font-weight: 700; color: var(--navy); cursor: pointer; }
.interruptor span { flex: 1; }
.interruptor input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 999px; background: #D1D5DB; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.interruptor input:checked { background: var(--verde); }
.interruptor input:checked::after { left: 25px; }

.grupo { font-size: 17px; font-weight: 900; color: var(--navy); margin: 14px 0 0; }
.vendedor.fuera { background: #F9FAFB; }
.vendedor .avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(31,113,184,.12); color: var(--azul); display: grid; place-items: center; font-size: 20px; font-weight: 900; flex: none !important; }
.vendedor.fuera .avatar { background: rgba(107,114,128,.15); color: var(--gris); }
.vendedor .fila-titulo > div { flex: 1; min-width: 0; }
.vendedor .filas { border-top: 1px solid var(--borde); margin-top: 10px; padding-top: 6px; }
.vendedor .filas > div { display: flex; align-items: center; padding: 4px 0; }
.vendedor .filas > div > span { width: 76px; flex: none; color: var(--gris); font-size: 15px; }
.vendedor .filas b { font-size: 16px; }
.vendedor .llave { background: none; padding: 0; font-size: 22px; }
.botones-fila { display: flex; gap: 8px; margin-top: 10px; }
.botones-fila > * { flex: 1; text-align: center; border-radius: 12px; padding: 12px 4px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.botones-fila .verde { background: var(--whatsapp); }
.botones-fila .navy { background: var(--navy); }
.botones-fila .naranja { background: var(--naranja-texto); }
.botones-fila .rojo { background: var(--rojo); }
.duraciones button.azul { background: rgba(31,113,184,.08); color: var(--azul); }
.duraciones button.azul.elegido { background: var(--azul); color: #fff; }
.duraciones button.gris { background: rgba(107,114,128,.10); color: var(--gris); }
.duraciones button.gris.elegido { background: var(--gris); color: #fff; }
.duraciones button.rojo { background: rgba(220,38,38,.08); color: var(--rojo); }
.duraciones button.rojo.elegido { background: var(--rojo); color: #fff; }

/* Vigencia comercial independiente del indicador de conexión. */
.servicio-banner{padding:12px 16px;background:#edf6ee;color:#205b3d;border-radius:12px;font-size:14px;line-height:1.5;margin:0 0 12px}.servicio-pausado{background:#fff1da;color:#83561c}

/* ------------------------------------------ 2.1: perfil, rango, tablero --- */
.foto-boton { position: relative; padding: 0; background: none; border-radius: 12px; flex: none; min-width: 48px; min-height: 48px; }
.foto-boton .marca { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff;
    border: 2px solid #fff; font: 900 14px/16px sans-serif; text-align: center; }
.foto-boton:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.foto.grande { width: 88px; height: 88px; font-size: 38px; border-radius: 18px; }
.fila-foto { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.boton-archivo { display: inline-block; cursor: pointer; min-height: 44px; line-height: 26px; }
.fila-id { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.fila-id > div { flex: 1; min-width: 0; }
.fila-id small { display: block; color: var(--gris); font-size: 14px; }
.fila-id b { font: 900 20px/1.3 ui-monospace, Menlo, Consolas, monospace; color: var(--navy); }
.fila-id .pastilla { min-height: 44px; }
.error-campo { display: block; color: var(--rojo); font-size: 15px; font-weight: 700; margin-top: 4px; }
input[aria-invalid="true"] { border-color: var(--rojo); }
.clave button { min-width: 44px; min-height: 44px; }
.barra-volver { display: flex; justify-content: space-between; align-items: center; }
.barra-volver .pastilla { min-height: 44px; }
.acceso-perfil { display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; border-radius: 18px; padding: 14px 18px; margin-top: 12px; text-align: left; color: var(--navy); }
.acceso-perfil span:first-child { flex: 1; }
.acceso-perfil b { display: block; font-size: 18px; font-weight: 900; }
.acceso-perfil small { color: var(--gris); font-size: 15px; }
.acceso-perfil span:last-child { font-size: 28px; color: var(--gris); }

.marcas { margin: 8px 0; }
.marca-fila { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--borde); cursor: pointer; }
.marca-fila.fuerte { font-size: 17px; font-weight: 900; }
.marca-fila input { width: 24px; height: 24px; accent-color: var(--azul); flex: none; }

.panel-rango { background: #fff; border-radius: 16px; padding: 14px; margin-top: 12px; }
.panel-rango .fechas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.panel-rango .fechas label { min-width: 0; }
.panel-rango input[type=date] { width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; font: inherit; font-size: 17px; padding: 10px; border: 1.5px solid #9CA3AF; border-radius: 12px; background: #fff; color: var(--texto); min-height: 48px; }
.panel-rango .error:empty { display: none; }
.titulo-lista { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.titulo-lista h2 { font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--navy); margin: 0; }
.titulo-lista span { color: var(--gris); font-size: 15px; }
.fila-pago .h small { display: block; font-size: 13px; font-weight: 400; }
.fila-pago .q { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fila-pago { min-height: 56px; }
.total .n { font-size: 17px; font-weight: 700; color: var(--navy); }
.total .v { overflow-wrap: anywhere; }
.total.mes .t small { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.por-negocio { background: #fff; border-radius: 16px; padding: 8px 16px; margin-top: 8px; }
.por-negocio h2 { margin: 6px 0; font-size: 13px; }
.fila-negocio { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--borde); }
.fila-negocio div { flex: 1; min-width: 0; }
.fila-negocio b { display: block; font-size: 16px; }
.fila-negocio small { color: var(--gris); font-size: 14px; }
.fila-negocio span { font-size: 19px; font-weight: 900; color: var(--navy); white-space: nowrap; }
.chips-filtro { flex-wrap: wrap; overflow-x: visible; }
.chips-filtro button, .duraciones button, .pestanas button, .selector button { min-height: 48px; }
.reloj { flex-wrap: wrap; row-gap: 0; }
#estado-servicio:empty { display: none; }
#estado-servicio .servicio-banner { margin: 12px 0 0; }

/* Pantallas anchas (iPad, tablets, computador): resumen y lista lado a lado. */
@media (min-width: 900px) {
    main { max-width: 1180px; }
    .tablero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
    .movimientos { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
    .movimientos .controles { position: sticky; top: 12px; }
    .tablero .columna-lista .titulo-lista, .movimientos .columna-lista .titulo-lista { margin-top: 12px; }
    .tarjetas-negocios { grid-template-columns: 1fr 1fr; }
    #menu { justify-content: center; }
}
/* Celular horizontal o ventana baja: el menú ocupa menos alto. */
@media (max-height: 480px) and (orientation: landscape) {
    #menu button { padding: 4px 0 6px; }
    #menu button svg { width: 24px; height: 24px; }
    main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .pago-grande .v { font-size: 44px; }
}
/* Nombres largos de negocio: el botón se parte en dos líneas en vez de salirse. */
.chips-filtro button { flex: 0 1 auto; max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.servicio-banner a{color:inherit;font-weight:800;text-decoration:underline}
.servicio-suspendido{background:#fbe9e7;color:#a5322e}

/* ------------------------ 2.2: cuenta sin puntos, ventanas y perfil (docs/25) --- */
.sin-puntos .titulo-aviso { font-size: 21px; font-weight: 900; color: var(--navy); margin: 0 0 6px; }
.perfil { max-width: 900px; }
.tarjetas-negocios { display: grid; gap: 12px; margin-top: 8px; }
.tarjetas-negocios .tarjeta { margin-top: 0; }
.negocio-perfil .fila-titulo { margin-bottom: 4px; }
.tarjeta .fila-titulo .foto { width: 44px; height: 44px; }
input:disabled { background: #F3F4F6; color: var(--texto); -webkit-text-fill-color: var(--texto); opacity: 1; }
.ventana { max-height: min(88vh, 88dvh); }
.ventana .grupo { margin-top: 16px; }
.ventana .casilla { margin-top: 8px; }
.ventana .error:empty { display: none; }
/* Los botones de las ventanas quedan a la vista aunque el formulario sea largo. */
.acciones-ventana { display: flex; gap: 12px; position: sticky; bottom: -22px; margin: 12px -22px -22px; padding: 12px 22px 22px; background: #fff; }
.acciones-ventana > * { flex: 1; margin: 0; min-height: 54px; }
.acciones-ventana .secundario { border-color: #9CA3AF; }
/* Foto del registro: el selector de archivo no se sale de la pantalla angosta. */
.fila-archivo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.fila-archivo input[type=file] { min-width: 0; max-width: 100%; }
/* La foto va primero en .fila-titulo: sin esto crecía a todo el ancho (quedaba estirada y recortada). */
.fila-titulo > .foto:first-child { flex: none; }
.fila-titulo > .foto:first-child + div { flex: 1; min-width: 0; }
.tarjeta .fila-titulo .foto { width: 64px; height: 64px; border-radius: 14px; }
/* Vendedor con varios negocios: fotos encimadas en el encabezado. */
.fotos-apiladas { display: flex; flex: none; align-items: center; }
.fotos-apiladas .apilada { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; background: #dbe7ee;
    display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.fotos-apiladas .apilada + .apilada { margin-left: -14px; }
.fotos-apiladas .mas { background: var(--navy); color: #fff; font-size: 15px; }
/* Con varios negocios: el pagador en una línea y, debajo, la foto pequeña y el nombre del negocio. */
.fila-pago .q .n { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* El negocio se lee completo (con nombres parecidos, «Tienda Demo C…» no dice cuál es): si no cabe, baja a otra línea. */
.fila-pago .q.con-punto { display: block; }
.fila-pago .q .punto { display: flex; align-items: flex-start; gap: 6px; white-space: normal; overflow-wrap: anywhere; margin-top: 2px; line-height: 1.3; }
.fila-pago .mini { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(0,63,93,.12);
    display: inline-grid; place-items: center; font-weight: 900; font-size: 11px; color: var(--navy); }
/* Celulares con acceso (cupo, docs/33). */
.celular-fila { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.celular-fila:last-child { border-bottom: 0; }
.celular-fila > div { flex: 1; min-width: 0; }
.celular-fila small { display: block; }
.rojo-texto { color: var(--rojo); }

/* Copia de demostración (docs/34): siempre visible, para que nadie confunda la muestra con pagos reales. */
.cinta-demo { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--naranja-texto); color: #fff;
    font-weight: 800; font-size: 15px; letter-spacing: .02em; text-align: center; }
