/* Estellari Conecta · Panel del revendedor
   Estilo formal y sobrio (como una app de banco). Dos temas con variables: .t-oscuro y .t-acero (BRIEF de diseño).
   Celular primero; de 960 px en adelante, menú lateral y barra superior. */

.t-oscuro {
  --fondo: #0B0F14; --superficie: #121821; --superficie2: #18202B; --borde: #232D3A; --texto: #E6EBF1;
  --texto2: #9AA7B6; --acento: #7AA2D6; --acento-fuerte: #A9C4E8; --acento-suave: rgba(122, 162, 214, 0.14);
  --sobre-acento: #0B0F14; --ok: #57B98A; --ok-suave: rgba(87, 185, 138, 0.12); --aviso: #E3B341;
  --aviso-suave: rgba(227, 179, 65, 0.12); --peligro: #F2766B; --peligro-suave: rgba(242, 118, 107, 0.12);
  --sombra: none;
  /* Lo que va directo sobre el fondo de la página (botones secundarios, opción activa del menú). */
  --sobre-fondo: var(--superficie2);
  --barra: var(--fondo);
  color-scheme: dark;
}
.t-acero {
  --fondo: #EDF0F3; --superficie: #FFFFFF; --superficie2: #F6F8FA; --borde: #D3DAE1; --texto: #15202B;
  --texto2: #4F5D6B; --acento: #2F5D8A; --acento-fuerte: #1F4468; --acento-suave: rgba(47, 93, 138, 0.10);
  --sobre-acento: #FFFFFF; --ok: #1E7A4C; --ok-suave: rgba(30, 122, 76, 0.10); --aviso: #8A5A00;
  --aviso-suave: rgba(138, 90, 0, 0.10); --peligro: #B3261E; --peligro-suave: rgba(179, 38, 30, 0.08);
  --sombra: 0 1px 2px rgba(21, 32, 43, 0.06);
  --sobre-fondo: var(--superficie);
  --barra: var(--superficie);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--fondo);
  color: var(--texto);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acento); }
