/* G2b · kit de interfaz de Nora («Clara compacta», Geist Sans). Reconstrucción con datos ficticios. */
.app {
  font-family: var(--f-app); font-size: 14px; line-height: 20px; color: var(--app-texto); letter-spacing: 0;
  background: var(--blanco); border: 1px solid var(--app-linea); border-radius: var(--r-ventana); box-shadow: var(--sombra-ventana);
  overflow: hidden; text-align: left; position: relative;
}
.escenario .app { border-color: rgba(255, 255, 255, .5); box-shadow: var(--sombra-ventana-azul); }
.app h3, .app h4 { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
.app strong { font-weight: 600; }
.app :focus-visible { outline: 2px solid var(--app-azul); outline-offset: 2px; border-radius: 6px; }

.app__cabeza { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--app-linea); background: var(--blanco); }
.app__cabeza .marca-iso { width: 18px; height: 18px; color: var(--azul); }
.app__titulo { font-weight: 600; font-size: 14px; }
.app__sub { color: var(--app-mutado); font-size: 13px; }
.app__cuerpo { padding: 16px; }
.app__fondo { background: var(--app-fondo); }

.app-plan { font-size: 11px; line-height: 18px; letter-spacing: .02em; text-transform: uppercase; font-weight: 600; color: var(--blanco); background: #162033; border-radius: 20px; padding: 0 9px; }

.app-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--app-linea); }
.app-tab { font-size: 13px; font-weight: 500; padding: 0 0 10px; display: inline-flex; align-items: center; color: var(--app-mutado); border-bottom: 2px solid transparent; white-space: nowrap; }
.app-tab[aria-selected="true"], .app-tab.activo { color: var(--app-azul); border-color: var(--app-azul); }

.app-lista { border: 1px solid var(--app-linea); border-radius: 12px; background: var(--blanco); overflow: hidden; }
.app-fila { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--app-linea); background: var(--blanco); }
.app-fila:last-child { border-bottom: 0; }
.app-glifo { width: 32px; height: 32px; display: grid; place-items: center; background: #F3F6FA; border-radius: 8px; color: #66758A; flex-shrink: 0; }
.app-glifo .icono { width: 16px; height: 16px; }
.app-fila__cuerpo { flex: 1; min-width: 0; }
.app-fila__titulo { font-weight: 500; font-size: 14px; line-height: 20px; }
.app-fila__sub { font-size: 13px; line-height: 18px; color: var(--app-mutado); margin-top: 3px; }
.app-fila__accion { display: flex; align-items: center; gap: 14px; flex-shrink: 0; align-self: center; }

.crm { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 7px; border: 1px solid; border-radius: var(--r-chip); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.crm--hubspot { color: var(--hubspot-texto); background: var(--hubspot-fondo); border-color: var(--hubspot-borde); }
.crm--pipedrive { color: var(--pipedrive-texto); background: var(--pipedrive-fondo); border-color: var(--pipedrive-borde); }
.app-ruta { font-size: 13px; color: var(--app-mutado); }

.app-boton { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid #CED8E4; border-radius: var(--r-control); background: var(--blanco); font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap; color: var(--app-texto); }
.app-boton:hover:not(:disabled) { background: #F0F4F8; border-color: #B5C3D4; }
.app-boton--primario { background: var(--app-azul); border-color: var(--app-azul); color: var(--blanco); }
.app-boton--primario:hover:not(:disabled) { background: var(--app-azul-hover); border-color: var(--app-azul-hover); }
.app-boton--quieto { border-color: transparent; background: transparent; }
.app-boton:disabled { cursor: default; }
.app-boton .icono { width: 15px; height: 15px; }

.app-destino { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; border: 1px solid #D6E1EC; border-radius: 9px; background: #F5F8FC; display: grid; gap: 4px; font-size: 13px; line-height: 18px; }
.app-destino__rotulo { font-size: 12px; color: var(--app-mutado); }
.app-destino__linea { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-destino strong { font-size: 14px; font-weight: 500; color: var(--app-azul); }

.app-plazo { font-size: 12px; line-height: 18px; color: #5B6778; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.app-plazo--hoy { color: var(--app-hoy-texto); background: var(--app-hoy-fondo); padding: 2px 8px; border-radius: 5px; }

.app-categoria { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 18px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--app-suave); color: var(--app-azul); white-space: nowrap; }
.app-categoria--espera { background: #F1F5F9; color: #475569; }
.app-categoria--info { background: #F5F3FF; color: #5B3FB0; }

.app-estado { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.app-estado .icono { width: 15px; height: 15px; }
.app-estado--ok { color: var(--ok-texto); }
.app-estado--error { color: var(--error-texto); }
.app-estado--nora { color: var(--cian-profundo); }
.app-sinenviar { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: #7B4816; background: var(--app-hoy-fondo); border-radius: 5px; padding: 1px 7px; }
.app-marcador { background: #FEF3C7; color: #78350F; border-radius: 4px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.app-mono, .app time { font-family: var(--f-mono); font-size: 12px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.app-evidencia { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 11.5px; color: var(--cian-profundo); background: #ECFEFF; border: 1px solid #A5F3FC; padding: 0 6px; border-radius: 5px; line-height: 18px; }

.app-nota { font-size: 12px; line-height: 18px; color: var(--app-mutado); }
.app-error { padding: 10px 12px; color: var(--error-texto); background: var(--error-fondo); border: 1px solid var(--error-borde); border-radius: 8px; font-size: 13px; line-height: 18px; }
.app-segmentado { display: inline-flex; padding: 2px; border-radius: 8px; background: #EEF2F7; gap: 2px; }
.app-segmentado button { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; color: var(--app-mutado); min-height: 28px; }
.app-segmentado button[aria-pressed="true"] { background: var(--blanco); color: var(--app-texto); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }

/* Pequeña barra lateral del producto (solo en escritorio) */
.app-lateral { width: 188px; flex-shrink: 0; border-right: 1px solid var(--app-linea); padding: 14px 10px; display: grid; align-content: start; gap: 2px; background: var(--blanco); }
.app-lateral__grupo { font-size: 11px; line-height: 16px; text-transform: uppercase; letter-spacing: .05em; color: #677382; margin: 12px 8px 4px; font-weight: 500; }
.app-lateral__item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-weight: 500; font-size: 13px; color: var(--app-texto); }
.app-lateral__item .icono { width: 16px; height: 16px; color: #78808B; }
.app-lateral__item.activo { background: var(--app-suave); color: var(--app-azul); font-weight: 600; }
.app-lateral__item.activo .icono { color: var(--app-azul); }
@media (max-width: 760px) { .app-lateral { display: none; } }
