/* 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; }
/* En bloque y separada: así el borde del campo seleccionado no tapa las tildes. */
.ayuda-campo { display: block; margin-top: 6px; 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;
}
/* Sin sesión el menú va escondido: el display:flex de arriba le ganaba al atributo hidden. */
#menu[hidden] { display: none; }
#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; }

/* Con left: 50% el aviso largo se partía a media pantalla y quedaba redondo:
   ancho a la medida del texto, hasta el ancho de la pantalla. */
#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: 20px; z-index: 20; font-size: 15px;
    width: max-content; max-width: min(440px, calc(100vw - 32px)); box-sizing: border-box; text-align: center; line-height: 1.35; }
#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;
   una palabra larga se parte con guion («Minimer-cado»). */
.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; hyphens: auto; 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; }
/* Dueño | Vendedor, debajo de la cinta (solo en la demostración y con la sesión abierta). */
.cambio-demo { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 4px; border-radius: 999px; background: #fff;
    border: 1px solid var(--borde); }
.cambio-demo span { padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--gris); white-space: nowrap; }
.cambio-demo button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 16px;
    font-weight: 800; color: var(--navy); cursor: pointer; }
.cambio-demo button.activo { background: var(--navy); color: #fff; }
.cambio-demo button:disabled { opacity: .5; cursor: default; }

/* ------------------------------------- 2.4: Mi plan y Recomendar (docs/41, 43) --- */
.tarjetas-planes { display: grid; gap: 12px; margin-top: 8px; }
.tarjeta-plan { border: 1px solid var(--borde); border-radius: 16px; padding: 14px; }
/* Su plan resaltado como el plan destacado de svpago.com (docs/44). */
.tarjeta-plan.elegido { border: 2px solid var(--navy); background: var(--navy); color: #fff; }
.tarjeta-plan.elegido h3, .tarjeta-plan.elegido .precio-plan { color: #fff; }
.tarjeta-plan.elegido .precio-plan span, .tarjeta-plan.elegido .para { color: #d5eaf3; }
.tarjeta-plan.elegido .su-plan { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px; background: #ffb07c; color: var(--navy); font-size: 13px; letter-spacing: .5px; }
.tarjeta-plan .para { color: var(--gris); }
.tarjeta-plan .pedido { color: var(--naranja-texto); font-weight: 900; }
.seccion-su-plan { border-left: 6px solid var(--navy); }
.solicitud-plan { display: grid; gap: 6px; margin: 8px 0; padding: 12px; border-radius: 12px; background: #fff0df; color: var(--navy); }
.tarjeta-plan h3 { margin: 0; font-size: 20px; color: var(--navy); }
.tarjeta-plan p { margin: 6px 0; }
.tarjeta-plan .precio-plan { font-size: 26px; font-weight: 900; color: var(--azul); }
.tarjeta-plan .precio-plan span { font-size: 15px; font-weight: 700; color: var(--gris); }
.tarjeta-plan .su-plan { color: var(--verde); font-weight: 900; }
.servicio-banner button.enlace { color: inherit; font-weight: 800; text-decoration: underline; padding: 0; font-size: inherit; }
@media (min-width: 900px) {
    .tarjetas-planes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Bancos del negocio (docs/46): «Recibe pagos de» y el asistente. */
/* La etiqueta («Llegó su pago de prueba») no se parte: si no cabe al lado del
   texto, baja a su propia línea en vez de dejarle al texto 50 px (iPhone, 04-10). */
.fila-banco { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--borde); border-radius: 12px; padding: 10px; margin-top: 8px; }
.fila-banco > div { flex: 1 1 170px; min-width: 0; display: grid; gap: 2px; overflow-wrap: break-word; }
.fila-banco > .etiqueta { margin-left: auto; }
.nota-llave { background: color-mix(in srgb, var(--azul) 8%, white); border-radius: 12px; padding: 10px 12px; font-size: 16px; margin: 8px 0; }
.logo-banco { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: contain; }
.etiqueta { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; flex: none; }
.etiqueta.verde { background: color-mix(in srgb, var(--verde) 14%, white); color: var(--verde); }
.etiqueta.naranja { background: color-mix(in srgb, var(--naranja) 12%, white); color: var(--naranja-texto); }
.etiqueta.rojo { background: color-mix(in srgb, var(--rojo) 12%, white); color: var(--rojo); }
.etiqueta.gris { background: color-mix(in srgb, var(--gris) 12%, white); color: var(--gris); }
.etiqueta.azul { background: color-mix(in srgb, var(--azul) 12%, white); color: var(--azul); }
.opcion-banco { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--blanco); border: 2px solid var(--borde);
    border-radius: 16px; padding: 14px; margin-top: 10px; font: inherit; font-size: 18px; color: var(--navy); cursor: pointer; }
.opcion-banco:focus-visible { border-color: var(--azul); }
@media (hover: hover) { .opcion-banco:hover { border-color: var(--azul); } }
.opcion-banco > span:not(.flecha) { flex: 1; min-width: 0; }
.opcion-banco .flecha { font-size: 26px; color: var(--gris); }
.pasos-banco { padding-left: 22px; margin: 8px 0 0; }
.pasos-banco li { margin-top: 12px; }
.copiable { display: flex; align-items: center; gap: 8px; background: var(--fondo); border-radius: 10px; padding: 8px 10px; margin: 6px 0 8px; }
.copiable code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; color: var(--navy); }
.copiable .pastilla { flex: none; }
.enlace-boton { display: inline-block; text-decoration: none; margin-top: 8px; }
a.boton.enlace-boton { display: block; text-align: center; }

/* Camino de Nequi por número (docs/47): avance, carruseles con pantallazos
   de Nequi, revisión del nombre y el código de Nequi en pantalla. */
.paso-asistente { margin: 0; font-size: 14px; font-weight: 800; color: var(--gris); }
.avance { height: 6px; background: var(--borde); border-radius: 999px; margin: 6px 0 12px; overflow: hidden; }
.avance i { display: block; height: 100%; background: var(--naranja); border-radius: 999px; }
.carrusel-nequi { border: 1px solid var(--borde); border-radius: 16px; padding: 10px; margin: 10px 0; background: var(--fondo); }
.carrusel-nequi .pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; }
.carrusel-nequi .pista::-webkit-scrollbar { display: none; }
.lamina { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.lamina figcaption { font-size: 16px; margin: 8px 2px 0; color: var(--navy); }
.foto-nequi { position: relative; max-width: 180px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--borde); background: #fff; }
.foto-nequi img { display: block; width: 100%; height: auto; }
.foto-nequi .marco { position: absolute; border: 2px solid var(--naranja); border-radius: 6px; }
.carrusel-control { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.carrusel-control .pastilla { white-space: nowrap; font-size: 14px; padding: 7px 10px; background: var(--blanco); color: var(--navy); border: 2px solid var(--borde); }
.carrusel-control .puntos { display: flex; gap: 4px; min-width: 0; }
.carrusel-control .puntos i { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.carrusel-control .puntos i.on { width: 20px; border-radius: 999px; background: var(--navy); }
.dos-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dos-fotos > div { display: grid; gap: 6px; border: 2px solid var(--borde); border-radius: 12px; padding: 6px; text-align: center; font-size: 14px; }
.dos-fotos img { width: 100%; height: auto; max-height: 230px; object-fit: contain; border-radius: 8px; }
.donde-ver { display: flex; gap: 12px; align-items: center; background: var(--fondo); border-radius: 12px; padding: 8px; margin: 4px 0 6px; }
.donde-ver .foto-nequi { width: 96px; flex: none; margin: 0; }
.donde-ver p { margin: 0; font-size: 15px; }
.estado-nombre { margin: 4px 0 0; font-weight: 800; }
.estado-nombre.ok { color: var(--verde); }
.estado-nombre.mal { color: var(--rojo); }
.nombre-escogido { background: color-mix(in srgb, var(--verde) 10%, white); border: 2px solid var(--verde); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.nombre-escogido p { margin: 0 0 4px; }
.sugerencia { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; background: var(--blanco);
    border: 2px solid var(--borde); border-radius: 12px; padding: 11px 12px; margin-top: 8px; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; }
.sugerencia:focus-visible { border-color: var(--azul); }
@media (hover: hover) { .sugerencia:hover { border-color: var(--azul); } }
.sugerencia span { color: var(--verde); font-size: 14px; flex: none; }
.codigo-nequi { display: flex; align-items: center; justify-content: center; gap: 14px; background: color-mix(in srgb, var(--azul) 8%, white);
    border: 2px solid var(--navy); border-radius: 18px; padding: 16px 12px; margin-top: 8px; }
.codigo-nequi .cifras { font-size: 36px; font-weight: 900; letter-spacing: 3px; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Esperando algo que llega solo (el código de Nequi, el pago de prueba). */
.girando { display: inline-block; width: 16px; height: 16px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%;
    vertical-align: -2px; margin-right: 8px; animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .girando { animation: none; } }
.nombre-fuerte { font-weight: 900; color: var(--navy); }

/* ------------------------------------------- bienvenida y alta (docs/47) --- */
.bloque-voz { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 16px; padding: 14px 16px; margin: 14px 0 8px; font-size: 19px; }
.bloque-voz span { font-size: 26px; }
.bloque-breb { background: #fff; border: 1px solid var(--borde); border-radius: 16px; padding: 12px 14px; margin: 8px 0; display: grid; grid-template-columns: 34px 1fr; gap: 6px 12px; align-items: center; }
.bloque-breb p { margin: 0; font-size: 17px; }
.icono-qr { width: 34px; height: 34px; color: var(--navy); }
.logos-entidades { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.logos-entidades img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--borde); padding: 3px; }
.cuadricula-beneficios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 16px; }
.cuadricula-beneficios div { background: #fff; border-radius: 14px; padding: 10px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.cuadricula-beneficios span { font-size: 20px; flex: none; }
.recuadro-plata, .regalo { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.recuadro-plata { background: color-mix(in srgb, var(--azul) 10%, white); }
.regalo { background: color-mix(in srgb, var(--verde) 10%, white); }
.recuadro-plata span, .regalo span { font-size: 24px; flex: none; }
.recuadro-plata p, .regalo p { margin: 0; font-size: 17px; }
.banco-alta { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 10px; margin-top: 8px; }
.banco-alta > span { flex: 1; min-width: 0; }
.sin-negocios { text-align: center; }
.sin-negocios > span { font-size: 44px; display: block; }
.miniatura-foto { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
/* Ciudad con sugerencias y «Usar mi ubicación» (docs/47). */
.sugerencias-ciudad { border: 1px solid var(--borde); border-radius: 12px; background: #fff; margin: -4px 0 8px; overflow: hidden; }
.sugerencias-ciudad button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--borde); padding: 12px; font: inherit; font-weight: 700; color: var(--texto); }
.sugerencias-ciudad button:last-child { border-bottom: 0; }
.sugerencias-ciudad button span { font-weight: 400; color: var(--gris); font-size: 14px; text-align: right; }
.estado-ubicacion { font-size: 15px; color: var(--verde); margin: 6px 0 0; min-height: 0; }
.estado-ubicacion.mal { color: var(--rojo); }
.estado-ubicacion:empty { display: none; }
/* Foto del negocio nuevo: un recuadro con la cámara en vez del botón del navegador. */
.titulo-campo { margin: 10px 0 6px; font-size: 15px; font-weight: 700; color: var(--navy); }
.titulo-campo .gris { font-weight: 400; }
.escoger-foto { display: block; border: 2px dashed #9CA3AF; border-radius: 12px; padding: 14px; text-align: center; color: var(--gris); font-size: 16px; cursor: pointer; background: #fff; }
.escoger-foto:focus-within { border-color: var(--azul); color: var(--azul); }
@media (hover: hover) { .escoger-foto:hover { border-color: var(--azul); color: var(--azul); } }
.escoger-foto .contenido-foto { display: flex; align-items: center; justify-content: center; gap: 12px; }
.oculto-visual { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------- QR y llave de cobro (docs/50) --- */
.btn-qr { flex: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--navy); background: #EAF6FA;
    display: flex; align-items: center; justify-content: center; padding: 0; }
.btn-qr .icono-qr { width: 26px; height: 26px; }
.btn-qr.sin { border-style: dashed; border-color: #9CA3AF; background: #fff; }
.btn-qr.sin .icono-qr { color: #9CA3AF; }
.boton-qr { display: flex; align-items: center; justify-content: center; gap: 10px; }
.boton.boton-qr .icono-qr { color: #fff; width: 28px; height: 28px; }
.secundario.boton-qr.sin { border-style: dashed; }
.con-icono { display: flex; align-items: center; justify-content: center; gap: 10px; }
.con-icono svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.secundario.borde-verde { border: 2px solid var(--whatsapp); color: var(--whatsapp); }
.visor-qr .barra-visor { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.visor-qr .barra-visor h3 { flex: 1; min-width: 0; margin: 0; }
.cerrar-x { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--fondo); color: var(--navy); font-size: 20px; font-weight: 900; }
.pestanas-qr { display: flex; gap: 8px; justify-content: safe center; margin: 0 -4px 10px; padding: 0 4px 2px; overflow-x: auto; scrollbar-width: none; }
.pestanas-qr::-webkit-scrollbar { display: none; }
.pestanas-qr button { display: flex; align-items: center; gap: 6px; min-height: 44px; border: 2px solid var(--borde); border-radius: 999px;
    padding: 4px 16px 4px 6px; background: #fff; color: var(--gris); font-weight: 800; font-size: 16px; flex: none; white-space: nowrap; }
.pestanas-qr button img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; }
.pestanas-qr button[aria-selected="true"] { border-color: var(--navy); color: var(--navy); background: #EAF6FA; }
.carril-qr { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carril-qr::-webkit-scrollbar { display: none; }
.lamina-qr { flex: 0 0 100%; scroll-snap-align: center; padding: 0 2px; }
.puntos-qr { display: flex; gap: 6px; justify-content: center; margin: 8px 0 2px; }
.puntos-qr i { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.puntos-qr i.on { width: 22px; border-radius: 999px; background: var(--navy); }
.dos-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.dos-botones .secundario { margin: 0; font-size: 16px; }
.visor-qr .boton, .visor-qr .secundario.con-icono { margin: 8px 0 0; }

/* El marco: logos arriba, «Pague aquí», el negocio encima del QR y la llave. */
.marco-qr { background: var(--navy); border-radius: 20px; overflow: hidden; color: #fff; text-align: center; max-width: 420px; margin: 0 auto; }
.marco-arriba { background: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 12px; border: 2px solid var(--navy); border-bottom: 0; border-radius: 20px 20px 0 0; }
.marco-logo { height: 40px; width: auto; }
.marco-sep { width: 2px; height: 30px; background: #CBD5E1; }
.marco-banco { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 17px; color: var(--texto); }
.marco-banco img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.marco-cuerpo { padding: 10px 14px 12px; }
.marco-paga { font-size: 28px; font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.marco-caja { background: #fff; border-radius: 14px; padding: 8px 8px 6px; border-bottom: 6px solid var(--naranja); }
.marco-negocio { color: var(--navy); font-weight: 900; font-size: 16px; letter-spacing: .5px; text-transform: uppercase; margin: 2px 0 2px; overflow-wrap: anywhere; }
.marco-codigo { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.marco-llave { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--navy); border-radius: 12px; padding: 7px 10px; margin: 10px 0 5px; }
.marco-llave svg { width: 24px; height: 24px; flex: none; }
.marco-llave b { font-size: 24px; letter-spacing: 1.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.marco-sub { font-size: 13px; opacity: .9; }
.marco-qr.mini { border-radius: 12px; }
.marco-qr.mini .marco-arriba { padding: 4px 6px; gap: 6px; border-radius: 12px 12px 0 0; }
.marco-qr.mini .marco-logo { height: 20px; } .marco-qr.mini .marco-sep { height: 16px; }
.marco-qr.mini .marco-banco { font-size: 11px; } .marco-qr.mini .marco-banco img { width: 16px; height: 16px; }
.marco-qr.mini .marco-cuerpo { padding: 5px 6px 7px; } .marco-qr.mini .marco-paga { font-size: 14px; margin-bottom: 4px; }
.marco-qr.mini .marco-negocio { font-size: 9px; } .marco-qr.mini .marco-caja { padding: 4px; border-radius: 8px; border-bottom-width: 3px; }
.marco-qr.mini .marco-llave { padding: 3px 4px; margin: 5px 0 2px; border-radius: 6px; gap: 4px; }
.marco-qr.mini .marco-llave svg { width: 12px; height: 12px; } .marco-qr.mini .marco-llave b { font-size: 12px; letter-spacing: .3px; }
.marco-qr.mini .marco-sub { font-size: 8px; }

/* Pantalla completa: para voltear el celular hacia quien paga. */
#pantalla-qr { position: fixed; inset: 0; z-index: 30; background: var(--navy); display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); overflow-y: auto; }
#pantalla-qr .carril-qr { width: 100%; max-width: min(460px, 62vh); }
.marco-qr.grande { max-width: none; }
.marco-qr.grande .marco-paga { font-size: 34px; }
.marco-qr.grande .marco-llave b { font-size: 28px; }
.desliza-qr { color: #d5eaf3; font-size: 15px; margin: 10px 0 0; }
.cerrar-pantalla { margin-top: 14px; border: 2px solid #fff; color: #fff; background: transparent; border-radius: 999px; padding: 10px 22px; font-size: 17px; font-weight: 800; }
.pago-en-qr:empty { display: none; }
.pago-en-qr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 47, 71, .55); padding: 20px; }
.pago-recibido { background: var(--verde); color: #fff; border-radius: 28px; padding: 26px 30px; text-align: center; display: grid; gap: 4px;
    min-width: min(360px, 90vw); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.pago-recibido .visto { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 50%; background: #fff; color: var(--verde);
    font-size: 48px; font-weight: 900; line-height: 76px; }
.pago-recibido b { font-size: 26px; }
.pago-recibido .monto { font-size: 52px; font-weight: 900; line-height: 1.1; }
.pago-recibido span:not(.monto):not(.visto) { font-size: 22px; }
.pago-recibido .negocio { font-weight: 800; opacity: .9; }

/* Mi negocio: el QR de cada banco activo. */
.franja-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #EAF6FA; border-radius: 12px; padding: 9px 10px; margin-top: 6px; }
.franja-qr > div { flex: 1 1 140px; min-width: 0; display: grid; color: var(--navy); }
.franja-qr > div span { font-size: 14px; overflow-wrap: anywhere; }
.franja-qr .mini-qr { width: 44px; height: 44px; flex: none; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; image-rendering: pixelated; }
.franja-qr .mini-qr .icono-qr { width: 28px; height: 28px; color: #9CA3AF; }
.franja-qr.falta { background: #fff; border: 2px dashed #9CA3AF; }
.franja-qr.falta > div { color: var(--texto); }
/* Mi negocio: cada banco en su tarjeta, con su QR abajo separado por una línea. */
.tarjeta-banco { border: 1px solid var(--borde); border-radius: 12px; margin-top: 8px; overflow: hidden; }
.tarjeta-banco > .fila-banco { border: 0; border-radius: 0; margin: 0; }
/* El nombre, el correo y el estado del banco: un correo largo baja de línea en vez de montarse sobre «Suena»
   (la columna de la cuadrícula no crece más que el recuadro). */
.fila-banco > div:not(.medios-banco) { grid-template-columns: minmax(0, 1fr); }
.tarjeta-banco > .franja-qr { margin: 0; border-radius: 0; border: 0; border-top: 1px dashed var(--borde); padding: 8px 10px; }
.tarjeta-banco > .franja-qr.falta { background: #FAFAFA; }
.tarjeta-banco .franja-qr .mini-qr { width: 40px; height: 40px; }
/* Avisos y botones de cada banco (docs/52). */
.interruptor.maestro { margin-top: 12px; }
.interruptor.maestro.apagado { background: #F3F4F6; color: var(--gris); }
.nota-maestro { font-size: 14px; color: var(--gris); margin: 4px 2px 0; }
.fila-banco > .suena { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; color: var(--verde); flex: none; cursor: pointer; }
.suena input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px; background: #D1D5DB; position: relative; margin: 0; cursor: pointer; transition: background .2s; }
.suena input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.suena input:checked { background: var(--verde); }
.suena input:checked::after { left: 23px; }
.suena input:disabled { opacity: .55; cursor: default; }
.suena.off { color: var(--gris); }
.activo-txt { color: var(--verde); font-weight: 700; }
/* Recuadros SMS y Correo de una tarjeta de Nequi (docs/53). En el celular van debajo del nombre. */
.fila-banco > .medios-banco { display: flex; gap: 6px; flex: none; }
.medio-banco { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 4px 14px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 800; white-space: nowrap; }
.medio-banco svg { flex: none; }
.medio-banco.on { background: color-mix(in srgb, var(--verde) 12%, white); color: var(--verde); border: 1.5px solid color-mix(in srgb, var(--verde) 45%, white); }
.medio-banco.off { background: #F7F8FA; color: var(--gris); border: 1.5px dashed #BFC5CE; cursor: pointer; }
.medio-banco.proceso { background: color-mix(in srgb, var(--naranja) 10%, white); color: var(--naranja-texto); border: 1.5px solid color-mix(in srgb, var(--naranja) 50%, white); cursor: pointer; }
@media (hover: hover) { .medio-banco.off:hover, .medio-banco.proceso:hover { filter: brightness(.96); } }
@media (max-width: 560px) {
    .fila-banco > div:not(.medios-banco) { flex-basis: 110px; }
    .fila-banco > .suena { order: 2; }
    .fila-banco > .medios-banco { order: 3; flex-basis: 100%; padding-left: 50px; }
}
.callado-txt { color: var(--gris); font-weight: 700; }
.tarjeta-banco.callado > .fila-banco { background: #F7F7F8; }
.tarjeta-banco.callado .logo-banco { filter: grayscale(1); opacity: .6; }
.acciones-banco { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 8px 10px; border-top: 1px dashed var(--borde); }
.acciones-banco .pastilla { font-size: 14px; }
.pastilla.rojo-borde { background: #fff; color: var(--rojo); border: 2px solid var(--rojo); padding: 7px 14px; }
.agregar-banco { width: 100%; margin-top: 10px; padding: 12px; border: 2px dashed var(--azul); border-radius: 12px; background: #fff; color: var(--azul); font-size: 17px; font-weight: 800; cursor: pointer; }
.agregar-banco span { font-weight: 600; font-size: 14px; color: var(--gris); margin-left: 6px; }
.pastilla.blanca { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 7px 14px; }
.pasos-qr { padding-left: 22px; margin: 10px 0 14px; display: grid; gap: 8px; }
.subir-qr { display: block; text-align: center; border: 2px dashed #9CA3AF; border-radius: 16px; padding: 18px 12px; font-size: 18px; font-weight: 900; color: var(--navy); background: #fff; }
.caja-qr { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 10px 12px; margin: 10px 0; }
.caja-qr > span { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; flex: none; }
.caja-qr p { margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.caja-qr.bien { background: #E6F6EF; border: 2px solid var(--verde); color: #065f46; } .caja-qr.bien > span { background: var(--verde); }
.caja-qr.mal { background: #FEF2F2; border: 2px solid #FCA5A5; color: #7f1d1d; } .caja-qr.mal > span { background: var(--rojo); }
.caja-qr.revisando { background: color-mix(in srgb, var(--azul) 8%, white); border: 2px solid color-mix(in srgb, var(--azul) 35%, white); color: var(--navy); } .caja-qr.revisando > span { background: var(--navy); }
.antes-despues { display: grid; grid-template-columns: 1fr 20px 1.25fr; align-items: center; gap: 6px; margin: 8px 0; }
.antes-despues figure { margin: 0; text-align: center; }
.antes-despues figure img { width: 100%; border-radius: 8px; border: 1px solid var(--borde); display: block; }
.antes-despues figcaption { font-size: 12px; color: var(--gris); margin-top: 3px; }
.antes-despues > span { font-size: 20px; font-weight: 900; color: var(--navy); text-align: center; }

/* Hoja para imprimir: se arma al tocar «Imprimir» y en pantalla no se ve. */
#impresion { display: none; }
@media print {
    @page { size: letter; margin: 0; }
    body:has(#impresion) > *:not(#impresion) { display: none !important; }
    body { background: #fff; }
    #impresion { display: block; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .hoja-qr { width: 7.6in; height: 10.1in; margin: 0.45in auto 0; background: var(--navy); border-radius: 28px; overflow: hidden; color: #fff; text-align: center; display: flex; flex-direction: column; }
    .hoja-arriba { background: #fff; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 14px 20px; border: 3px solid var(--navy); border-bottom: 0; border-radius: 28px 28px 0 0; }
    .hoja-logo { height: 78px; }
    .hoja-arriba .marco-sep { width: 3px; height: 56px; }
    .hoja-banco { display: flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 900; color: #111827; }
    .hoja-banco img { width: 58px; height: 58px; border-radius: 14px; }
    .hoja-cuerpo { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 16px 40px 14px; }
    .hoja-cuerpo h1 { margin: 0; font-size: 52px; color: #fff; }
    .hoja-sub { font-size: 19px; margin: 4px 0 12px; }
    .hoja-caja { background: #fff; border-radius: 22px; padding: 12px 16px 8px; width: 3.9in; border-bottom: 9px solid var(--naranja); }
    .hoja-caja .marco-negocio { font-size: 26px; }
    .hoja-caja img { width: 100%; display: block; image-rendering: pixelated; }
    .hoja-llave { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--navy); border-radius: 16px; padding: 8px 26px; margin: 14px 0 0; }
    .hoja-llave svg { width: 38px; height: 38px; }
    .hoja-llave b { font-size: 40px; letter-spacing: 3px; }
    .hoja-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; margin: 6px 0 12px; text-align: left; font-size: 16px; line-height: 1.3; }
    .hoja-pasos div { display: flex; gap: 10px; }
    .hoja-pasos span { font-size: 40px; font-weight: 900; line-height: .9; color: #F9B233; }
    .hoja-entidades { background: rgba(255,255,255,.1); border-radius: 16px; padding: 8px 14px; width: 100%; }
    .hoja-entidades p { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
    .hoja-entidades img { width: 40px; height: 40px; border-radius: 10px; background: #fff; margin: 0 4px; }
    .hoja-pie { margin-top: auto; font-size: 13px; opacity: .75; }
}
/* Recordatorio de pago (docs/55): el recuadro del servicio según los días que quedan. */
.servicio-banner.cobro-amarillo{background:#fff4dc;color:#7a4c0e;border:2px solid #f0b54a}
.servicio-banner.cobro-rojo{background:#fde8e6;color:#8f1f14;border:2px solid #e2685b}
.servicio-banner.cobro-vencido{background:#c0392b;color:#fff}
.servicio-banner.cobro-azul{background:#e6f0fa;color:#0d4a80;border:2px solid #8db9e3}
.servicio-banner[class*=cobro-] strong{display:block;font-size:16px;margin-bottom:2px}
.cobro-botones{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.boton-cobro{border:0;border-radius:10px;padding:10px 14px;font-weight:800;font-size:14px;background:var(--azul);color:#fff;cursor:pointer}
.boton-cobro.claro{background:#fff;color:var(--azul);box-shadow:inset 0 0 0 2px var(--azul)}
.cobro-vencido .boton-cobro{background:#fff;color:#c0392b}
.cobro-vencido .boton-cobro.claro{background:transparent;color:#fff;box-shadow:inset 0 0 0 2px #fff}
/* Cupo lleno al entrar: cerrar otra sesión del dueño y entrar aquí (06-10-2026). */
.cerrar-para-entrar { margin-top: 18px; padding: 18px 16px 14px; background: #fff; border-radius: 18px; box-shadow: 0 2px 10px rgba(0,63,93,.10); border: 2px solid #f8cbb9; }
.cpe-titulo { margin: 0 0 6px; font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1.25; }
.cpe-texto { margin: 0 0 14px; font-size: 16px; color: #374151; line-height: 1.45; }
.sesion-abierta { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 0 10px; background: #f3f7fb; border-radius: 14px; }
.sesion-icono { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,63,93,.10); display: grid; place-items: center; }
.sesion-icono svg { width: 24px; height: 24px; fill: var(--navy); }
.sesion-datos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sesion-datos b { font-size: 17px; color: var(--navy); }
.sesion-datos small { font-size: 14px; color: var(--gris); margin-top: 2px; }
.sesion-cerrar { flex: none; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 15px; background: var(--navy); color: #fff; }
.cerrar-para-entrar .boton { margin: 6px 0 8px; }
.cpe-nota { margin: 0; font-size: 13px; color: var(--gris); text-align: center; }
