/* ============================================================
   CRM DISTINTO STUDIO — estilo heredado de Distinto (púrpura + amarillo).
   Base copiada de feling-rc/distinto web/assets/estilo.css; lo propio del CRM va al final.
   ============================================================ */
:root {
  --morado: #ba41f7;
  --morado-oscuro: #7b2cbf;
  --morado-suave: #f3ebfc;
  --amarillo: #f2cc2c;
  --negro: #0a0808;
  --fondo: #fbfaf9;
  --tarjeta: #ffffff;
  --linea: #ecebe8;
  --texto: #1c1a1a;
  --texto-2: #6b6866;
  --verde: #1e9e5a;
  --verde-suave: #e5f6ec;
  --ambar: #b07d10;
  --ambar-suave: #fdf3d5;
  --coral: #d64545;
  --coral-suave: #fdeaea;
  --azul: #2563eb;
  --azul-suave: #e8effd;
  --gris-suave: #f1f0ee;
  --sombra: 0 1px 2px rgba(10, 8, 8, 0.05), 0 4px 14px rgba(10, 8, 8, 0.05);
  --radio: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0; background: var(--fondo); color: var(--texto);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--morado-oscuro); text-decoration: none; }
button { font-family: inherit; }

/* ---------- Estructura: barra lateral + contenido ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex: 0 0 216px; background: var(--negro); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { padding: 20px 18px 14px; }
.sidebar .logo img { height: 30px; display: block; }
.sidebar nav { padding: 6px 10px; flex: 1; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 2px 0;
  border-radius: 9px; color: rgba(255,255,255,0.72); font-weight: 600; font-size: 13.5px;
}
.sidebar nav a svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.85; }
.sidebar nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar nav a.activo { background: var(--morado); color: #fff; }
.sidebar .pie { padding: 14px 18px; font-size: 11.5px; color: rgba(255,255,255,0.45); }
.sidebar .pie .usuario { color: rgba(255,255,255,0.85); font-weight: 600; display: block; }
.sidebar .pie a { color: var(--amarillo); font-weight: 600; cursor: pointer; }

.contenido { flex: 1; min-width: 0; padding: 26px 30px 60px; max-width: 1120px; }

/* ---------- Barra superior móvil ---------- */
.topbar {
  display: none; position: sticky; top: 0; z-index: 40; background: var(--negro);
  color: #fff; padding: 10px 14px; align-items: center; gap: 12px;
}
.topbar img { height: 24px; }
.topbar .hamb {
  background: none; border: 0; color: #fff; font-size: 22px; line-height: 1;
  padding: 4px 8px; cursor: pointer;
}
.velo {
  display: none; position: fixed; inset: 0; background: rgba(10,8,8,0.5); z-index: 45;
}
@media (max-width: 900px) {
  .app { display: block; } /* la topbar ocupa TODO el ancho arriba, no una columna */
  .topbar { display: flex; }
  .sidebar {
    position: fixed; left: -240px; top: 0; z-index: 50; transition: left 0.2s ease;
    height: 100vh; width: 232px;
  }
  .sidebar.abierta { left: 0; }
  .velo.visible { display: block; }
  .contenido { padding: 18px 14px 70px; }
  .resumen { gap: 10px; }
  .resumen .valor { font-size: 18px; }
  .cabecera h1 { font-size: 18px; }
}