a:hover { color: var(--acento-fuerte); }
button, input, select, textarea { font-family: inherit; font-size: 14px; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.55; }
input::placeholder, textarea::placeholder { color: var(--texto2); opacity: 1; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.solo-lectores {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
[hidden] { display: none !important; }

/* ---------- Estructura de la app ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.lateral, .barra-esc { display: none; }
.vista {
  padding: 16px 16px calc(72px + 24px + env(safe-area-inset-bottom, 0px));
  max-width: 720px;
  margin: 0 auto;
}
.nav-inf {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  min-height: 72px; padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--barra); border-top: 1px solid var(--borde);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.nav-inf a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 72px; color: var(--texto2); font-size: 12px; line-height: 16px; font-weight: 500; text-decoration: none;
}
.nav-inf .pastilla { width: 48px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.nav-inf a[aria-current='page'] { color: var(--acento); font-weight: 600; }
.nav-inf a[aria-current='page'] .pastilla { background: var(--acento-suave); }

@media (min-width: 960px) {
  .app { display: flex; max-width: 1440px; margin: 0 auto; min-height: 100vh; }
  .nav-inf { display: none; }
  .lateral { display: block; flex: 0 0 232px; border-right: 1px solid var(--borde); }
  .lateral-in { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 24px 16px; }
  .lateral .marca { padding: 8px 12px 28px; }
  .lateral ul { display: flex; flex-direction: column; gap: 4px; }
  .lateral a {
    display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px;
    color: var(--texto2); font-size: 14px; font-weight: 500; text-decoration: none;
  }
  .lateral a:hover { color: var(--texto); }
  .lateral a[aria-current='page'] {
    background: var(--sobre-fondo); color: var(--texto); font-weight: 600; box-shadow: var(--sombra);
  }
  .lateral a[aria-current='page'] svg { color: var(--acento); }
  .principal { flex: 1 1 0; min-width: 0; }
  .barra-esc {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 32px; border-bottom: 1px solid var(--borde);
  }
  .vista { max-width: none; margin: 0; padding: 24px 32px 32px; }
}

/* Marca */
.marca {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texto2);
}

/* ---------- Barra superior de computadora ---------- */
.buscador { position: relative; display: block; flex: 1 1 320px; max-width: 520px; }
.buscador .icono-campo { position: absolute; left: 14px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--texto2); pointer-events: none; }
.buscador input {
  display: block; width: 100%; height: 44px; padding: 0 14px 0 44px; background: var(--superficie); color: var(--texto);
  border: 1px solid var(--borde); border-radius: 10px; box-shadow: var(--sombra);
}
.acciones-barra { display: flex; align-items: center; gap: 12px; position: relative; }
.btn-icono {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; position: relative;
  background: var(--superficie); color: var(--texto); border: 1px solid var(--borde); border-radius: 10px; padding: 0;
  box-shadow: var(--sombra);
}
.btn-icono .globo {
  position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--peligro);
  border: 2px solid var(--superficie);
}
.btn-usuario {
  height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 6px; background: var(--superficie);
  color: var(--texto); border: 1px solid var(--borde); border-radius: 10px; font-weight: 500; box-shadow: var(--sombra);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--superficie2); border: 1px solid var(--borde);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--acento); flex: none;
}
.menu-flotante {
  position: absolute; right: 0; top: 52px; z-index: 30; min-width: 220px; padding: 6px; background: var(--superficie);
  border: 1px solid var(--borde); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.menu-flotante button {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: transparent;
  border: 0; border-radius: 8px; color: var(--texto); font-weight: 500; text-align: left;
}
.menu-flotante button:hover { background: var(--superficie2); }

/* ---------- Encabezados de pantalla ---------- */
.cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cab h1 { font-size: 20px; line-height: 28px; font-weight: 600; }
.cab .sub, .sub { font-size: 14px; line-height: 20px; color: var(--texto2); margin-top: 2px; }
.cab-inicio .nombre-rev { font-size: 16px; line-height: 24px; font-weight: 500; margin-top: 4px; }
.saludo { margin-top: 16px; }
.saludo h1 { font-size: 20px; line-height: 28px; font-weight: 600; }
@media (min-width: 960px) {
  .cab h1, .saludo h1 { font-size: 28px; line-height: 36px; }
  .cab-inicio { display: none; }
  .saludo { margin-top: 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.btn--prim { background: var(--acento); color: var(--sobre-acento); border: 0; }
.btn--prim:hover { color: var(--sobre-acento); filter: brightness(1.06); }
.btn--sec {
  background: var(--superficie2); color: var(--texto); border: 1px solid var(--borde); font-weight: 500; box-shadow: var(--sombra);
}
.btn--sec:hover { color: var(--texto); }
.btn--fondo { background: var(--sobre-fondo); }
.btn--peligro { background: var(--peligro); color: var(--sobre-acento); border: 0; }
.btn--peligro-suave { background: var(--peligro-suave); color: var(--peligro); border: 1px solid var(--peligro); font-weight: 500; }
.btn--texto { background: transparent; color: var(--acento); border: 0; font-weight: 500; }
.btn--ancho { width: 100%; }
.btn--alto { height: 48px; }
.btn--chico { height: 36px; padding: 0 12px; font-size: 13px; }
.btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }
.giro {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: girar 0.8s linear infinite; flex: none;
}
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .giro { animation-duration: 2.4s; } }

/* ---------- Tarjetas y cifras ---------- */
.tarjeta {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; box-shadow: var(--sombra);
}
.tarjeta--pad { padding: 16px; }
.cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.cifra { padding: 16px; display: flex; flex-direction: column; }
.cifra .et { font-size: 12px; line-height: 16px; color: var(--texto2); }
.cifra .valor { font-size: 24px; line-height: 32px; font-weight: 600; margin-top: 8px; }
.cifra .valor-fila { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.cifra .valor-fila .valor { margin-top: 0; }
.cifra .valor-fila .unidad { font-size: 14px; line-height: 20px; color: var(--texto2); }
.cifra .pie { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 4px; }
.cifra .punto-aviso { width: 6px; height: 6px; border-radius: 50%; background: var(--aviso); flex: none; }
.avance { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.barra-avance { flex: 1; height: 4px; border-radius: 2px; background: var(--borde); overflow: hidden; }
.barra-avance > div { height: 100%; background: var(--acento); }
.avance .pct { font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
@media (min-width: 960px) {
  .cifras { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
  .cifra { padding: 20px; }
  .cifra .et, .cifra .pie { font-size: 14px; line-height: 20px; }
  .cifra .valor { font-size: 28px; line-height: 36px; }
  .cifra .valor-fila { gap: 8px; }
  .avance { gap: 12px; }
  .avance .pct { font-size: 14px; line-height: 20px; }
}

/* ---------- Acciones de Inicio ---------- */
.acciones { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.acciones .dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acciones .btn { height: 48px; }
.acciones .dos .btn { padding: 0 8px; }
.saludo .acciones-esc { display: none; }
@media (min-width: 960px) {
  .acciones { display: none; }
  .saludo .acciones-esc { display: flex; flex-wrap: wrap; gap: 8px; }
}

/* ---------- Secciones ---------- */
.seccion { margin-top: 24px; }
.seccion-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seccion-cab h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.enlace-44 { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; text-decoration: none; }
.nota { font-size: 12px; line-height: 16px; color: var(--texto2); }

/* ---------- Insignias de estado ---------- */
.insignia {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px;
  font-size: 12px; font-weight: 500; white-space: nowrap; flex: none;
}
.insignia::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.insignia--al_corriente { background: var(--ok-suave); color: var(--ok); }
.insignia--por_vencer { background: var(--aviso-suave); color: var(--aviso); }
.insignia--vencido { background: var(--peligro-suave); color: var(--peligro); }
.insignia--suspendido { background: var(--superficie2); color: var(--texto2); border: 1px solid var(--borde); padding: 0 7px; }
.insignia--promesa { background: var(--acento-suave); color: var(--acento); }
.insignia--incompleto { background: var(--aviso-suave); color: var(--aviso); }
.insignia--simple::before { display: none; }
.insignia--en_linea { background: var(--ok-suave); color: var(--ok); }
.insignia--sin_conexion { background: var(--peligro-suave); color: var(--peligro); }
.insignia--pendiente { background: var(--aviso-suave); color: var(--aviso); }
.insignia--pagada { background: var(--ok-suave); color: var(--ok); }
.insignia--en_curso { background: var(--acento-suave); color: var(--acento); }
.insignia--por_pagar { background: var(--aviso-suave); color: var(--aviso); }

/* ---------- Listas de clientes ---------- */
.lista { background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; box-shadow: var(--sombra); overflow: hidden; }
.fila { padding: 12px 16px 16px; }
.fila + .fila { border-top: 1px solid var(--borde); }
a.fila-enlace { display: block; color: inherit; text-decoration: none; }
a.fila-enlace:hover { background: var(--superficie2); color: inherit; }
.fila .l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fila .nombre { font-size: 14px; line-height: 20px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.fila .monto { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.fila .l2 { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }
.fila .l3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fila .l3--chica { margin-top: 2px; }
.fila .l3 .txt { font-size: 12px; line-height: 16px; color: var(--texto2); }
.fila .btn { margin-top: 10px; padding: 0 14px; font-weight: 500; }
.lista--vacia, .vacio {
  padding: 32px 16px; text-align: center; color: var(--texto2);
}
.vacio .titulo { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--texto); }
.vacio p { margin-top: 4px; }

/* Cargando */
.cargando { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px 16px; color: var(--texto2); }
.esqueleto { background: linear-gradient(90deg, var(--superficie2), var(--borde), var(--superficie2)); background-size: 200% 100%; animation: brillo 1.4s ease infinite; border-radius: 6px; }
@keyframes brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .esqueleto { animation: none; } }

/* Error en pantalla */
.error-caja {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: var(--peligro-suave); border: 1px solid var(--peligro); color: var(--peligro);
}
.error-caja .msg { color: var(--texto); font-size: 14px; line-height: 20px; }
.error-caja svg { flex: none; margin-top: 1px; }

/* ---------- Pantalla de entrada ---------- */
.entrar { max-width: 440px; margin: 0 auto; padding: 0 24px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.entrar main { padding-top: clamp(48px, 13vh, 112px); }
.entrar .logo {
  width: 56px; height: 56px; border-radius: 14px; background: var(--superficie); border: 1px solid var(--borde); box-shadow: var(--sombra);
  display: flex; align-items: center; justify-content: center; color: var(--acento);
}
.entrar .marca { margin-top: 20px; }
.entrar h1 { margin-top: 4px; font-size: 24px; line-height: 32px; font-weight: 600; }
.entrar .sub { margin-top: 8px; }
.entrar form { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.entrar .pie-entrar { margin-top: auto; padding: 32px 0 24px; }
.privado { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; box-shadow: var(--sombra); }
.privado svg { color: var(--acento); flex: none; margin-top: 1px; }
.privado .t { font-size: 14px; line-height: 20px; font-weight: 500; }
.privado .d { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 4px; }
.sin-acceso { margin-top: 16px; text-align: center; font-size: 12px; line-height: 16px; color: var(--texto2); }

/* ---------- Formularios ---------- */
.campo { display: block; }
.campo .et { display: block; font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 8px; }
.campo .ayuda { display: block; font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 6px; }
.campo .error { display: block; font-size: 12px; line-height: 16px; color: var(--peligro); margin-top: 6px; }
.envoltura { position: relative; display: block; }
.envoltura .ico {
  position: absolute; left: 14px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--texto2); pointer-events: none;
}
.entrada {
  display: block; width: 100%; height: 48px; padding: 0 14px; background: var(--superficie); color: var(--texto);
  border: 1px solid var(--borde); border-radius: 10px; box-shadow: var(--sombra);
}
.envoltura .entrada { padding-left: 44px; }
.envoltura .entrada--ojo { padding-right: 52px; }
.entrada:focus { outline: 2px solid var(--acento); outline-offset: 0; border-color: var(--acento); }
.entrada[aria-invalid='true'] { border-color: var(--peligro); }
.ojo-boton {
  position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--texto2); border: 0; padding: 0;
}

/* ---------- Toast ---------- */
.avisos { position: fixed; left: 0; right: 0; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.aviso {
  max-width: 440px; width: 100%; padding: 12px 16px; border-radius: 10px; background: var(--superficie); color: var(--texto);
  border: 1px solid var(--borde); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); font-size: 14px; line-height: 20px;
  display: flex; align-items: flex-start; gap: 10px; pointer-events: auto;
}
.aviso--ok { border-color: var(--ok); }
.aviso--ok svg { color: var(--ok); }
.aviso--error { border-color: var(--peligro); }
.aviso--error svg { color: var(--peligro); }
.aviso svg { flex: none; margin-top: 1px; }
@media (min-width: 960px) { .avisos { bottom: 24px; } }

/* ---------- Hojas (diálogos) ---------- */
.con-hoja body { overflow: hidden; }
.hoja-fondo {
  position: fixed; inset: 0; z-index: 60; background: rgba(5, 8, 12, 0.6); display: flex; align-items: flex-end; justify-content: center;
}
.hoja {
  width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--superficie); color: var(--texto); border: 1px solid var(--borde); border-bottom: 0;
  border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 4px 20px; }
.hoja-cab h2 { font-size: 18px; line-height: 28px; font-weight: 600; }
.hoja-x {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent;
  color: var(--texto2); border: 0; border-radius: 10px; flex: none;
}
.hoja-cuerpo { padding: 4px 20px calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.hoja-pie { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.texto-hoja { font-size: 14px; line-height: 20px; color: var(--texto2); }
.texto-hoja strong { color: var(--texto); font-weight: 600; }
@media (min-width: 960px) {
  .hoja-fondo { align-items: center; }
  .hoja { border-radius: 16px; border-bottom: 1px solid var(--borde); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4); }
}

/* ---------- Fila de cliente (celular: apilada; computadora: nombre · monto · botón) ---------- */
.fila--cliente {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline;
  grid-template-areas: 'nombre monto' 'l2 l2' 'l3 l3' 'boton boton';
}
.fila--cliente .info { display: contents; }
.fila--cliente .nombre { grid-area: nombre; font-size: 14px; line-height: 20px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.fila--cliente .monto { grid-area: monto; font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; text-align: right; }
.fila--cliente .l2 { grid-area: l2; }
.fila--cliente .l3 { grid-area: l3; }
.fila--cliente .nombre + .l3 { margin-top: 2px; }
.fila--cliente .boton-fila { grid-area: boton; justify-self: start; position: relative; z-index: 1; margin-top: 10px; }
.fila--cliente .enlace-fila { color: inherit; text-decoration: none; }
.fila--cliente .enlace-fila::after { content: ''; position: absolute; inset: 0; }
.fila--cliente:hover { background: var(--superficie2); }
.fila--cliente:focus-within { background: var(--superficie2); }
@media (min-width: 960px) {
  .fila--cliente {
    grid-template-columns: minmax(0, 1fr) 72px 196px; column-gap: 16px; align-items: center; padding: 12px 20px;
    grid-template-areas: 'info monto boton';
  }
  .fila--cliente .info { display: block; grid-area: info; min-width: 0; }
  .fila--cliente .nombre { grid-area: auto; }
  .fila--cliente .l2, .fila--cliente .l3 { grid-area: auto; }
  .fila--cliente .nombre + .l3 { margin-top: 4px; }
  .fila--cliente .boton-fila { margin-top: 0; justify-self: stretch; width: 196px; }
}

/* Cajas informativas */
.info-caja {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: var(--acento-suave); border: 1px solid var(--acento); color: var(--acento);
}
.info-caja .msg { color: var(--texto); font-size: 14px; line-height: 20px; }
.info-caja svg { flex: none; margin-top: 1px; }
.mensaje-vista {
  margin-top: 12px; padding: 12px 14px; background: var(--superficie2); border: 1px solid var(--borde); border-radius: 10px;
  font-size: 14px; line-height: 20px; color: var(--texto); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ---------- Inicio: paneles, gráfica, pagos recientes y red ---------- */
.paneles { display: block; }
.solo-esc { display: none; }
.panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-cab h2, .panel-titulo { font-size: 16px; line-height: 24px; font-weight: 600; }
.lista--panel { margin-top: 0; }
.pago-fila {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--borde);
  color: inherit; text-decoration: none;
}
.pago-fila--enlace:hover { background: var(--superficie2); color: inherit; }
.pago-fila .nombre { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.pago-fila .l2 { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }
.pago-fila .monto { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.pago-der { display: flex; align-items: center; gap: 10px; flex: none; }
.pago-der .conectados { font-size: 14px; line-height: 20px; white-space: nowrap; }
.red-cifra { font-size: 14px; line-height: 36px; color: var(--texto2); }
.red-cifra .gran { font-size: 28px; font-weight: 600; color: var(--texto); }
.grafica-scroll { overflow-x: auto; }
.grafica { min-width: 440px; }
.barras { display: flex; align-items: flex-end; gap: 24px; height: 208px; margin-top: 20px; padding: 0 8px; border-bottom: 1px solid var(--borde); }
.barra-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.barra-valor { font-size: 14px; line-height: 20px; font-weight: 600; }
.barra { width: 100%; max-width: 64px; background: var(--acento); border-radius: 6px 6px 0 0; }
.barra--curso { background: var(--acento-suave); border: 1px dashed var(--acento); border-bottom: 0; }
.meses { display: flex; gap: 24px; padding: 0 8px; margin-top: 8px; }
.mes { flex: 1 1 0; min-width: 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--texto2); }
.mes--actual { color: var(--texto); font-weight: 500; }
.mes .en-curso { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--texto2); }

@media (min-width: 960px) {
  .solo-esc { display: block; }
  .paneles { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
  .paneles > .panel { margin-top: 0; }
  .panel--grande { flex: 2 1 520px; min-width: 0; }
  .panel--chico { flex: 1 1 300px; min-width: 0; }
  .panel { background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; box-shadow: var(--sombra); overflow: hidden; }
  .panel > .panel-cab { min-height: 56px; padding: 6px 20px; }
  .panel > .lista--panel { border: 0; border-radius: 0; box-shadow: none; }
  .panel > .lista--panel .fila:first-child { border-top: 1px solid var(--borde); }
  .panel > .lista--panel .vacio { border-top: 1px solid var(--borde); }
  .lista--panel .fila + .fila { border-top: 1px solid var(--borde); }
}
#aviso-entrar:empty { display: none; }
.vista:focus { outline: none; }

/* ---------- Avisos (campana) ---------- */
.hoja--alta .hoja-cuerpo { min-height: 240px; }
.lista-avisos { display: flex; flex-direction: column; }
.aviso-fila { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--borde); }
.aviso-fila:first-child { border-top: 0; }
.aviso-ico {
  width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--superficie2); border: 1px solid var(--borde); color: var(--texto2);
}
.aviso-fila--nuevo .aviso-ico { background: var(--acento-suave); border-color: var(--acento); color: var(--acento); }
.aviso-txt { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.aviso-sub { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }

/* ---------- Clientes ---------- */
.buscar-clientes { margin-top: 16px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 22px;
  background: var(--superficie); border: 1px solid var(--borde); color: var(--texto); box-shadow: var(--sombra);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.chip .n { font-weight: 600; color: var(--texto2); }
.chip[aria-pressed='true'] { background: var(--acento-suave); border-color: var(--acento); color: var(--acento-fuerte); font-weight: 600; box-shadow: none; }
.chip[aria-pressed='true'] .n { color: var(--acento-fuerte); }
.zona-lista { margin-top: 16px; }
.zona-lista > .nota { margin: 0 0 8px; }
.conteo { margin: 16px 0 8px; text-align: center; }
.conteo:empty { display: none; }
.fila--cliente .monto--tenue { font-weight: 500; color: var(--texto2); }
@media (min-width: 960px) {
  .buscar-clientes { display: none; }
  .filtros, .zona-lista { margin-top: 20px; }
  .lista--tabla .fila--cliente {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) 88px 196px; column-gap: 24px; padding: 14px 20px;
    grid-template-areas: 'nombre l3 monto boton' 'l2 l3 monto boton';
  }
  .lista--tabla .fila--cliente .info { display: contents; }
  .lista--tabla .fila--cliente .nombre { grid-area: nombre; align-self: end; }
  .lista--tabla .fila--cliente .l2 { grid-area: l2; align-self: start; margin-top: 2px; }
  .lista--tabla .fila--cliente .l3 { grid-area: l3; align-self: center; margin-top: 0; }
  .lista--tabla .fila--cliente .monto { grid-area: monto; text-align: right; }
  .lista--tabla .fila--cliente .boton-fila { grid-area: boton; }
}

/* ---------- Ficha del cliente ---------- */
.ficha-cab { display: flex; align-items: center; gap: 12px; }
.ficha-cab .marca { line-height: 16px; }
.ficha-num { font-size: 16px; line-height: 24px; font-weight: 500; }
.btn-volver {
  width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0;
  background: var(--superficie); color: var(--texto); border: 1px solid var(--borde); border-radius: 10px; box-shadow: var(--sombra);
}
.ficha-titulo { margin-top: 16px; }
.ficha-titulo h1 { font-size: 20px; line-height: 28px; font-weight: 600; overflow-wrap: anywhere; }
.ficha-titulo .sub { margin-top: 2px; }
.ficha-estado { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ficha-estado .txt { font-size: 12px; line-height: 16px; color: var(--texto2); }
.deuda { margin-top: 16px; padding: 16px; }
.deuda-et { font-size: 12px; line-height: 16px; color: var(--texto2); }
.deuda-monto { font-size: 32px; line-height: 40px; font-weight: 600; margin-top: 4px; }
.deuda-sub { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 4px; }
.deuda-saldo {
  display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--borde);
}
.deuda-saldo span { font-size: 14px; line-height: 20px; color: var(--texto2); }
.deuda-saldo strong { font-size: 14px; line-height: 20px; font-weight: 600; }
.deuda-abonos { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; line-height: 16px; }
.deuda-abonos span:first-child { color: var(--texto2); }
.deuda-abonos .v { font-weight: 500; white-space: nowrap; }
.deuda-nota { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 8px; }
.ficha-pagar { margin-top: 12px; }
.sec-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; min-height: 44px; }
.sec-cab h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.btn-enlace {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0; background: transparent; border: 0; color: var(--acento);
  font-size: 14px; font-weight: 500;
}
.btn-enlace:hover { color: var(--acento-fuerte); }
.btn-enlace--chico { min-height: 36px; font-size: 12px; line-height: 16px; white-space: nowrap; }

/* Acciones */
.acciones-lista { overflow: hidden; }
.accion {
  width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: transparent;
  color: var(--texto); border: 0; border-top: 1px solid var(--borde); text-align: left;
}
.accion:first-child { border-top: 0; }
.accion:hover:not(:disabled) { background: var(--superficie2); }
.accion-ico {
  width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--superficie2); border: 1px solid var(--borde);
  display: flex; align-items: center; justify-content: center;
}
.accion-txt { flex: 1; min-width: 0; }
.accion-titulo { display: block; font-size: 14px; line-height: 20px; font-weight: 500; }
.accion-hint { display: block; font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }
.accion-flecha { color: var(--texto2); display: flex; flex: none; }
.accion--peligro .accion-titulo, .accion--peligro .accion-ico { color: var(--peligro); }
.accion[aria-busy='true'] { opacity: 0.6; }

/* Datos y conexión */
.datos { padding: 16px; }
.datos-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dato { min-width: 0; }
.dato-et { font-size: 12px; line-height: 16px; color: var(--texto2); }
.dato-val { font-size: 14px; line-height: 20px; font-weight: 500; margin-top: 2px; overflow-wrap: anywhere; }
.dato-val--tenue { color: var(--texto2); font-weight: 400; }
.dato-sub { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; overflow-wrap: anywhere; }
.mosaicos { display: flex; gap: 8px; margin-top: 16px; }
.mosaico {
  position: relative; display: block; height: 132px; min-width: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--borde);
  box-sizing: border-box; color: inherit; text-decoration: none;
}
.mosaico--mapa { flex: 1.35; }
.mosaico--foto { flex: 1; }
.mosaico--vacio { opacity: 0.75; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaico-et {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: var(--superficie);
  border: 1px solid var(--borde); font-size: 12px; line-height: 16px; color: var(--texto2);
}
a.mosaico:hover { border-color: var(--acento); }
.conexion { overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.celda { padding: 12px 16px; min-width: 0; }
.celda--izq { border-left: 1px solid var(--borde); }
.celda--arriba { border-top: 1px solid var(--borde); }
.punto { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.punto--ok { background: var(--ok); }
.punto--aviso { background: var(--aviso); }
.punto--peligro { background: var(--peligro); }

/* Historial de pagos */
.historial { overflow: hidden; }
.pago-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--borde); }
.pago-h:first-child { border-top: 0; }
.ico36 {
  width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--superficie2); border: 1px solid var(--borde);
  display: flex; align-items: center; justify-content: center; color: var(--texto2);
}
.pago-h-txt { flex: 1; min-width: 0; }
.pago-h-fecha { font-size: 14px; line-height: 20px; font-weight: 500; }
.pago-h-origen { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; overflow-wrap: anywhere; }
.pago-h-der { text-align: right; flex: none; }
.pago-h-monto { font-size: 16px; line-height: 24px; font-weight: 600; }
.pago-h-folio { font-size: 12px; line-height: 16px; color: var(--texto2); }
.pago-h--anulado .pago-h-monto, .pago-h--anulado .pago-h-fecha { text-decoration: line-through; color: var(--texto2); }
.ver-todo {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; background: transparent;
  color: var(--acento); border: 0; border-top: 1px solid var(--borde); font-size: 14px; font-weight: 500;
}
.ver-todo:hover { background: var(--superficie2); }

/* Bitácora de cortes (línea de tiempo) */
.bitacora { padding: 16px; }
.tl-fila { display: flex; gap: 12px; }
.tl-eje { display: flex; flex-direction: column; align-items: center; flex: none; width: 10px; }
.tl-punto { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.tl-punto--peligro { background: var(--peligro); box-shadow: 0 0 0 3px var(--peligro-suave); }
.tl-punto--ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-suave); }
.tl-punto--aviso { background: var(--aviso); box-shadow: 0 0 0 3px var(--aviso-suave); }
.tl-punto--acento { background: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); }
.tl-linea { flex: 1; width: 1px; background: var(--borde); margin-top: 6px; }
.tl-texto { flex: 1; min-width: 0; padding-bottom: 16px; }
.tl-texto--ultimo { padding-bottom: 0; }
.tl-titulo { font-size: 14px; line-height: 20px; font-weight: 500; }
.tl-cuando { font-size: 14px; line-height: 20px; }
.tl-detalle { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }
.bitacora-pie {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--borde); font-size: 12px; line-height: 16px; color: var(--texto2);
}
.bitacora-lock { display: flex; align-items: center; gap: 8px; }
.bitacora-lock svg { flex: none; }

@media (min-width: 960px) {
  .ficha-cols { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .ficha-titulo { margin-top: 20px; }
  .ficha-titulo h1 { font-size: 28px; line-height: 36px; }
  .ficha-cols .deuda { margin-top: 20px; }
  .ficha-der .sec-cab:first-child { margin-top: 12px; }
}

/* ---------- Diálogos de acciones ---------- */
.hoja .campo { margin-top: 16px; }
.hoja .texto-hoja + form .campo:first-child, .hoja .texto-hoja + form .opciones { margin-top: 16px; }
.campo .opc { font-weight: 400; color: var(--texto2); }
.entrada--area { height: auto; min-height: 88px; padding: 12px 14px; line-height: 20px; resize: vertical; }
.entrada--select { appearance: none; -webkit-appearance: none; padding-right: 44px; padding-left: 14px; }
.envoltura .entrada--select { padding-left: 14px; }
.envoltura .chev { position: absolute; right: 14px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--texto2); pointer-events: none; }
.error-hoja { margin-top: 16px; }
.opciones { display: flex; flex-direction: column; gap: 8px; }
.opcion {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: var(--superficie2);
  border: 1px solid var(--borde); border-radius: 10px; cursor: pointer; position: relative;
}
.opcion input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.opcion-marca { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--texto2); box-sizing: border-box; position: relative; }
.opcion:has(input:checked) { background: var(--acento-suave); border-color: var(--acento); }
.opcion:has(input:checked) .opcion-marca { border-color: var(--acento); }
.opcion:has(input:checked) .opcion-marca::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--acento); }
.opcion:has(input:focus-visible) { outline: 2px solid var(--acento); outline-offset: 2px; }
.opcion--off { opacity: 0.55; cursor: default; }
.opcion--off input { cursor: default; }
.opcion-txt { display: block; min-width: 0; }
.opcion-titulo { display: block; font-size: 14px; line-height: 20px; font-weight: 500; }
.opcion-extra { font-size: 12px; font-weight: 400; color: var(--texto2); }
.opcion-detalle { display: block; font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }
.vista-previa {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--acento-suave); border: 1px solid var(--acento);
  font-size: 13px; line-height: 18px; color: var(--texto);
}
.zona-ubi, .zona-foto { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--superficie2); border: 1px solid var(--borde); border-radius: 10px; }
.zona-ubi-txt { font-size: 14px; line-height: 20px; }
.zona-ubi-botones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zona-foto-vista {
  min-height: 96px; max-height: 180px; display: flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden;
  background: var(--superficie); border: 1px dashed var(--borde); color: var(--texto2); font-size: 13px;
}
.zona-foto-vista img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.zona-foto-boton { align-self: flex-start; position: relative; cursor: pointer; }
.zona-foto-boton:focus-within { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ---------- Alta exprés ---------- */
a.btn-volver { text-decoration: none; }
.alta-intro { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--texto2); }
.alta-tarjeta { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.alta-tarjeta .entrada { background: var(--superficie2); box-shadow: none; }
.campo-et { font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 8px; }
.campo-et .opc { font-weight: 400; color: var(--texto2); }
.nota--nowrap { white-space: nowrap; }

/* Teléfono con el +52 pegado */
.envoltura--tel .prefijo {
  position: absolute; left: 1px; top: 1px; bottom: 1px; width: 52px; display: flex; align-items: center; justify-content: center;
  color: var(--texto2); border-right: 1px solid var(--borde); pointer-events: none;
}
.envoltura--tel .entrada { padding-left: 66px; }

/* Ubicación y foto */
.alta-ubi { margin-top: 10px; }
.alta-ubi:empty { display: none; }
.alta-ubi-fila { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--texto2); }
.alta-ubi-fila svg { flex: none; }
.alta-ubi-fila--ok { color: var(--ok); }
.alta-ubi-fila--error { color: var(--peligro); align-items: flex-start; }
.alta-foto { display: flex; align-items: flex-start; gap: 12px; }
.alta-foto-vista {
  width: 88px; height: 88px; flex: none; border-radius: 10px; overflow: hidden; background: var(--superficie2); border: 1px solid var(--borde);
}
.alta-foto-vista img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alta-foto-txt { flex: 1 1 0; min-width: 0; }
.alta-foto-estado { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--texto2); }
.alta-foto-estado--ok { color: var(--ok); }
.alta-foto-txt .btn { position: relative; cursor: pointer; height: 40px; }
.alta-foto-txt .btn:focus-within { outline: 2px solid var(--acento); outline-offset: 2px; }
.alta-foto-error { margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--peligro); }

