/* Panel de la administradora y portal del residente.
   Valores de diseno/pantallas/panel-administradora.dc.html y portal-residente.dc.html */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Urbanist, sans-serif; color: #2b3240; }
a { color: #2c4fa3; }
button { font-family: Urbanist, sans-serif; }

.pop { animation: pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } }

/* ---------- Componentes comunes ---------- */
.tarjeta { background: #ffffff; border: 1px solid #e6e9f0; border-radius: 20px; }
.tarjeta--destacada { border: 1.5px solid #8fb3e8; }
.titulo-tarjeta { margin: 0; font-size: 17px; font-weight: 900; color: #0f1733; }
.subtitulo { margin: 0; font-size: 15px; color: #4a5263; }
.etiqueta { font-size: 13px; font-weight: 700; color: #2b3240; }
.ayuda { font-size: 13px; color: #6b7383; line-height: 1.45; }
.texto-error { font-size: 14px; font-weight: 700; color: #b42318; }
.texto-ok { font-size: 14px; font-weight: 700; color: #067647; }
.texto-aviso { font-size: 14px; font-weight: 700; color: #93370d; }

.campo {
  font-family: Urbanist, sans-serif; font-size: 15px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid #d5dae1; min-height: 44px; width: 100%; color: #2b3240; background: #ffffff;
}
.campo:focus { outline: none; border-color: #0f1733; box-shadow: 0 0 0 3px rgba(15, 23, 51, 0.12); }
.campo--area { resize: vertical; min-height: 64px; line-height: 1.4; }
.campo--codigo { text-transform: uppercase; letter-spacing: 1px; }
.grupo { display: flex; flex-direction: column; gap: 6px; }
.rejilla-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

.boton {
  font-size: 15px; font-weight: 800; min-height: 44px; padding: 0 18px; border-radius: 999px;
  cursor: pointer; border: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.boton--principal { background: #0f1733; color: #ffffff; }
.boton--principal:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 23, 51, 0.18); }
.boton--secundario { background: #ffffff; color: #0f1733; border: 1.5px solid #d5dae1; }
.boton--peligro { background: #ffffff; color: #b42318; border: 1.5px solid #d5dae1; }
.boton--chico { font-size: 14px; min-height: 40px; padding: 0 16px; }
.boton:disabled { opacity: 0.55; cursor: default; }
.fila-botones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.enlace { font-size: 14px; font-weight: 800; color: #2c4fa3; background: none; border: none; cursor: pointer; padding: 0; min-height: 32px; }

.chip { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #e8eef8; color: #1c2e5e; white-space: nowrap; }
.estado { font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.estado--pendiente { background: #fef0c7; color: #93370d; }
.estado--espera { background: #e8eef8; color: #1c2e5e; }
.estado--ok { background: #dcfae6; color: #067647; }
.estado--no { background: #fee4e2; color: #b42318; }

.avatar {
  width: 42px; height: 42px; border-radius: 50%; font-weight: 900; font-size: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: #0f1733; color: #ffffff;
}
.avatar--inquilino { background: #8fb3e8; color: #0f1733; }

.fila { transition: background 0.15s ease; }
.fila:hover { background: #f7f9fd; }

.vacio { padding: 24px; font-size: 15px; color: #6b7383; }

.aviso-flotante {
  position: fixed; right: 32px; top: 24px; z-index: 50; max-width: min(420px, calc(100vw - 48px));
  background: #0f1733; color: #ffffff; font-size: 15px; font-weight: 700; padding: 14px 20px;
  border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 51, 0.3);
}
.aviso-flotante--error { background: #b42318; }

.rechazo { display: flex; flex-direction: column; gap: 8px; width: 100%; padding-top: 6px; }

/* ---------- Panel de la administradora ---------- */
.panel { display: flex; flex-wrap: wrap; min-height: 100vh; background: #f7f8fa; }
.panel__lateral {
  flex: 1 1 248px; max-width: 280px; background: #0f1733; color: #ffffff;
  display: flex; flex-direction: column; gap: 22px; padding: 24px 16px; min-height: 100vh;
}
.panel__logo { padding: 4px 10px 10px; }
.panel__logo img { width: 200px; height: auto; display: block; }
.panel__seccion { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #8fb3e8; padding: 0 12px; }
.panel__nav { display: flex; flex-direction: column; gap: 4px; }
.nav-boton {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font-size: 15px; font-weight: 700;
  min-height: 46px; padding: 0 12px; border-radius: 12px; border: none; cursor: pointer; background: transparent; color: #c9d6ee;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-boton:hover { background: rgba(255, 255, 255, 0.08); }
.nav-boton[aria-current="page"] { background: #ffffff; color: #0f1733; }
.nav-boton span:first-of-type { flex: 1; }
.insignia {
  min-width: 22px; height: 22px; border-radius: 999px; background: #8fb3e8; color: #0f1733; font-size: 12px;
  font-weight: 900; display: flex; align-items: center; justify-content: center; padding: 0 6px;
}
.panel__usuario { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.panel__usuario-fila { display: flex; align-items: center; gap: 10px; }
.panel__usuario .avatar { width: 36px; height: 36px; font-size: 13px; background: #8fb3e8; color: #0f1733; }
.panel__usuario-nombre { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; font-weight: 800; }
.panel__usuario-nombre small { font-size: 12px; font-weight: 400; color: #c9d6ee; }
.panel__salir { font-size: 13px; font-weight: 800; color: #c9d6ee; background: none; border: none; cursor: pointer; text-align: left; padding: 0; min-height: 28px; }
.panel__salir:hover { color: #ffffff; }

.panel__principal { flex: 999 1 640px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; }
.panel__cabecera { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.panel__titulos { display: flex; flex-direction: column; gap: 4px; }
.panel__titulo { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -0.8px; color: #0f1733; }
.panel__ambito { display: flex; gap: 10px; align-items: center; }
.panel__ambito label { font-size: 13px; font-weight: 700; color: #6b7383; }
.panel__ambito select {
  font-family: Urbanist, sans-serif; font-size: 15px; font-weight: 700; min-height: 44px; padding: 0 12px;
  border-radius: 10px; border: 1.5px solid #d5dae1; background: #ffffff; color: #0f1733; max-width: 280px;
}
.seccion { display: flex; flex-direction: column; gap: 18px; }

.tabla-cabecera { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #eef0f4; }
.tabla-envoltura { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla thead tr { text-align: left; color: #6b7383; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.tabla th { padding: 12px; font-weight: 800; }
.tabla th:first-child, .tabla td:first-child { padding-left: 20px; }
.tabla td { padding: 14px 12px; border-top: 1px solid #eef0f4; vertical-align: middle; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla--condominios { min-width: 760px; }
.celda-nombre { font-weight: 800; color: #0f1733; background: none; border: none; cursor: pointer; font-size: 14px; padding: 0; text-align: left; }
.celda-nombre:hover { color: #2c4fa3; text-decoration: underline; }
.barra-registro { display: flex; align-items: center; gap: 10px; }
.barra-registro__fondo { flex: 1; max-width: 140px; height: 8px; border-radius: 999px; background: #e8eef8; overflow: hidden; }
.barra-registro__valor { height: 8px; background: #2c4fa3; }
.codigo-boton {
  font-size: 13px; font-weight: 800; letter-spacing: 1px; min-height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px dashed #8fb3e8; background: #f3f6fb; color: #0f1733; cursor: pointer;
}

.volver { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: #0f1733; background: none; border: none; cursor: pointer; padding: 0; min-height: 40px; align-self: flex-start; }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.indicador { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.indicador__etiqueta { font-size: 13px; font-weight: 700; color: #6b7383; }
.indicador__valor { font-size: 30px; font-weight: 900; color: #0f1733; }
.indicador__nota { font-size: 13px; font-weight: 700; color: #6b7383; }

.bloque { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.lista-errores { margin: 0; padding: 12px 14px 12px 32px; background: #fef3f2; border-radius: 12px; color: #b42318; font-size: 14px; line-height: 1.5; max-height: 220px; overflow: auto; }
.resumen-importacion { background: #f3f6fb; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.6; color: #1c2e5e; }
.ejemplo-csv { font-family: ui-monospace, "Courier New", monospace; font-size: 13px; background: #f5f6fa; border-radius: 10px; padding: 10px 12px; margin: 0; white-space: pre; overflow-x: auto; }
.archivo { font-size: 14px; }

.pestanas { display: flex; gap: 6px; flex-wrap: wrap; }
.pestana {
  font-size: 14px; font-weight: 800; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: #ffffff; color: #0f1733; border: 1.5px solid #d5dae1;
}
.pestana[aria-pressed="true"] { background: #0f1733; color: #ffffff; border-color: #0f1733; }

.residente { padding: 16px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.residente__datos { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.residente__nombre { font-size: 16px; font-weight: 800; color: #0f1733; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.residente__detalle { font-size: 14px; color: #4a5263; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  /* En celular la barra lateral se vuelve una franja compacta arriba. */
  .panel__lateral {
    max-width: none; min-height: 0; flex-basis: 100%; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: 10px 12px; padding: 12px 16px;
  }
  .panel__logo { padding: 0; flex: 1; }
  .panel__logo img { width: 150px; }
  .panel__seccion, .panel__usuario-fila { display: none; }
  .panel__usuario { margin-top: 0; padding: 0; background: none; }
  .panel__usuario { order: 1; }
  /* Con muchas secciones, la fila de botones se desplaza de lado dentro de la franja (no la página). */
  .panel__lateral { min-width: 0; }
  .panel__nav { flex-direction: row; flex-basis: 100%; order: 2; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .panel__nav::-webkit-scrollbar { display: none; }
  .nav-boton { flex: 1 0 auto; justify-content: center; min-height: 42px; }
  .nav-boton span:first-of-type { flex: 0 1 auto; }
  .panel__principal { padding: 20px 16px 40px; }
  .panel__titulo { font-size: 26px; }
}

/* ---------- Portal del residente ---------- */
.portal { background: #f5f6fa; min-height: 100vh; }
.portal__cabecera { background: #ffffff; border-bottom: 1px solid #e9ebf2; }
.portal__cabecera-dentro { max-width: 1360px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal__marca { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.portal__marca img { height: 34px; width: auto; display: block; }
.portal__edificio { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #0f1733; background: #eef1f8; padding: 8px 14px; border-radius: 999px; }
.portal__usuario { display: flex; align-items: center; gap: 10px; }
.portal__chip-usuario { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid #e9ebf2; }
.portal__chip-usuario .avatar { width: 38px; height: 38px; }
.portal__chip-texto { display: flex; flex-direction: column; line-height: 1.15; }
.portal__chip-texto strong { font-size: 15px; color: #0f1733; }
.portal__chip-texto small { font-size: 13px; color: #6b7383; }
.portal__salir { font-size: 14px; font-weight: 800; color: #0f1733; background: none; border: none; cursor: pointer; padding: 12px 14px; border-radius: 999px; min-height: 44px; }
.portal__cuerpo { max-width: 1360px; margin: 0 auto; padding: 32px 24px 56px; display: flex; flex-direction: column; gap: 24px; }
.portal__saludo { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -1px; color: #0f1733; }
.portal__sub { margin: 0; font-size: 17px; color: #4a5263; }
.tarjeta-portal { background: #ffffff; border-radius: 24px; border: 1px solid #e9ebf2; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tarjeta-portal h2 { margin: 0; font-size: 22px; font-weight: 900; color: #0f1733; }
.unidad-portal { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: #f7f8fb; flex-wrap: wrap; }
.unidad-portal__icono { width: 44px; height: 44px; border-radius: 14px; background: #0f1733; color: #ffffff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.unidad-portal__datos { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.unidad-portal__datos strong { font-size: 17px; color: #0f1733; }
.unidad-portal__datos span { font-size: 14px; color: #4a5263; }
.nota-portal { font-size: 14px; line-height: 1.5; color: #0f1733; background: #eef1f8; border-radius: 12px; padding: 12px 14px; }
.portal .boton { min-height: 44px; }
@media (max-width: 760px) {
  .portal__saludo { font-size: 32px; }
  .ocultar-movil { display: none !important; }
}

.sin-desborde { overflow: hidden; }
.codigo-boton--grande { font-size: 20px; min-height: 44px; }
.seccion--compacta { gap: 12px; }

/* ---------- Páginas de texto (términos, privacidad) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
.legal__logo { height: 34px; width: auto; display: block; }

/* Selector de archivo propio (el del navegador sale en inglés). */
.archivo-oculto { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.selector-archivo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.selector-archivo__nombre { font-size: 14px; color: #4a5263; }
.archivo-oculto:focus-visible + .selector-archivo .boton { outline: 3px solid rgba(15, 23, 51, 0.3); outline-offset: 2px; }
.selector-archivo__boton { display: inline-flex; align-items: center; }

/* ---------- Facturación ---------- */
.insignia--aviso { background: #fef0c7; color: #93370d; }
.fila-titulo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tasa-vigente { font-size: 15px; color: #2b3240; line-height: 1.5; }
.tasa-vigente strong { font-size: 24px; font-weight: 900; color: #0f1733; }
.aviso-tasa { font-size: 14px; font-weight: 700; color: #93370d; background: #fef0c7; border-radius: 12px; padding: 12px 14px; line-height: 1.45; }
.rejilla-form--abajo { align-items: end; }
.rejilla-form__ancho { grid-column: 1 / -1; }
.grupo--dato { padding-bottom: 4px; gap: 2px; }
.dato-grande { font-size: 18px; font-weight: 900; color: #0f1733; }
.detalles summary { cursor: pointer; font-size: 14px; font-weight: 800; color: #2c4fa3; min-height: 32px; }
.tabla--compacta td, .tabla--compacta th { padding: 10px 12px; }
.tabla--compacta tfoot td { font-weight: 900; color: #0f1733; border-top: 2px solid #d5dae1; }
.extraordinarias { display: flex; flex-direction: column; gap: 10px; }
.extraordinaria { display: grid; grid-template-columns: 2fr 1fr 1.2fr auto; gap: 10px; align-items: end; background: #f7f8fa; border-radius: 14px; padding: 12px; }
@media (max-width: 760px) { .extraordinaria { grid-template-columns: 1fr; } }
.resumen-cuotas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.resumen-cuotas div { background: #f3f6fb; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.resumen-cuotas span:first-child { font-size: 12px; font-weight: 700; color: #6b7383; }
.resumen-cuotas span:last-child { font-size: 17px; font-weight: 900; color: #0f1733; }
.lista-cuentas { display: flex; flex-direction: column; gap: 8px; }
.cuenta { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f7f8fa; flex-wrap: wrap; }
.cuenta__datos { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #4a5263; overflow-wrap: anywhere; }
.cuenta__datos strong { font-size: 15px; color: #0f1733; }
.subformulario { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #eef0f4; padding-top: 14px; }

/* ---------- Portal: Mis facturas ---------- */
.pestanas-portal { display: flex; gap: 4px; background: #f2f4f8; padding: 4px; border-radius: 999px; }
.pestana-portal { font-size: 14px; font-weight: 800; min-height: 40px; padding: 0 16px; border-radius: 999px; border: none; cursor: pointer; background: transparent; color: #0f1733; }
.pestana-portal[aria-selected="true"] { background: #0f1733; color: #ffffff; }
.lista-facturas { display: flex; flex-direction: column; }
.factura { border-top: 1px solid #f0f1f5; }
.factura__fila {
  display: flex; align-items: center; gap: 14px; padding: 14px 10px; flex-wrap: wrap; border-radius: 12px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left; font-family: Urbanist, sans-serif; color: inherit;
}
.factura__fila:hover { background: #f7f8fb; }
.factura__icono { width: 42px; height: 42px; border-radius: 12px; background: #f5f6fa; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #0f1733; }
.factura__datos { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.factura__concepto { font-size: 16px; font-weight: 800; color: #0f1733; }
.factura__meta { font-size: 14px; color: #6b7383; }
.factura__monto { font-size: 18px; font-weight: 900; color: #0f1733; min-width: 90px; text-align: right; display: flex; flex-direction: column; }
.factura__monto small { font-size: 13px; font-weight: 600; color: #6b7383; }
.factura__detalle { padding: 4px 10px 16px 66px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .factura__detalle { padding-left: 10px; } }
.lineas-factura { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 14px; }
.lineas-factura td { padding: 6px 0; border-bottom: 1px dashed #e6e9f0; }
.lineas-factura td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.lineas-factura tr:last-child td { font-weight: 900; color: #0f1733; border-bottom: none; }
.interruptor { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #2b3240; cursor: pointer; min-height: 32px; }
.interruptor input { width: 20px; height: 20px; accent-color: #0f1733; margin: 0; }
.futuras { display: flex; flex-direction: column; gap: 8px; background: #eef1f8; border-radius: 14px; padding: 14px 16px; }
.futuras strong { color: #0f1733; }
.grupo-pago { display: flex; flex-direction: column; gap: 8px; }
.grupo-pago + .grupo-pago { margin-top: 14px; }
.grupo-pago h3 { margin: 0; font-size: 16px; font-weight: 900; color: #0f1733; }

/* Celda con el nombre de una unidad o un mes: en negrita, sin aspecto de enlace. */
.celda-dato { font-weight: 800; color: #0f1733; }

/* ---------- Pagos ---------- */
.lista-pagos { display: flex; flex-direction: column; }
.pago { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; flex-wrap: wrap; border-top: 1px solid #eef0f4; }
.pago:hover { background: #f7f9fd; }
.pago__datos { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pago__quien { font-size: 15px; font-weight: 800; color: #0f1733; }
.pago__detalle { font-size: 13px; color: #4a5263; overflow-wrap: anywhere; }
.pago__monto { font-size: 17px; font-weight: 900; color: #0f1733; min-width: 110px; text-align: right; display: flex; flex-direction: column; }
.pago__monto small { font-size: 12px; font-weight: 600; color: #6b7383; }
.pago__form { width: 100%; display: flex; flex-direction: column; gap: 10px; background: #f3f6fb; border-radius: 12px; padding: 12px 14px; }
.pago__form .rejilla-form { align-items: end; }
.enlace-boton { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- Portal: reportar pago ---------- */
.factura__cabecera { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.factura__cabecera .factura__fila { flex: 1 1 420px; width: auto; }
.factura__acciones { display: flex; gap: 8px; padding: 0 10px 8px; margin-left: auto; }
.factura__subtitulo { font-size: 14px; color: #0f1733; margin-top: 4px; }
.lineas-factura__sub td { color: #067647; }
.pago-residente { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: #f7f8fb; }
.pago-residente__datos { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #4a5263; overflow-wrap: anywhere; }
.saldo-favor { background: #dcfae6; color: #067647; border-radius: 14px; padding: 12px 16px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.reporte { background: #f3f6fb; border: 1.5px solid #c9d6ee; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.reporte__cabecera { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.reporte__titulo { font-size: 17px; font-weight: 900; color: #0f1733; }
.reporte__cuotas { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.reporte__cuotas legend { margin-bottom: 4px; padding: 0; }
.campo-archivo { font-family: Urbanist, sans-serif; font-size: 14px; min-height: 44px; max-width: 100%; }

/* ---------- Morosidad ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi__etiqueta, .kpi__nota { font-size: 13px; font-weight: 700; color: #6b7383; }
.kpi__valor { font-size: 30px; font-weight: 900; color: #0f1733; }
.kpi__valor--bien { color: #067647; }
.kpi__valor--alerta { color: #93370d; }
.kpi__valor--mal { color: #b42318; }
.tabla--morosidad { min-width: 900px; }
.tabla--morosidad tbody tr[aria-selected="true"] { background: #f3f6fb; }
.mora-condominio { display: flex; flex-direction: column; gap: 2px; background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-family: inherit; color: inherit; }
.mora-condominio strong { font-size: 15px; color: #0f1733; }
.mora-condominio span { font-size: 12px; color: #6b7383; }
.mora-condominio:hover strong, .mora-condominio:focus-visible strong { text-decoration: underline; }
.mora-indice { display: flex; align-items: center; gap: 10px; }
.barra { width: 110px; height: 8px; border-radius: 999px; background: #e8eef8; overflow: hidden; flex-shrink: 0; }
.barra__relleno { height: 8px; }
.tono-bien { color: #067647; background: #dcfae6; }
.tono-alerta { color: #93370d; background: #fef0c7; }
.tono-mal { color: #b42318; background: #fee4e2; }
.barra__relleno.tono-bien { background: #067647; }
.barra__relleno.tono-alerta { background: #93370d; }
.barra__relleno.tono-mal { background: #b42318; }
.pildora { font-size: 13px; font-weight: 900; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.antiguedad { display: flex; width: 150px; height: 10px; border-radius: 999px; overflow: hidden; background: #e8eef8; }
.antiguedad__uno, .punto--uno { background: #8fb3e8; }
.antiguedad__dos, .punto--dos { background: #f79009; }
.antiguedad__tres, .punto--tres { background: #b42318; }
.antiguedad-texto { font-size: 12px; color: #6b7383; display: block; margin-top: 4px; }
.cambio { font-size: 13px; font-weight: 800; white-space: nowrap; }
.cambio--sube { color: #b42318; }
.cambio--baja { color: #067647; }
.cambio--igual { color: #6b7383; }
.mora-leyenda { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-top: 1px solid #eef0f4; font-size: 13px; color: #4a5263; }
.mora-leyenda > span { display: inline-flex; align-items: center; gap: 6px; }
.punto { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mora-rejilla { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .mora-rejilla { grid-template-columns: 1fr; } }
.mora-detalle__titulo { display: flex; flex-direction: column; gap: 2px; }
.mora-unidad { display: flex; align-items: center; gap: 12px; padding: 12px; border-top: 1px solid #eef0f4; flex-wrap: wrap; border-radius: 12px; }
.mora-unidad__nombre { font-size: 15px; font-weight: 900; color: #0f1733; min-width: 70px; }
.mora-unidad__datos { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mora-unidad__datos strong { font-size: 14px; color: #0f1733; }
.mora-unidad__datos span { font-size: 12px; color: #6b7383; }
.mora-unidad__meses { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.meses-1 { background: #e8eef8; color: #1c2e5e; }
.meses-2 { background: #fef0c7; color: #93370d; }
.meses-3 { background: #fee4e2; color: #b42318; }
.mora-unidad__monto { font-size: 15px; font-weight: 900; color: #0f1733; min-width: 90px; text-align: right; }
.mora-unidad select { min-height: 40px; font-size: 14px; padding: 6px 10px; max-width: 220px; }
.grafico__columna { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.grafico__valor { font-size: 12px; font-weight: 800; color: #4a5263; }
.grafico__barra { width: 100%; max-width: 34px; min-height: 2px; border-radius: 6px 6px 0 0; background: #c9d6ee; }
.grafico__barra--actual.tono-bien { background: #067647; }
.grafico__barra--actual.tono-alerta { background: #f79009; }
.grafico__barra--actual.tono-mal { background: #b42318; }
.grafico__mes { font-size: 12px; color: #6b7383; }
.grafico__meta { position: absolute; left: 0; right: 0; border-top: 2px dashed #b42318; opacity: 0.6; pointer-events: none; }
.grafico__meta-texto { color: #b42318; }
.grafico { display: flex; flex-direction: column; align-items: stretch; gap: 6px; height: auto; padding-top: 0; }
.grafico__area { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 20px; }
.grafico__meses { display: flex; gap: 10px; }
.grafico__meses span { flex: 1; text-align: center; }
/* Texto solo para lectores de pantalla. */
.solo-lectores { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a.panel__salir { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- Equipo ---------- */
.eq-condominios { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eq-condominios__lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; }
.eq-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #2b3240; min-height: 32px; cursor: pointer; }
.eq-check input { width: 18px; height: 18px; accent-color: #0f1733; margin: 0; flex-shrink: 0; }
.eq-persona { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border-top: 1px solid #eef0f4; }
.eq-persona--inactiva { opacity: 0.7; }
.eq-persona__fila { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eq-persona__datos { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eq-persona__nombre { font-size: 15px; font-weight: 900; color: #0f1733; }
.eq-persona__detalle { font-size: 13px; color: #4a5263; overflow-wrap: anywhere; }
.eq-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.eq-editar { background: #f3f6fb; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Documentos (portal y panel) ---------- */
.doc-barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-barra__derecha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-buscar { max-width: 280px; min-height: 44px; }
.doc-cuenta { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: #eef1f8; color: #0f1733; font-size: 12px; }
.pestana-portal[aria-selected="true"] .doc-cuenta { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.doc-categorias { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-chip { font-family: Urbanist, sans-serif; font-size: 13px; font-weight: 800; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #e6e8ee; background: #ffffff; color: #0f1733; cursor: pointer; }
.doc-chip[aria-pressed="true"] { background: #eef1f8; border-color: #0f1733; }
.doc-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.doc { border: 1px solid #e9ebf2; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #ffffff; }
.doc--bloqueado { background: #fafbfc; }
.doc__cabeza { display: flex; gap: 12px; align-items: flex-start; }
.doc__icono { width: 44px; height: 52px; border-radius: 8px; color: #ffffff; font-size: 11px; font-weight: 900; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; box-sizing: border-box; flex-shrink: 0; background: #2c4fa3; }
.doc__icono--pdf { background: #b42318; }
.doc__icono--xlsx, .doc__icono--xls { background: #067647; }
.doc__icono--docx, .doc__icono--doc { background: #1c2e5e; }
.doc__icono--pptx, .doc__icono--ppt { background: #93370d; }
.doc__icono--bloqueado { background: #a3aab5; }
.doc__textos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc__nombre { font-size: 16px; font-weight: 800; color: #0f1733; line-height: 1.25; overflow-wrap: anywhere; }
.doc__meta { font-size: 13px; color: #6b7383; }
.doc__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.doc__chip { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #eef1f8; color: #0f1733; }
.doc__acciones { display: flex; gap: 8px; margin-top: auto; }
.doc__ver { flex: 1; justify-content: center; }
.doc__bajar { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #d5dae1; background: #ffffff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #0f1733; }
.doc__bajar[aria-disabled="true"] { color: #a3aab5; pointer-events: none; }
.doc-vista { border-radius: 20px; background: #1c2e5e; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; color: #ffffff; }
.doc-vista__previa { flex: 1 1 320px; min-height: 360px; background: #ffffff; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.doc-vista__previa iframe { width: 100%; height: 480px; border: 0; display: block; }
.doc-vista__previa img { max-width: 100%; max-height: 480px; display: block; }
.doc-vista__sin { color: #4a5263; font-size: 14px; padding: 24px; text-align: center; }
.doc-vista__datos { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.doc-vista__ante { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #8fb3e8; }
.doc-vista__titulo { font-size: 24px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.doc-vista__desc { font-size: 15px; line-height: 1.55; color: #c9d3ee; }
.doc-vista__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; }
.doc-vista__rejilla span:first-child { color: #8f9bc0; display: block; }
.doc-vista__rejilla strong { font-weight: 800; }
.doc-vista .interruptor { color: #ffffff; }
.doc-vista .boton--secundario { background: transparent; color: #ffffff; border-color: #8f9bc0; }
.doc-vista__motivo { background: #fee4e2; color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.doc-subir { background: #f5f7fc; border: 1.5px dashed #afc0e6; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.doc-subir__titulo { font-size: 16px; font-weight: 800; color: #0f1733; }
.doc-panel { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.doc-panel > form { flex: 1 1 340px; }
.doc-panel__listas { flex: 1.3 1 420px; }
.doc-panel__unidad { background: #f3f6fb; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.doc-fila { display: flex; align-items: center; gap: 12px; padding: 12px; border-top: 1px solid #eef0f4; flex-wrap: wrap; }
.doc-fila .doc__icono { width: 36px; height: 44px; font-size: 10px; }
.doc-fila__datos { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-fila__nombre { font-size: 15px; font-weight: 800; color: #0f1733; overflow-wrap: anywhere; }
.doc-fila__detalle { font-size: 13px; color: #4a5263; overflow-wrap: anywhere; }
.doc-fila__zona { width: 100%; }

/* ---------- Documento compartido por enlace (/d/<código>) ---------- */
.compartido { min-height: 100vh; background: #f4f5f7; display: flex; flex-direction: column; align-items: center; padding: 24px 16px 48px; gap: 20px; }
.compartido__cabecera img { height: 30px; width: auto; display: block; }
.compartido__tarjeta { width: 100%; max-width: 900px; }
.compartido__titulo { margin: 0; font-size: 26px; font-weight: 900; color: #0f1733; overflow-wrap: anywhere; }
.compartido__ante { color: #2c4fa3; }
.compartido__previa { border: 1px solid #e6e9f0; min-height: 300px; }
.doc-enlaces { background: #f3f6fb; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; color: #0f1733; }
.doc-enlaces__fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.doc-enlaces__fila span { flex: 1 1 200px; }
.doc-enlace-nuevo { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc-enlace-nuevo input { flex: 1 1 260px; font-family: "Courier New", monospace; font-size: 13px; }
.doc-vista .doc-enlaces { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.doc-vista .campo { background: #ffffff; color: #0f1733; }
.doc-aviso { display: flex; gap: 12px; align-items: center; background: #fef6e7; border-radius: 14px; padding: 12px 16px; font-size: 15px; color: #93370d; }
.doc-vista .ayuda { color: #c9d3ee; }

/* ---------- Actividades (portal y panel) ---------- */
.act-lista { display: flex; flex-direction: column; gap: 10px; }
.act { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid #e9ebf2; border-radius: 18px; flex-wrap: wrap; background: #ffffff; }
.act--cancelada { background: #fafbfc; }
.act__fecha { width: 62px; flex-shrink: 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; padding: 8px 0; line-height: 1.1; }
.act__fecha span:nth-child(1) { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.act__fecha span:nth-child(2) { font-size: 24px; font-weight: 900; }
.act__fecha span:nth-child(3) { font-size: 12px; font-weight: 700; }
.act__datos { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.act__titulo-fila { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act__titulo { font-size: 16px; font-weight: 800; color: #0f1733; overflow-wrap: anywhere; }
.act--cancelada .act__titulo { text-decoration: line-through; color: #6b7383; }
.act__detalle { font-size: 14px; color: #6b7383; overflow-wrap: anywhere; }
.act__tag { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tipo-mantenimiento { color: #2c4fa3; background: #e3e9f7; }
.tipo-comunidad { color: #1c2e5e; background: #e8eef8; }
.tipo-aviso { color: #93370d; background: #fef0c7; }
.act-filtro--mantenimiento { color: #2c4fa3; }
.act-filtro--comunidad { color: #1c2e5e; }
.act-filtro--aviso { color: #93370d; }
.act__boton[aria-pressed="true"] { background: #0f1733; color: #ffffff; border-color: #0f1733; }
.act-panel { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.act-panel > form { flex: 1 1 340px; }
.act-panel__lista { flex: 1.3 1 420px; }
.act-panel .act { border-radius: 14px; }
.act__cifras { font-size: 13px; font-weight: 700; color: #4a5263; }

/* ===== Panel: Resumen ===== */
.res-caja { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.res-titulo { font-size: 20px; }
.res-cabecera { padding: 0; border-bottom: none; }
a.kpi--enlace { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.kpi--enlace:hover { border-color: #8fb3e8; box-shadow: 0 6px 18px rgba(15, 23, 51, .08); transform: translateY(-1px); }
a.kpi--enlace:focus-visible { outline: 3px solid #2c4fa3; outline-offset: 2px; }
.kpi__nota--alerta { color: #93370d; }
.kpi__nota--mal { color: #b42318; }
.kpi__nota--bien { color: #067647; }
.kpi__nota--info { color: #2c4fa3; }
.res-lista { display: flex; flex-direction: column; gap: 4px; }
.res-fila { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; flex-wrap: wrap; }
.res-fila:hover { background: #f6f8fc; }
.res-fila__punto { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.res-fila__punto--mal { background: #b42318; }
.res-fila__punto--alerta { background: #f79009; }
.res-fila__punto--info { background: #2c4fa3; }
.res-fila__texto { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.res-fila__titulo { font-size: 16px; font-weight: 800; color: #0f1733; }
.res-fila__detalle { font-size: 14px; color: #4a5263; }
.res-vacio { font-size: 15px; color: #067647; font-weight: 700; padding: 8px 12px; }

/* ===== Chat (portal y panel) ===== */
.campo--chico { min-height: 40px; font-size: 14px; padding: 6px 10px; width: auto; max-width: 100%; }
.portal__columnas { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.portal__principal { flex: 2 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.portal__lateral { flex: 1 1 340px; min-width: 0; position: sticky; top: 24px; }
@media (max-width: 1040px) { .portal__lateral { position: static; } }
.chat { padding: 0; gap: 0; overflow: hidden; height: 760px; max-height: calc(100vh - 48px); }
@media (max-width: 1040px) { .chat { height: 640px; max-height: none; } }
.chat__cabecera { padding: 18px 20px; background: #0f1733; color: #ffffff; display: flex; align-items: center; gap: 12px; }
.chat__icono { width: 42px; height: 42px; border-radius: 50%; background: #ffffff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat__titulos { display: flex; flex-direction: column; }
.chat__titulo { font-size: 17px; font-weight: 800; }
.chat__sub { font-size: 13px; color: #c9d3ee; }
.chat__garantia { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #e8eef8; color: #1c2e5e; font-size: 13px; font-weight: 700; }
.chat__unidad { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; font-size: 13px; font-weight: 700; color: #4a5263; }
.chat__unidad select { flex: 1; }
.chat__preguntas { padding: 12px 16px; border-bottom: 1px solid #e9ebf2; display: flex; flex-direction: column; gap: 8px; }
.chat__preguntas-titulo { font-size: 12px; font-weight: 800; color: #6b7383; text-transform: uppercase; letter-spacing: 1px; }
.chat__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chat__pregunta { font-size: 13px; min-height: 36px; }
.chat__log { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fafbfd; }
.chat__vacio, .chat__nota { align-self: center; text-align: center; font-size: 13px; color: #6b7383; max-width: 90%; line-height: 1.45; }
.chat__nota { background: #e8eef8; color: #1c2e5e; font-weight: 700; padding: 8px 12px; border-radius: 12px; }
.chat__msg { display: flex; flex-direction: column; gap: 3px; max-width: 85%; }
.chat__msg--mio { align-self: flex-end; align-items: flex-end; }
.chat__msg--equipo { align-self: flex-start; align-items: flex-start; }
.chat__burbuja { font-size: 15px; line-height: 1.45; padding: 11px 15px; display: flex; flex-direction: column; gap: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__msg--mio .chat__burbuja { background: #0f1733; color: #ffffff; border-radius: 18px 18px 6px 18px; }
.chat__msg--equipo .chat__burbuja { background: #ffffff; color: #0f1733; border: 1px solid #e9ebf2; border-radius: 18px 18px 18px 6px; }
.chat__msg--rapida .chat__burbuja { background: #f3f6fb; border-color: #c9d3ee; }
.chat__msg--local .chat__burbuja { background: #2c4fa3; }
.chat__autor { font-size: 12px; font-weight: 800; color: #6b7383; }
.chat__hora { font-size: 12px; color: #9aa1ad; }
.chat__archivo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 700; color: inherit; text-decoration: underline; }
.chat__imagen { width: auto; height: auto; min-width: 48px; min-height: 48px; max-width: 220px; max-height: 220px; border-radius: 10px; object-fit: cover; background: #ffffff; }
.chat__form { padding: 12px 14px 14px; background: #ffffff; border-top: 1px solid #e9ebf2; display: flex; flex-direction: column; gap: 8px; }
.chat__fila { display: flex; gap: 8px; align-items: flex-end; }
.chat__texto { flex: 1; min-width: 0; resize: none; min-height: 48px; max-height: 140px; line-height: 1.4; border-radius: 24px; padding: 12px 16px; }
.chat__clip { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #d5dae1; background: #ffffff; color: #0f1733; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat__enviar { width: 48px; height: 48px; border-radius: 50%; border: none; background: #0f1733; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat__enviar:disabled { opacity: .55; cursor: default; }
.chat__adjunto { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #1c2e5e; background: #f3f6fb; padding: 6px 12px; border-radius: 12px; }
.chat__adjunto-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-panel { display: flex; flex-wrap: wrap; min-height: 640px; overflow: hidden; }
.chat-panel__bandeja { flex: 1 1 280px; max-width: 380px; border-right: 1px solid #eef0f4; display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 900px) { .chat-panel__bandeja { max-width: none; border-right: none; border-bottom: 1px solid #eef0f4; } }
.chat-panel__bandeja-cabecera { padding: 14px 18px; border-bottom: 1px solid #eef0f4; display: flex; flex-direction: column; gap: 10px; }
.chat-panel__lista { display: flex; flex-direction: column; overflow-y: auto; max-height: 720px; }
.chat-panel__item { text-align: left; font-family: Urbanist, sans-serif; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: none; border-bottom: 1px solid #eef0f4; cursor: pointer; background: #ffffff; }
.chat-panel__item:hover { background: #f6f8fc; }
.chat-panel__item[aria-pressed="true"] { background: #e8eef8; }
.chat-panel__item-fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-panel__item-pie { margin-top: 2px; }
.chat-panel__quien, .chat-panel__nombre { font-size: 15px; font-weight: 800; color: #0f1733; }
.chat-panel__nombre { font-size: 16px; font-weight: 900; }
.chat-panel__donde, .chat-panel__atiende, .chat-panel__cuando, .chat-panel__contacto { font-size: 13px; color: #6b7383; }
.chat-panel__previa { font-size: 13px; color: #4a5263; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-panel__hilo { flex: 2 1 420px; display: flex; flex-direction: column; min-width: 0; }
.chat-panel__cabecera { padding: 16px 20px; border-bottom: 1px solid #eef0f4; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-panel__titulos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-panel__acciones { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-panel__log { min-height: 320px; max-height: 520px; }
.chat-panel__form { padding: 12px 16px 16px; border-top: 1px solid #eef0f4; display: flex; flex-direction: column; gap: 8px; }
.chat-panel__form .chat__texto { border-radius: 16px; }
.chat-panel__vacio { padding: 24px; font-size: 15px; color: #6b7383; text-align: center; margin: auto; }
.chat-plazo { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chat-plazo--bien { background: #dcfae6; color: #067647; }
.chat-plazo--alerta { background: #fef0c7; color: #93370d; }
.chat-plazo--mal { background: #fee4e2; color: #b42318; }
.chat-respuestas { padding: 18px 20px; }
.chat-respuestas summary { font-size: 17px; font-weight: 900; color: #0f1733; cursor: pointer; }
.chat-respuestas__cuerpo { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.chat-respuestas__cuerpo > * { flex: 1 1 320px; min-width: 0; }
.rg-fila { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.rg-fila__datos { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rg-fila__texto { font-size: 14px; color: #4a5263; white-space: pre-wrap; }
.casilla { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #0f1733; cursor: pointer; min-height: 40px; }
.casilla input { width: 18px; height: 18px; accent-color: #0f1733; }
/* Falla con «Reintentar» (chat) */
.falla { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.falla:not(.texto-error) { font-size: 13px; font-weight: 700; color: #93370d; background: #fef0c7; padding: 8px 12px; border-radius: 12px; }
.falla__reintentar { color: inherit; text-decoration: underline; }
.chat__falla { align-self: center; text-align: center; justify-content: center; font-size: 14px; font-weight: 700; color: #b42318; background: #fee4e2; padding: 12px 16px; border-radius: 12px; max-width: 90%; }
.chat-panel__falla { margin: 24px auto; }

/* ===== Panel: solicitudes de visita ===== */
.vi-ayuda { padding: 12px 20px 0; }
.vi-lista { display: flex; flex-direction: column; padding: 8px 8px 12px; }
.vi-fila { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-bottom: 1px solid #eef0f4; flex-wrap: wrap; }
.vi-fila:last-child { border-bottom: none; }
.vi-fila__datos { flex: 1 1 280px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vi-fila__nombre { font-size: 16px; font-weight: 800; color: #0f1733; }
.vi-fila__detalle { font-size: 14px; color: #4a5263; }
.vi-fila__detalle a { color: #2c4fa3; font-weight: 700; }
.vi-fila__acciones { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vi-vacio { padding: 20px; font-size: 15px; color: #6b7383; }

/* ---------- Proveedores (diseño isProv) ---------- */
.pv { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pv-lista { flex: 1 1 360px; overflow: hidden; }
.pv-lista__cabecera { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eef0f4; }
.pv-lista__titulo { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-chip { font-family: Urbanist, sans-serif; font-size: 13px; font-weight: 800; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer; background: #ffffff; color: #0f1733; border: 1.5px solid #d5dae1; }
.pv-chip[aria-pressed="true"] { background: #0f1733; color: #ffffff; border-color: #0f1733; }
.pv-form { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; background: #f3f6fb; border-bottom: 1px solid #eef0f4; }
.pv-form__titulo { font-size: 15px; font-weight: 900; color: #0f1733; }
.pv-fila { display: flex; width: 100%; text-align: left; font-family: Urbanist, sans-serif; gap: 12px; align-items: center; padding: 14px 20px; border: none; border-top: 1px solid #eef0f4; border-left: 4px solid transparent; background: #ffffff; cursor: pointer; }
.pv-fila:hover { background: #f7f9fd; }
.pv-fila[aria-pressed="true"] { background: #f3f6fb; border-left-color: #0f1733; }
.pv-fila--pendiente { border-left-color: #b42318; }
.pv-fila--por_vencer { border-left-color: #f79009; }
.pv-fila--inactivo { opacity: 0.7; }
.pv-fila__datos { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-fila__nombre { font-size: 15px; font-weight: 800; color: #0f1733; }
.pv-fila__detalle { font-size: 13px; color: #6b7383; overflow-wrap: anywhere; }
.pv-vacio { padding: 20px; font-size: 14px; color: #6b7383; }
.pv-ficha { flex: 2 1 480px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pv-datos { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pv-datos__arriba { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pv-datos__nombre { font-size: 22px; font-weight: 900; color: #0f1733; }
.pv-datos__sub { font-size: 14px; color: #4a5263; }
.pv-datos__contacto { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: #4a5263; }
.pv-datos__contacto b { color: #0f1733; }
.pv-datos__contacto a { color: #2c4fa3; font-weight: 700; text-decoration: none; }
.pv-datos__notas { font-size: 14px; color: #4a5263; white-space: pre-line; }
.pv-tarjeta { overflow: hidden; }
.pv-tarjeta__cabecera { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #eef0f4; flex-wrap: wrap; }
.pv-tarjeta__nota { font-size: 13px; color: #6b7383; }
.pv-doc { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #eef0f4; flex-wrap: wrap; }
.pv-doc:first-of-type { border-top: none; }
.pv-doc__datos { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.pv-doc__nombre { font-size: 15px; font-weight: 800; color: #0f1733; }
.pv-doc__sub { font-size: 13px; color: #6b7383; }
.pv-doc__acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-doc__subir { width: 100%; display: flex; flex-direction: column; gap: 10px; background: #f3f6fb; border-radius: 12px; padding: 12px 14px; }
.pv-doc__historial { width: 100%; }
.pv-doc__historial ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: #4a5263; display: flex; flex-direction: column; gap: 4px; }
.pv-boton-doc { font-family: Urbanist, sans-serif; font-size: 13px; font-weight: 800; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; background: #ffffff; color: #2c4fa3; border: 1.5px solid #c9d6ee; display: inline-flex; align-items: center; text-decoration: none; }
.pv-boton-doc:hover { border-color: #2c4fa3; }
.pv-trabajo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 16px 20px; background: #f3f6fb; border-bottom: 1px solid #eef0f4; }
.pv-trabajo-form .pv-ancho { grid-column: 1 / -1; }
.pv-estrellas { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pv-estrella { background: none; border: none; cursor: pointer; font-size: 24px; line-height: 1; padding: 2px; color: #d5dae1; }
.pv-estrella--on { color: #f79009; }
.pv-estrella:focus-visible { outline: 2px solid #2c4fa3; border-radius: 6px; }
.pv-tabla { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.pv-tabla th { text-align: left; color: #6b7383; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 12px; }
.pv-tabla th:first-child, .pv-tabla td:first-child { padding-left: 20px; }
.pv-tabla td { padding: 12px; border-top: 1px solid #eef0f4; vertical-align: top; }
.pv-tabla .pv-monto { text-align: right; font-weight: 800; color: #0f1733; white-space: nowrap; }
.pv-tabla .pv-calificacion { color: #f79009; letter-spacing: 1px; white-space: nowrap; }
.pv-tabla__condominio { font-weight: 700; color: #0f1733; }