/* ---------- Encabezados de página ---------- */
.cabecera { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.cabecera h1 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -0.2px; }
.cabecera .sub { color: var(--texto-2); font-size: 13px; width: 100%; margin-top: -6px; }
.cabecera .empuje { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.volver {
  display: inline-flex; align-items: center; gap: 6px; color: var(--texto-2);
  font-weight: 600; font-size: 13px; margin-bottom: 12px;
}
.volver:hover { color: var(--morado-oscuro); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--linea); background: #fff; color: var(--texto);
  padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; transition: all 0.15s ease; text-decoration: none;
}
.btn:hover { border-color: #d8d6d2; box-shadow: var(--sombra); }
.btn.primario { background: var(--morado); border-color: var(--morado); color: #fff; }
.btn.primario:hover { background: var(--morado-oscuro); border-color: var(--morado-oscuro); }
.btn.peligro { color: var(--coral); border-color: #f3caca; }
.btn.chico { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.fantasma { border-color: transparent; background: transparent; color: var(--texto-2); }
.btn.fantasma:hover { background: var(--gris-suave); box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  background: #e7f7ee; color: #128c4b; border-radius: 8px; font-weight: 700; font-size: 12.5px;
}
.btn-wa:hover { background: #d4f1e1; }

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 20px;
}
.tarjeta h2 {
  font-size: 13.5px; font-weight: 800; margin: 0 0 14px; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--texto-2);
}
.tarjeta h2 .empuje { float: right; }

/* Tarjetas resumen (grid) */
.resumen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 900px) { .resumen { grid-template-columns: repeat(2, 1fr); } }
.resumen .tarjeta { padding: 16px 18px; }
.resumen .titulo { font-size: 12px; font-weight: 700; color: var(--texto-2); margin-bottom: 6px; }
.resumen .valor { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.resumen .detalle { font-size: 12px; color: var(--texto-2); margin-top: 4px; }
.resumen .valor.rojo { color: var(--coral); }
.resumen .valor.verde { color: var(--verde); }

/* ---------- Chips de estado ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.chip.pagada    { background: var(--verde-suave); color: var(--verde); }
.chip.parcial   { background: var(--ambar-suave); color: var(--ambar); }
.chip.atrasada  { background: var(--coral-suave); color: var(--coral); }
.chip.pendiente { background: var(--gris-suave); color: var(--texto-2); }
.chip.anulada   { background: var(--gris-suave); color: #a8a5a2; text-decoration: line-through; }
.chip.activo    { background: var(--verde-suave); color: var(--verde); }
.chip.pausado   { background: var(--ambar-suave); color: var(--ambar); }
.chip.cerrado   { background: var(--gris-suave); color: var(--texto-2); }
.chip.en_curso  { background: var(--azul-suave); color: var(--azul); }
.chip.entregado { background: var(--verde-suave); color: var(--verde); }
.chip.morado    { background: var(--morado-suave); color: var(--morado-oscuro); }

/* ---------- Listas / filas ---------- */
.fila {
  display: flex; align-items: center; gap: 14px; padding: 13px 4px;
  border-bottom: 1px solid var(--linea);
}
.fila:last-child { border-bottom: 0; }
.fila .principal { flex: 1; min-width: 0; }
.fila .principal .nombre { font-weight: 700; font-size: 13.5px; }
.fila .principal .apoyo { font-size: 12px; color: var(--texto-2); margin-top: 2px; }
.fila .monto { font-weight: 800; font-size: 14px; white-space: nowrap; }
.fila.clickeable { cursor: pointer; }
.fila.clickeable:hover { background: #fdfcfb; }

/* Logo/avatar del cliente */
.avatar {
  width: 38px; height: 38px; border-radius: 10px; background: var(--gris-suave);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  flex: 0 0 38px; font-weight: 800; color: var(--morado-oscuro); font-size: 15px;
  border: 1px solid var(--linea);
}
.avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.avatar.grande { width: 52px; height: 52px; flex-basis: 52px; border-radius: 13px; font-size: 19px; }

/* Día del calendario */
.dia {
  width: 40px; flex: 0 0 40px; text-align: center; font-weight: 800;
  color: var(--texto-2); font-size: 11px; text-transform: uppercase;
}
.dia b { display: block; font-size: 17px; color: var(--texto); }

/* ---------- Datos apilados (etiqueta arriba, valor abajo) ---------- */
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 18px; }
.dato .etiqueta { font-size: 11px; font-weight: 700; color: var(--texto-2); text-transform: uppercase; letter-spacing: 0.4px; }
.dato .valor { font-weight: 700; font-size: 13.5px; margin-top: 2px; }

/* ---------- Formularios ---------- */
label.campo { display: block; margin-bottom: 13px; }
label.campo span, .campo-titulo {
  display: block; font-size: 12px; font-weight: 700; color: var(--texto-2); margin-bottom: 5px;
}
input[type=text], input[type=number], input[type=date], input[type=password],
input[type=tel], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--linea); border-radius: 9px;
  font: inherit; background: #fff; color: var(--texto);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--morado); box-shadow: 0 0 0 3px var(--morado-suave);
}
textarea { resize: vertical; min-height: 64px; }

/* Botonera de opciones (tipo de movimiento, cuentas) */
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones button {
  border: 1px solid var(--linea); background: #fff; border-radius: 9px;
  padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--texto);
}
.opciones button.elegida {
  background: var(--morado-suave); border-color: var(--morado); color: var(--morado-oscuro);
}