/* Opciones en cuadros: plan, torre, método */
.tiles { display: grid; gap: 8px; }
.tiles--3 { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.tiles--2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile { position: relative; display: block; cursor: pointer; }
.tile-in, .seg-in, .dia-in, .metodo-in {
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--borde); border-radius: 10px;
  background: var(--superficie2); color: var(--texto);
}
.tile-in { position: relative; flex-direction: column; min-height: 64px; padding: 8px 10px; text-align: center; gap: 0; }
.tile--izq .tile-in { align-items: flex-start; text-align: left; padding: 10px 12px; }
.tile-t { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.tile-p { font-size: 14px; line-height: 20px; font-weight: 600; }
.tile-s { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }
.tile-check { position: absolute; top: 8px; right: 8px; display: none; color: var(--acento); }
.tile input:checked + .tile-in .tile-check { display: block; }
.tile--off { cursor: default; }
.tile--off .tile-in { opacity: 0.55; }
.tile input:checked + .tile-in,
.seg input:checked + .seg-in,
.dia input:checked + .dia-in,
.metodo input:checked + .metodo-in {
  background: var(--acento-suave); border-color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento); color: var(--acento-fuerte);
}
.tile input:checked + .tile-in .tile-s { color: var(--acento-fuerte); }
.tile input:focus-visible + .tile-in,
.seg input:focus-visible + .seg-in,
.dia input:focus-visible + .dia-in,
.metodo input:focus-visible + .metodo-in { outline: 2px solid var(--acento); outline-offset: 2px; }

/* PPPoE / IP fija */
.segmentado {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 3px; background: var(--superficie2);
  border: 1px solid var(--borde); border-radius: 12px;
}
.seg { position: relative; display: block; cursor: pointer; }
.seg-in { height: 44px; border-color: transparent; background: transparent; color: var(--texto2); font-weight: 500; }
.seg input:checked + .seg-in { font-weight: 600; }
.copiables { margin-top: 12px; background: var(--superficie2); border: 1px solid var(--borde); border-radius: 10px; overflow: hidden; }
.copiable { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 4px 4px 4px 12px; }
.copiable + .copiable { border-top: 1px solid var(--borde); }
.copiable-txt { min-width: 0; }
.copiable-et { font-size: 12px; line-height: 16px; color: var(--texto2); }
.copiable-val { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.copiable-val--tenue { color: var(--texto2); font-weight: 400; }
.btn-copiar {
  width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; background: transparent;
  color: var(--texto2); border: 0; border-radius: 8px;
}
.btn-copiar:hover:not(:disabled) { color: var(--texto); background: var(--superficie); }

/* Día de pago */
.chips-dia { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.dia { position: relative; display: block; cursor: pointer; }
.dia-in { height: 44px; font-weight: 500; }
.dia input:checked + .dia-in { font-weight: 600; }

/* Primer cobro */
.cobro-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cobro-t { font-size: 14px; line-height: 20px; font-weight: 500; }
.barra-dias { display: grid; grid-template-columns: repeat(var(--n, 30), minmax(0, 1fr)); gap: 3px; height: 16px; margin-top: 14px; }
.barra-dias span { display: block; border-radius: 2px; background: var(--borde); }
.barra-dias span.on { background: var(--acento); }
.barra-dias-leyenda { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.barra-dias-cobran { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--acento-fuerte); text-align: right; }
.cobro-linea {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--borde);
}
.cobro-monto { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.cobro-vacio { padding: 8px 0; font-size: 14px; line-height: 20px; color: var(--texto2); }
.cobro-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.moneda { position: relative; display: block; width: 124px; flex: none; }
.moneda-s { position: absolute; left: 14px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--texto2); pointer-events: none; }
.entrada--monto { height: 44px; padding: 0 14px 0 30px; text-align: right; }
.cobro-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--borde); }
.cobro-total span { font-size: 16px; line-height: 24px; font-weight: 500; }
.cobro-total strong { font-size: 28px; line-height: 36px; font-weight: 600; }
.metodos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.metodo { position: relative; display: block; cursor: pointer; }
.metodo-in { height: 44px; gap: 8px; font-weight: 500; }
.metodo input:checked + .metodo-in { font-weight: 600; }
.cobro-aviso {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: var(--superficie2); border: 1px solid var(--borde);
  border-radius: 10px; font-size: 12px; line-height: 16px; color: var(--texto2);
}
.cobro-aviso svg { flex: none; margin-top: 0; }
.error-alta:empty { display: none; }
.error-alta { margin-top: 16px; }
.alta-notas { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.alta-notas li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 16px; color: var(--texto2); }
.alta-notas svg { flex: none; }