/* ---------- Panel lateral (cajón derecho) ---------- */
.panel-fondo {
  position: fixed; inset: 0; background: rgba(10,8,8,0.45); z-index: 60;
  display: none; justify-content: flex-end;
}
.panel-fondo.visible { display: flex; }
.panel {
  width: min(440px, 94vw); background: #fff; height: 100%; overflow-y: auto;
  padding: 22px 24px 40px; box-shadow: -12px 0 40px rgba(10,8,8,0.18);
  animation: entra 0.18s ease;
}
@keyframes entra { from { transform: translateX(30px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.panel h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.panel .panel-sub { color: var(--texto-2); font-size: 12.5px; margin-bottom: 18px; }
.panel .cerrar {
  float: right; border: 0; background: var(--gris-suave); border-radius: 8px;
  width: 30px; height: 30px; font-size: 15px; cursor: pointer; color: var(--texto-2);
}
.panel .acciones { display: flex; gap: 10px; margin-top: 20px; }
.panel .acciones .btn { flex: 1; padding: 11px; }

/* ---------- Barra de progreso ---------- */
.progreso { height: 7px; background: var(--gris-suave); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progreso i { display: block; height: 100%; background: var(--verde); border-radius: 99px; }
.progreso i.medio { background: var(--amarillo); }

/* ---------- Aviso / toast ---------- */
#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--negro); color: #fff; padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px; z-index: 90; display: none; max-width: 92vw; text-align: center;
}
#toast.error { background: var(--coral); }

/* ---------- Ojito de privacidad ---------- */
.privado .monto, .privado .valor, .privado .oculto-privado { filter: blur(7px); }
.ojito { cursor: pointer; border: 1px solid var(--linea); background: #fff; border-radius: 9px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Login ---------- */
.login-cuerpo {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #16080e 0%, #0a0808 55%, #1d0a2e 100%); padding: 20px;
}
.login-caja {
  width: min(400px, 100%); background: #fff; border-radius: 18px; padding: 34px 32px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.login-caja img.logo { height: 40px; margin-bottom: 8px; }
.login-caja h1 { font-size: 17px; margin: 0 0 2px; font-weight: 800; }
.login-caja .sub { color: var(--texto-2); font-size: 13px; margin-bottom: 22px; }
.login-caja .btn { width: 100%; padding: 12px; margin-top: 6px; font-size: 14px; }
.login-error {
  background: var(--coral-suave); color: var(--coral); font-weight: 600; font-size: 13px;
  padding: 10px 12px; border-radius: 9px; margin-bottom: 14px; display: none;
}
.login-ok {
  background: var(--verde-suave, #e7f6ec); color: var(--verde, #1d7a3e); font-weight: 600; font-size: 13px;
  padding: 10px 12px; border-radius: 9px; margin-bottom: 14px;
}
.login-franja { height: 5px; border-radius: 99px; margin-top: 26px;
  background: linear-gradient(90deg, var(--morado), var(--amarillo)); }

/* ---------- Tablas ligeras ---------- */
.tabla { width: 100%; border-collapse: collapse; }
.tabla th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--texto-2); padding: 8px 10px; border-bottom: 1px solid var(--linea);
}
.tabla td { padding: 11px 10px; border-bottom: 1px solid var(--linea); font-size: 13px; }
.tabla tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .tabla thead { display: none; }
  .tabla, .tabla tbody, .tabla tr, .tabla td { display: block; width: 100%; }
  .tabla tr { border: 1px solid var(--linea); border-radius: 10px; margin-bottom: 10px; padding: 8px 4px; }
  .tabla td { border: 0; padding: 4px 12px; }
  .tabla td[data-t]::before {
    content: attr(data-t); display: block; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; color: var(--texto-2);
  }
}

/* ---------- Miscelánea ---------- */
.vacio { text-align: center; color: var(--texto-2); padding: 34px 10px; font-size: 13px; }
.vacio b { display: block; font-size: 14.5px; color: var(--texto); margin-bottom: 4px; }
.separador { height: 1px; background: var(--linea); margin: 16px 0; }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .dos-columnas { grid-template-columns: 1fr; } }
.pila { display: flex; flex-direction: column; gap: 18px; }
.nota-estimado { color: var(--ambar); font-size: 11px; font-weight: 700; }
.selector-mes { display: flex; align-items: center; gap: 8px; }
.selector-mes b { min-width: 120px; text-align: center; font-size: 13.5px; text-transform: capitalize; }
.selector-mes button {
  border: 1px solid var(--linea); background: #fff; border-radius: 8px; width: 30px; height: 30px;
  cursor: pointer; font-size: 14px; color: var(--texto-2);
}

/* ---------- Filas en pantallas chicas (AL FINAL para ganar la cascada):
   nombre completo en la primera línea, monto/estado/botones bajan solos ---------- */
@media (max-width: 700px) {
  .fila { flex-wrap: wrap; row-gap: 8px; }
  .fila .principal { flex: 1 1 auto; min-width: 52%; }
  .fila .principal .nombre { overflow-wrap: anywhere; }
  .dia { width: 34px; flex-basis: 34px; }
  .panel { padding: 18px 16px 36px; }
}

/* ============================================================
   Propio del CRM (panel de la agencia y "Mi plan")
   ============================================================ */
.chip.suspendida { background: var(--coral); color: #fff; }
.logo-sub, .topbar-sub {
  display: block; color: var(--amarillo); font-size: 11px; font-weight: 800;
  letter-spacing: 0.6px; text-transform: uppercase; margin-top: 6px;
}
.topbar-sub { display: inline; margin: 0; }
.sidebar .pie .pie-enlace { color: rgba(255,255,255,0.7); font-weight: 600; }

/* Término con explicación al tocar (como los subrayados de Kommo) */
.def { border-bottom: 1px dotted var(--texto-2); cursor: help; }
.datos-al { color: var(--texto-2); font-size: 12px; font-weight: 600; }

/* Tarjetas de la fila de arriba */
.resumen .valor small { font-size: 12px; font-weight: 700; color: var(--texto-2); }
.meta { display: flex; align-items: center; gap: 14px; }
.medidor { width: 132px; height: auto; flex: 0 0 132px; }
.meta .valor { font-size: 19px; }

/* Anillos de las tasas */
.tasas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .tasas { grid-template-columns: 1fr; } }
.tasa { text-align: center; }
.anillo { width: 104px; height: 104px; display: block; margin: 6px auto; }
.anillo-num { font: 800 19px 'Montserrat', sans-serif; fill: var(--texto); }
.tasa .pie-tasa { font-size: 12px; color: var(--texto-2); font-weight: 600; }

/* Tablas por mes con filas que se pliegan */
.tabla-mes { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tabla-mes th { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--texto-2);
  padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--linea); }
.tabla-mes th.grupo { text-align: center; color: var(--texto); font-size: 11px; }
.tabla-mes th:first-child, .tabla-mes td:first-child { text-align: left; }
.tabla-mes td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabla-mes tr.este td { background: var(--morado-suave); font-weight: 700; }
.tabla-mes tr.plegable { display: none; }
.tabla-mes.ver-antes tr.antes, .tabla-mes.ver-prox tr.proximo { display: table-row; }
.pliegue { text-align: center; padding: 8px; }
.pliegue button { border: 0; background: none; color: var(--morado-oscuro); font-weight: 700; cursor: pointer; font-size: 12.5px; }
.desplazable { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Barra de herramientas de las listas */
.herramientas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.herramientas input[type=search] { max-width: 260px; }
.herramientas select { width: auto; }
.herramientas .empuje { margin-left: auto; }
input[type=search], input[type=email] {
  width: 100%; padding: 9px 12px; border: 1px solid var(--linea); border-radius: 9px; font: inherit; background: #fff;
}

/* Fila de cuenta que se abre */
.cuenta-detalle { background: #fdfcfb; border-top: 1px dashed var(--linea); padding: 14px 4px 6px; width: 100%; }
.cuenta-detalle .botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flecha { border: 0; background: var(--gris-suave); border-radius: 8px; width: 30px; height: 30px; cursor: pointer;
  color: var(--texto-2); transition: transform 0.15s; flex: 0 0 30px; }
.flecha.abierta { transform: rotate(180deg); }
.vence-rojo { color: var(--coral); font-weight: 700; }
.alerta-raro { background: var(--coral-suave); color: var(--coral); border-radius: 9px; padding: 9px 12px;
  font-weight: 700; font-size: 12.5px; margin-bottom: 10px; }

/* Barras de uso (saldo, espacio, usuarios) */
.uso { margin: 6px 0 14px; }
.uso .linea-uso { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.uso .linea-uso span:last-child { color: var(--texto-2); }
.progreso i.lleno { background: var(--coral); }

/* Clave temporal que se muestra una vez */
.clave-unica { font: 800 20px 'Montserrat', monospace; letter-spacing: 1px; background: var(--amarillo);
  border-radius: 10px; padding: 12px; text-align: center; margin: 10px 0; user-select: all; }
.nota-suave { color: var(--texto-2); font-size: 12px; }

/* Marca del negocio en el menú y campanita */
.marca-negocio { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 15px; }
.marca-negocio img { height: 30px; width: 30px; object-fit: contain; border-radius: 7px; background: #fff; padding: 2px; }
.topbar .marca-negocio img { height: 24px; width: 24px; }
.campana { position: relative; border: 0; background: rgba(255,255,255,0.08); color: #fff; border-radius: 9px;
  width: 34px; height: 34px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.campana svg { width: 18px; height: 18px; }
.campana b { position: absolute; top: -5px; right: -5px; background: var(--coral); color: #fff; border-radius: 99px;
  font-size: 10.5px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px; }
.sidebar .logo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sidebar .logo .logo-sub { width: 100%; margin-top: 2px; }
.sidebar .logo .campana { margin-left: auto; }
.topbar .campana { margin-left: auto; }
.titulo-panel { font-size: 12.5px; font-weight: 800; text-transform: uppercase; color: var(--texto-2); letter-spacing: 0.4px; margin: 0 0 6px; }

/* Primeros pasos */
.paso { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--linea); }
.paso:last-child { border-bottom: 0; }
.paso .marca { width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--linea); flex: 0 0 24px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.paso.hecho .marca { background: var(--verde); border-color: var(--verde); }
.paso.hecho .texto { color: var(--texto-2); text-decoration: line-through; }
.paso.pronto { opacity: 0.55; }
.paso .texto { flex: 1; font-weight: 600; }

/* Matriz de permisos */
.matriz { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.matriz th, .matriz td { padding: 7px 6px; border-bottom: 1px solid var(--linea); text-align: center; }
.matriz th:first-child, .matriz td:first-child { text-align: left; }
.matriz input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--morado); }
.terminos ol { padding-left: 20px; }
.terminos li { margin-bottom: 10px; }
.qr-caja { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 10px; display: inline-block; }
.codigo-input { font: 800 22px 'Montserrat', monospace; letter-spacing: 6px; text-align: center; }
/* Horario: un día por fila, dos turnos */
.horario-dia { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 8px; align-items: center; padding: 7px 0;
  border-bottom: 1px solid var(--linea); }
.horario-dia:last-child { border-bottom: 0; }
.horario-dia .tramo { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--texto-2); }
.horario-dia input[type=time] { width: 100%; min-width: 0; padding: 7px 6px; border: 1px solid var(--linea); border-radius: 8px; font: inherit; }
@media (max-width: 700px) { .horario-dia { grid-template-columns: 1fr; } }

/* ============================================================
   Módulo 1 — Clientes
   ============================================================ */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: -6px 0 18px; border-bottom: 1px solid var(--linea); }
.subnav a { padding: 9px 12px; font-weight: 700; font-size: 13px; color: var(--texto-2); border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; }
.subnav a.activo { color: var(--morado-oscuro); border-bottom-color: var(--morado); }
.subnav a b { background: var(--coral); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 1px 6px; margin-left: 4px; }
.pestanas { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; padding-bottom: 2px; }
.pestanas button { border: 1px solid var(--linea); background: #fff; border-radius: 99px; padding: 7px 13px; font-weight: 700;
  font-size: 12.5px; color: var(--texto-2); cursor: pointer; white-space: nowrap; }
.pestanas button.activa { background: var(--morado); border-color: var(--morado); color: #fff; }
.pestanas button.pronto { opacity: 0.5; }
.etq { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 2px 9px; font-size: 11.5px;
  font-weight: 700; color: #fff; margin: 1px 3px 1px 0; white-space: nowrap; }
.etq button { border: 0; background: rgba(255,255,255,0.25); color: #fff; border-radius: 99px; width: 16px; height: 16px;
  line-height: 14px; padding: 0; cursor: pointer; font-size: 11px; }
.aviso-atender { background: var(--ambar-suave); color: #6b4d06; border-radius: 10px; padding: 9px 12px; font-weight: 700;
  font-size: 13px; margin-bottom: 12px; }
.ficha-cabecera { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.ficha-cabecera .principal { flex: 1; min-width: 200px; }
.ficha-cabecera h1 { font-size: 21px; font-weight: 800; margin: 0 0 4px; overflow-wrap: anywhere; }
.ficha-cabecera .botones { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.foto-cliente { width: 56px; height: 56px; border-radius: 16px; background: var(--morado-suave); color: var(--morado-oscuro);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex: 0 0 56px; overflow: hidden; }
.foto-cliente img { width: 100%; height: 100%; object-fit: cover; }
.dato-fila { display: grid; grid-template-columns: 190px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linea);
  align-items: start; }
.dato-fila:last-child { border-bottom: 0; }
.dato-fila .etiqueta { font-size: 12px; font-weight: 700; color: var(--texto-2); padding-top: 2px; }
.dato-fila .etiqueta small { display: block; font-weight: 500; }
.dato-fila .valor { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.dato-fila .valor .vacio-dato { color: #b5b2ae; font-weight: 500; }
.dato-fila input, .dato-fila select, .dato-fila textarea { font-size: 13.5px; }
@media (max-width: 700px) { .dato-fila { grid-template-columns: 1fr; gap: 3px; } }
.chip.bot { background: var(--azul-suave); color: var(--azul); }
.tapado { color: var(--texto-2); letter-spacing: 1px; }
.linea-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.linea-item:last-child { border-bottom: 0; }
.linea-item .icono { width: 28px; height: 28px; border-radius: 99px; background: var(--gris-suave); display: flex;
  align-items: center; justify-content: center; font-size: 13px; flex: 0 0 28px; }
.linea-item .cuerpo { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.linea-item .cuerpo .apoyo { color: var(--texto-2); font-size: 11.5px; margin-top: 2px; }
.nota-fijada { background: var(--amarillo); color: var(--negro); }
.barra-masiva { position: sticky; bottom: 0; z-index: 30; background: var(--negro); color: #fff; border-radius: 12px;
  padding: 10px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.barra-masiva .btn { background: rgba(255,255,255,0.1); border-color: transparent; color: #fff; }
.barra-masiva b { margin-right: auto; }
.tarjetas-clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tarjeta-cliente { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 13px 14px; cursor: pointer;
  position: relative; }
.tarjeta-cliente:hover { box-shadow: var(--sombra); }
.tarjeta-cliente .nombre { font-weight: 800; font-size: 14px; margin-bottom: 3px; padding-right: 22px; overflow-wrap: anywhere; }
.tarjeta-cliente .apoyo { font-size: 12px; color: var(--texto-2); }
.tarjeta-cliente input[type=checkbox] { position: absolute; top: 12px; right: 12px; }
.tabla tr.clickeable { cursor: pointer; }
.tabla tr.clickeable:hover td { background: #fdfcfb; }
.tabla input[type=checkbox], .tarjeta-cliente input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--morado); }
.filtro-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--morado-suave); color: var(--morado-oscuro);
  border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 700; margin: 0 6px 6px 0; }
.filtro-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-weight: 800; }
.pendientes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pendientes a { background: #fff; border: 1px solid var(--linea); border-radius: 99px; padding: 6px 12px; font-size: 12.5px;
  font-weight: 700; color: var(--texto); }
.pendientes a b { color: var(--coral); }
.lado-a-lado { width: 100%; border-collapse: collapse; font-size: 13px; }
.lado-a-lado th, .lado-a-lado td { padding: 9px 8px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.lado-a-lado td label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; overflow-wrap: anywhere; }
.lado-a-lado tr.iguales { color: var(--texto-2); }
.barras { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; overflow-x: auto; }
.barras .b { flex: 1 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.barras .b i { display: block; width: 100%; background: var(--morado); border-radius: 5px 5px 0 0; min-height: 2px; }
.barras .b span { font-size: 9.5px; color: var(--texto-2); margin-top: 3px; white-space: nowrap; }
.barras .b em { font-style: normal; font-size: 10px; font-weight: 700; }
.ajustes-nav { display: flex; flex-direction: column; gap: 2px; }
.ajustes-nav a { padding: 8px 10px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--texto-2); cursor: pointer; }
.ajustes-nav a.activo { background: var(--morado-suave); color: var(--morado-oscuro); }
.ajustes-grid { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .ajustes-grid { grid-template-columns: 1fr; } .ajustes-nav { flex-direction: row; overflow-x: auto; } .ajustes-nav a { white-space: nowrap; } }
.para-que { color: var(--texto-2); font-size: 12px; margin: -8px 0 12px; }
.interruptor { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; margin: 0 12px 6px 0; }
.interruptor input { width: 17px; height: 17px; accent-color: var(--morado); }
.paso-importar { counter-increment: paso; }
.prueba-msg { background: var(--gris-suave); border-radius: 8px; padding: 6px 9px; font-size: 12px; margin-top: 4px; font-style: italic; }

/* ============================================================
   Módulo 3 — la bandeja de WhatsApp (tres columnas; en celular, una a la vez)
   ============================================================ */
.menu-n { margin-left: auto; background: var(--coral); color: #fff; border-radius: 99px; font-size: 11px;
  padding: 1px 7px; font-weight: 800; }
.contenido.bandeja { max-width: none; padding: 0; height: 100vh; display: flex; overflow: hidden; }
.bj-lista { width: 330px; flex: 0 0 330px; border-right: 1px solid var(--linea); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.bj-lista-cab { padding: 14px 14px 8px; border-bottom: 1px solid var(--linea); }
.bj-lista-cab h1 { font-size: 18px; margin: 0; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.bj-lista-cab .empuje { margin-left: auto; }
.bj-numero { font-size: 11.5px; color: var(--texto-2); margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.punto { width: 8px; height: 8px; border-radius: 99px; display: inline-block; background: #bbb; }
.punto.conectado { background: var(--verde); } .punto.desconectado, .punto.baja { background: var(--coral); } .punto.qr { background: var(--ambar); }
.bj-colas { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; scrollbar-width: none; }
.bj-colas::-webkit-scrollbar { display: none; }
.bj-cola { border: 1px solid var(--linea); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12.5px;
  font-weight: 700; white-space: nowrap; cursor: pointer; color: var(--texto-2); }
.bj-cola b { margin-left: 4px; color: var(--texto); }
.bj-cola.elegida { background: var(--negro); color: #fff; border-color: var(--negro); }
.bj-cola.elegida b { color: #fff; }
.bj-cola.roja b { background: var(--coral); color: #fff; border-radius: 99px; padding: 0 6px; }
.bj-busca { display: flex; gap: 6px; padding: 0 14px 8px; }
.bj-busca input { flex: 1; min-width: 0; }
.bj-filas { flex: 1; overflow-y: auto; min-height: 0; }
.bj-fila { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--gris-suave); cursor: pointer; position: relative; }
.bj-fila:hover { background: #faf8fb; }
.bj-fila.abierta { background: var(--morado-suave); }
.bj-fila .ini { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 99px; background: var(--gris-suave); display: flex;
  align-items: center; justify-content: center; font-weight: 800; color: var(--texto-2); }
.bj-fila .cuerpo { flex: 1; min-width: 0; }
.bj-fila .arriba { display: flex; gap: 6px; align-items: baseline; }
.bj-fila .nombre { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.bj-fila .hora { font-size: 11px; color: var(--texto-2); white-space: nowrap; }
.bj-fila .ultimo { font-size: 12.5px; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bj-fila .ultimo i { font-style: normal; font-weight: 700; color: var(--texto); }
.bj-fila .marcas { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.bj-fila .nl { background: var(--verde); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 0 7px; }
.mini { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--gris-suave); color: var(--texto-2); }
.mini.bot { background: var(--morado-suave); color: var(--morado-oscuro); }
.mini.rojo { background: var(--coral-suave); color: var(--coral); } .mini.ambar { background: var(--ambar-suave); color: var(--ambar); }
.mini.verde { background: var(--verde-suave); color: var(--verde); } .mini.azul { background: var(--azul-suave); color: var(--azul); }
.espera.verde { color: var(--verde); } .espera.ambar { color: var(--ambar); } .espera.rojo { color: var(--coral); font-weight: 800; }

.bj-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #efeae2; min-height: 0; }
.bj-chat-vacio { margin: auto; color: var(--texto-2); text-align: center; padding: 30px; }
.bj-cab { background: #fff; border-bottom: 1px solid var(--linea); padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bj-cab .quien { min-width: 0; flex: 1; }
.bj-cab .quien b { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bj-cab .quien span { font-size: 12px; color: var(--texto-2); }
.bj-reloj { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--verde-suave); color: var(--verde); white-space: nowrap; }
.bj-reloj.cerrada { background: var(--coral-suave); color: var(--coral); } .bj-reloj.por_cerrar { background: var(--ambar-suave); color: var(--ambar); }
.bj-reloj.qr { background: var(--gris-suave); color: var(--texto-2); }
.bj-interruptor { display: flex; border: 1px solid var(--linea); border-radius: 9px; overflow: hidden; }
.bj-interruptor button { border: 0; background: #fff; padding: 6px 11px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--texto-2); }
.bj-interruptor button.on { background: var(--negro); color: #fff; }
.bj-avisos { display: flex; flex-direction: column; gap: 0; }
.bj-banda { padding: 7px 14px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bj-banda.ambar { background: var(--ambar-suave); color: #6b4d06; } .bj-banda.rojo { background: var(--coral-suave); color: #8c2323; }
.bj-banda.morado { background: var(--morado-suave); color: var(--morado-oscuro); } .bj-banda.gris { background: var(--gris-suave); color: var(--texto-2); }
.bj-banda .btn { margin-left: auto; }
.bj-hilo { flex: 1; overflow-y: auto; padding: 14px 4% 10px; min-height: 0; }
.globo-fila { display: flex; margin: 3px 0; }
.globo-fila.sale { justify-content: flex-end; }
.globo { max-width: min(72%, 560px); background: #fff; border-radius: 10px; padding: 7px 10px 5px; box-shadow: 0 1px 1px rgba(0,0,0,0.07);
  position: relative; word-wrap: break-word; white-space: pre-wrap; font-size: 14px; }
.globo-fila.sale .globo { background: #d9fdd3; }
.globo.bot { background: #f3ebfc !important; border-left: 3px solid var(--morado); }
.globo.automatico { background: #eef2f7 !important; }
.globo.nota { background: #fff6c8 !important; border: 1px dashed #e2c94a; }
.globo.borrador { background: #f4f4f4 !important; border: 1px dashed #aaa; color: #555; }
.globo .de { font-size: 11px; font-weight: 800; color: var(--morado-oscuro); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.globo .pie { font-size: 10.5px; color: #667781; text-align: right; margin-top: 2px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.globo .tick.leido { color: #53bdeb; }
.globo .err { color: var(--coral); font-size: 12px; font-weight: 600; margin-top: 4px; white-space: normal; }
.globo .dud { color: var(--ambar); font-size: 12px; font-weight: 600; margin-top: 4px; white-space: normal; }
.globo .acc { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.globo img.foto { max-width: 100%; max-height: 300px; border-radius: 7px; display: block; cursor: zoom-in; }
.globo img.sticker { max-width: 120px; }
.globo audio { width: 260px; max-width: 100%; }
.globo .trans { font-size: 12.5px; color: var(--texto-2); margin-top: 4px; font-style: italic; }
.globo .cita { background: rgba(0,0,0,0.05); border-left: 3px solid var(--morado); border-radius: 6px; padding: 4px 8px; font-size: 12px;
  margin-bottom: 4px; color: var(--texto-2); max-height: 54px; overflow: hidden; }
.globo .reac { position: absolute; bottom: -12px; right: 8px; background: #fff; border-radius: 99px; padding: 0 5px; font-size: 13px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.globo .menu-g { position: absolute; top: 2px; right: 4px; border: 0; background: transparent; cursor: pointer; opacity: 0; font-size: 14px; color: #667781; }
.globo:hover .menu-g { opacity: 1; }
.globo .mapa { width: 260px; max-width: 100%; height: 150px; border: 0; border-radius: 7px; display: block; }
.globo .tarjeta-c { display: flex; gap: 8px; align-items: center; }
.linea-gris { text-align: center; margin: 8px 0; }
.linea-gris span { background: rgba(255,255,255,0.85); border-radius: 8px; padding: 3px 10px; font-size: 11.5px; color: #54656f; }
.dia-sep { text-align: center; margin: 10px 0; } .dia-sep span { background: #fff; border-radius: 8px; padding: 3px 10px; font-size: 11.5px; color: #54656f; box-shadow: 0 1px 1px rgba(0,0,0,0.05); }
.bj-pensando { font-size: 12px; color: var(--morado-oscuro); padding: 2px 14px 6px; }
.bj-caja { background: #f0f2f5; padding: 8px 12px; border-top: 1px solid var(--linea); }
.bj-caja .fila-caja { display: flex; gap: 8px; align-items: flex-end; }
.bj-caja textarea { flex: 1; resize: none; max-height: 140px; min-height: 40px; border-radius: 10px; border: 1px solid var(--linea); padding: 9px 12px; font: inherit; }
.bj-caja textarea.nota { background: #fff6c8; }
.bj-caja .redondo { width: 40px; height: 40px; border-radius: 99px; border: 0; background: #fff; cursor: pointer; font-size: 18px; flex: 0 0 40px; }
.bj-caja .enviar { background: var(--morado); color: #fff; }
.bj-caja .costo { font-size: 11.5px; color: var(--texto-2); margin: 0 0 5px 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.bj-caja .previa { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; }
.bj-caja .previa img { height: 48px; border-radius: 6px; }
.bj-caja .citando { background: #fff; border-left: 3px solid var(--morado); border-radius: 8px; padding: 5px 10px; font-size: 12px; margin-bottom: 6px; display: flex; gap: 8px; }
.bj-sugerencias { background: #fff; border-radius: 10px; box-shadow: var(--sombra); margin-bottom: 6px; max-height: 220px; overflow-y: auto; }
.bj-sugerencias div { padding: 8px 12px; cursor: pointer; font-size: 13px; } .bj-sugerencias div:hover, .bj-sugerencias div.on { background: var(--morado-suave); }
.bj-panel { width: 320px; flex: 0 0 320px; border-left: 1px solid var(--linea); background: #fff; overflow-y: auto; padding: 14px; }
.bj-panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--texto-2); margin: 16px 0 6px; }
.bj-panel .dato-p { font-size: 13px; margin: 3px 0; display: flex; gap: 6px; } .bj-panel .dato-p span { color: var(--texto-2); min-width: 92px; }
.bj-panel .botones { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bj-volver { display: none; border: 0; background: none; font-size: 20px; cursor: pointer; padding: 0 6px 0 0; }
.visor { position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 90; display: flex; align-items: center; justify-content: center; }
.visor img { max-width: 92vw; max-height: 86vh; }
.visor button { position: absolute; background: rgba(255,255,255,0.15); color: #fff; border: 0; font-size: 26px; width: 46px; height: 46px; border-radius: 99px; cursor: pointer; }
.visor .cierra { top: 16px; right: 16px; } .visor .ant { left: 16px; } .visor .sig { right: 16px; }
.menu-flotante { position: fixed; z-index: 80; background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.18); padding: 6px; min-width: 210px; }
.menu-flotante button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.menu-flotante button:hover { background: var(--gris-suave); } .menu-flotante hr { border: 0; border-top: 1px solid var(--linea); margin: 4px 0; }
.arrastre { outline: 3px dashed var(--morado); outline-offset: -8px; }
@media (max-width: 1200px) { .bj-panel { position: fixed; right: 0; top: 0; bottom: 0; z-index: 60; box-shadow: -6px 0 24px rgba(0,0,0,0.15); } .bj-panel.plegado { display: none; } }
@media (max-width: 900px) {
  .contenido.bandeja { height: calc(100vh - 48px); }
  .bj-lista { width: 100%; flex: 1 1 auto; border-right: 0; }
  .bandeja.con-chat .bj-lista { display: none; }
  .bandeja:not(.con-chat) .bj-chat { display: none; }
  .bj-volver { display: inline-block; }
  .bj-panel { width: 100%; }
  .globo { max-width: 86%; }
  .bj-cab { gap: 6px 8px; padding: 8px 10px; }
  .bj-cab .quien { flex: 1 1 calc(100% - 120px); }
  .bj-cab .bj-reloj { order: 5; }
  .bj-cab .bj-interruptor { order: 6; margin-left: auto; }
  .bj-cab .bj-interruptor button { padding: 6px 8px; }
  .bj-banda { padding: 6px 10px; }
  .bj-hilo { padding: 10px 8px; }
}
.ajustes-grid > * { min-width: 0; }

/* Ventas: una línea del editor de cotización (en celular se apila) */
.linea-venta { display: grid; grid-template-columns: minmax(160px, 2fr) minmax(120px, 1.2fr) 80px 110px 36px; gap: 8px; align-items: center; }
.linea-venta select, .linea-venta input { min-width: 0; width: 100%; }
@media (max-width: 700px) { .linea-venta { grid-template-columns: 1fr 1fr; } .linea-venta > :first-child { grid-column: 1 / -1; } }

/* CRM: tablero por embudo (en celular, una columna a la vez) */
.tablero { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding-bottom: 8px; }
.columna { flex: 0 0 270px; background: var(--gris-suave); border-radius: 12px; padding: 8px; min-height: 120px; }
.columna-cab { background: #fff; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.op-tarjeta { background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); font-size: 13px; cursor: grab; }
.op-tarjeta.descartada { opacity: .55; }
.op-tarjeta .op-tit { font-weight: 700; color: var(--texto); text-decoration: none; }
.op-tarjeta .op-pie { margin: 4px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.op-tarjeta .apoyo { font-size: 12px; color: var(--texto-2); margin-top: 2px; }
.tablero-movil { display: none; margin-bottom: 8px; }
@media (max-width: 700px) {
  .tablero-movil { display: block; } .tablero-movil select { width: 100%; }
  .tablero { display: block; } .columna { display: none; } .columna.visible-movil { display: block; }
}
.prioridad { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: #fff; border-left: 4px solid var(--morado); margin-bottom: 8px; text-decoration: none; color: var(--texto); font-weight: 600; }
.prioridad b.n { background: var(--morado); color: #fff; border-radius: 99px; padding: 2px 9px; font-size: 13px; }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.indicadores .ind { background: #fff; border-radius: 10px; padding: 12px; }
.indicadores .ind .v { font-size: 20px; font-weight: 800; }
.indicadores .ind .c { font-size: 11.5px; color: var(--texto-2); }

.barra-filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.barra-filtros select, .barra-filtros input[type=search] { width: auto; max-width: 100%; }
.barra-filtros input[type=search] { flex: 1 1 200px; }
@media (max-width: 700px) { .barra-filtros select, .barra-filtros input[type=search] { flex: 1 1 100%; } }