/* Cliente registrado */
.exito { margin-top: 16px; padding: 24px 16px; text-align: center; }
.exito-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ok-suave); color: var(--ok);
}
.exito-nombre { font-size: 20px; line-height: 28px; font-weight: 600; overflow-wrap: anywhere; }
.exito-router {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 10px;
  background: var(--superficie2); border: 1px solid var(--borde); font-size: 13px; line-height: 18px; text-align: left; color: var(--texto2);
}
.exito-router svg, .exito-router .giro { flex: none; }
.exito-router--ok { background: var(--ok-suave); border-color: transparent; color: var(--ok); }
.exito-router--error { background: var(--peligro-suave); border-color: transparent; color: var(--peligro); align-items: flex-start; }
.exito-cobro { gap: 12px; }
.exito-fila { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; }
.exito-fila--total { padding-top: 12px; border-top: 1px solid var(--borde); font-size: 16px; line-height: 24px; font-weight: 600; }
.exito-botones { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

@media (min-width: 960px) {
  .alta { max-width: 1040px; }
  .alta--exito { max-width: 560px; }
  .alta .ficha-num { font-size: 24px; line-height: 32px; font-weight: 600; }
  .alta-intro { max-width: 560px; }
  .alta-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 32px; align-items: start; }
  .alta-der { position: sticky; top: 16px; }
}

/* ---------- Cobros ---------- */
.cobros-resumen { margin-top: 16px; }
.cobros-origen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--borde); }
.cobros-origen-col { padding: 12px 8px 0 0; min-width: 0; }
.cobros-origen-col--persona { padding: 12px 0 0 16px; border-left: 1px solid var(--borde); }
.cobros-origen-et { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--texto2); }
.cobros-origen-et--tienda svg { color: var(--acento); }
.cobros-origen-monto { font-size: 16px; line-height: 24px; font-weight: 600; margin-top: 2px; }
.cobros-registrar { margin-top: 12px; }
.periodos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.periodo {
  height: 44px; padding: 0 8px; border-radius: 10px; background: var(--superficie); color: var(--texto); border: 1px solid var(--borde);
  box-shadow: var(--sombra); font-weight: 500;
}
.periodo[aria-pressed='true'] { background: var(--acento-suave); color: var(--acento); border-color: var(--acento); font-weight: 600; box-shadow: none; }
.cobros-total { font-size: 14px; line-height: 20px; color: var(--texto2); white-space: nowrap; }
.cobros-rango { margin: -6px 0 8px; }
.pg-fila { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; color: inherit; text-decoration: none; }
.pg-fila + .pg-fila { border-top: 1px solid var(--borde); }
a.pg-fila:hover { background: var(--superficie2); color: inherit; }
.pg-av {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--superficie2); border: 1px solid var(--borde); display: flex;
  align-items: center; justify-content: center; color: var(--texto2);
}
.pg-av--tienda { color: var(--acento); }
.pg-txt { flex: 1 1 0; min-width: 0; display: block; }
.pg-txt > span { display: block; }
.pg-nombre { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.pg-l2, .pg-l3 { font-size: 12px; line-height: 16px; color: var(--texto2); }
.pg-l2 { margin-top: 2px; }
.pg-der { flex: none; text-align: right; margin-top: -2px; }
.pg-monto { display: block; font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.pg-abono {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; margin-top: 4px; border-radius: 11px; background: var(--superficie2);
  border: 1px solid var(--borde); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--texto2);
}
.cobros-nota { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--texto2); }
.cobros-nota svg { flex: none; margin-top: 1px; }
.cobros-nota p { font-size: 12px; line-height: 16px; text-wrap: balance; }
@media (min-width: 960px) {
  .cobros-cols { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .cobros-resumen { margin-top: 24px; }
  .cobros-registrar { display: none; }
  .cobros-izq { position: sticky; top: 16px; }
  .cobros-der .sec-cab { margin-top: 12px; }
  .pg-fila { align-items: center; padding: 14px 20px; }
  .pg-txt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 24px; align-items: center; }
  .pg-nombre { grid-column: 1; grid-row: 1; }
  .pg-l2 { grid-column: 1; grid-row: 2; }
  .pg-l3 { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; line-height: 20px; }
  .pg-der { margin-top: 0; min-width: 96px; }
}

/* ---------- Registrar pago ---------- */
.reg-titulo { font-size: 20px; line-height: 28px; font-weight: 600; }
.reg-titulo:focus { outline: none; }
.reg-sec { margin-top: 20px; }
.reg-av {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--superficie2); border: 1px solid var(--borde); display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--acento);
}
.reg-av--grande { width: 40px; height: 40px; font-size: 14px; }
.reg-cliente { padding: 16px; }
.reg-cliente-fila { display: flex; align-items: center; gap: 12px; }
.reg-cliente-txt { flex: 1 1 0; min-width: 0; }
.reg-cliente-nombre { font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.reg-cliente-sub { font-size: 12px; line-height: 16px; color: var(--texto2); }
.reg-cambiar { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; text-decoration: none; }
.reg-deuda { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--borde); }
.reg-deuda-et { font-size: 12px; line-height: 16px; color: var(--texto2); }
.reg-deuda-monto { font-size: 24px; line-height: 32px; font-weight: 600; margin-top: 2px; }
.reg-deuda-der { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.reg-deuda-sub { font-size: 12px; line-height: 16px; color: var(--texto2); }

.reg-opciones { display: flex; flex-direction: column; gap: 8px; }
.reg-op { position: relative; display: block; cursor: pointer; }
.reg-op-in {
  display: flex; align-items: flex-start; gap: 12px; min-height: 64px; padding: 14px 16px; border-radius: 12px; background: var(--superficie);
  border: 1px solid var(--borde); box-shadow: var(--sombra);
}
.reg-radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--texto2); position: relative; }
.reg-op-txt { flex: 1 1 0; min-width: 0; display: block; }
.reg-op-txt > span { display: block; }
.reg-op-t { font-size: 14px; line-height: 20px; font-weight: 500; }
.reg-op-d { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; text-wrap: balance; }
.reg-op-monto { flex: none; font-size: 16px; line-height: 24px; font-weight: 600; margin-top: -2px; }
.reg-op input:checked + .reg-op-in { background: var(--acento-suave); border-color: var(--acento); box-shadow: none; }
.reg-op input:checked + .reg-op-in .reg-radio { border: 2px solid var(--acento); }
.reg-op input:checked + .reg-op-in .reg-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--acento); }
.reg-op input:checked + .reg-op-in .reg-op-t { font-weight: 600; }
.reg-op input:focus-visible + .reg-op-in { outline: 2px solid var(--acento); outline-offset: 2px; }
.reg-op input:disabled + .reg-op-in { opacity: 0.55; cursor: default; }
.reg-abono { margin-top: 12px; }
.reg-abono .campo .et { margin-bottom: 8px; }
.moneda--ancha { width: 100%; }
.reg-abono .entrada--monto { text-align: left; font-size: 16px; font-weight: 500; }
.reg-abono .vista-previa { margin-top: 12px; }
.metodos--reg .metodo-in { height: 48px; background: var(--superficie); box-shadow: var(--sombra); }
.metodos--reg .metodo input:checked + .metodo-in { background: var(--acento-suave); color: var(--acento); box-shadow: none; }
.reg-info { overflow: hidden; }
.reg-info-fila { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.reg-info-fila + .reg-info-fila { border-top: 1px solid var(--borde); }
.reg-info-ico { display: flex; flex: none; margin-top: 1px; color: var(--texto2); }
.reg-info-ico--acento { color: var(--acento); }
.reg-info-t { font-size: 14px; line-height: 20px; font-weight: 500; }
.reg-info-d { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; text-wrap: balance; }
.reg-cta {
  position: sticky; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 20px -16px 0; padding: 12px 16px;
  background: var(--fondo); border-top: 1px solid var(--borde);
}
.reg-cta .error-alta { margin: 0 0 12px; }
.reg-resultado { font-size: 14px; line-height: 20px; }

/* Elegir al cliente */
.reg-lista { margin-top: 12px; }
.reg-lista-cab { margin: 0 0 8px; }
.reg-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; background: transparent; color: inherit; border: 0;
  text-align: left; text-decoration: none; cursor: pointer;
}
.reg-pick + .reg-pick { border-top: 1px solid var(--borde); }
.reg-pick:hover { background: var(--superficie2); color: inherit; }
.reg-pick-txt { flex: 1 1 0; min-width: 0; display: block; }
.reg-pick-txt > span { display: block; }
.reg-pick-nombre { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.reg-pick-l2 { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; overflow-wrap: anywhere; }
.reg-pick-der { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.reg-pick-monto { font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.reg-pick-monto--tenue { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--texto2); }

@media (min-width: 960px) {
  .registrar { max-width: 1040px; }
  .registrar.alta--exito { max-width: 560px; }
  .registrar .reg-titulo { font-size: 24px; line-height: 32px; }
  .reg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto auto 1fr; grid-template-areas: 'izq der' 'izq cta' 'izq .'; gap: 0 32px; align-content: start; align-items: start; }
  .reg-izq { grid-area: izq; }
  .reg-der { grid-area: der; }
  .reg-cta { grid-area: cta; position: static; margin: 16px 0 0; padding: 0; background: transparent; border-top: 0; }
  .reg-lista { max-width: 640px; }
}

/* ===== Red ===== */
.red-lista { display: flex; flex-direction: column; gap: 12px; }
.torre { padding: 16px; }
.torre-cab { display: flex; align-items: center; gap: 12px; }
.torre-ico {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: var(--superficie2); border: 1px solid var(--borde); color: var(--acento);
}
.torre-tit { flex: 1 1 0; min-width: 0; }
.torre-nombre { font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.torre-ver { font-size: 12px; line-height: 16px; color: var(--texto2); }
.torre-datos { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 8px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--borde); }
.torre-datos dt { font-size: 12px; line-height: 16px; color: var(--texto2); }
.torre-datos dd { margin: 4px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.torre-nota { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--texto2); }
.torre-nota svg { flex: none; margin-top: 1px; }
.torre-nota--alerta { color: var(--peligro); }
.torre-pie { margin-top: 8px; display: flex; justify-content: flex-end; }
.red-acciones { margin-top: 16px; padding: 0; }
.red-bloque { padding: 16px; }
.red-bloque + .red-bloque { border-top: 1px solid var(--borde); }
.red-bloque-t { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; font-weight: 600; }
.red-bloque-t svg { color: var(--acento); }
.red-bloque-d { font-size: 14px; line-height: 20px; color: var(--texto2); margin: 8px 0 16px; }
.hoja--red .red-script-caja { margin-top: 12px; }
.red-script {
  margin: 0 0 12px; padding: 12px; max-height: 220px; overflow: auto; border-radius: 10px; border: 1px solid var(--borde);
  background: var(--superficie2); color: var(--texto); font: 12px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.red-renglon { max-height: none; font-size: 13px; line-height: 20px; user-select: all; }
.red-pasos { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.red-pasos li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 22px; }
.red-paso-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--superficie2); color: var(--acento); border: 1px solid var(--borde); }
.red-pasos + .nota { margin-top: 12px; }
.red-aviso { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--aviso); }
.red-aviso svg { flex: none; margin-top: 1px; }
.red-espera, .red-progreso { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--texto2); }
.red-espera-ok { display: inline-flex; color: var(--ok); }
.red-progreso { padding: 16px 0 4px; }
.red-listo { text-align: center; padding: 8px 0 0; }
.red-listo-ico { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-suave); color: var(--ok); }
.red-listo-t { font-size: 16px; line-height: 24px; font-weight: 600; }
.red-listo .texto-hoja, .red-listo .nota { margin-top: 8px; }

@media (min-width: 960px) {
  .red-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 24px; align-items: start; }
  .red-acciones { margin-top: 12px; position: sticky; top: 16px; }
  .red-acciones #red-agregar { display: none; }
  .red-acciones .red-bloque:first-child { display: none; }
  .red-acciones .red-bloque + .red-bloque { border-top: 0; }
  .torre-datos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== Ajustes y Más ===== */
.ajustes .aj-sec { margin-top: 24px; }
.ajustes .aj-sec > h2 { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 8px; }
.aj-nota { margin-top: 8px; }
.aj-datos .aj-dato { padding: 12px 16px; }
.aj-datos .aj-dato + .aj-dato { border-top: 1px solid var(--borde); }
.aj-dato-et { font-size: 12px; line-height: 16px; color: var(--texto2); }
.aj-dato-v { font-size: 16px; line-height: 24px; font-weight: 500; margin-top: 2px; overflow-wrap: anywhere; }
.aj-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 16px; }
.aj-plan + .aj-plan { border-top: 1px solid var(--borde); }
.aj-plan-txt { display: block; min-width: 0; }
.aj-plan-nombre { display: block; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.aj-plan-sub { display: block; font-size: 12px; line-height: 16px; color: var(--texto2); }
.aj-precio { display: flex; align-items: center; justify-content: flex-end; gap: 2px; width: 112px; height: 48px; padding: 0 14px; border-radius: 10px; background: var(--superficie2); border: 1px solid var(--borde); }
.aj-precio:focus-within { outline: 2px solid var(--acento); border-color: var(--acento); }
.aj-precio-s { color: var(--texto2); font-weight: 600; }
.aj-precio-in { flex: 0 1 auto; field-sizing: content; min-width: 3ch; max-width: 100%; background: transparent; border: 0; outline: 0; text-align: right; font-size: 16px; font-weight: 600; padding: 0; }
.aj-plan-error { grid-column: 1 / -1; font-size: 12px; line-height: 16px; color: var(--peligro); }
.aj-grupo { margin-top: 8px; }
.aj-grupo + .aj-grupo { margin-top: 12px; }
.aj-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.aj-fila + .aj-fila { border-top: 1px solid var(--borde); }
.aj-fila-txt { min-width: 0; flex: 1 1 0; }
.aj-fila-t { font-size: 14px; line-height: 20px; font-weight: 500; }
.aj-fila-d { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }
.aj-fila--off { opacity: 0.5; }
.aj-aviso { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--borde); font-size: 13px; line-height: 18px; color: var(--aviso); }
.aj-aviso[hidden] { display: none; }
.aj-aviso svg { flex: none; margin-top: 1px; }
.interruptor { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border-radius: 16px; border: 1px solid var(--borde); background: var(--superficie2); cursor: pointer; }
.interruptor-bola { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--texto2); transition: transform 0.15s; }
.interruptor[aria-checked='true'] { background: var(--acento); border-color: var(--acento); }
.interruptor[aria-checked='true'] .interruptor-bola { transform: translateX(20px); background: var(--sobre-acento); }
.interruptor:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .interruptor-bola { transition: none; } }
.aj-sel { position: relative; display: block; flex: none; }
.aj-sel select {
  appearance: none; -webkit-appearance: none; height: 44px; min-width: 128px; padding: 0 36px 0 14px; border-radius: 10px;
  background: var(--superficie2); color: var(--texto); border: 1px solid var(--borde); font-weight: 500;
}
.aj-sel select:focus { outline: 2px solid var(--acento); border-color: var(--acento); }
.aj-sel .chev { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--texto2); pointer-events: none; }
.aj-mensaje { padding: 16px; }
.aj-mensaje-et { font-size: 12px; line-height: 16px; color: var(--texto2); }
.aj-mensaje-caja { margin: 8px 0 12px; padding: 14px; border-radius: 10px; background: var(--superficie2); border: 1px solid var(--borde); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; white-space: pre-wrap; }
.aj-var { background: var(--acento-suave); color: var(--acento); border-radius: 4px; padding: 0 4px; font-weight: 500; }
.aj-mensaje .btn { margin-top: 12px; }
.aj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.aj-chip { height: 36px; padding: 0 12px; border-radius: 18px; background: var(--superficie2); border: 1px solid var(--borde); color: var(--acento); font-weight: 500; font-size: 13px; }
.aj-temas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aj-tema { position: relative; display: block; cursor: pointer; }
.aj-tema-in { display: block; padding: 12px; border-radius: 12px; border: 1px solid var(--borde); background: var(--superficie); box-shadow: var(--sombra); }
.aj-tema input:checked + .aj-tema-in { border-color: var(--acento); background: var(--acento-suave); }
.aj-tema input:focus-visible + .aj-tema-in { outline: 2px solid var(--acento); outline-offset: 2px; }
.aj-mini { display: flex; flex-direction: column; gap: 6px; height: 88px; padding: 10px; border-radius: 8px; }
.aj-mini i { display: block; height: 10px; border-radius: 3px; }
.aj-mini i:nth-child(1) { width: 45%; }
.aj-mini i:nth-child(2) { height: 26px; }
.aj-mini i:nth-child(3) { width: 70%; }
.aj-mini--oscuro { background: #0b0e13; } .aj-mini--oscuro i { background: #2a3140; } .aj-mini--oscuro i:nth-child(2) { background: #6f9bd6; }
.aj-mini--acero { background: #ecf0f4; } .aj-mini--acero i { background: #c9d2dc; } .aj-mini--acero i:nth-child(2) { background: #2b5b8a; }
.aj-tema-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.aj-tema-t { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.aj-tema-d { display: block; font-size: 12px; line-height: 16px; color: var(--texto2); }
.aj-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--texto2); position: relative; }
.aj-tema input:checked + .aj-tema-in .aj-radio { border-color: var(--acento); }
.aj-tema input:checked + .aj-tema-in .aj-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--acento); }
.aj-cuenta, .mas-cuenta { padding: 16px; }
.mas-cuenta { margin-top: 16px; }
.aj-cuenta-fila { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.aj-cuenta-nombre { font-size: 16px; line-height: 24px; font-weight: 500; }
.aj-cuenta-correo { font-size: 12px; line-height: 16px; color: var(--texto2); overflow-wrap: anywhere; }
.aj-cta {
  position: sticky; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 24px -16px 0; padding: 12px 16px;
  background: var(--fondo); border-top: 1px solid var(--borde);
}
.aj-cta .error-alta { margin: 0 0 12px; }
.aj-cta .btn:disabled { opacity: 0.5; }
.mas-lista { margin-top: 16px; }
.mas-fila { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
.mas-fila + .mas-fila { border-top: 1px solid var(--borde); }
.mas-fila:hover { background: var(--superficie2); color: inherit; }
.mas-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--superficie2); border: 1px solid var(--borde); color: var(--acento); }
.mas-txt { flex: 1 1 0; min-width: 0; }
.mas-txt > span { display: block; }
.mas-t { font-size: 16px; line-height: 24px; font-weight: 500; }
.mas-d { font-size: 12px; line-height: 16px; color: var(--texto2); }
.mas-flecha { color: var(--texto2); display: flex; }
@media (min-width: 960px) {
  .ajustes { max-width: 1040px; }
  .ajustes .reg-titulo { font-size: 24px; line-height: 32px; }
  .aj-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .aj-cta { position: static; margin: 24px 0 0; padding: 0; background: transparent; border-top: 0; max-width: 320px; margin-left: auto; }
  .mas-lista, .mas-cuenta { max-width: 480px; }
}

/* ===== Liquidaciones ===== */
.liq-hero { margin-top: 16px; padding: 16px; }
.liq-hero + .liq-hero { margin-top: 12px; }
.liq-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.liq-et { font-size: 12px; line-height: 16px; color: var(--texto2); }
.liq-fecha { font-size: 16px; line-height: 24px; font-weight: 600; margin-top: 2px; }
.liq-total { font-size: 32px; line-height: 40px; font-weight: 600; margin-top: 16px; }
.liq-sub { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 4px; }
.liq-cuentas { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--borde); }
.liq-fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; }
.liq-fila-t { font-size: 14px; line-height: 20px; }
.liq-fila-s { font-size: 12px; line-height: 16px; color: var(--texto2); margin-top: 2px; }
.liq-fila-v { font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.liq-fila--total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--borde); align-items: center; }
.liq-fila--total .liq-fila-t, .liq-fila--total .liq-fila-v { font-size: 16px; line-height: 24px; font-weight: 600; }
.liq-spei { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--superficie2); border: 1px solid var(--borde); }
.liq-spei-ico { flex: none; display: flex; color: var(--acento); }
.liq-spei-t { font-size: 14px; line-height: 20px; font-weight: 600; }
.liq-spei-d { font-size: 12px; line-height: 16px; color: var(--texto2); }
.liq-nota { margin: 12px 0 16px; }
.liq-detalle { margin-top: 12px; }
.liq-aviso { margin-top: 8px; }
.liq-pagadas { display: flex; flex-direction: column; gap: 12px; }
.liq-pagada { padding: 0; overflow: hidden; }
.liq-pagada-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.liq-pagada-fecha { font-size: 16px; line-height: 24px; font-weight: 600; }
.liq-pagada-total { font-size: 16px; line-height: 24px; font-weight: 600; }
.liq-pagada-med { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.liq-mensualidad { display: flex; justify-content: space-between; gap: 12px; margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px; background: var(--superficie2); border: 1px solid var(--borde); font-size: 12px; line-height: 16px; color: var(--texto2); }
.liq-comprobante { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 0; border-top: 1px solid var(--borde); background: transparent; color: var(--acento); font-weight: 500; cursor: pointer; }
.liq-comprobante:hover { background: var(--superficie2); }
.liq-sin-comprobante { padding: 12px 16px; border-top: 1px solid var(--borde); text-align: center; }
@media (min-width: 960px) {
  .liquidaciones { max-width: 1040px; }
  .liquidaciones .reg-titulo { font-size: 24px; line-height: 32px; }
  .liq-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 32px; align-items: start; }
  .liq-hero { margin-top: 16px; }
  .liq-der .sec-cab { margin-top: 16px; }
}

/* ---------- Nota del pago, editar negocio, conectados en vivo ---------- */
.pg-nota { display: block; font-size: 12px; line-height: 16px; color: var(--texto2); font-style: italic; overflow-wrap: anywhere; }
@media (min-width: 960px) { .pg-nota { grid-column: 1; } }
.aj-editar-negocio { margin-top: 12px; }
.torre-pie { flex-wrap: wrap; gap: 4px 8px; }
.red-vivo { margin-top: 12px; padding: 0; overflow: hidden; }
.red-vivo-cab { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.red-vivo-t { font-weight: 600; font-size: 16px; line-height: 24px; }
.red-vivo-fila { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--borde); color: inherit; text-decoration: none; min-height: 44px; }
.red-vivo-nombre { font-size: 16px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; }
.red-vivo-l2 { font-size: 12px; line-height: 16px; color: var(--texto2); }
.red-vivo-vacio { padding: 0 16px 14px; }
