@charset "UTF-8";
:root {
  --font:'Montserrat','Gotham',system-ui,-apple-system,sans-serif;
  --green-deep:#16493B;
  --green-deep-2:#0F3227;
  --green-bright:#3EA535;
  --lime:#86B825;
  --bg:#F1F4F0;
  --panel:#FFFFFF;
  --ink:#26302B;
  --ink-soft:#6E7B74;
  --ink-faint:#9AA7A0;
  --line:#E5EAE5;
  --line-soft:#EEF2EE;
  --field:#F4F7F3;
  --field-line:#DEE5DE;
  --rail:#123E32;
  --rail-2:#0E3227;
  --rail-ink:#B9D2C6;
  --rail-active:#3EA535;
  --shadow:0 1px 2px rgba(22,73,59,.05),0 12px 34px -16px rgba(22,73,59,.18);
  --pop:0 20px 60px -18px rgba(15,50,39,.4);
  --ok:#1F9D57;
  --warn:#D99A00;
  --bad:#D64530;
  --blue:#2b6bd4;
  --wa:#25D366;
  --rail-w:216px;
  --rail-w-min:64px;
  --head-h:54px;
  --purple:#7C3AED;
  --radius:16px;
  --row-h:38px;
  --charcoal:#4E4849;
  --card:#FFFFFF;
  --brand-fg:#F4F8F3;
  --st-proceso:#D99A00;
  --st-contactado:#1F9D57;
  --st-registrado:#E0742E;
  --st-perfilado:#7C3AED;
  --st-standby:#5D6560;
  --st-nocalif:#D64530;
  --surface:#FFFFFF;
  --surface-2:#ECF0ED;
  --surface-3:#E2E8E3;
  --border:#DFE5E0;
  --border-strong:#CBD3CC;
  --text:#13211A;
  --text-muted:#586660;
  --text-faint:#879189;
  --brand:#16493B;
  --brand-2:#1F6B52;
  --brand-3:#2E8B6A;
  --brand-soft:#E4EFE9;
  --brand-softer:#EEF5F1;
  --gold:#A98A57;
  --gold-soft:#F3ECDE;
  --danger:#B23A3A;
  --danger-soft:#FBEAEA;
  --warn-soft:#FAF1DF;
  --info:#2C5E8A;
  --info-soft:#E7F0F8;
  --shadow-lg:0 10px 44px rgba(15,40,28,.14);
  --radius-sm:10px;
  --radius-lg:20px;
  --serif:"Gotham","Gotham SSm","Montserrat","Helvetica Neue",Arial,sans-serif;
  --sans:"Gotham","Gotham SSm","Montserrat","Helvetica Neue",Arial,sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
}

body {
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
html, body {
  height:100%;
}
body.app-shell {
  overflow:hidden;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"],
progress {
  accent-color: var(--green-deep);
}

button {
  font-family: inherit;
}

svg {
  display: block;
}

#boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: #F4F8F3;
  z-index: 99;
  transition: opacity 0.5s;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 11px;
}

#boot.off {
  opacity: 0;
  pointer-events: none;
}

.shell {
  display: flex;
  height: 100dvh;
  width: 100%;
}

.shell.is-login .rail, .shell.is-login .ghead {
  display: none;
}

.rail {
  position: relative;
  width: var(--rail-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--rail), var(--rail-2));
  display: flex;
  flex-direction: column;
  transition: width 0.22s cubic-bezier(0.5, 0, 0.2, 1);
  z-index: 20;
}

.shell.collapsed .rail {
  width: var(--rail-w-min);
}

.rail-top {
  height: var(--head-h);
  display: flex;
  align-items: center;
  padding: 0 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.rail-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
}

.rail-mark .iso {
  width: 27px;
  height: 27px;
  object-fit: contain;
  display: block;
}

.rail-word {
  margin-left: 12px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: #F4F8F3;
  white-space: nowrap;
  opacity: 0.97;
  transition: opacity 0.15s, width 0.2s;
}

.shell.collapsed .rail-word {
  opacity: 0;
  width: 0;
  margin: 0;
  pointer-events: none;
}

.rail-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.rail-nav::-webkit-scrollbar {
  width: 0;
}

.mod {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 11px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--rail-ink);
  cursor: pointer;
  transition: 0.15s;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.mod svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.mod .ml {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.15s;
}

.shell.collapsed .mod {
  justify-content: center;
  padding: 0;
}

.shell.collapsed .mod .ml {
  opacity: 0;
  width: 0;
}

.mod:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.mod.active {
  background: var(--rail-active);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(62, 165, 53, 0.6);
  font-weight: 700;
}

.mod .tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: #26302B;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.14s;
  z-index: 40;
}

.shell.collapsed .mod:hover .tip {
  opacity: 1;
  transform: translateY(-50%);
}

.shell:not(.collapsed) .mod .tip {
  display: none;
}

.rail-foot {
  padding: 9px 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px;
  border-radius: 11px;
}

.ruser-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-bright), var(--lime));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.ruser-meta {
  overflow: hidden;
  transition: opacity 0.15s;
  min-width: 0;
}

.shell.collapsed .ruser-meta {
  opacity: 0;
  width: 0;
}

.ruser-meta .rn {
  font-size: 13px;
  font-weight: 700;
  color: #EAF3EC;
  white-space: nowrap;
}

.ruser-meta .rr {
  font-size: 11px;
  color: var(--rail-ink);
  white-space: nowrap;
}

.gear {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--rail-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: 0.15s;
  text-decoration: none;
}

.gear:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.gear svg {
  width: 16px;
  height: 16px;
}

.shell.collapsed .rail-user {
  justify-content: center;
}

.shell.collapsed .gear {
  display: none;
}

/* tira / toggle */
.rail-tira {
  position: absolute;
  top: 50%;
  right: -11px;
  transform: translateY(-50%);
  width: 22px;
  height: 46px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 25;
  transition: 0.15s;
}

.rail-tira:hover {
  border-color: var(--green-bright);
}

.rail-tira svg {
  width: 15px;
  height: 15px;
  color: var(--green-deep);
  transition: transform 0.22s;
}

.shell.collapsed .rail-tira svg {
  transform: rotate(180deg);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.ghead {
  height: var(--head-h);
  flex-shrink: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  z-index: 15;
}

.gsearch {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.gsearch-in {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 11px;
  padding: 0 13px;
  transition: 0.15s;
}

.gsearch-in:focus-within {
  border-color: var(--green-bright);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62, 165, 53, 0.1);
}

.gsearch-in svg {
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.gsearch-in input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
}

/* `white-space:nowrap` because the hint is not always "⌘K": on Windows and
   Linux it reads "Ctrl K", which wrapped onto two lines inside this padding
   and turned the shortcut hint into a two-storey box. */
.gsearch-in kbd {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gres {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--pop);
  padding: 7px;
  display: none;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 30;
}

.gres.open {
  display: block;
}

.gres-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 9px 11px 5px;
}

.gres-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  cursor: pointer;
}

.gres-item:hover {
  background: var(--field);
}

.gres-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #EAF3EA;
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.gres-ic svg {
  width: 15px;
  height: 15px;
}

.gres-t {
  font-size: 13px;
  font-weight: 700;
}

.gres-s {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.gres-mod {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gres-empty {
  padding: 22px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}

.gsp {
  flex: 1;
}

.gbtn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.15s;
}

.gbtn:hover {
  border-color: #C7D3C7;
  color: var(--green-deep);
  background: var(--field);
}

.gbtn.on {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.gbtn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.gbtn .rdot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
  border: 2px solid var(--panel);
}

/* stage */
.stage-wrap {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

#stage {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 32, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 40;
}

.scrim.on {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 392px;
  max-width: 92vw;
  background: var(--panel);
  box-shadow: var(--pop);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.5, 0, 0.2, 1);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.panel.on {
  transform: translateX(0);
}

.panel-h {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.panel-h h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel-h .ph-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #EAF3EA;
  color: var(--green-deep);
  display: grid;
  place-items: center;
}

.panel-h .ph-ic svg {
  width: 17px;
  height: 17px;
}

.panel-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--field);
  border-radius: 9px;
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.panel-close:hover {
  background: #E9EEE9;
  color: var(--ink);
}

.panel-close svg {
  width: 16px;
  height: 16px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* notifications */
.ntf {
  display: flex;
  gap: 11px;
  padding: 12px;
  border-radius: 11px;
  cursor: pointer;
  transition: 0.14s;
  border: 1px solid transparent;
}

.ntf:hover {
  background: var(--field);
  border-color: var(--line);
}

.ntf.unread {
  background: #F4FAF4;
}

.ntf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  background: var(--green-bright);
}

.ntf.read .ntf-dot {
  background: var(--line);
}

.ntf-mod {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.ntf-t {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 2px 0 3px;
}

.ntf-meta {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.ntf-date {
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
  margin-left: auto;
}

/* calendar */
.cal-day {
  margin-bottom: 16px;
}

.cal-day .cd-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 4px 8px;
  position: sticky;
  top: 0;
  background: var(--panel);
}

.cal-ev {
  display: flex;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 10px;
  margin-bottom: 7px;
  border-left: 3px solid var(--green-bright);
  background: var(--field);
}

.cal-ev.b {
  border-color: var(--blue);
}

.cal-ev.g {
  border-color: var(--lime);
}

.cal-ev.p {
  border-color: #7C3AED;
}

.cal-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  min-width: 64px;
}

.cal-t {
  font-size: 13px;
  font-weight: 600;
}

.cal-loc {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.cal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin: 4px;
  border: 1px dashed var(--field-line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

/* mail */
.mail {
  display: flex;
  gap: 11px;
  padding: 12px;
  border-radius: 11px;
  cursor: pointer;
  transition: 0.14s;
}

.mail:hover {
  background: var(--field);
}

.mail.unread .mail-from {
  font-weight: 800;
}

.mail-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.mail-from {
  font-size: 13px;
  font-weight: 600;
}

.mail-sub {
  font-size: 12.5px;
  color: var(--ink);
  margin-top: 1px;
}

.mail-prev {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
}

.mail-date {
  font-size: 11px;
  color: var(--ink-faint);
  margin-left: auto;
  white-space: nowrap;
}

.set-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(15, 40, 32, 0.3);
}

.set-wrap.on {
  display: block;
}

.umenu {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 384px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--pop);
}

.tgl {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  cursor: pointer;
  transition: 0.18s;
  flex-shrink: 0;
}

.tgl.on {
  background: var(--green-bright);
}

.tgl::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tgl.on::after {
  left: 20px;
}

.set-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.set-close svg {
  width: 15px;
  height: 15px;
}

.umenu-head {
  background: linear-gradient(135deg, var(--green-deep), var(--green-deep-2));
  color: #fff;
  padding: 22px 20px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 20px 20px 0 0;
}

.umenu-av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-bright), var(--lime));
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.umenu-id .un {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.umenu-id .ui {
  font-size: 12px;
  color: #B9D2C6;
  margin: 2px 0 9px;
}

.org {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 9px;
  cursor: pointer;
}

.org svg {
  width: 14px;
  height: 14px;
}

.umenu-body {
  padding: 16px;
}

.ucard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 18px;
  background: #FAFCFA;
}

.ucard-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #EAF3EA;
  color: var(--green-deep);
  display: grid;
  place-items: center;
}

.ucard-ic svg {
  width: 20px;
  height: 20px;
}

.ucard-t {
  font-size: 13.5px;
  font-weight: 700;
}

.ucard-s {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 1px;
}

.ucard-btn {
  border: 1px solid var(--green-deep);
  background: none;
  color: var(--green-deep);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
}

.ucard-btn:hover {
  background: var(--green-deep);
  color: #fff;
}

.usec {
  margin-bottom: 18px;
}

.usec-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.usec-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 9px;
  line-height: 1.45;
}

.mode-seg {
  display: flex;
  gap: 6px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 4px;
}

.me {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 6px;
  border-radius: 9px;
  cursor: pointer;
}

.me svg {
  width: 15px;
  height: 15px;
}

.me.on {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(22, 73, 59, 0.14);
  font-weight: 700;
}

.me.lock {
  opacity: 0.45;
  cursor: not-allowed;
}

.uprow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.uprow:last-child {
  border-bottom: 0;
}

.upt {
  font-size: 13px;
  font-weight: 600;
}

.ups {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.uprow .tgl, .uprow .ubadge {
  margin-left: auto;
}

.ubadge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: #EAF3EA;
  color: var(--green-deep);
  border: 1px solid #D7E7D7;
  white-space: nowrap;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.help {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: 0.14s;
}

.help:hover {
  border-color: var(--green-bright);
  background: var(--field);
}

.help svg {
  width: 16px;
  height: 16px;
  color: var(--green-bright);
  flex-shrink: 0;
}

.umenu-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  background: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--bad);
  cursor: pointer;
}

.umenu-logout:hover {
  background: #FEF4F2;
  border-color: #F3D9D2;
}

.umenu-logout svg {
  width: 16px;
  height: 16px;
}

.ai-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--green-deep), var(--green-bright));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 14px 34px -10px rgba(22, 73, 59, 0.6);
  z-index: 45;
  transition: 0.18s;
}

.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(22, 73, 59, 0.7);
}

.ai-fab svg {
  width: 19px;
  height: 19px;
}

.shell.is-login .ai-fab {
  display: none;
}

.ai-drawer {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 388px;
  max-width: 92vw;
  height: min(560px, 80vh);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--pop);
  z-index: 55;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ai-drawer.on {
  display: flex;
}

.ai-h {
  padding: 15px 16px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-deep-2));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.ai-h .ai-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}

.ai-h .ai-badge svg {
  width: 18px;
  height: 18px;
}

.ai-h .aht {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ai-h .ahs {
  font-size: 11px;
  color: #B9D2C6;
}

.ai-h .ai-x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ai-h .ai-x svg {
  width: 15px;
  height: 15px;
}

.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAFCFA;
}

.ai-msg {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.ai-msg.bot {
  background: var(--panel);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.ai-msg.me {
  background: var(--green-deep);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ai-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--green-deep);
  cursor: pointer;
}

.ai-chip:hover {
  border-color: var(--green-bright);
}

.ai-foot {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.ai-in {
  flex: 1;
  height: 40px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.ai-in:focus {
  border-color: var(--green-bright);
  background: #fff;
}

.ai-send {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--green-deep);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ai-send svg {
  width: 17px;
  height: 17px;
}

.ai-note {
  font-size: 10.5px;
  color: var(--ink-faint);
  text-align: center;
  padding: 0 16px 10px;
  background: #FAFCFA;
}

.tabbar {
  display: none;
}

.msheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 60;
  transform: translateY(105%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -18px 50px rgba(10, 35, 27, 0.28);
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 72dvh;
  overflow-y: auto;
}

.msheet.on {
  transform: translateY(0);
}

.msheet-grab {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: #D8DFD8;
  margin: 2px auto 12px;
}

.msheet-h {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink, #26302B);
  margin: 0 4px 12px;
}

.msheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.msi {
  border: 1px solid #E5EAE5;
  background: #F4F7F3;
  border-radius: 14px;
  padding: 13px 6px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #4E5A54;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}
button.msi {
  font: inherit;
  cursor: pointer;
  width: 100%;
}

.msi-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #16493B;
  border: 1px solid #E5EAE5;
}

.msi-ic svg {
  width: 17px;
  height: 17px;
}

.msi.on {
  background: #16493B;
  border-color: #16493B;
  color: #fff;
}

.msi.on .msi-ic {
  background: rgba(255, 255, 255, 0.14);
  border-color: transparent;
  color: #fff;
}

@media (max-width: 640px) {
  .gsearch-in kbd {
    display: none;
  }
}
.mtitle {
  display: none;
}

.m-only {
  display: none !important;
}

.ms-cancel {
  display: none;
}

#stage {
  transition: opacity 0.22s ease;
}

#stage.ldg {
  opacity: 0;
}

@media (max-width: 820px) {
  .rail {
    display: none !important;
  }
  .tira {
    display: none !important;
  }
  /* ---- header estilo app: fila de marca+título grande, fila de búsqueda ---- */
  .ghead {
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(1.5);
    position: relative;
    z-index: 30;
  }
  .mtitle {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    order: 0;
  }
  .mt-eyebrow {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #8A968F;
    text-transform: uppercase;
  }
  .mt-big {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1B2420;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ghead .gbtn {
    order: 1;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #F2F5F1;
    border: none;
    flex-shrink: 0;
  }
  .ghead .gbtn svg {
    width: 17px;
    height: 17px;
  }
  .m-only {
    display: grid !important;
  }
  .gsp {
    display: none;
  }
  /* búsqueda: cerrada por defecto, se abre con el icono */
  .gsearch {
    display: none;
  }
  .ghead.search-open .gsearch {
    display: flex;
    order: 2;
    flex-basis: 100%;
    width: 100%;
    align-items: center;
    gap: 10px;
    animation: msIn 0.18s ease;
  }
  .ghead.search-open .mtitle, .ghead.search-open .gbtn {
    display: none !important;
  }
  @keyframes msIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .gsearch-in {
    flex: 1;
    height: 42px;
    border-radius: 14px;
    background: #F2F5F1;
    border: 1px solid rgba(0, 0, 0, 0.04);
  }
  .ms-cancel {
    display: block;
    order: 2;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--green-deep, #16493B);
    cursor: pointer;
    padding: 6px 2px;
    flex-shrink: 0;
  }
  .gres {
    max-height: 52vh;
  }
  /* ---- fondo continuo: el contenido fluye debajo de la isla ---- */
  .content {
    padding-bottom: 0;
  }
  .shell.is-login .content {
    padding-bottom: 0;
  }
  /* ---- dock flotante ---- */
  .tabbar {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    height: 64px;
    padding: 6px 8px;
    box-shadow: 0 12px 40px rgba(15, 50, 39, 0.18), 0 2px 8px rgba(15, 50, 39, 0.08);
  }
  .shell.is-login ~ .tabbar, body:has(.shell.is-login) .tabbar {
    display: none;
  }
  .tab {
    flex: 1;
    border: none;
    background: none;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 9.5px;
    font-weight: 700;
    color: #8A968F;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 0.12s ease;
    position: relative;
  }
  .tab:active {
    transform: scale(0.92);
  }
  .tab svg {
    width: 21px;
    height: 21px;
    transition: transform 0.15s ease;
  }
  .tab .ic-pill {
    display: grid;
    place-items: center;
    width: 44px;
    height: 28px;
    border-radius: 999px;
    transition: background 0.18s ease;
  }
  .tab.on {
    color: #16493B;
  }
  .tab.on .ic-pill {
    background: #16493B;
  }
  .tab.on svg {
    stroke: #fff;
    stroke-width: 2.2;
  }
  /* ---- paneles y hoja ---- */
  .panel {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }
  .msheet {
    border-radius: 26px 26px 0 0;
    padding: 12px 18px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -22px 60px rgba(10, 35, 27, 0.32);
  }
  .msheet-grab {
    width: 44px;
    height: 5px;
    background: #DCE2DC;
    margin: 2px auto 14px;
  }
  .msheet-h {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8A968F;
    margin: 0 2px 14px;
  }
  .msheet-grid {
    gap: 12px;
  }
  .msi {
    padding: 15px 8px 13px;
    border-radius: 17px;
    gap: 8px;
    transition: transform 0.12s ease;
  }
  .msi:active {
    transform: scale(0.94);
  }
  .msi-ic {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .msi-ic svg {
    width: 19px;
    height: 19px;
  }
  /* ---- espacio para el dock flotante ----
     El dock es position:fixed (64px de alto, a 12px del borde + safe-area), así
     que sin este colchón tapa las últimas filas de cada pantalla. */
  .stage-wrap {
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom));
  }
  /* El botón del asistente cae justo encima del dock: se sube por encima. */
  .ai-fab {
    bottom: calc(88px + env(safe-area-inset-bottom));
    right: 16px;
    height: 46px;
    font-size: 13px;
  }
  .ai-drawer {
    bottom: calc(88px + env(safe-area-inset-bottom));
    right: 12px;
    left: 12px;
    width: auto;
    height: min(560px, 70vh);
  }
  /* La hoja "Más" va por encima del scrim y del dock. */
  .msheet {
    z-index: 60;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The demo built every navigable card and rail item as a <button> driven by
   postMessage; production uses real <a href> links instead (see CLAUDE.md).
   Nothing carried over the styling that <button> got for free, so any anchor
   without its own colour rendered as default blue-and-underlined — most
   visibly the dashboard's module cards. Links that should look like links
   (.lnk, .mini-link, …) set their own colour and win on specificity. */
a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-width: 0;
}

.topbar {
  height: 56px;
  flex-shrink: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
}

.tb-t .crumb {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.topbar h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tb-sp {
  flex: 1;
}

.pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: #EAF3EA;
  color: var(--green-deep);
  border: 1px solid #D7E7D7;
  white-space: nowrap;
}

.pill.soft {
  background: #FBF6E9;
  color: #8A6D14;
  border-color: #EFE3C4;
}

/* white-space:nowrap — a fixed-height button whose label wraps overflows its
   own box rather than growing; "+ Nuevo" was breaking after the plus sign in
   the narrow Finanzas panel. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s;
  white-space: nowrap;
}

.btn:hover {
  border-color: #C7D3C7;
  background: #EEF3EE;
}

.btn.pri {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

.btn.xs {
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
  gap: 4px;
}
.icon-btn {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-soft);
  vertical-align: middle;
  text-decoration: none;
  transition: 0.16s;
}
.icon-btn:hover {
  border-color: #C7D3C7;
  background: #EEF3EE;
  color: var(--ink);
}
.icon-btn svg {
  width: 14px;
  height: 14px;
}
.icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #26302B;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  z-index: 60;
}
.icon-btn:hover[data-tip]::after {
  opacity: 1;
}

.btn.pri:hover {
  background: #0F3A2E;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.seg {
  display: inline-flex;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 13px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seg button.on {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(22, 73, 59, 0.12);
}

.seg button svg {
  width: 14px;
  height: 14px;
}

.scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.grid-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 17px;
  box-shadow: var(--shadow);
}

.kpi .k-lb {
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.kpi .k-v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 7px;
}

.kpi .k-v.sm {
  font-size: 19px;
}

.kpi .k-d {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
}

.kpi .k-v.gold {
  color: #B7891F;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.card + .card, .card + form {
  margin-top: 16px;
}

.card-b {
  padding: 16px 18px;
}

.card-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.card-h h3 {
  font-size: 14px;
  font-weight: 700;
}

.card-h .pill {
  margin-left: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #FAFCFA;
  position: sticky;
  top: 0;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

tbody tr:hover {
  background: #FAFCFA;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.tag.g {
  background: #E7F4EC;
  color: #1B7A44;
}

.tag.y {
  background: #FBF3DE;
  color: #8A6D14;
}

.tag.r {
  background: #FBE7E3;
  color: #B23A29;
}

.tag.b {
  background: #E7EEFB;
  color: #2657B0;
}

.tag.p {
  background: #F0E9FB;
  color: #6B34C9;
}

.tag.n {
  background: #EDF1ED;
  color: var(--ink-soft);
}

.tag.flash {
  margin-bottom: 14px;
  padding: 8px 14px;
  font-size: 12px;
}

/* Inline field-row forms (admin filters/invite forms, per-row selects) */
.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-row.compact {
  gap: 8px;
  align-items: center;
}

.form-row .grow {
  flex: 1;
  min-width: 200px;
}

.form-row .w-160 {
  min-width: 160px;
}

.form-row .w-180 {
  min-width: 180px;
}

.form-row .w-220 {
  min-width: 220px;
}

.w-auto {
  width: auto;
}

.small {
  font-size: 11.5px;
}

.mt {
  margin-top: 10px;
}

.ml {
  margin-left: 8px;
}

.none {
  color: var(--ink-faint);
  font-size: 12.5px;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.col-check {
  width: 36px;
}

.col-fixed {
  width: 160px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--lime));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.muted {
  color: var(--ink-soft);
}

.b7 {
  font-weight: 700;
}

.b6 {
  font-weight: 600;
}

.esbozo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #8A6D14;
  background: #FBF6E9;
  border: 1px solid #EFE3C4;
  padding: 6px 12px;
  border-radius: 999px;
}

.esbozo .dot {
  background: var(--warn);
}

/* kanban */
.kb {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: flex-start;
}

.kb-col {
  flex: 0 0 244px;
  background: #F4F7F4;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.kb-h {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kb-h .kn {
  font-size: 12.5px;
  font-weight: 700;
}

.kb-h .kc {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

.kb-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--green-bright);
}

.kb-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
}

.opp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  cursor: pointer;
  transition: 0.14s;
}

.opp:hover {
  border-color: #C7D3C7;
  box-shadow: 0 6px 18px -10px rgba(22, 73, 59, 0.3);
}

.opp .oh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.opp .on {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.opp .oa {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.opp .om {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opp .opv {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-deep);
}

.mini {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.tabs button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs button.on {
  color: var(--green-deep);
  border-bottom-color: var(--green-bright);
}

.pane {
  display: none;
}

.pane.on {
  display: block;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Form controls only. `.field` carries two meanings in this codebase: here it
   is the control itself (`<input class="field">`, used across the admin and
   index views), while the OV wizard, the desarrollo wizard, the client ficha,
   the portal and two modals use `<div class="field"><label>…<input class="inp">`
   — a form-group wrapper. As a bare `.field` this rule hit both, forcing those
   wrappers to height:36px with a border and padding, so their label and input
   overflowed and overlapped the next row. Qualifying by element keeps the
   input styling exactly as it was and leaves wrappers alone. */
input.field, select.field, textarea.field {
  height: 36px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 9px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
}

textarea.field {
  height: auto;
  padding: 9px 12px;
}

label.fl {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 5px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green-bright);
}

/* Generic create/edit modal — toggle .show from JS instead of touching style= */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 21, 0.42);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  padding: 22px;
}

.modal-box h3 {
  margin-bottom: 14px;
}

.modal-box .field {
  margin-bottom: 12px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* Standalone single-card pages (403, dev-only tools) — no shell, no .auth-page brand split */
.standalone-page {
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.standalone-page > * {
  margin: auto;
}

.standalone-card {
  max-width: 420px;
  padding: 32px;
  text-align: center;
}

.standalone-card h2 {
  margin-bottom: 8px;
}

.standalone-card > p {
  color: var(--ink-soft);
}

.standalone-card .actions {
  margin-top: 20px;
}

.standalone-card .actions a {
  color: var(--green-bright);
}

.standalone-card .actions .sep {
  color: var(--ink-faint);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Utilities promoted here in Fase 7 rather than repeated per module — each was
   an inline style in the reference demo, which CLAUDE.md rules out. */
.card-pad {
  padding: 16px 18px;
}

.card-h.no-pad {
  padding: 0 0 12px;
}

.field-group {
  margin-bottom: 12px;
}

.ta-r {
  text-align: right;
}

.block {
  display: block;
}

.mt-16 {
  margin-top: 16px;
}

.modal-box.modal-wide {
  max-width: 560px;
}

@media (max-width: 820px) {
  .grid-kpi {
    grid-template-columns: repeat(2, 1fr);
  }
  .two, .three {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  body {
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
  }
  button, a, [onclick] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  button:active {
    transform: scale(0.97);
  }
  ::selection {
    background: rgba(62, 165, 53, 0.25);
  }
  ::-webkit-scrollbar {
    display: none;
  }
  * {
    scrollbar-width: none;
  }
  body {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
  main, .scroll {
    padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  }
  /* Tablas anchas: se desplazan dentro de su tarjeta en lugar de empujar la
     página entera. Se prefiere esto a `overflow-x:hidden` en el body, que
     escondería contenido recortado en vez de hacerlo alcanzable. Cubre los
     módulos que todavía no tienen reglas móviles propias. */
  .card {
    overflow-x: auto;
  }
  .card table {
    min-width: 560px;
  }
}
/* Fase 8: pushes an element to the end of a flex row. Was an inline
   `margin-left:auto` in several demo screens. */
.ml-auto {
  margin-left: auto;
}

/* ---------------------------------------------------------------------------
   Layout utilities replacing the demo's inline style= attributes.

   The reference demo styled one-off layout inline because each screen was a
   standalone file with no shared stylesheet to put it in. Carried into
   production that defeats theming (a value in an attribute cannot be
   overridden by a rule) and hides real duplication — `flex:1` appeared eleven
   times, `margin-bottom:16px` eight.

   Inline style survives in exactly two places, both correct: values computed at
   runtime (a progress width, a phase colour from the database), which are
   applied as `--` custom properties the SCSS consumes; and the HTML email
   template, where inline style is mandatory because mail clients strip
   <style> blocks.
   --------------------------------------------------------------------------- */
.flex-1 {
  flex: 1;
}

.flex-1-min {
  flex: 1;
  min-width: 0;
}

.w-full {
  width: 100%;
}

.w-auto-end {
  width: auto;
  margin-left: auto;
}

.center-x {
  justify-content: center;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.fs-13 {
  font-size: 13px;
}

.fs-14 {
  font-size: 14px;
}

.hint-muted {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-14 {
  margin-bottom: 14px;
}

.mt-6 {
  margin-top: 6px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-20 {
  margin-top: 20px;
}

.pad-14 {
  padding: 14px;
}

.pad-20 {
  padding: 20px;
}

/* Icon-and-label rows: the demo wrote this triplet inline with three different
   bottom margins, so the gap is the utility and the margin composes with it. */
.row-8 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-12 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.align-start {
  align-items: start;
}

.disabled-look {
  pointer-events: none;
  opacity: 0.6;
}

/* Remaining one-off layout lifted out of inline style= (Fase 9 sweep). */
.avatar-40 {
  width: 40px;
  height: 40px;
}

.media-180 {
  height: 180px;
}

.fill-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rule-top {
  border-top: 2px solid var(--border-strong);
}

.grid-center {
  display: grid;
  place-items: center;
  height: 100%;
}

.maxw-260 {
  max-width: 260px;
}

.hidden-init {
  margin-top: 16px;
  display: none;
}

.label-sm {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.meta-sm {
  color: var(--ink-soft);
  font-size: 12px;
}

/* Admin table column widths — were `width: 10em` etc. inline. */
.col-10em {
  width: 10em;
}

.col-12em {
  width: 12em;
}

.col-15em {
  width: 15em;
}

.bg-danger {
  background: var(--bad);
}

.card-b-flush {
  padding: 0 18px 18px;
}

.print-sign {
  text-align: right;
  margin-top: 20px;
  font-size: 11px;
  color: #666;
}

.price-xl {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.empty-pad {
  padding: 18px;
  text-align: center;
}

.pad-4 {
  padding: 4px;
}

.empty-inline {
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
  padding: 10px;
}

/* Campo de sólo lectura que conserva la forma de un input.
   Usado por el selector de colonia cuando el rol no puede editar: un <input
   disabled> se ve apagado y sigue invitando a escribir, y un <div> suelto
   pierde la alineación con los campos de al lado. */
.inp-static {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--ink-soft);
  font-size: 13.5px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

/* Caja de filtro dentro de un grupo de chips (zonas de interés).
   El módulo de la ficha del cliente no define `.inp`, así que este control se
   describe completo en vez de heredar. */
.chip-filter {
  width: 100%;
  height: 32px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0 10px;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}

.chip-filter:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(62, 165, 53, 0.1);
}

.rlist-wrap {
  position: relative;
}

.rlist {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--pop);
  padding: 7px;
  display: none;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 30;
}

.rlist.open {
  display: block;
}

.rlist-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 9px 11px 5px;
}

.rlist-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  cursor: pointer;
}

.rlist-item:hover,
.rlist-item.on {
  background: var(--field);
}

.rlist-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #EAF3EA;
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rlist-ic svg {
  width: 15px;
  height: 15px;
}

.rlist-t {
  font-size: 13px;
  font-weight: 700;
}

.rlist-s {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.rlist-mod {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rlist-empty {
  padding: 22px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 820px) {
  .rlist {
    max-height: 52vh;
  }
}
.st-proceso_contacto {
  color: #D99A00;
  background: rgba(217, 154, 0, 0.12);
}

.kcol-head.st-proceso_contacto,
.solid.st-proceso_contacto {
  background: #D99A00;
  color: #fff;
}

.st-contactado {
  color: #1F9D57;
  background: rgba(31, 157, 87, 0.12);
}

.kcol-head.st-contactado,
.solid.st-contactado {
  background: #1F9D57;
  color: #fff;
}

.st-registrado {
  color: #E0742E;
  background: rgba(224, 116, 46, 0.12);
}

.kcol-head.st-registrado,
.solid.st-registrado {
  background: #E0742E;
  color: #fff;
}

.st-perfilado {
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.12);
}

.kcol-head.st-perfilado,
.solid.st-perfilado {
  background: #7C3AED;
  color: #fff;
}

.st-interes {
  color: #16493B;
  background: rgba(22, 73, 59, 0.12);
}

.kcol-head.st-interes,
.solid.st-interes {
  background: #16493B;
  color: #fff;
}

.st-standby {
  color: #5D6560;
  background: rgba(93, 101, 96, 0.12);
}

.kcol-head.st-standby,
.solid.st-standby {
  background: #5D6560;
  color: #fff;
}

.st-perdido {
  color: #D64530;
  background: rgba(214, 69, 48, 0.12);
}

.kcol-head.st-perdido,
.solid.st-perdido {
  background: #D64530;
  color: #fff;
}

.st-lead_no_calificado {
  color: #D64530;
  background: rgba(214, 69, 48, 0.12);
}

.kcol-head.st-lead_no_calificado,
.solid.st-lead_no_calificado {
  background: #D64530;
  color: #fff;
}

.st-lead_no_localizado {
  color: #B0731F;
  background: rgba(176, 115, 31, 0.12);
}

.kcol-head.st-lead_no_localizado,
.solid.st-lead_no_localizado {
  background: #B0731F;
  color: #fff;
}

.st-dejo_de_contestar {
  color: #8E6E4E;
  background: rgba(142, 110, 78, 0.12);
}

.kcol-head.st-dejo_de_contestar,
.solid.st-dejo_de_contestar {
  background: #8E6E4E;
  color: #fff;
}

.st-spam {
  color: #9A9A9A;
  background: rgba(154, 154, 154, 0.12);
}

.kcol-head.st-spam,
.solid.st-spam {
  background: #9A9A9A;
  color: #fff;
}

.st-estudios_mercado {
  color: #6E7FA0;
  background: rgba(110, 127, 160, 0.12);
}

.kcol-head.st-estudios_mercado,
.solid.st-estudios_mercado {
  background: #6E7FA0;
  color: #fff;
}

.st-acosador {
  color: #7A2E2E;
  background: rgba(122, 46, 46, 0.12);
}

.kcol-head.st-acosador,
.solid.st-acosador {
  background: #7A2E2E;
  color: #fff;
}

.st-fraude {
  color: #5A1F1F;
  background: rgba(90, 31, 31, 0.12);
}

.kcol-head.st-fraude,
.solid.st-fraude {
  background: #5A1F1F;
  color: #fff;
}

.st-emisor {
  color: #1F9D57;
  background: rgba(31, 157, 87, 0.12);
}

.kcol-head.st-emisor,
.solid.st-emisor {
  background: #1F9D57;
  color: #fff;
}

.st-sin_alta {
  color: #5D6560;
  background: rgba(93, 101, 96, 0.12);
}

.kcol-head.st-sin_alta,
.solid.st-sin_alta {
  background: #5D6560;
  color: #fff;
}

.st-preferente {
  color: #16493B;
  background: rgba(22, 73, 59, 0.12);
}

.kcol-head.st-preferente,
.solid.st-preferente {
  background: #16493B;
  color: #fff;
}

.st-activa {
  color: #1F9D57;
  background: rgba(31, 157, 87, 0.12);
}

.kcol-head.st-activa,
.solid.st-activa {
  background: #1F9D57;
  color: #fff;
}

.st-nueva {
  color: #2b6bd4;
  background: rgba(43, 107, 212, 0.12);
}

.kcol-head.st-nueva,
.solid.st-nueva {
  background: #2b6bd4;
  color: #fff;
}

.st-prospecto {
  color: #D99A00;
  background: rgba(217, 154, 0, 0.12);
}

.kcol-head.st-prospecto,
.solid.st-prospecto {
  background: #D99A00;
  color: #fff;
}

.st-activo {
  color: #1F9D57;
  background: rgba(31, 157, 87, 0.12);
}

.kcol-head.st-activo,
.solid.st-activo {
  background: #1F9D57;
  color: #fff;
}

.st-inactivo {
  color: #5D6560;
  background: rgba(93, 101, 96, 0.12);
}

.kcol-head.st-inactivo,
.solid.st-inactivo {
  background: #5D6560;
  color: #fff;
}

.m3-view .red-list.cols-7 .list-head, .m3-view .red-list.cols-7 .row {
  grid-template-columns: 28px minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(160px, 1fr) 110px 100px 110px 140px;
}
.m3-view .red-list.cols-5 .list-head, .m3-view .red-list.cols-5 .row {
  grid-template-columns: 28px minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(140px, 1fr) minmax(160px, 1fr) 140px;
}
.badge .d {
  background: currentColor;
}

.tag-mini {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FBEAE7;
  color: #B4443C;
  border: 1px solid #F3D9D2;
}

.st-contrato_revision {
  color: #D99A00;
  background: rgba(217, 154, 0, 0.12);
}

.kcol-head.st-contrato_revision,
.solid.st-contrato_revision {
  background: #D99A00;
  color: #fff;
}

.st-opinion_proceso {
  color: #B0731F;
  background: rgba(176, 115, 31, 0.12);
}

.kcol-head.st-opinion_proceso,
.solid.st-opinion_proceso {
  background: #B0731F;
  color: #fff;
}

.st-opinion_lista {
  color: #2b6bd4;
  background: rgba(43, 107, 212, 0.12);
}

.kcol-head.st-opinion_lista,
.solid.st-opinion_lista {
  background: #2b6bd4;
  color: #fff;
}

.st-publicada {
  color: #1F9D57;
  background: rgba(31, 157, 87, 0.12);
}

.kcol-head.st-publicada,
.solid.st-publicada {
  background: #1F9D57;
  color: #fff;
}

.st-vendida {
  color: #16493B;
  background: rgba(22, 73, 59, 0.12);
}

.kcol-head.st-vendida,
.solid.st-vendida {
  background: #16493B;
  color: #fff;
}

.st-rentada {
  color: #0891b2;
  background: rgba(8, 145, 178, 0.12);
}

.kcol-head.st-rentada,
.solid.st-rentada {
  background: #0891b2;
  color: #fff;
}

.st-descartada {
  color: #5D6560;
  background: rgba(93, 101, 96, 0.12);
}

.kcol-head.st-descartada,
.solid.st-descartada {
  background: #5D6560;
  color: #fff;
}

.st-borrador {
  color: #9AA7A0;
  background: rgba(154, 167, 160, 0.12);
}

.kcol-head.st-borrador,
.solid.st-borrador {
  background: #9AA7A0;
  color: #fff;
}

.st-en_revision {
  color: #D99A00;
  background: rgba(217, 154, 0, 0.12);
}

.kcol-head.st-en_revision,
.solid.st-en_revision {
  background: #D99A00;
  color: #fff;
}

.st-autorizada {
  color: #1F9D57;
  background: rgba(31, 157, 87, 0.12);
}

.kcol-head.st-autorizada,
.solid.st-autorizada {
  background: #1F9D57;
  color: #fff;
}

.st-entregada {
  color: #16493B;
  background: rgba(22, 73, 59, 0.12);
}

.kcol-head.st-entregada,
.solid.st-entregada {
  background: #16493B;
  color: #fff;
}

.st-planeacion {
  color: #5D6560;
  background: rgba(93, 101, 96, 0.12);
}

.kcol-head.st-planeacion,
.solid.st-planeacion {
  background: #5D6560;
  color: #fff;
}

.st-preventa {
  color: #D99A00;
  background: rgba(217, 154, 0, 0.12);
}

.kcol-head.st-preventa,
.solid.st-preventa {
  background: #D99A00;
  color: #fff;
}

.st-construccion {
  color: #2b6bd4;
  background: rgba(43, 107, 212, 0.12);
}

.kcol-head.st-construccion,
.solid.st-construccion {
  background: #2b6bd4;
  color: #fff;
}

.st-entregado {
  color: #1F9D57;
  background: rgba(31, 157, 87, 0.12);
}

.kcol-head.st-entregado,
.solid.st-entregado {
  background: #1F9D57;
  color: #fff;
}

.st-disponible {
  color: #1F9D57;
  background: rgba(31, 157, 87, 0.12);
}

.kcol-head.st-disponible,
.solid.st-disponible {
  background: #1F9D57;
  color: #fff;
}

.st-apartada {
  color: #D99A00;
  background: rgba(217, 154, 0, 0.12);
}

.kcol-head.st-apartada,
.solid.st-apartada {
  background: #D99A00;
  color: #fff;
}

.st-vendida {
  color: #16493B;
  background: rgba(22, 73, 59, 0.12);
}

.kcol-head.st-vendida,
.solid.st-vendida {
  background: #16493B;
  color: #fff;
}

.adminventas-view .health {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.adminventas-view .hcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  box-shadow: var(--shadow);
}
.adminventas-view .hcard .ht {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.adminventas-view .ring {
  --p:0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 10px 0 4px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green-bright) calc(var(--p) * 1%), var(--line) 0);
  position: relative;
}
.adminventas-view .ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--panel);
}
.adminventas-view .ring b {
  position: relative;
  font-size: 15px;
  font-weight: 800;
}
.adminventas-view .step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.adminventas-view .step:last-child {
  border: 0;
}
.adminventas-view .snum {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: #EAF3EA;
  color: var(--green-deep);
}
.adminventas-view .snum.done {
  background: var(--green-bright);
  color: #fff;
}
.adminventas-view .snum.now {
  background: var(--warn);
  color: #fff;
}
.adminventas-view .st-t {
  font-weight: 700;
  font-size: 13.5px;
}
.adminventas-view .st-d {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (max-width: 900px) {
  .adminventas-view .health {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .adminventas-view .health {
    grid-template-columns: 1fr;
  }
}

.alianzas-view .al-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.alianzas-view .al-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.alianzas-view .al-h {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.alianzas-view .al-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.alianzas-view .al-n {
  font-size: 15px;
  font-weight: 700;
}
.alianzas-view .al-stats {
  display: flex;
  gap: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.alianzas-view .al-stats > div {
  flex: 1;
  text-align: center;
}
.alianzas-view .asv {
  font-size: 17px;
  font-weight: 800;
}
.alianzas-view .asl {
  font-size: 10.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 700;
}
.alianzas-view .al-foot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.alianzas-view .qa {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--green-deep);
}
.alianzas-view .qa svg {
  width: 16px;
  height: 16px;
}
.alianzas-view .qa:hover {
  border-color: var(--green-bright);
}
.alianzas-view .qa.wa {
  color: #25D366;
}
@media (max-width: 760px) {
  .alianzas-view .al-grid {
    grid-template-columns: 1fr;
  }
}

.capitalhumano-view .topbar .backbtn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  place-items: center;
  flex-shrink: 0;
}
.capitalhumano-view .topbar .backbtn svg {
  width: 17px;
  height: 17px;
}
.capitalhumano-view .subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
  overflow-x: auto;
}
.capitalhumano-view .subtab {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
.capitalhumano-view .subtab.on {
  color: var(--green-deep);
  border-bottom-color: var(--green-bright);
  font-weight: 700;
}
.capitalhumano-view .subtab svg {
  width: 16px;
  height: 16px;
}
.capitalhumano-view .view {
  display: none;
}
.capitalhumano-view .view.on {
  display: block;
}
.capitalhumano-view .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.capitalhumano-view .btn:hover {
  border-color: #C7D3C7;
}
.capitalhumano-view .btn.gold {
  background: #B7891F;
  color: #fff;
  border-color: #B7891F;
}
.capitalhumano-view .btn.bad {
  color: var(--bad);
  border-color: #F3D9D2;
  background: #FEF6F4;
}
.capitalhumano-view .card-h svg {
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
}
.capitalhumano-view .avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--lime));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.capitalhumano-view .gws {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.capitalhumano-view .gws::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: conic-gradient(#4285F4 0 25%, #EA4335 0 50%, #FBBC05 0 75%, #34A853 0);
}
.capitalhumano-view .who {
  display: flex;
  align-items: center;
  gap: 11px;
}
.capitalhumano-view {
  /* ---- organigrama ---- */
}
.capitalhumano-view .org-wrap {
  overflow-x: auto;
  padding: 6px 6px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.capitalhumano-view .tree {
  min-width: max-content;
  padding: 14px 20px;
}
.capitalhumano-view .tree ul {
  display: flex;
  justify-content: center;
  padding-top: 22px;
  position: relative;
}
.capitalhumano-view .tree li {
  list-style: none;
  text-align: center;
  position: relative;
  padding: 22px 7px 0;
}
.capitalhumano-view .tree li::before, .capitalhumano-view .tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid var(--line);
  width: 50%;
  height: 22px;
}
.capitalhumano-view .tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid var(--line);
}
.capitalhumano-view .tree li:only-child::after, .capitalhumano-view .tree li:only-child::before {
  display: none;
}
.capitalhumano-view .tree li:first-child::before, .capitalhumano-view .tree li:last-child::after {
  border: 0;
}
.capitalhumano-view .tree li:last-child::before {
  border-right: 2px solid var(--line);
  border-radius: 0 6px 0 0;
}
.capitalhumano-view .tree li:first-child::after {
  border-radius: 6px 0 0 0;
}
.capitalhumano-view .tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid var(--line);
  width: 0;
  height: 22px;
}
.capitalhumano-view .node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 132px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  transition: 0.14s;
  box-shadow: 0 1px 2px rgba(22, 73, 59, 0.05);
}
.capitalhumano-view .node:hover {
  border-color: var(--green-bright);
  box-shadow: var(--shadow);
}
.capitalhumano-view .node.lead {
  background: linear-gradient(135deg, var(--green-deep), var(--green-deep-2));
  border-color: var(--green-deep);
}
.capitalhumano-view .node.lead .nn, .capitalhumano-view .node.lead .np {
  color: #fff;
}
.capitalhumano-view .node.lead .np {
  color: #B9D2C6;
}
.capitalhumano-view .node.mgr {
  border-color: #C9DECB;
  background: #F4FAF4;
}
.capitalhumano-view .node .nav-av {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.capitalhumano-view .node .nn {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.capitalhumano-view .node .np {
  font-size: 10.5px;
  color: var(--ink-soft);
  line-height: 1.2;
}
.capitalhumano-view .node .nst {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.capitalhumano-view thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #FAFCFA;
  white-space: nowrap;
}
.capitalhumano-view tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  white-space: nowrap;
}
.capitalhumano-view tbody tr {
  cursor: pointer;
}
.capitalhumano-view .tellink {
  color: var(--green-bright);
  font-weight: 700;
  text-decoration: none;
}
.capitalhumano-view .tellink:hover {
  text-decoration: underline;
}
.capitalhumano-view {
  /* ---- ficha empleado ---- */
}
.capitalhumano-view .emp-head {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.capitalhumano-view .emp-av {
  width: 74px;
  height: 74px;
  font-size: 24px;
}
.capitalhumano-view .emp-h-t .en {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.capitalhumano-view .emp-h-t .ep {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.capitalhumano-view .emp-actions {
  margin-left: auto;
  display: flex;
  gap: 9px;
}
.capitalhumano-view .iact {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--field);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  text-decoration: none;
}
.capitalhumano-view .iact:hover {
  border-color: var(--green-bright);
  color: var(--green-deep);
}
.capitalhumano-view .iact svg {
  width: 18px;
  height: 18px;
}
.capitalhumano-view .two {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: start;
}
.capitalhumano-view .kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.capitalhumano-view .kv:last-child {
  border: 0;
}
.capitalhumano-view .kv .k {
  color: var(--ink-soft);
}
.capitalhumano-view .kv .v {
  font-weight: 700;
  text-align: right;
}
.capitalhumano-view .pad {
  padding: 16px 18px;
}
.capitalhumano-view .statusseg {
  display: flex;
  gap: 6px;
}
.capitalhumano-view .statusseg .sopt {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 9px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink-soft);
  cursor: pointer;
}
.capitalhumano-view .statusseg .sopt.on.g {
  background: #E7F4EC;
  color: #1B7A44;
  border-color: #Bfe3cb;
}
.capitalhumano-view .statusseg .sopt.on.y {
  background: #FBF3DE;
  color: #8A6D14;
  border-color: #EAD9Ad;
}
.capitalhumano-view .statusseg .sopt.on.r {
  background: #FBE7E3;
  color: #B23A29;
  border-color: #F0cabf;
}
.capitalhumano-view .ampi {
  display: flex;
  gap: 6px;
}
.capitalhumano-view .ampi .aopt {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 9px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink-soft);
  cursor: pointer;
}
.capitalhumano-view .ampi .aopt.on {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.capitalhumano-view .exp-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.capitalhumano-view .exp-item:last-child {
  border: 0;
}
.capitalhumano-view .exp-item svg {
  width: 16px;
  height: 16px;
  color: var(--green-bright);
}
.capitalhumano-view .exp-item .xl {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 700;
}
@media (max-width: 860px) {
  .capitalhumano-view .two {
    grid-template-columns: 1fr;
  }
}
.capitalhumano-view {
  /* ---- reclutamiento ---- */
}
.capitalhumano-view .integ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.capitalhumano-view .integ {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.capitalhumano-view .integ-h {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.capitalhumano-view .integ-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.capitalhumano-view .integ .in {
  font-size: 14px;
  font-weight: 700;
}
.capitalhumano-view .integ .is {
  font-size: 11.5px;
  color: var(--ink-soft);
}
.capitalhumano-view .integ-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.capitalhumano-view .integ .cnt {
  font-size: 18px;
  font-weight: 800;
}
.capitalhumano-view .integ .cl {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 700;
}
.capitalhumano-view .action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.capitalhumano-view .action {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.16s;
}
.capitalhumano-view .action:hover {
  border-color: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -18px rgba(22, 73, 59, 0.3);
}
.capitalhumano-view .action .ai {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EAF3EA;
  color: var(--green-deep);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.capitalhumano-view .action .ai svg {
  width: 22px;
  height: 22px;
}
.capitalhumano-view .action h4 {
  font-size: 15px;
  font-weight: 700;
}
.capitalhumano-view .action p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.5;
}
.capitalhumano-view {
  /* ---- formulario ---- */
}
.capitalhumano-view .form {
  max-width: 820px;
  margin: 0 auto;
}
.capitalhumano-view .fsec {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.capitalhumano-view .fsec-h {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #FAFCFA;
}
.capitalhumano-view .fsec-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.capitalhumano-view .fsec-h h3 {
  font-size: 14px;
  font-weight: 700;
}
.capitalhumano-view .fsec-b {
  padding: 18px;
}
.capitalhumano-view .q {
  margin-bottom: 20px;
}
.capitalhumano-view .q:last-child {
  margin-bottom: 0;
}
.capitalhumano-view .q > label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.capitalhumano-view .q .qh {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 2px;
}
.capitalhumano-view .inp {
  width: 100%;
  height: 40px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 10px;
  padding: 0 13px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.capitalhumano-view .inp:focus {
  outline: none;
  border-color: var(--green-bright);
  background: #fff;
}
.capitalhumano-view .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.capitalhumano-view .opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.capitalhumano-view .opts.h {
  flex-direction: row;
  flex-wrap: wrap;
}
.capitalhumano-view .opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--field-line);
  border-radius: 11px;
  background: var(--field);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.13s;
  flex: 1;
  min-width: 140px;
}
.capitalhumano-view .opt:hover {
  border-color: #C7D3C7;
}
.capitalhumano-view .opt .rd {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  flex-shrink: 0;
  transition: 0.13s;
}
.capitalhumano-view .opt.on {
  border-color: var(--green-bright);
  background: #F1FAF1;
  color: var(--green-deep);
}
.capitalhumano-view .opt.on .rd {
  border-color: var(--green-bright);
  background: var(--green-bright);
  box-shadow: inset 0 0 0 3px #fff;
}
.capitalhumano-view .cond {
  display: none;
}
.capitalhumano-view .cond.on {
  display: block;
}
.capitalhumano-view .cert-note {
  background: #FBF6E9;
  border: 1px solid #EFE3C4;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: #6B5518;
  line-height: 1.55;
  margin-bottom: 12px;
}
.capitalhumano-view .form-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.capitalhumano-view .kbcol {
  flex: 0 0 258px;
  background: #F4F7F4;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
}
.capitalhumano-view .kbcol-h {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.capitalhumano-view .kbcol-h .kn {
  font-size: 12.5px;
  font-weight: 700;
}
.capitalhumano-view .kbcol-h .kc {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}
.capitalhumano-view .kbcol-b {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.capitalhumano-view .cand {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
}
.capitalhumano-view .cand .cn {
  font-size: 13.5px;
  font-weight: 700;
}
.capitalhumano-view .cand .cp {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 2px 0 8px;
}
.capitalhumano-view .cand-foot {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.capitalhumano-view .cbtn {
  flex: 1;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid var(--field-line);
  background: var(--field);
  cursor: pointer;
  text-align: center;
}
.capitalhumano-view .cbtn.adv {
  background: #EAF3EA;
  color: var(--green-deep);
  border-color: #CfE3Cf;
}
.capitalhumano-view .cbtn.adv:hover {
  background: var(--green-deep);
  color: #fff;
}
.capitalhumano-view .cbtn.disc {
  color: var(--bad);
  border-color: #F3D9D2;
}
.capitalhumano-view .cbtn.disc:hover {
  background: #FEF4F2;
}
.capitalhumano-view .srcpill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.capitalhumano-view {
  /* entrevistas pipeline */
}
.capitalhumano-view .pipe {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}
.capitalhumano-view .pstep {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--field-line);
  color: var(--ink-soft);
}
.capitalhumano-view .pstep.done {
  background: #E7F4EC;
  color: #1B7A44;
  border-color: #BfE3cb;
}
.capitalhumano-view .pstep.now {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.capitalhumano-view .pstep .pnum {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  font-size: 9px;
}
.capitalhumano-view .pstep.now .pnum {
  background: rgba(255, 255, 255, 0.25);
}
.capitalhumano-view .parrow {
  color: var(--ink-faint);
}
.capitalhumano-view {
  /* ---- admin CH perfiles ---- */
}
.capitalhumano-view .prof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.capitalhumano-view .prof {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.15s;
}
.capitalhumano-view .prof:hover {
  border-color: var(--green-bright);
  transform: translateY(-2px);
}
.capitalhumano-view .prof-h {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.capitalhumano-view .prof-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #EAF3EA;
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.capitalhumano-view .prof-ic svg {
  width: 19px;
  height: 19px;
}
.capitalhumano-view .prof h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}
.capitalhumano-view .prof .pa {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 700;
}
.capitalhumano-view .prof-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.capitalhumano-view .drop {
  border: 1.5px dashed var(--field-line);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  background: var(--field);
}
.capitalhumano-view .drop svg {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  color: var(--ink-faint);
}
@media (max-width: 860px) {
  .capitalhumano-view .integ-grid, .capitalhumano-view .action-grid, .capitalhumano-view .prof-grid {
    grid-template-columns: 1fr;
  }
  .capitalhumano-view .row2 {
    grid-template-columns: 1fr;
  }
}
.capitalhumano-view {
  /* rail autónomo (módulo por separado) */
}
.capitalhumano-view .app {
  display: flex;
  height: 100dvh;
  width: 100%;
}
.capitalhumano-view .app > .page {
  flex: 1;
  min-width: 0;
  height: auto;
}
.capitalhumano-view .rail {
  width: 216px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #123E32, #0E3227);
  display: flex;
  flex-direction: column;
}
.capitalhumano-view .rail-top {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  flex-shrink: 0;
}
.capitalhumano-view .rail-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
}
.capitalhumano-view .rail-mark img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  display: block;
}
.capitalhumano-view .rail-word {
  margin-left: 12px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: #F4F8F3;
}
.capitalhumano-view .rail-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  overflow-y: auto;
}
.capitalhumano-view .rail-nav::-webkit-scrollbar {
  width: 0;
}
.capitalhumano-view .rmod {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 11px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: #B9D2C6;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.capitalhumano-view .rmod svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.capitalhumano-view .rmod .rl {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.capitalhumano-view .rmod:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.capitalhumano-view .rmod.on {
  background: #3EA535;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(62, 165, 53, 0.6);
}
.capitalhumano-view .rail-foot {
  padding: 9px 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 11px;
}
.capitalhumano-view .rf-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3EA535, #86B825);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.capitalhumano-view .rf-m .rn {
  font-size: 13px;
  font-weight: 700;
  color: #EAF3EC;
}
.capitalhumano-view .rf-m .rr {
  font-size: 11px;
  color: #B9D2C6;
}
.capitalhumano-view {
  /* ===== dashboard CH ===== */
}
.capitalhumano-view .dash-hi {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.capitalhumano-view .dash-hi > div {
  flex: 1;
  min-width: 220px;
}
.capitalhumano-view .dh-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.capitalhumano-view .dash-hi h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
}
.capitalhumano-view .dash-hi p {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.capitalhumano-view .kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.capitalhumano-view .kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.capitalhumano-view .kpi .kn {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.capitalhumano-view .kpi .kl {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 2px;
}
.capitalhumano-view .dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.capitalhumano-view .proc-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: 12.5px;
}
.capitalhumano-view .proc-go {
  padding: 11px 2px 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green-deep);
  cursor: pointer;
}
.capitalhumano-view .todo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.45;
}
.capitalhumano-view .todo .tchk {
  width: 19px;
  height: 19px;
  border-radius: 7px;
  border: 1.5px solid var(--field-line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  margin-top: 1px;
}
.capitalhumano-view .todo.done .tchk {
  background: var(--green-bright);
  border-color: var(--green-bright);
}
.capitalhumano-view .todo.done span:last-child {
  text-decoration: line-through;
  color: var(--ink-faint);
}
.capitalhumano-view .rem-r {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.capitalhumano-view .rem-r > div {
  flex: 1;
  min-width: 0;
}
.capitalhumano-view .rem-x {
  border: none;
  background: var(--field);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
}
.capitalhumano-view .rem-add {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.capitalhumano-view .rem-add input {
  height: 36px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--field);
  font-family: inherit;
  font-size: 12.5px;
  padding: 0 11px;
  outline: none;
}
.capitalhumano-view .rem-add input:first-child {
  flex: 1;
  min-width: 140px;
}
.capitalhumano-view .btn.pri2 {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.capitalhumano-view {
  /* ===== subtabs estructura ===== */
}
.capitalhumano-view .est-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.capitalhumano-view .et {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--field-line);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.capitalhumano-view .et.on {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.capitalhumano-view {
  /* ===== crear nuevo usuario ===== */
}
.capitalhumano-view .nu-wrap {
  position: relative;
}
.capitalhumano-view .nu-btn {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
  white-space: nowrap;
}
.capitalhumano-view .nu-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(15, 50, 39, 0.18);
  padding: 6px;
  display: none;
  min-width: 230px;
  z-index: 40;
}
.capitalhumano-view .nu-wrap.open .nu-menu {
  display: block;
}
.capitalhumano-view .nu-menu button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--green-deep);
}
.capitalhumano-view .nu-menu button:hover {
  background: var(--field);
}
.capitalhumano-view .nu-menu b {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
}
.capitalhumano-view .nu-menu span {
  font-size: 10.5px;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .capitalhumano-view .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .capitalhumano-view .dash-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .capitalhumano-view html, .capitalhumano-view body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .capitalhumano-view .nu-btn .nu-lbl {
    display: none;
  }
  .capitalhumano-view .subtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -4px;
    padding-left: 4px;
  }
  .capitalhumano-view .subtabs::-webkit-scrollbar {
    display: none;
  }
  .capitalhumano-view .subtabs .subtab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .capitalhumano-view .topbar {
    flex-wrap: nowrap;
  }
}
.capitalhumano-view .prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.capitalhumano-view .prof-h {
  display: flex;
  align-items: center;
  gap: 9px;
}
.capitalhumano-view .prof-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.capitalhumano-view .pstep {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 7px;
  padding: 3px 8px;
  color: var(--ink-soft);
}
.capitalhumano-view .cand {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: 0.14s;
}
.capitalhumano-view .cand:hover {
  border-color: #C7D3C7;
  box-shadow: 0 6px 18px -10px rgba(22, 73, 59, 0.3);
}
.capitalhumano-view .cand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.capitalhumano-view .srcpill {
  font-size: 10px;
  font-weight: 800;
  background: var(--field);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--ink-soft);
}
.capitalhumano-view .kb-col.over {
  outline: 2px dashed var(--green-bright);
  outline-offset: -3px;
}
.capitalhumano-view .node .nn {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.capitalhumano-view .node .np {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.2;
}
.capitalhumano-view .subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
}
.capitalhumano-view .subtab {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.capitalhumano-view .subtab.on {
  color: var(--green-deep);
  border-bottom-color: var(--green-bright);
}
.capitalhumano-view .tree {
  overflow-x: auto;
}

.edukplr-view .courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 22px;
}
.edukplr-view .course {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.16s;
}
.edukplr-view .course:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px -18px rgba(22, 73, 59, 0.34);
}
.edukplr-view .c-top {
  height: 82px;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-deep-2));
}
.edukplr-view .c-top .ct-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.edukplr-view .c-b {
  padding: 13px 15px;
}
.edukplr-view .c-b h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.edukplr-view .c-b .cm {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.edukplr-view .prog {
  height: 5px;
  border-radius: 5px;
  background: var(--line);
  margin-top: 10px;
  overflow: hidden;
}
.edukplr-view .prog span {
  display: block;
  height: 100%;
  background: var(--green-bright);
  border-radius: 5px;
}
.edukplr-view .faq {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  padding: 14px 16px;
  margin-bottom: 9px;
}
.edukplr-view .faq summary {
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  list-style: none;
}
.edukplr-view .faq summary::-webkit-details-marker {
  display: none;
}
.edukplr-view .faq p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 9px;
  line-height: 1.55;
}
.edukplr-view .res {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  margin-bottom: 9px;
}
.edukplr-view .res svg {
  width: 18px;
  height: 18px;
  color: var(--green-bright);
}
.edukplr-view .res .rd {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.edukplr-view .prog span {
  width: var(--pct, 0%);
}
.edukplr-view .course {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.edukplr-view .courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 13px;
}
.edukplr-view .c-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.edukplr-view .faq {
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 0;
}
.edukplr-view .faq summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.edukplr-view .faq div {
  margin-top: 6px;
}

.ficha-view .hidden {
  display: none !important;
}
.ficha-view {
  /* ===== ENCABEZADO FIJO ===== */
}
.ficha-view .head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px -14px rgba(0, 0, 0, 0.35);
}
.ficha-view .head-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
}
.ficha-view .back {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ficha-view .back:hover {
  color: var(--ink);
}
.ficha-view .back svg {
  width: 16px;
  height: 16px;
}
.ficha-view .h-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-bright));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.ficha-view .h-name .h-crumb {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.ficha-view .h-name h1 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}
.ficha-view .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.ficha-view .badge .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.ficha-view {
  /* botones de contacto: solo icono */
}
.ficha-view .ctas {
  display: flex;
  gap: 7px;
  margin-left: 6px;
}
.ficha-view .cta {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--field-line);
  background: var(--field);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: 0.15s;
  position: relative;
}
.ficha-view .cta svg {
  width: 18px;
  height: 18px;
}
.ficha-view .cta:hover {
  transform: translateY(-1px);
}
.ficha-view .cta.tel {
  color: var(--green-bright);
}
.ficha-view .cta.tel:hover {
  background: rgba(62, 165, 53, 0.12);
  border-color: var(--green-bright);
}
.ficha-view .cta.wa {
  color: var(--wa);
}
.ficha-view .cta.wa:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: var(--wa);
}
.ficha-view .cta.mail {
  color: var(--blue);
}
.ficha-view .cta.mail:hover {
  background: rgba(43, 107, 212, 0.12);
  border-color: var(--blue);
}
.ficha-view .cta.cal {
  color: var(--purple);
}
.ficha-view .cta.cal:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: var(--purple);
}
.ficha-view .cta .tip {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #26302B;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.14s;
  z-index: 40;
}
.ficha-view .cta:hover .tip {
  opacity: 1;
}
.ficha-view .h-sp {
  flex: 1;
}
.ficha-view .prob {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 6px 14px;
  height: 44px;
}
.ficha-view .prob {
  position: relative;
}
.ficha-view .prob .ring {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.ficha-view #scoreArc {
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}
.ficha-view #scoreNum {
  transition: color 0.4s ease;
}
.ficha-view .prob .delta {
  position: absolute;
  top: -9px;
  right: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: 0.35s;
  pointer-events: none;
  white-space: nowrap;
}
.ficha-view .prob .delta.up {
  background: var(--ok);
  color: #fff;
}
.ficha-view .prob .delta.down {
  background: var(--bad);
  color: #fff;
}
.ficha-view .prob .delta.show {
  opacity: 1;
  transform: translateY(0);
}
.ficha-view .prob .lbl b {
  font-size: 17px;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.05;
  display: block;
}
.ficha-view .prob .lbl span {
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.ficha-view .viewtog {
  display: flex;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 3px;
  height: 44px;
  align-items: center;
}
.ficha-view .vt {
  border: none;
  background: none;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ficha-view .vt svg {
  width: 15px;
  height: 15px;
}
.ficha-view .vt.active {
  background: var(--panel);
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ficha-view .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}
.ficha-view .icon-btn svg {
  width: 17px;
  height: 17px;
}
.ficha-view {
  /* ===== BODY ===== */
}
.ficha-view .scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 60px;
}
.ficha-view .section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}
.ficha-view .sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.ficha-view .sec-head .ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--field);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ficha-view .sec-head .ic svg {
  width: 16px;
  height: 16px;
}
.ficha-view .sec-head h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ficha-view .sec-head .sub {
  font-size: 12px;
  color: var(--ink-soft);
}
.ficha-view .sec-body {
  padding: 16px 18px;
}
.ficha-view {
  /* ===== BLOQUE SUPERIOR DE 3 ESPACIOS ===== */
}
.ficha-view .top2 {
  display: grid;
  grid-template-columns: 1.05fr 1.3fr;
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}
.ficha-view .right-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ficha-view .right-stack .card:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ficha-view .right-stack .card:first-child .card-b { flex: 1; }
.ficha-view .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ficha-view .card-h {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-soft);
}
.ficha-view .card-h .t {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ficha-view .card-h svg {
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
}
.ficha-view .card-b {
  padding: 8px 15px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ficha-view {
  /* --- Campos inline editables (mismo estilo Opinión de Valor) --- */
}
.ficha-view .frow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--row-h);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.ficha-view .frow:last-child {
  border-bottom: none;
}
.ficha-view .frow > .fl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 132px;
}
.ficha-view .fv {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  height: var(--row-h);
}
.ficha-view .fv .disp {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid transparent;
  height: calc(var(--row-h) - 8px);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: 0.12s;
}
.ficha-view .frow:hover .disp {
  background: var(--field);
  border-color: var(--field-line);
}
.ficha-view .pen {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.12s;
  flex-shrink: 0;
}
.ficha-view .frow:hover .pen {
  opacity: 1;
}
.ficha-view .pen:hover {
  background: var(--field);
  color: var(--green-bright);
}
.ficha-view .pen svg {
  width: 13px;
  height: 13px;
}
.ficha-view .fv input, .ficha-view .fv select {
  height: calc(var(--row-h) - 8px);
  border: 1px solid var(--green-bright);
  background: var(--panel);
  color: var(--ink);
  border-radius: 7px;
  padding: 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  text-align: right;
  width: 100%;
  min-width: 0;
}
.ficha-view .fv select {
  text-align: left;
  text-align-last: right;
  padding-right: 4px;
}
.ficha-view .eb {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.ficha-view .eb svg {
  width: 13px;
  height: 13px;
}
.ficha-view .eb.ok {
  background: var(--green-bright);
}
.ficha-view .eb.no {
  background: var(--field);
  color: var(--ink-faint);
  border: 1px solid var(--field-line);
}
.ficha-view .eb.no:hover {
  color: var(--bad);
}
.ficha-view .idext {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.ficha-view .src-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #c65f1f;
  background: rgba(224, 116, 46, 0.14);
  padding: 2px 7px;
  border-radius: 6px;
}
.ficha-view {
  /* --- Tres barras de actividad --- */
}
.ficha-view .bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  justify-content: space-between;
}
.ficha-view .bar {
  border-radius: 10px;
  border: 1px solid;
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.ficha-view .bar.green {
  background: rgba(31, 157, 87, 0.07);
  border-color: rgba(31, 157, 87, 0.28);
}
.ficha-view .bar.yellow {
  background: rgba(217, 154, 0, 0.08);
  border-color: rgba(217, 154, 0, 0.3);
}
.ficha-view .bar.red {
  background: rgba(214, 69, 48, 0.07);
  border-color: rgba(214, 69, 48, 0.28);
}
.ficha-view .bar-h {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.ficha-view .bar-h .t {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ficha-view .bar.green .t {
  color: var(--ok);
}
.ficha-view .bar.yellow .t {
  color: #b07d00;
}
.ficha-view .bar.red .t {
  color: var(--bad);
}
.ficha-view .bar-h .n {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  color: #fff;
}
.ficha-view .bar.green .n {
  background: var(--ok);
}
.ficha-view .bar.yellow .n {
  background: var(--warn);
}
.ficha-view .bar.red .n {
  background: var(--bad);
}
.ficha-view .bar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ficha-view .bi {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  min-width: 0;
}
.ficha-view .bi .ai {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.ficha-view .bi .ai svg {
  width: 11px;
  height: 11px;
}
.ficha-view .ai-call {
  background: var(--green-bright);
}
.ficha-view .ai-mail {
  background: var(--blue);
}
.ficha-view .ai-wa {
  background: var(--wa);
}
.ficha-view .ai-visit {
  background: var(--purple);
}
.ficha-view .bi b {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ficha-view .bi .when {
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
  font-weight: 600;
  margin-left: 6px;
}
.ficha-view .bi .done {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--field-line);
  background: var(--panel);
  color: var(--ink-faint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: 0.13s;
}
.ficha-view .bi .done svg {
  width: 12px;
  height: 12px;
}
.ficha-view .bi .done:hover {
  background: var(--green-bright);
  color: #fff;
  border-color: var(--green-bright);
}
.ficha-view .bar .rem {
  font-size: 10px;
  color: var(--bad);
  margin-top: 5px;
  line-height: 1.35;
  display: flex;
  gap: 5px;
}
.ficha-view .bar .rem svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ficha-view .bar .none {
  font-size: 11.5px;
  color: var(--ink-faint);
}
.ficha-view {
  /* --- Heatmap --- */
}
.ficha-view .heat {
  display: grid;
  grid-template-columns: auto repeat(6, 1fr);
  grid-template-rows: auto repeat(4, 1fr);
  gap: 5px;
  flex: 1;
  min-height: 0;
}
.ficha-view .heat .hc {
  font-size: 9.5px;
  color: var(--ink-faint);
  font-weight: 700;
  text-align: center;
}
.ficha-view .heat .hr {
  font-size: 9.5px;
  color: var(--ink-faint);
  font-weight: 700;
  display: flex;
  align-items: center;
  padding-right: 4px;
}
.ficha-view .heat .cell {
  border-radius: 5px;
  background: var(--field-line);
  min-height: 0;
}
.ficha-view .best-note {
  margin-top: 10px;
  font-size: 11.5px;
  background: rgba(62, 165, 53, 0.1);
  border: 1px solid rgba(62, 165, 53, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
  line-height: 1.4;
}
.ficha-view .best-note b {
  color: var(--green-deep);
}
.ficha-view {
  /* ===== Perfilamiento ===== */
}
.ficha-view .calif {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ficha-view .calif-opt {
  flex: 1;
  min-width: 150px;
  border: 1.5px solid var(--field-line);
  background: var(--field);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: 0.15s;
}
.ficha-view .calif-opt:hover {
  border-color: var(--green-bright);
}
.ficha-view .calif-opt.sel {
  border-color: var(--green-bright);
  background: rgba(62, 165, 53, 0.08);
}
.ficha-view .calif-opt .cic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--field-line);
  display: grid;
  place-items: center;
  color: var(--green-deep);
  flex-shrink: 0;
}
.ficha-view .calif-opt.sel .cic {
  background: var(--green-bright);
  color: #fff;
  border-color: var(--green-bright);
}
.ficha-view .calif-opt .cic svg {
  width: 18px;
  height: 18px;
}
.ficha-view .calif-opt .ct {
  text-align: left;
}
.ficha-view .calif-opt .ct b {
  font-size: 13.5px;
  font-weight: 700;
  display: block;
}
.ficha-view .calif-opt .ct span {
  font-size: 11px;
  color: var(--ink-soft);
}
.ficha-view {
  /* filas de pregunta con botones */
}
.ficha-view .qrow {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.ficha-view .qrow:last-of-type {
  border-bottom: none;
}
.ficha-view .qrow .ql {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  width: 210px;
  flex-shrink: 0;
  padding-top: 7px;
}
.ficha-view .qrow .qv {
  flex: 1;
  min-width: 0;
}
.ficha-view .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ficha-view .chip {
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 8px;
  padding: 0 12px;
  height: 32px;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  transition: 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ficha-view .chip:hover {
  border-color: var(--green-bright);
}
.ficha-view .chip.on {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.ficha-view .chip.on .cnt {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.ficha-view .chip .cnt {
  font-size: 10.5px;
  font-weight: 800;
  background: var(--field-line);
  color: var(--ink-soft);
  border-radius: 5px;
  padding: 1px 5px;
}
.ficha-view .chip.alc {
  border-radius: 999px;
}
.ficha-view .chip.alc.on {
  background: var(--green-bright);
  border-color: var(--green-bright);
}
.ficha-view .sub-colonias {
  margin-top: 9px;
  padding: 10px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
}
.ficha-view .sub-colonias .sc-t {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.ficha-view .inv-match {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ficha-view .inv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(62, 165, 53, 0.1);
  border: 1px solid rgba(62, 165, 53, 0.28);
  color: var(--green-deep);
  border-radius: 8px;
  padding: 5px 9px;
}
.ficha-view .inv-pill b {
  background: var(--green-bright);
  color: #fff;
  border-radius: 5px;
  padding: 0 5px;
  font-size: 10.5px;
}
.ficha-view .inv-total {
  background: var(--field) !important;
  color: var(--ink-soft) !important;
  border-color: var(--field-line) !important;
}
.ficha-view {
  /* fila capturable inline dentro de perfilamiento */
}
.ficha-view .qrow .fv {
  justify-content: flex-start;
}
.ficha-view .qrow .fv .disp {
  text-align: left;
}
.ficha-view .qrow .fv input, .ficha-view .qrow .fv select {
  text-align: left;
  max-width: 280px;
}
.ficha-view .qrow.inline .qv {
  display: flex;
  align-items: center;
  height: 32px;
}
.ficha-view .qrow.inline .fv {
  height: 32px;
  justify-content: flex-start;
}
.ficha-view .qrow.inline .fv .disp {
  height: 32px;
}
.ficha-view .qrow.inline .fv input, .ficha-view .qrow.inline .fv select {
  height: 32px;
}
.ficha-view {
  /* Panel de coincidencias con inventario */
}
.ficha-view .qrow.matchrow {
  border-bottom: none;
  padding-top: 4px;
}
.ficha-view .qrow.matchrow .ql {
  display: none;
}
.ficha-view .match-panel {
  background: rgba(62, 165, 53, 0.07);
  border: 1px solid rgba(62, 165, 53, 0.28);
  border-radius: 12px;
  padding: 13px 14px;
}
.ficha-view .mp-h {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ficha-view .mp-n {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--green-bright);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
}
.ficha-view .mp-tx b {
  font-size: 13.5px;
  font-weight: 700;
  display: block;
}
.ficha-view .mp-tx span {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.ficha-view .mp-clr {
  margin-left: auto;
  background: var(--panel);
  border: 1px solid var(--field-line);
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.ficha-view .mp-clr:hover {
  color: var(--bad);
  border-color: var(--bad);
}
.ficha-view .mp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.ficha-view .mp-card {
  background: var(--panel);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
  transition: 0.13s;
}
.ficha-view .mp-card:hover {
  border-color: var(--green-bright);
  transform: translateY(-1px);
}
.ficha-view .mp-t {
  font-size: 12.5px;
  font-weight: 700;
}
.ficha-view .mp-m {
  font-size: 11px;
  color: var(--green-bright);
  font-weight: 700;
  margin-top: 1px;
}
.ficha-view .mp-s {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.ficha-view .mp-p {
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.ficha-view .mp-more {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px dashed var(--field-line);
  border-radius: 10px;
}
.ficha-view .mp-empty {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.ficha-view {
  /* Botón WhatsApp en clientes vinculados */
}
.ficha-view .wabtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #128C4B;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ficha-view .wabtn:hover {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
}
.ficha-view .wabtn svg {
  width: 14px;
  height: 14px;
}
.ficha-view .subhead {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ficha-view .subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.ficha-view {
  /* Notas */
}
.ficha-view .note-input {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
}
.ficha-view .note-input input {
  flex: 1;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.ficha-view .note-input input:focus {
  border-color: var(--green-bright);
}
.ficha-view .note-input .send {
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 13px;
}
.ficha-view .note {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ficha-view .note:last-child {
  border-bottom: none;
}
.ficha-view .note .nt-time {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 700;
  white-space: nowrap;
  min-width: 112px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.ficha-view .note .nt-tx {
  font-size: 13.5px;
  line-height: 1.45;
}
.ficha-view .note .who {
  font-size: 11px;
  color: var(--green-bright);
  font-weight: 700;
  margin-left: 8px;
}
.ficha-view {
  /* Expediente */
}
.ficha-view .drop {
  border: 2px dashed var(--field-line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 14px;
  transition: 0.15s;
}
.ficha-view .drop.over {
  border-color: var(--green-bright);
  background: rgba(62, 165, 53, 0.06);
}
.ficha-view .drop svg {
  width: 28px;
  height: 28px;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.ficha-view .drop b {
  color: var(--ink);
}
.ficha-view .browse {
  color: var(--green-bright);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.ficha-view .files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.ficha-view .file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 600;
}
.ficha-view .file-pill svg {
  width: 14px;
  height: 14px;
  color: var(--bad);
}
.ficha-view .file-pill .x {
  color: var(--ink-faint);
  cursor: pointer;
  font-weight: 700;
}
.ficha-view .benef-box {
  border: 1px solid var(--field-line);
  border-radius: 11px;
  padding: 6px 14px 12px;
  margin-top: 10px;
  background: var(--field);
}
.ficha-view .benef-box .bh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.ficha-view .benef-box .bh b {
  font-size: 12.5px;
}
.ficha-view .benef-box .rm {
  color: var(--bad);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ficha-view .sum {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
}
.ficha-view .sum.ok {
  color: var(--ok);
}
.ficha-view .sum.bad {
  color: var(--bad);
}
.ficha-view .add-benef {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--field);
  border: 1px dashed var(--field-line);
  color: var(--green-deep);
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 10px;
}
.ficha-view .add-benef svg {
  width: 14px;
  height: 14px;
}
.ficha-view .check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.ficha-view .check input {
  display: none;
}
.ficha-view .check .cbx {
  width: 19px;
  height: 19px;
  border: 1.6px solid var(--field-line);
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.ficha-view .check .cbx svg {
  width: 11px;
  height: 11px;
  color: #fff;
  opacity: 0;
}
.ficha-view .check input:checked + .cbx {
  background: var(--green-bright);
  border-color: var(--green-bright);
}
.ficha-view .check input:checked + .cbx svg {
  opacity: 1;
}
.ficha-view .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
.ficha-view {
  /* Clientes vinculados (asesor inmobiliario) */
}
.ficha-view .vin-head, .ficha-view .vin-row {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1fr 0.8fr auto;
  gap: 10px;
  align-items: center;
}
.ficha-view .vin-head {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 800;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--line-soft);
}
.ficha-view .vin-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.ficha-view .vin-row:last-child {
  border-bottom: none;
}
.ficha-view .vin-row .vn {
  font-weight: 700;
}
.ficha-view .vin-row .va {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 12.5px;
}
.ficha-view .av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.ficha-view {
  /* Bitácora */
}
.ficha-view .log-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ficha-view .lf {
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ficha-view .lf.on {
  color: var(--ink);
  border-color: var(--green-bright);
}
.ficha-view .lf .d {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ficha-view .logrow {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.ficha-view .logrow:last-child {
  border-bottom: none;
}
.ficha-view .logrow .li {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.ficha-view .logrow .lbody {
  flex: 1;
  min-width: 0;
}
.ficha-view .logrow .ltop {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ficha-view .logrow .ltop b {
  font-size: 13px;
}
.ficha-view .logrow .ltime {
  font-size: 11.5px;
  color: var(--ink-faint);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ficha-view .logrow .ldesc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 3px;
  line-height: 1.45;
}
.ficha-view .logrow .lscore {
  text-align: right;
  flex-shrink: 0;
}
.ficha-view .logrow .lscore .pc {
  font-size: 15px;
  font-weight: 800;
}
.ficha-view .logrow .lscore .pl {
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.ficha-view .sc-hi {
  color: var(--ok);
}
.ficha-view .sc-mid {
  color: var(--warn);
}
.ficha-view .sc-lo {
  color: var(--bad);
}
.ficha-view {
  /* Cronología */
}
.ficha-view .timeline {
  position: relative;
  padding-left: 24px;
}
.ficha-view .timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.ficha-view .tev {
  position: relative;
  padding: 0 0 18px 12px;
}
.ficha-view .tev::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--panel);
  border: 2.5px solid var(--green-bright);
}
.ficha-view .tev.create::before {
  background: var(--green-bright);
}
.ficha-view .tev.status::before {
  border-color: var(--purple);
}
.ficha-view .tev.act::before {
  border-color: var(--blue);
}
.ficha-view .tev .tv-time {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ficha-view .tev .tv-body {
  font-size: 13.5px;
  margin-top: 3px;
  line-height: 1.5;
}
.ficha-view .tev .from {
  color: var(--ink-faint);
  text-decoration: line-through;
  margin: 0 3px;
}
.ficha-view .tev .to {
  color: var(--green-deep);
  font-weight: 700;
}
.ficha-view .tev .tv-who {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 2px;
}
.ficha-view {
  /* Vista previa del evento de Google Calendar */
}
.ficha-view .mf select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  border-radius: 9px;
  padding: 0 9px;
  font-size: 13.5px;
  outline: none;
}
.ficha-view .mf select:focus {
  border-color: var(--green-bright);
}
.ficha-view .gcal {
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 11px;
  padding: 12px 13px;
}
.ficha-view .gcal .gt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 800;
  margin-bottom: 8px;
}
.ficha-view .gcal .gt svg {
  width: 13px;
  height: 13px;
}
.ficha-view .gline {
  display: flex;
  gap: 9px;
  font-size: 12px;
  padding: 3px 0;
  align-items: flex-start;
}
.ficha-view .gline .gk {
  color: var(--ink-faint);
  font-weight: 700;
  width: 74px;
  flex-shrink: 0;
}
.ficha-view .gline .gv {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}
.ficha-view .gline .gv .ttl {
  font-weight: 800;
}
.ficha-view .gchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--field-line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin: 2px 4px 2px 0;
}
.ficha-view .gchip .gd {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
}
.ficha-view .mbtn.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ficha-view .eval-pend {
  text-align: center;
  padding: 14px 6px;
}
.ficha-view .eval-pend svg {
  width: 38px;
  height: 38px;
  color: var(--green-bright);
  margin-bottom: 10px;
}
.ficha-view .eval-pend b {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.ficha-view .eval-pend span {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: block;
  max-width: 34ch;
  margin: 0 auto;
}
.ficha-view .evalbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(62, 165, 53, 0.1);
  border: 1px solid rgba(62, 165, 53, 0.35);
  color: var(--green-deep);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 7px;
}
.ficha-view .evalbtn:hover {
  background: var(--green-bright);
  color: #fff;
  border-color: var(--green-bright);
}
.ficha-view .evalbtn svg {
  width: 12px;
  height: 12px;
}
.ficha-view {
  /* Modal agendar */
}
.ficha-view .scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 21, 0.45);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ficha-view .scrim.show {
  display: flex;
}
.ficha-view .modal {
  width: 100%;
  max-width: 430px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.ficha-view .modal-h {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.ficha-view .modal-h .mic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--purple);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ficha-view .modal-h .mic svg {
  width: 18px;
  height: 18px;
}
.ficha-view .modal-h b {
  font-size: 15px;
  font-weight: 700;
  display: block;
}
.ficha-view .modal-h span {
  font-size: 12px;
  color: var(--ink-soft);
}
.ficha-view .modal-h .mx {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 16px;
  font-weight: 700;
}
.ficha-view .modal-b {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ficha-view .mf label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.ficha-view .mf input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  border-radius: 9px;
  padding: 0 11px;
  font-size: 13.5px;
  outline: none;
}
.ficha-view .mf input:focus {
  border-color: var(--green-bright);
}
.ficha-view .mgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ficha-view .mnote {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 9px;
  padding: 10px;
}
.ficha-view .mnote svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--green-bright);
}
.ficha-view .modal-f {
  display: flex;
  gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  justify-content: flex-end;
}
.ficha-view .mbtn {
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
}
.ficha-view .mbtn.ghost {
  background: var(--field);
  border-color: var(--field-line);
  color: var(--ink-soft);
}
.ficha-view .mbtn.go {
  background: var(--green-deep);
  color: #fff;
}
.ficha-view .mbtn.go:hover {
  background: var(--green-deep-2);
}
@media (max-width: 1180px) {
  .ficha-view .top2 {
    grid-template-columns: 1fr 1.15fr;
  }
}
@media (max-width: 820px) {
  .ficha-view .top2 {
    grid-template-columns: 1fr;
  }
  .ficha-view .two {
    grid-template-columns: 1fr;
  }
  .ficha-view .qrow {
    flex-direction: column;
    gap: 7px;
  }
  .ficha-view .qrow .ql {
    width: auto;
    padding-top: 0;
  }
  .ficha-view .frow > .fl {
    width: 110px;
  }
  .ficha-view .scroll {
    padding: 14px 13px 50px;
  }
  .ficha-view .vin-head {
    display: none;
  }
  .ficha-view .vin-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ficha-view {
    /* ---------- ENCABEZADO COMPACTO EN MÓVIL (2 filas) ----------
       Fila 1: volver · avatar · nombre+estado · Score
       Fila 2: acciones (llamar/WA/correo/agendar) · vista            */
  }
  .ficha-view .head-in {
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 12px;
    row-gap: 8px;
  }
  .ficha-view .h-sp {
    display: none;
  }
  .ficha-view .back {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    order: 1;
  }
  .ficha-view .back svg {
    width: 14px;
    height: 14px;
  }
  .ficha-view .h-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 13px;
    order: 2;
  }
  .ficha-view .h-name {
    order: 3;
    flex: 1;
    min-width: 0;
  }
  .ficha-view .h-name .h-crumb {
    display: none;
  }
  .ficha-view .h-name h1 {
    font-size: 17px;
    gap: 7px;
    line-height: 1.15;
    flex-wrap: nowrap;
    align-items: center;
  }
  .ficha-view .h-name h1 .nm-txt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ficha-view .badge {
    font-size: 9.5px;
    padding: 3px 7px;
    gap: 4px;
    flex-shrink: 0;
  }
  .ficha-view .badge .d {
    width: 5px;
    height: 5px;
  }
  .ficha-view {
    /* Score compacto: anillo + número, sin etiqueta */
  }
  .ficha-view .prob {
    order: 4;
    height: 34px;
    padding: 0 8px;
    gap: 7px;
    border-radius: 9px;
    flex-shrink: 0;
  }
  .ficha-view .prob .ring {
    width: 24px;
    height: 24px;
  }
  .ficha-view .prob .lbl b {
    font-size: 14px;
  }
  .ficha-view .prob .lbl span {
    display: none;
  }
  .ficha-view .prob .delta {
    top: -7px;
    right: 2px;
    font-size: 10px;
    padding: 1px 6px;
  }
  .ficha-view {
    /* Fila 2 */
  }
  .ficha-view .ctas {
    order: 5;
    margin-left: 0;
    gap: 6px;
    flex: 0 0 auto;
  }
  .ficha-view .cta {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .ficha-view .cta svg {
    width: 16px;
    height: 16px;
  }
  .ficha-view .viewtog {
    order: 6;
    height: 34px;
    margin-left: auto;
    padding: 2px;
    border-radius: 9px;
    flex: 0 0 auto;
  }
  .ficha-view .vt {
    padding: 0;
    width: 36px;
    height: 30px;
    border-radius: 7px;
    justify-content: center;
  }
  .ficha-view .vt span {
    display: none;
  }
  .ficha-view { /* en móvil el selector de vista queda solo con iconos */ }
  .ficha-view .vt svg {
    width: 15px;
    height: 15px;
  }
  .ficha-view {
    /* rail más angosto para ganar ancho útil */
  }
  .ficha-view .rail {
    width: 56px;
    padding: 10px 0 12px;
  }
  .ficha-view .rail-logo {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }
  .ficha-view .mod {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .ficha-view .mod svg {
    width: 19px;
    height: 19px;
  }
  .ficha-view .mod-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .ficha-view .h-name h1 {
    font-size: 16px;
  }
  .ficha-view .cta {
    width: 32px;
    height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ficha-view * {
    transition-duration: 0.001s !important;
  }
}
.ficha-view #cli-ext {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 2px 0 20px;
}
.ficha-view #cli-ext .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--field-line);
  background: var(--field);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.ficha-view #cli-ext .btn.pri {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.ficha-view #cli-ext .btn.pri:hover {
  background: #0F3A2E;
}
.ficha-view #cli-ext .btn svg {
  width: 15px;
  height: 15px;
}
.ficha-view #cli-ext .srch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.ficha-view #cli-ext .sl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.ficha-view .seg-ext {
  display: inline-flex;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 9px;
  padding: 3px;
}
.ficha-view .seg-ext button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
}
.ficha-view .seg-ext button.on {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(22, 73, 59, 0.14);
}
.ficha-view #srchBox {
  display: none;
  margin: 0 0 20px;
}
.ficha-view #srchBox.on {
  display: block;
}
.ficha-view .mp-send {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.ficha-view .mp-send a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--field-line);
  background: var(--field);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
}
.ficha-view .mp-send a:hover {
  border-color: var(--green-bright);
}
.ficha-view .mp-send a.wa {
  color: #25D366;
}
.ficha-view .mp-send a svg {
  width: 14px;
  height: 14px;
}
.ficha-view {
  /* modal */
}
.ficha-view .xm-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 32, 0.42);
  display: none;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ficha-view .xm-bg.on {
  display: flex;
}
.ficha-view .xm {
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(15, 50, 39, 0.5);
  width: 640px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ficha-view .xm-h {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.ficha-view .xm-h .xi {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #EAF3EA;
  color: var(--green-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ficha-view .xm-h .xi svg {
  width: 19px;
  height: 19px;
}
.ficha-view .xm-h h3 {
  font-size: 16px;
  font-weight: 800;
}
.ficha-view .xm-h p {
  font-size: 12px;
  color: var(--ink-soft);
}
.ficha-view .xm-x {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--field);
  border-radius: 9px;
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ficha-view .xm-x svg {
  width: 16px;
  height: 16px;
}
.ficha-view .xm-b {
  padding: 20px;
  overflow-y: auto;
}
.ficha-view .xm-f {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ficha-view .xfld {
  margin-bottom: 16px;
}
.ficha-view .xfld:last-child {
  margin-bottom: 0;
}
.ficha-view .xfld > label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.ficha-view .xin {
  width: 100%;
  height: 38px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 9px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.ficha-view .xin:focus {
  outline: none;
  border-color: var(--green-bright);
  background: #fff;
}
.ficha-view textarea.xin {
  height: auto;
  padding: 10px 12px;
}
.ficha-view .xr2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ficha-view .xr3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.ficha-view .xopts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ficha-view .xopt {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink-soft);
  cursor: pointer;
}
.ficha-view .xopt.on {
  border-color: var(--green-bright);
  background: #F1FAF1;
  color: var(--green-deep);
}
.ficha-view .xcheck {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}
.ficha-view .xcheck input {
  width: 17px;
  height: 17px;
  accent-color: var(--green-bright);
}
.ficha-view .xnote {
  background: #FBF6E9;
  border: 1px solid #EFE3C4;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 12px;
  color: #6B5518;
  line-height: 1.5;
}
.ficha-view .xbank {
  background: #EAF3EA;
  border: 1px solid #D7E7D7;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--green-deep);
  font-weight: 600;
  line-height: 1.6;
}
.ficha-view .xcond {
  display: none;
}
.ficha-view .xcond.on {
  display: block;
}
.ficha-view .xtag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #EAF3EA;
  color: var(--green-deep);
}
.ficha-view .xbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--field-line);
  background: var(--field);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.ficha-view .xbtn.pri {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.ficha-view .xbtn.pri:hover {
  background: #0F3A2E;
}
.ficha-view .xbtn svg {
  width: 15px;
  height: 15px;
}
.ficha-view #xtoast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #16493B;
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  transition: 0.25s;
  max-width: 88%;
  text-align: center;
  line-height: 1.5;
}
.ficha-view .mk-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.ficha-view .mk-lane {
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 8px;
  min-height: 130px;
  transition: box-shadow 0.12s, border-color 0.12s;
}
.ficha-view .mk-lane .mk-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
  padding: 2px 4px 8px;
}
.ficha-view .mk-lane .mk-n {
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 8px;
  color: var(--ink);
}
.ficha-view .mk-lane.l-co .mk-h b {
  color: var(--green-deep);
}
.ficha-view .mk-lane.l-int {
  background: #F2F8EE;
  border-color: #DDEBD2;
}
.ficha-view .mk-lane.l-int .mk-h b {
  color: #2E7D27;
}
.ficha-view .mk-lane.l-desc {
  background: #FBF3F2;
  border-color: #EDD9D6;
}
.ficha-view .mk-lane.l-desc .mk-h b {
  color: #B4443C;
}
.ficha-view .mk-lane.mk-over {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(62, 165, 53, 0.18);
}
.ficha-view .mk-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ficha-view .mk-board .mp-card {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: #fff;
}
.ficha-view .mk-board .mp-card.mk-src {
  opacity: 0.35;
}
.ficha-view .mk-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 14px 34px rgba(15, 50, 39, 0.28);
  transform: rotate(2deg);
  border-radius: 12px;
  background: #fff;
}
.ficha-view .mk-empty {
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
  padding: 18px 4px;
  border: 1.5px dashed var(--field-line);
  border-radius: 10px;
}
@media (max-width: 760px) {
  .ficha-view .mk-board {
    grid-template-columns: 1fr;
  }
}
.ficha-view .qrow.srchtbl-row {
  display: none;
  grid-template-columns: minmax(0, 1fr);
}
.ficha-view .qrow.srchtbl-row.on {
  display: grid;
}
.ficha-view .qrow.srchtbl-row .stbl-wrap {
  grid-column: 1/-1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.ficha-view .qrow.opprow .oppv {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ficha-view .btn-opp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--green-deep);
  background: var(--green-deep);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ficha-view .btn-opp:hover {
  background: #0F3A2E;
}
.ficha-view .opp-note {
  font-size: 12px;
  color: var(--ink-soft);
}
.ficha-view .stbl-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.ficha-view .stbl-h {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}
.ficha-view .stbl-h .xtag {
  margin-left: auto;
}
.ficha-view .stbl-scroll {
  overflow-x: auto;
  border: 1px solid var(--field-line);
  border-radius: 10px;
}
.ficha-view table.stbl {
  border-collapse: collapse;
  font-size: 11.5px;
}
.ficha-view .stbl th {
  position: sticky;
  top: 0;
  background: var(--field);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 7px 8px;
  border-bottom: 1px solid var(--field-line);
  white-space: nowrap;
  text-align: left;
}
.ficha-view .stbl td {
  border-bottom: 1px solid var(--line-soft);
  padding: 3px 4px;
  background: #fff;
}
.ficha-view .stbl input, .ficha-view .stbl select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ink);
  height: 26px;
  padding: 0 4px;
  outline: none;
}
.ficha-view .stbl input:focus, .ficha-view .stbl select:focus {
  background: var(--field);
  border-radius: 6px;
}
.ficha-view .stbl td.rown {
  color: var(--ink-faint);
  text-align: center;
  font-weight: 700;
  min-width: 26px;
}
.ficha-view .stbl-foot {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
.ficha-view .opc {
  border: 1px solid var(--field-line);
  border-radius: 13px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--field);
}
.ficha-view .opc-t {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  flex-wrap: wrap;
}
.ficha-view .opc-v {
  margin-left: auto;
  font-weight: 800;
  color: var(--green-deep);
  font-size: 14.5px;
}
.ficha-view .opc-m {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 7px 0 9px;
}
.ficha-view .opc-m b {
  color: var(--ink);
}
.ficha-view .opc-ph {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.ficha-view .opc-bar {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: #E3E9E2;
  overflow: hidden;
}
.ficha-view .opc-bar div {
  height: 100%;
  border-radius: 99px;
}
.ficha-view .opc-ph span {
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.ficha-view .opc-a {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ficha-view .fmail {
  border: 1px solid var(--field-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ficha-view .fmail .mr {
  display: flex;
  gap: 10px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  align-items: baseline;
}
.ficha-view .fmail .mr span {
  width: 52px;
  flex-shrink: 0;
  color: var(--ink-faint);
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ficha-view .fmail .mbody {
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.65;
  background: var(--field);
}
.ficha-view .ofrm .og2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 11px;
}
.ficha-view .ofld label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}
.ficha-view .ofld input, .ficha-view .ofld select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--field-line);
  border-radius: 9px;
  background: var(--field);
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 0 11px;
  outline: none;
}
.ficha-view .ofld input:focus, .ficha-view .ofld select:focus {
  border-color: var(--green-bright);
  background: #fff;
}
.ficha-view .ofld input[readonly] {
  background: #F7F9F6;
  color: var(--ink-soft);
}
.ficha-view .ofld small {
  display: block;
  font-size: 10px;
  color: var(--green-deep);
  font-weight: 700;
  margin-top: 3px;
  min-height: 12px;
}
@media (max-width: 700px) {
  .ficha-view .ofrm .og2 {
    grid-template-columns: 1fr;
  }
}
.ficha-view .carta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 34px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #222;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.ficha-view .carta h2 {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.ficha-view .carta p {
  margin-bottom: 10px;
}
.ficha-view .carta .ctb {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
}
.ficha-view .carta .ctb td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 12px;
}
.ficha-view .carta .ctb td:first-child {
  width: 38%;
  font-weight: 700;
  background: #f6f6f2;
}
.ficha-view .cpay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 22px;
  margin: 4px 0 12px;
  font-size: 12px;
}
.ficha-view .cpay .sel {
  font-weight: 800;
  color: var(--green-deep);
}
.ficha-view .cfir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 44px;
  text-align: center;
}
.ficha-view .cfir .fl {
  border-bottom: 1.5px solid #333;
  height: 34px;
  margin-bottom: 7px;
}
.ficha-view .cfir b {
  display: block;
  font-size: 12px;
}
.ficha-view .cfir span {
  font-size: 11px;
  color: #666;
}
@media (max-width: 700px) {
  .ficha-view .carta {
    padding: 20px;
  }
}
.ficha-view .ctl {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ficha-view .ct-r {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 11px 13px;
  background: var(--field);
}
.ficha-view .ct-r.ok {
  background: #F6FAF4;
  border-color: #DDEBD2;
}
.ficha-view .ct-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--green-deep);
  position: relative;
}
.ficha-view .ct-ic.wa {
  background: #25D366;
}
.ficha-view .ct-ic.mail {
  background: #2b6bd4;
}
.ficha-view .ct-ic.tel {
  background: #16493B;
}
.ficha-view .ct-ic.push {
  background: #7C3AED;
}
.ficha-view .ct-ic::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #fff;
  border-radius: 4px;
}
.ficha-view .ct-t {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
}
.ficha-view .ct-q {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-style: italic;
  background: #fff;
  border-left: 3px solid var(--green-bright);
  border-radius: 0 8px 8px 0;
  padding: 7px 10px;
}
.ficha-view .ct-b {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
}
.ficha-view .ct-auto {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #EEF1EE;
  color: var(--ink-faint);
  border-radius: 999px;
  padding: 2px 8px;
}
.ficha-view .ct-ok {
  font-size: 10px;
  font-weight: 800;
  color: #2E7D27;
  background: #EAF5E4;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.ficha-view .ct-rules {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--field-line);
  padding-top: 10px;
}
.ficha-view .pm {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ficha-view .pm-bar {
  flex: 1;
  min-width: 150px;
  height: 8px;
  border-radius: 99px;
  background: #E3E9E2;
  overflow: hidden;
}
.ficha-view .pm-fill {
  height: 100%;
  background: #7C3AED;
  border-radius: 99px;
  transition: width 0.25s;
  width: 0;
}
.ficha-view .pm-txt {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ficha-view .pm-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  flex-basis: 100%;
}
.ficha-view {
  /* Fase 2: button-based match-card actions (no drag-and-drop, see the Fase 2 plan) */
}
.ficha-view .mk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.ficha-view .sent-note {
  font-size: 10.5px;
  color: var(--green-deep);
  font-weight: 700;
  margin-top: 4px;
}
.ficha-view .cnt-total {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 999px;
  padding: 3px 10px;
}
.ficha-view {
  /* "Cambiar estado" and "Agregar actividad" inline forms */
}
.ficha-view #transitionForm, .ficha-view #activityForm {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ficha-view #transitionForm select, .ficha-view #activityForm select {
  width: auto;
}
.ficha-view #transitionExtra {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ficha-view #activityForm {
  gap: 8px;
  margin-bottom: 14px;
}
.ficha-view #activityForm input[name=titulo] {
  flex: 1;
  min-width: 160px;
}
.ficha-view #activityForm input[type=datetime-local] {
  width: auto;
}
.ficha-view #transitionExtra select, .ficha-view #transitionExtra input {
  width: auto;
}
.ficha-view #nextActivityCard .bi {
  margin-bottom: 6px;
}
.ficha-view #nextActivityCard .na-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ficha-view #nextActivityCard .na-date {
  font-size: 12px;
  color: var(--ink-soft);
}
.ficha-view #activityList .bi {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.ficha-view #activityList .complete-activity {
  margin-left: auto;
}
.ficha-view .sug {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #DDEBD2;
  background: #F6FAF4;
  border-radius: 13px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.ficha-view .sug-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ficha-view .sug-t {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.55;
  min-width: 200px;
}
.ficha-view .st-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--field-line);
  padding-top: 13px;
}
.ficha-view .st-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.ficha-view .ivlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ficha-view .ivrow {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--field-line);
  border-radius: 11px;
  padding: 9px 12px;
  background: #fff;
  cursor: pointer;
}
.ficha-view .ivrow input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--green-deep);
}
.ficha-view .iv-t {
  flex: 1;
}
.ficha-view .iv-t b {
  font-size: 12.5px;
  display: block;
}
.ficha-view .iv-t span {
  font-size: 11px;
  color: var(--ink-soft);
}
.ficha-view .iv-u {
  width: 90px;
  height: 30px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--field);
  font-family: inherit;
  font-size: 12px;
  padding: 0 9px;
  outline: none;
}
.ficha-view .opt-scroll {
  overflow-x: auto;
}
.ficha-view table.optbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 720px;
}
.ficha-view .optbl th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-bottom: 1px solid var(--field-line);
  white-space: nowrap;
  background: var(--field);
}
.ficha-view .optbl td {
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  vertical-align: middle;
}
.ficha-view .optbl tr:last-child td {
  border-bottom: none;
}
.ficha-view .opl {
  font-weight: 800;
  color: var(--green-deep);
  cursor: pointer;
  text-decoration: none;
}
.ficha-view .opl:hover {
  text-decoration: underline;
}
.ficha-view .opk {
  margin-left: 8px;
  font-size: 9.5px;
  font-weight: 800;
  background: #EAF5E4;
  color: #2E7D27;
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: 1px;
}
.ficha-view .opk.r {
  background: #EDF2FB;
  color: #3A5FA8;
}
.ficha-view .opf {
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ficha-view .opd {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display: inline-block;
}
.ficha-view .opv {
  font-weight: 800;
  color: var(--green-deep);
}
.ficha-view .res-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--field);
  color: var(--ink-soft);
  border: 1px solid var(--field-line);
}
.ficha-view .res-chip.ef {
  background: var(--ok-soft, #EDF7EF);
  color: var(--ok);
  border-color: transparent;
}
.ficha-view .res-chip.enc {
  background: #FDF5E6;
  color: #b07d00;
  border-color: transparent;
}
.ficha-view .res-chip b { font-variant-numeric: tabular-nums; }
.ficha-view .res-chip b.up { color: var(--ok); }
.ficha-view .res-chip b.down { color: var(--bad); }
.ficha-view .tag.y { background: #FDF5E6; color: var(--warn); }
.ficha-view .cuando-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 4px;
}
.ficha-view .cuando-opt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  font-family: inherit;
}
.ficha-view .cuando-opt:hover {
  border-color: var(--green-bright);
  background: var(--field);
}
.ficha-view .cuando-opt b {
  font-size: 13.5px;
}
.ficha-view .cuando-opt span {
  font-size: 11.5px;
  color: var(--ink-soft);
}
.ficha-view .cuando-dir {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ficha-view .res-opts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0 4px;
}
.ficha-view .res-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
  transition: .12s;
}
.ficha-view .res-opt:hover:not(:disabled) {
  border-color: var(--green-bright);
  background: var(--field);
}
.ficha-view .res-opt:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}
.ficha-view .res-opt:disabled { opacity: .5; cursor: default; }
.ficha-view .res-opt.ef { border-left: 3px solid var(--green-bright); }
.ficha-view .res-opt .ro-l { flex: 1; }
.ficha-view .res-opt .ro-v {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.ficha-view .res-opt.ef .ro-v { color: var(--ok); }
.ficha-view #actividadesCard {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.ficha-view #actividadesCard .bar-list {
  max-height: 190px;
  overflow-y: auto;
}
.ficha-view .bar.slim { flex: 0 0 auto; }
.ficha-view .bar-hint { font-size: 11.5px; color: var(--ink-faint); }
.ficha-view .tag.hoy {
  background: rgba(217, 154, 0, .14);
  color: #b07d00;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ficha-view .done-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--field-line);
  background: var(--panel);
  color: var(--ink-faint);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: .12s;
}
.ficha-view .done-btn svg { width: 12px; height: 12px; }
.ficha-view .done-btn:hover { border-color: var(--green-bright); color: var(--green-bright); }
.ficha-view .done-btn:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.ficha-view #actividadesCard .bi .when { margin-left: 0; }
.ficha-view .fv .disp.static { cursor: default; }
.ficha-view .frow:hover .disp.static { background: transparent; border-color: transparent; }
.ficha-view .calif-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.ficha-view .calif-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  text-align: left;
  background: var(--panel);
  border: 1.5px solid var(--field-line);
  border-radius: 11px;
  cursor: pointer;
  transition: .13s;
  min-width: 0;
  font-family: inherit;
}
.ficha-view .calif-card:hover:not(:disabled) { border-color: var(--green-bright); }
.ficha-view .calif-card:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.ficha-view .calif-card:disabled { cursor: default; opacity: .75; }
.ficha-view .calif-card.on {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 1px var(--green-bright);
}
.ficha-view .cc-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink-faint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ficha-view .cc-ico svg { width: 15px; height: 15px; }
.ficha-view .calif-card.on .cc-ico {
  background: rgba(62, 165, 53, .14);
  color: var(--green-bright);
}
.ficha-view .cc-tx {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ficha-view .cc-tx b {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ficha-view .cc-tx span {
  font-size: 11.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .ficha-view .calif-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ficha-view .calif-cards { grid-template-columns: 1fr; }
}
.ficha-view .hm {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 460px;
}
.ficha-view .hm-day {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ficha-view .hm-dl {
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
  font-weight: 600;
}
.ficha-view .hm-c {
  border-radius: 9px;
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 4px 2px;
  border: 1px solid transparent;
}
.ficha-view .hm-day.best .hm-c { border-color: var(--green-bright); }
.ficha-view .hm-h {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ficha-view .hm-note {
  margin-top: 13px;
  max-width: 460px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--ok-soft, #EDF7EF);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.ficha-view .salida-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 4px;
}
.ficha-view .salida-opts .btn { width: 100%; }
.ficha-view .hm-empty {
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 62ch;
}
@media (max-width: 760px) {
  .ficha-view .hm { max-width: none; gap: 6px; }
  .ficha-view .hm-c { min-height: 46px; }
  .ficha-view .hm-h { font-size: 11px; }
}
@media (max-width: 760px) {
}
@media (max-width: 760px) {
  .ficha-view html, .ficha-view body {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

.finanzas-view .fin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 16px;
}
.finanzas-view .fsn {
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.finanzas-view .fsn:hover {
  color: var(--ink);
}
.finanzas-view .fsn.on {
  background: var(--green-deep);
  color: #fff;
}
.finanzas-view .fsn:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}
.finanzas-view .kpi .k-v.g {
  color: var(--ok);
}
.finanzas-view .kpi .k-v.y {
  color: #B7891F;
}
.finanzas-view .kpi .k-v.r {
  color: var(--bad);
}
.finanzas-view .res-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.finanzas-view .res-item:last-child {
  border-bottom: none;
}
.finanzas-view .res-item .res-c {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}
.finanzas-view .res-flujo {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 120px;
  padding-top: 8px;
}
.finanzas-view .rf-mes {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.finanzas-view .rf-bars {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  justify-content: center;
}
.finanzas-view .rf-bar {
  width: 14px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.finanzas-view .rf-bar.in {
  background: var(--green-bright);
}
.finanzas-view .rf-bar.out {
  background: #D99A00;
}
.finanzas-view .rf-l {
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-faint);
  font-weight: 700;
  margin-top: 5px;
}
.finanzas-view .ent-resultados {
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-top: 4px;
  overflow: hidden;
  background: var(--surface);
}
.finanzas-view .ent-res {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  border-bottom: 1px solid var(--border);
}
.finanzas-view .ent-res:last-child { border-bottom: none; }
.finanzas-view .ent-res:hover { background: var(--surface-2); }
.finanzas-view .cat-grupo { margin-bottom: 14px; }
.finanzas-view .cat-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.finanzas-view .cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}
.finanzas-view .cat-list .chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.finanzas-view .cat-add {
  display: flex;
  align-items: center;
  gap: 8px;
}
.finanzas-view .cat-add .field { max-width: 220px; }
.finanzas-view #finEstadoCuenta tfoot td {
  border-top: 2px solid var(--border-strong);
  padding-top: 9px;
}
.finanzas-view .fin-kpi .k-v {
  font-size: 22px;
}
.finanzas-view .per {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.finanzas-view .movbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
}
.finanzas-view .movbar .check {
  margin-left: auto;
}
.finanzas-view .ledger-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 6px 0 14px;
}
.finanzas-view .ledger-tabs button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.finanzas-view .ledger-tabs button.on {
  color: var(--green-deep);
  border-bottom-color: var(--green-bright);
}
.finanzas-view .ent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 10px;
}
.finanzas-view .ent .docs {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.finanzas-view .docchip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  background: #EAF3EA;
  color: var(--green-deep);
  border: 1px solid #D7E7D7;
}
.finanzas-view .docchip.miss {
  background: #FBE7E3;
  color: #B23A29;
  border-color: #F3D9D2;
}
.finanzas-view .docchip.opt {
  background: #FBF4E4;
  color: #8A6D1D;
  border-color: #EFE3C2;
}
.finanzas-view .ent-click {
  cursor: pointer;
}
.finanzas-view .ent-click:hover {
  border-color: var(--green-deep);
}
.finanzas-view .exp-docs {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.finanzas-view .exp-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.finanzas-view .exp-doc:last-child {
  border-bottom: none;
}
.finanzas-view .exp-doc-sp {
  flex: 1;
}
.finanzas-view .fin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.finanzas-view .fin-head-sp {
  flex: 1;
}
.finanzas-view .fin-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 16px;
  align-items: start;
}
.finanzas-view .ledger-wrap {
  overflow-x: auto;
}
.finanzas-view .ledger-wrap table {
  min-width: 820px;
}
.finanzas-view .amount-in {
  color: #1B7A44;
}
.finanzas-view .amount-out {
  color: #B23A29;
}
.finanzas-view .folio-chip {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #EAF3EA;
  color: var(--green-deep);
  border: 1px solid #D7E7D7;
  padding: 2px 7px;
  border-radius: 6px;
}
.finanzas-view .ent .docs b {
  font-size: 13px;
  white-space: nowrap;
}
.finanzas-view .ent {
  flex-wrap: wrap;
}
.finanzas-view .ent .docs {
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .finanzas-view .fin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .finanzas-view .fin-head {
    gap: 9px;
  }
  .finanzas-view .fin-head .per, .finanzas-view .fin-head .btn {
    flex: 1 1 100%;
  }
  .finanzas-view .fin-head .per select {
    width: 100%;
  }
}

.auth-page {
  /* ---------- Layout ---------- */
  /* & (not a nested .wrap{}) — .wrap and .auth-page are the SAME element in
     the real markup (<div class="wrap auth-page">), so a nested child
     selector here compiled to the descendant .auth-page .wrap, which can
     never match — the two-column layout was silently never applying. Flex
     (not the originally-drafted grid) since that's what was verified
     actually rendering correctly. */
}
.auth-page {
  display: flex;
  min-height: 100dvh;
  align-items: stretch;
}
.auth-page {
  /* ---------- Panel de marca ---------- */
}
.auth-page .brand {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 15% 0%, #1c5a48 0%, var(--green-deep) 42%, var(--green-deep-2) 100%);
  color: var(--brand-fg);
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  flex: 0 0 52%;
}
.auth-page {
  /* Firma: chevron arquitectónico */
}
.auth-page .chevron {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}
.auth-page .chevron svg {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  height: auto;
  max-width: 640px;
}
.auth-page .chevron path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s cubic-bezier(0.6, 0.05, 0.2, 1) forwards;
  vector-effect: non-scaling-stroke;
}
.auth-page .chevron .c1 {
  stroke: var(--green-bright);
  opacity: 0.55;
  stroke-width: 14;
  animation-delay: 0.15s;
}
.auth-page .chevron .c2 {
  stroke: var(--lime);
  opacity: 0.6;
  stroke-width: 14;
  animation-delay: 0.35s;
}
.auth-page .chevron .c3 {
  stroke: rgba(244, 248, 243, 0.1);
  stroke-width: 1.2;
  animation-delay: 0.05s;
}
.auth-page .chevron .c4 {
  stroke: rgba(244, 248, 243, 0.08);
  stroke-width: 1.2;
  animation-delay: 0.5s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.auth-page .brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-page .brand-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.auth-page .brand-badge {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 11px;
  border: 1px solid rgba(244, 248, 243, 0.28);
  border-radius: 999px;
  color: rgba(244, 248, 243, 0.85);
}
.auth-page .brand-mid {
  max-width: 15ch;
  margin: auto 0;
}
.auth-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(244, 248, 243, 0.72);
  margin-bottom: 22px;
}
.auth-page .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}
.auth-page .brand h1 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.auth-page .brand h1 em {
  font-style: normal;
  color: var(--lime);
}
.auth-page .brand p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(244, 248, 243, 0.82);
  max-width: 34ch;
}
.auth-page .brand-bottom {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.auth-page .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-page .stat b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.auth-page .stat span {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 248, 243, 0.6);
}
.auth-page .stat-div {
  width: 1px;
  height: 34px;
  background: rgba(244, 248, 243, 0.18);
}
.auth-page {
  /* ---------- Panel de autenticación ---------- */
}
.auth-page .auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  flex: 1;
}
.auth-page {
  /* pages with no .brand sibling (e.g. dev-only login) — flex:1 already
     fills the row on its own; kept explicit for clarity. */
}
.auth-page .auth.solo {
  flex: 1 1 100%;
}
.auth-page .role-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.auth-page .card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 3.4vw, 40px);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.auth-page .card-logo {
  height: 26px;
  width: auto;
  margin-bottom: 26px;
}
.auth-page .card h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.auth-page .card .sub {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 28px;
}
.auth-page .gbtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--field-line);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.18s;
  min-height: 50px;
}
.auth-page .gbtn:hover {
  border-color: var(--green-bright);
  background: var(--field);
  transform: translateY(-1px);
}
.auth-page .gbtn:active {
  transform: translateY(0);
}
.auth-page .gbtn:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}
.auth-page .gbtn img {
  width: 19px;
  height: 19px;
}
.auth-page .gbtn .spin {
  width: 19px;
  height: 19px;
  border: 2.4px solid var(--field-line);
  border-top-color: var(--green-bright);
  border-radius: 50%;
  animation: sp 0.7s linear infinite;
  display: none;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
.auth-page .gbtn.loading .glbl {
  opacity: 0.6;
}
.auth-page .gbtn.loading .gico {
  display: none;
}
.auth-page .gbtn.loading .spin {
  display: block;
}
.auth-page .domain-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 13px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.auth-page .domain-note b {
  color: var(--ink);
  font-weight: 600;
}
.auth-page .domain-note svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--green-bright);
}
.auth-page .domain-note.bad {
  border-color: var(--bad);
  color: var(--bad);
}
.auth-page .reject .back {
  display: inline-block;
  text-decoration: none;
}
.auth-page .auth input[type=email] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--field-line);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 14px;
}
.auth-page .card-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.auth-page .card-foot a {
  color: var(--ink-soft);
  text-decoration: none;
}
.auth-page .card-foot a:hover {
  color: var(--green-bright);
}
.auth-page {
  /* ---------- Selector de cuenta (simulado) ---------- */
}
.auth-page .overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 26, 21, 0.42);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.auth-page .overlay.show {
  display: flex;
  opacity: 1;
}
.auth-page .picker {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
  border: 1px solid var(--line);
}
.auth-page .overlay.show .picker {
  transform: translateY(0) scale(1);
}
.auth-page .picker-head {
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-page .picker-head img {
  height: 18px;
}
.auth-page .picker-head .gg {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-soft);
}
.auth-page .picker-head .gg img {
  height: 14px;
}
.auth-page .picker-body {
  padding: 8px;
}
.auth-page .picker-body .lead {
  padding: 12px 14px 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.auth-page .acct {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  text-align: left;
  font-family: inherit;
  transition: 0.14s;
}
.auth-page .acct:hover {
  background: var(--field);
}
.auth-page .acct:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: -2px;
}
.auth-page .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.auth-page .acct .meta {
  min-width: 0;
}
.auth-page .acct .nm {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-page .acct .em {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-page .acct .tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.auth-page .tag-ok {
  background: rgba(62, 165, 53, 0.14);
  color: #2e7d27;
}
.auth-page .tag-no {
  background: rgba(200, 80, 60, 0.12);
  color: #b64a34;
}
.auth-page .picker-foot {
  padding: 6px 8px 12px;
}
.auth-page .picker-cancel {
  width: 100%;
  text-align: center;
  padding: 12px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
}
.auth-page .picker-cancel:hover {
  background: var(--field);
  color: var(--ink);
}
.auth-page {
  /* estado de rechazo por dominio */
}
.auth-page .reject {
  padding: 22px 24px 24px;
  text-align: center;
  display: none;
}
.auth-page .reject.show {
  display: block;
}
.auth-page .reject .rx {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200, 80, 60, 0.12);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.auth-page .reject .rx svg {
  width: 26px;
  height: 26px;
  color: #c85440;
}
.auth-page .reject h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.auth-page .reject p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 30ch;
  margin: 0 auto 20px;
}
.auth-page .reject p b {
  color: var(--ink);
}
.auth-page .reject .back {
  background: var(--green-deep);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.auth-page .reject .back:hover {
  background: var(--green-deep-2);
}
.auth-page {
  /* estado de éxito */
}
.auth-page .success {
  padding: 30px 24px 26px;
  text-align: center;
  display: none;
}
.auth-page .success.show {
  display: block;
}
.auth-page .success .ok {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--lime));
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.4);
}
@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.auth-page .success .ok svg {
  width: 28px;
  height: 28px;
  color: #fff;
}
.auth-page .success h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-page .success p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.auth-page .success .loadbar {
  height: 3px;
  background: var(--field);
  border-radius: 3px;
  margin-top: 22px;
  overflow: hidden;
}
.auth-page .success .loadbar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-bright), var(--lime));
  animation: fill 1.4s ease forwards;
}
@keyframes fill {
  to {
    width: 100%;
  }
}
.auth-page {
  /* ---------- Responsive ---------- */
}
@media (max-width: 860px) {
  .auth-page {
    flex-direction: column;
  }
  .auth-page .brand {
    flex: none;
    padding: 30px 24px 34px;
    min-height: auto;
  }
  .auth-page .brand-mid {
    margin: 30px 0 6px;
  }
  .auth-page .chevron svg {
    width: 120%;
    right: -30%;
    opacity: 0.8;
  }
  .auth-page .brand h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
  .auth-page .brand-bottom {
    gap: 18px;
  }
  .auth-page .stat b {
    font-size: 19px;
  }
  .auth-page .auth {
    flex: none;
    padding: 30px 22px 40px;
  }
  .auth-page {
    /* keep visible */
  }
}
@media (max-width: 860px) {
  .auth-page .brand-top .brand-badge {
    display: none;
  }
}
@media (max-width: 400px) {
  .auth-page .brand-bottom .stat-div:nth-of-type(2) {
    display: none;
  }
  .auth-page .brand-bottom .stat:nth-of-type(3) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page * {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
}

.m0-view .mod {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--rail-ink);
  display: grid;
  place-items: center;
  transition: 0.16s;
  position: relative;
}
.m0-view .mod .tip {
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: #26302B;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  z-index: 60;
}
.m0-view .topbar {
  height: 64px;
  flex-shrink: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
}
.m0-view .tb-t .crumb {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.m0-view .tb-t h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.m0-view .tb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 9px 12px;
  width: 260px;
  color: var(--ink-soft);
}
.m0-view .tb-search svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.m0-view .tb-search input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
}
.m0-view .user {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 6px 11px 6px 7px;
}
.m0-view .user .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.m0-view .user .un {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}
.m0-view .user .ur {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.m0-view .scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 50px;
}
@media (max-width: 820px) {
  .m0-view .rail {
    width: 56px;
    padding: 10px 0 12px;
  }
  .m0-view .rail-logo {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }
  .m0-view .mod {
    width: 40px;
    height: 40px;
  }
  .m0-view .mod svg {
    width: 19px;
    height: 19px;
  }
  .m0-view .mod-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .m0-view .topbar {
    height: 56px;
    padding: 0 13px;
    gap: 10px;
  }
  .m0-view .tb-search {
    display: none;
  }
  .m0-view .tb-t h1 {
    font-size: 17px;
  }
  .m0-view .scroll {
    padding: 14px 13px 40px;
  }
}
.m0-view .hero {
  background: linear-gradient(120deg, var(--green-deep), #1c5a48 60%, var(--green-deep-2));
  border-radius: 16px;
  padding: 22px 24px;
  color: #F4F8F3;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.m0-view .hero h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.m0-view .hero p {
  font-size: 13.5px;
  color: rgba(244, 248, 243, 0.8);
  font-weight: 500;
}
.m0-view .hero .chev {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.16;
}
.m0-view .hero .chev svg {
  width: 190px;
  height: 190px;
}
.m0-view .kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.m0-view .kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
.m0-view .kpi .kt {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 800;
  margin-bottom: 8px;
}
.m0-view .kpi .kv {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.m0-view .kpi .kd {
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.m0-view .kd.up {
  color: var(--ok);
}
.m0-view .kd.down {
  color: var(--bad);
}
.m0-view .kd svg {
  width: 12px;
  height: 12px;
}
.m0-view .grid2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.m0-view .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.m0-view .card-h {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line-soft);
}
.m0-view .card-h .t {
  font-size: 13.5px;
  font-weight: 700;
}
.m0-view .card-h .sp {
  flex: 1;
}
.m0-view .card-h .lnk {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-bright);
  cursor: pointer;
}
.m0-view .card-b {
  padding: 16px 17px;
}
.m0-view {
  /* embudo */
}
.m0-view .fun {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.m0-view .fbar {
  display: flex;
  align-items: center;
  gap: 11px;
}
.m0-view .fbar .fl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  width: 150px;
  flex-shrink: 0;
}
.m0-view .fbar .ftrack {
  flex: 1;
  height: 26px;
  background: var(--field);
  border-radius: 7px;
  overflow: hidden;
}
.m0-view .fbar .ffill {
  height: 100%;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}
.m0-view .fbar .fv {
  font-size: 12px;
  font-weight: 800;
  width: 104px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.m0-view {
  /* agenda */
}
.m0-view .ag {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.m0-view .ag:last-child {
  border-bottom: none;
}
.m0-view .ag .ai {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.m0-view .ag .ai svg {
  width: 14px;
  height: 14px;
}
.m0-view .ai-call {
  background: var(--green-bright);
}
.m0-view .ai-visit {
  background: #7C3AED;
}
.m0-view .ai-wa {
  background: #25D366;
}
.m0-view .ai-mail {
  background: #2b6bd4;
}
.m0-view .ag .at {
  min-width: 0;
}
.m0-view .ag .at b {
  font-size: 13px;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m0-view .ag .at span {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.m0-view .ag .ah {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.m0-view .ag.vencida .ah {
  color: var(--bad);
}
.m0-view {
  /* módulos */
}
.m0-view .mgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.m0-view .mcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  transition: 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m0-view .mcard:hover {
  border-color: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(22, 73, 59, 0.3);
}
.m0-view .mcard .mi {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--field);
  color: var(--green-deep);
  display: grid;
  place-items: center;
}
.m0-view .mcard:hover .mi {
  background: var(--green-bright);
  color: #fff;
}
.m0-view .mcard .mi svg {
  width: 19px;
  height: 19px;
}
.m0-view .mcard b {
  font-size: 14px;
  font-weight: 700;
}
.m0-view .mcard span {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.m0-view .mcard .badge-new {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(62, 165, 53, 0.14);
  color: var(--green-deep);
  padding: 2px 7px;
  border-radius: 5px;
  align-self: flex-start;
}
.m0-view .mcard.soon {
  opacity: 0.62;
}
.m0-view .mcard.soon:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.m0-view .mcard.soon .mi {
  background: var(--field);
  color: var(--ink-faint);
}
.m0-view .sec-t {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.m0-view .sec-t::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.m0-view .dir-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.m0-view .dir-head h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.m0-view .dir-head-sp {
  flex: 1;
}
.m0-view .dir-filtros {
  display: flex;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.m0-view .dfp {
  border: none;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.m0-view .dfp:hover {
  color: var(--ink);
}
.m0-view .dfp.on {
  background: var(--green-deep);
  color: #fff;
}
.m0-view .dir-fechas {
  display: flex;
  align-items: center;
  gap: 6px;
}
.m0-view .dir-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.m0-view .dtab {
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.m0-view .dtab.on {
  color: var(--green-deep);
  border-bottom-color: var(--green-bright);
}
.m0-view .dtab.off {
  color: var(--ink-faint);
  cursor: not-allowed;
}
.m0-view .dir-kpis {
  grid-template-columns: repeat(5, 1fr);
}
.m0-view .dir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.m0-view .dir-span2 {
  grid-column: span 2;
}
.m0-view .evo-line {
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.m0-view .evo-line svg {
  display: block;
}
.m0-view .evo-leyenda {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.m0-view .evo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 5px;
}
.m0-view .evo-dot.act {
  background: #2F8F5B;
}
.m0-view .evo-dot.prev {
  background: #ADBCB2;
}
.m0-view .fun3 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 2px;
}
.m0-view .f3-seg {
  position: relative;
  text-align: center;
}
.m0-view .f3-seg svg {
  display: block;
}
.m0-view .f3-txt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.m0-view .f3-txt b {
  font-size: 14.5px;
  font-weight: 800;
}
.m0-view .f3-txt span {
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.85;
}
.m0-view .f3-pill {
  position: relative;
  z-index: 2;
  margin: -13px 0;
  background: #fff;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(22, 73, 59, 0.18);
}
.m0-view .f3-pill.ok {
  color: #1B7A44;
}
.m0-view .f3-pill.bajo {
  color: #B7891F;
}
.m0-view .f3-logo {
  position: absolute;
  right: 0;
  bottom: -2px;
  height: 22px;
  opacity: 0.85;
}
.m0-view .emb-bateo {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 11px;
  font-size: 12.5px;
  font-weight: 700;
}
.m0-view .top-g {
  margin-bottom: 12px;
}
.m0-view .top-t {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 10px 0 6px;
}
.m0-view .top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.m0-view .top-row:last-child {
  border-bottom: none;
}
.m0-view .top-n {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.m0-view .lb-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.m0-view .lb-row:last-child {
  border-bottom: none;
}
.m0-view .lb-pos {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--green-deep);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.m0-view .lb-n {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.m0-view .lb-fin {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.m0-view .prev-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.m0-view .prev-row:last-child {
  border-bottom: none;
}
.m0-view .prev-n {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.m0-view .prev-f {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.m0-view .exp-total {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.m0-view .mkt-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.m0-view .mkt-ads {
  margin-bottom: 4px;
}
.m0-view .obs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.m0-view .obs-row:last-child {
  border-bottom: none;
}
@media (max-width: 1100px) {
  .m0-view .dir-grid {
    grid-template-columns: 1fr;
  }
  .m0-view .dir-span2 {
    grid-column: auto;
  }
  .m0-view .dir-kpis {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1100px) {
  .m0-view .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .m0-view .grid2 {
    grid-template-columns: 1fr;
  }
  .m0-view .mgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .m0-view .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .m0-view .mgrid {
    grid-template-columns: 1fr;
  }
  .m0-view .hero .chev {
    display: none;
  }
  .m0-view .fbar {
    gap: 9px;
  }
  .m0-view .fbar .fl {
    width: 88px;
    font-size: 11px;
  }
  .m0-view .fbar .fv {
    width: 98px;
    font-size: 11px;
  }
}

.m3-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.m3-view .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}
.m3-view .icon-btn:hover {
  color: var(--ink);
}
.m3-view .icon-btn svg {
  width: 16px;
  height: 16px;
}
.m3-view {
  /* Toolbar del módulo */
}
.m3-view .toolbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}
.m3-view .tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
}
.m3-view .tabs::-webkit-scrollbar {
  display: none;
}
.m3-view .tab {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 9px 9px 0 0;
  white-space: nowrap;
  position: relative;
  transition: 0.14s;
}
.m3-view .tab:hover {
  color: var(--ink);
  background: var(--field);
}
.m3-view .tab.active {
  color: var(--green-deep);
  background: var(--field);
}
.m3-view .tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2.5px;
  background: var(--green-bright);
  border-radius: 2px;
}
.m3-view .tabs.hidden {
  display: none;
}
.m3-view .controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  flex-wrap: wrap;
}
.viewtog {
  display: flex;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.vt {
  border: none;
  background: none;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.vt svg {
  width: 16px;
  height: 16px;
}
.vt:hover {
  color: var(--ink);
}
.vt.active {
  background: var(--panel);
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.ctl-div {
  width: 1px;
  height: 24px;
  background: var(--field-line);
  border-radius: 1px;
}
.m3-view .ctl-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--field);
  border: 1px solid var(--field-line);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
.m3-view .ctl-btn:hover {
  border-color: var(--green-bright);
}
.m3-view .ctl-btn svg {
  width: 15px;
  height: 15px;
  color: var(--ink-soft);
}
.m3-view .asesor-pick {
  position: relative;
}
.m3-view .asesor-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(62, 165, 53, 0.1);
  border: 1px solid rgba(62, 165, 53, 0.28);
  color: var(--green-deep);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
.m3-view .asesor-lock svg {
  width: 14px;
  height: 14px;
}
.m3-view .ctl-sp {
  flex: 1;
}
.m3-view .count-pill {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.m3-view .count-pill b {
  color: var(--ink);
}
.m3-view .create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 700;
}
.m3-view .create-btn:hover {
  background: var(--green-deep-2);
}
.m3-view .create-btn svg {
  width: 16px;
  height: 16px;
}
.m3-view {
  /* Cuerpo: filtros + contenido */
}
.m3-view .body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.m3-view .content {
  flex: 1;
  overflow: auto;
  min-width: 0;
  position: relative;
}
.m3-view {
  /* ---------- Vista LISTA ---------- */
}
.m3-view .list {
  padding: 0;
}
.m3-view .list-head, .m3-view .row {
  display: grid;
  grid-template-columns: 28px minmax(180px, 1.4fr) 150px minmax(130px, 1fr) 130px minmax(150px, 1fr) 130px 150px;
  align-items: center;
  gap: 0;
}
.m3-view .list-head {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 5;
  padding: 11px 20px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.m3-view .row {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
  transition: background 0.12s;
  cursor: pointer;
}
.m3-view .row:hover {
  background: var(--field);
}
.m3-view .row .nm {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.m3-view .cell-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.m3-view .cell {
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 10px;
}
.m3-view .cell.mono {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}
.m3-view .chk {
  width: 16px;
  height: 16px;
  border: 1.6px solid var(--field-line);
  border-radius: 5px;
}
.m3-view .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.m3-view .tag-correo {
  background: rgba(66, 133, 244, 0.14);
  color: #2b6bd4;
}
.m3-view .tag-fuente {
  background: rgba(224, 116, 46, 0.16);
  color: #c65f1f;
}
.m3-view .tag-seg {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
}
.m3-view .tag-more {
  background: var(--field);
  color: var(--ink-soft);
  border: 1px solid var(--field-line);
}
.m3-view .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.m3-view .badge .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.m3-view .avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.m3-view .asesor-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m3-view .call {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(62, 165, 53, 0.12);
  color: var(--green-bright);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.m3-view .call svg {
  width: 13px;
  height: 13px;
}
.m3-view .movil-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m3-view {
  /* ---------- Vista KANBAN ---------- */
}
.m3-view .kanban {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  height: 100%;
  overflow-x: auto;
  align-items: flex-start;
}
.m3-view .kcol {
  width: 290px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.m3-view .kcol-head {
  border-radius: 12px 12px 0 0;
  padding: 12px 14px;
  color: #fff;
}
.m3-view .kcol-head .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
.m3-view .kcol-head .nm {
  font-size: 13.5px;
  font-weight: 700;
}
.m3-view .kcol-head .ct {
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
}
.m3-view .kcol-head .amt {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.m3-view .kcol-body {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m3-view .kcol-empty {
  padding: 18px 6px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 12px;
}
.m3-view .kcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  box-shadow: 0 1px 2px rgba(22, 73, 59, 0.04);
  cursor: pointer;
  transition: 0.14s;
}
.m3-view .kcard:hover {
  border-color: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.m3-view .kcard .kname {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.m3-view .kcard .ktags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.m3-view .kcard .kmeta {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.m3-view .kcard .kmeta .mrow {
  display: flex;
  align-items: center;
  gap: 7px;
}
.m3-view .kcard .kmeta svg {
  width: 12px;
  height: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.m3-view .kcard .kfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.m3-view .kcard .kase {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
  min-width: 0;
}
.m3-view .kcard .kase .lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m3-view .kcard .kval {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m3-view .empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
}
.m3-view {
  /* ---------- Mobile drawer ---------- */
}
@media (max-width: 900px) {
  .m3-view .list-head {
    display: none;
  }
  .m3-view .row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
    row-gap: 8px;
  }
  .m3-view .row .cell, .m3-view .row .cell-tags, .m3-view .row .movil-cell, .m3-view .row .asesor-cell, .m3-view .row .badge-wrap {
    grid-column: 1;
  }
  .m3-view .row .chk {
    display: none;
  }
  .m3-view .row .cell:not(.nm-cell)::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 700;
    margin-bottom: 2px;
  }
  .m3-view .row .nm {
    font-size: 15px;
  }
}
@media (max-width: 560px) {
  .m3-view .tabs {
    display: none !important;
  }
  .m3-view .kanban {
    padding: 12px;
  }
}
.m3-view .qa-bar {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.m3-view .qa-b {
  flex: 1;
  display: inline-grid;
  place-items: center;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--green-deep);
  cursor: pointer;
  text-decoration: none;
}
.m3-view .qa-b svg {
  width: 15px;
  height: 15px;
}
.m3-view .qa-b:hover {
  border-color: var(--green-bright);
}
.m3-view .qa-b.wa {
  color: #25D366;
}
.m3-view .movil-cell .qa-mini {
  display: inline-flex;
  gap: 5px;
  margin-left: 8px;
  vertical-align: middle;
}
.m3-view .qa-mini a {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--green-deep);
  text-decoration: none;
  cursor: pointer;
}
.m3-view .qa-mini a svg {
  width: 13px;
  height: 13px;
}
.m3-view .qa-mini a.wa {
  color: #25D366;
}

@media (prefers-reduced-motion: reduce) {
  .m3-view * {
    transition-duration: 0.001s !important;
  }
}
.marketing-view input, .marketing-view select {
  font-family: inherit;
}
.marketing-view .hidden {
  display: none !important;
}
.marketing-view .mod {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--rail-ink);
  display: grid;
  place-items: center;
  transition: 0.16s;
  position: relative;
}
.marketing-view .mod .tip {
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: #26302B;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  z-index: 60;
}
.marketing-view {
  /* topbar */
}
.marketing-view .topbar {
  height: 62px;
  flex-shrink: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}
.marketing-view .tb-t .crumb {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.marketing-view .tb-t h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.marketing-view .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
}
.marketing-view .btn.primary {
  background: var(--green-deep);
  color: #fff;
}
.marketing-view .btn.primary:hover {
  background: var(--green-deep-2);
}
.marketing-view .btn.ghost {
  background: var(--field);
  border-color: var(--field-line);
  color: var(--ink);
}
.marketing-view .btn.ghost:hover {
  border-color: var(--green-bright);
}
.marketing-view {
  /* mes */
}
.marketing-view .mescal {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 4px;
}
.marketing-view .mescal button {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  border-radius: 7px;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}
.marketing-view .mescal button:hover {
  background: var(--panel);
  color: var(--ink);
}
.marketing-view .mescal button svg {
  width: 15px;
  height: 15px;
}
.marketing-view .mescal .m {
  font-size: 13px;
  font-weight: 800;
  min-width: 118px;
  text-align: center;
  text-transform: capitalize;
}
.marketing-view {
  /* tabs */
}
.marketing-view .tabs {
  display: flex;
  gap: 2px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}
.marketing-view .tab {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 15px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}
.marketing-view .tab svg {
  width: 15px;
  height: 15px;
}
.marketing-view .tab:hover {
  color: var(--ink);
}
.marketing-view .tab.active {
  color: var(--green-deep);
}
.marketing-view .tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2.5px;
  background: var(--green-bright);
  border-radius: 2px;
}
.marketing-view .scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 60px;
}
.marketing-view .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.marketing-view .card-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line-soft);
}
.marketing-view .card-h .ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--field);
  color: var(--green-deep);
  display: grid;
  place-items: center;
}
.marketing-view .card-h .ic svg {
  width: 16px;
  height: 16px;
}
.marketing-view .card-h h2 {
  font-size: 14.5px;
  font-weight: 700;
}
.marketing-view .card-h .sub {
  font-size: 12px;
  color: var(--ink-soft);
}
.marketing-view .card-h .sp {
  flex: 1;
}
.marketing-view .card-b {
  padding: 16px 17px;
}
.marketing-view {
  /* ===== PLANEADOR ===== */
}
.marketing-view .plan {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 16px;
}
.marketing-view .qrow {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.marketing-view .qrow:last-child {
  border-bottom: none;
}
.marketing-view .qrow .ql {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  width: 120px;
  flex-shrink: 0;
  padding-top: 6px;
}
.marketing-view .qrow .qv {
  flex: 1;
  min-width: 0;
}
.marketing-view .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.marketing-view .chip {
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 8px;
  padding: 0 12px;
  height: 32px;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.marketing-view .chip:hover {
  border-color: var(--green-bright);
}
.marketing-view .chip.on {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.marketing-view select.sel {
  width: 100%;
  height: 36px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 9px;
  padding: 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.marketing-view select.sel:focus {
  border-color: var(--green-bright);
}
.marketing-view {
  /* captura de piezas por tipo/color */
}
.marketing-view .piezas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.marketing-view .pz {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--field-line);
  border-radius: 11px;
  background: var(--field);
  transition: 0.14s;
}
.marketing-view .pz.act {
  background: var(--panel);
  border-color: var(--green-bright);
  box-shadow: 0 2px 10px -6px rgba(22, 73, 59, 0.3);
}
.marketing-view .pz .sw {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  flex-shrink: 0;
}
.marketing-view .pz .pn {
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.marketing-view .pz .pd {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
}
.marketing-view .pz .stp {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.marketing-view .stp button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--field-line);
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.marketing-view .stp button:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}
.marketing-view .stp input {
  width: 44px;
  height: 28px;
  border: 1px solid var(--field-line);
  background: var(--panel);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  outline: none;
}
.marketing-view .stp input:focus {
  border-color: var(--green-bright);
}
.marketing-view .tot {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(62, 165, 53, 0.08);
  border: 1px solid rgba(62, 165, 53, 0.3);
  border-radius: 11px;
  padding: 12px 14px;
  margin-top: 12px;
}
.marketing-view .tot .tn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--green-bright);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
}
.marketing-view .tot b {
  font-size: 13.5px;
  display: block;
}
.marketing-view .tot span {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.marketing-view .paquetes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.marketing-view .pq {
  border: 1px dashed var(--field-line);
  background: var(--field);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.marketing-view .pq:hover {
  border-color: var(--green-bright);
  border-style: solid;
}
.marketing-view .pq svg {
  width: 13px;
  height: 13px;
}
.marketing-view {
  /* ===== CALENDARIO ===== */
}
.marketing-view .leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.marketing-view .lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
}
.marketing-view .lg .sw {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.marketing-view .lg .n {
  background: var(--field);
  color: var(--ink-soft);
  border-radius: 5px;
  padding: 0 6px;
  font-size: 10.5px;
  font-weight: 800;
}
.marketing-view .cal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.marketing-view .calhead {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--field);
  border-bottom: 1px solid var(--line);
}
.marketing-view .calhead span {
  padding: 9px 6px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 800;
}
.marketing-view .calgrid {
  display: block;
}
.marketing-view .week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.marketing-view {
  /* barras continuas de campañas (anuncios de varios días) */
}
.marketing-view .spans {
  position: absolute;
  left: 0;
  right: 0;
  top: 25px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 0;
  pointer-events: none;
  z-index: 2;
}
.marketing-view .span {
  pointer-events: auto;
  height: 19px;
  border-radius: 6px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 2px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.marketing-view .span:hover {
  filter: brightness(1.08);
}
.marketing-view .span.drag {
  opacity: 0.35;
}
.marketing-view .span.cl {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
}
.marketing-view .span.cr {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
}
.marketing-view .span .ci {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}
.marketing-view .span .cd {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 0 4px;
  flex-shrink: 0;
}
.marketing-view .day {
  min-height: 104px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 7px 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.marketing-view .day:nth-child(7n) {
  border-right: none;
}
.marketing-view .day.out {
  background: var(--field);
  opacity: 0.5;
}
.marketing-view .day .dn {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 5px;
}
.marketing-view .day.hoy .dn {
  color: #fff;
  background: var(--green-bright);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  justify-content: center;
}
.marketing-view .day.fin {
  background: rgba(0, 0, 0, 0.012);
}
.marketing-view .ev {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: 0.12s;
  white-space: nowrap;
  overflow: hidden;
}
.marketing-view .ev:hover {
  transform: translateX(1px);
  filter: brightness(1.08);
}
.marketing-view .ev .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}
.marketing-view .ev.pub {
  opacity: 0.55;
}
.marketing-view .ev .tx {
  overflow: hidden;
  text-overflow: ellipsis;
}
.marketing-view .day .mas {
  font-size: 10px;
  font-weight: 800;
  color: var(--green-deep);
  padding-left: 3px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.marketing-view .day .mas:hover {
  background: var(--field);
}
.marketing-view {
  /* detalle del día (como Google Calendar) */
}
.marketing-view .diamodal {
  width: 100%;
  max-width: 400px;
}
.marketing-view .dl {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.marketing-view .dl:last-child {
  border-bottom: none;
}
.marketing-view .dl:hover {
  background: var(--field);
}
.marketing-view .dl .dh {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-soft);
  width: 44px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.marketing-view .dl .dsw {
  width: 4px;
  height: 26px;
  border-radius: 3px;
  flex-shrink: 0;
}
.marketing-view .dl .dt b {
  font-size: 12.5px;
  display: block;
}
.marketing-view .mkt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.marketing-view .mkt-head-sp {
  flex: 1;
}
.marketing-view .pz .sw {
  background: var(--c, #999);
}
.marketing-view .pz .stp .qty {
  width: 58px;
  height: 30px;
  text-align: center;
  padding: 0 6px;
}
.marketing-view .pz .stp .btn.xs {
  width: 28px;
  justify-content: center;
  padding: 0;
}
.marketing-view .dl .sw {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--c, #999);
}
.marketing-view .dl b {
  margin-left: auto;
  font-size: 13px;
}
.marketing-view .lg .sw {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c, #999);
}
.marketing-view .ev {
  background: var(--c, #999);
}
.marketing-view .calgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.marketing-view .day.dom {
  background: var(--field);
  opacity: 0.55;
}
.marketing-view .day.over {
  background: rgba(62, 165, 53, 0.12);
  outline: 2px dashed var(--green-bright);
  outline-offset: -3px;
}
.marketing-view .calhead .dom {
  color: var(--ink-faint);
  opacity: 0.7;
}
.marketing-view .auto-note {
  margin-top: 8px;
  background: rgba(62, 165, 53, 0.1);
  border: 1px solid rgba(62, 165, 53, 0.3);
  color: var(--green-deep);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 11.5px;
  font-weight: 700;
}
.marketing-view .sec-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 16px 0 10px;
}
.marketing-view .card-h .sub {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-left: auto;
  text-align: right;
}
.marketing-view .w-130 {
  width: 130px;
}
.marketing-view .grow-btn {
  flex: 1;
  justify-content: center;
}
.marketing-view .mb-16 {
  margin-bottom: 16px;
}
.marketing-view .pz-copy {
  height: auto;
  min-height: 88px;
  padding: 9px 12px;
  line-height: 1.5;
}
.marketing-view .btn.del {
  color: #B23A29;
  border-color: #F3D9D2;
  background: #FBE7E3;
}
.marketing-view .plan {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .marketing-view .plan {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .marketing-view .mkt-head {
    gap: 9px;
  }
  .marketing-view .mkt-head .seg, .marketing-view .mkt-head .mescal {
    flex: 1 1 100%;
  }
  .marketing-view .calgrid {
    grid-template-columns: repeat(7, minmax(78px, 1fr));
    overflow-x: auto;
  }
  .marketing-view .calhead {
    grid-template-columns: repeat(7, minmax(78px, 1fr));
  }
  .marketing-view .day {
    min-height: 84px;
  }
  .marketing-view .card-h .sub {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: left;
  }
}
.marketing-view .dl .dt span {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.marketing-view .dl .de {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  color: #fff;
  flex-shrink: 0;
}
.marketing-view {
  /* evento de Google Calendar en la ficha */
}
.marketing-view .gcal {
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 11px;
  padding: 11px 12px;
}
.marketing-view .gcal .gt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 800;
  margin-bottom: 8px;
}
.marketing-view .gcal .gt svg {
  width: 12px;
  height: 12px;
}
.marketing-view .gcal .gt .sync {
  margin-left: auto;
  color: var(--ok);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 10px;
}
.marketing-view .gline {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  padding: 3px 0;
}
.marketing-view .gline .gk {
  color: var(--ink-faint);
  font-weight: 700;
  width: 66px;
  flex-shrink: 0;
}
.marketing-view .gline .gv {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}
.marketing-view .toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(12px);
  background: var(--green-deep);
  color: #F4F8F3;
  border-radius: 11px;
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: 0.3s;
  z-index: 300;
  pointer-events: none;
  max-width: 90vw;
}
.marketing-view .toast svg {
  width: 15px;
  height: 15px;
  color: var(--lime);
  flex-shrink: 0;
}
.marketing-view .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.marketing-view {
  /* KPIs */
}
.marketing-view .kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.marketing-view .kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
}
.marketing-view .kpi .kt {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 800;
  margin-bottom: 6px;
}
.marketing-view .kpi .kv {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.marketing-view .kpi .kb {
  height: 5px;
  background: var(--field);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.marketing-view .kpi .kb i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--green-bright);
}
.marketing-view {
  /* copy + campaña */
}
.marketing-view .mf textarea {
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  line-height: 1.45;
  resize: vertical;
}
.marketing-view .mf textarea:focus {
  border-color: var(--green-bright);
}
.marketing-view .mf .cnt {
  float: right;
  font-size: 10.5px;
  color: var(--ink-faint);
  font-weight: 700;
}
.marketing-view .adsbox {
  border: 1px solid rgba(214, 69, 48, 0.3);
  background: rgba(214, 69, 48, 0.06);
  border-radius: 11px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.marketing-view .adsbox .ah {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b03a28;
}
.marketing-view .adsbox .ah svg {
  width: 13px;
  height: 13px;
}
.marketing-view .ads2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.marketing-view .canchips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.marketing-view .cch {
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.marketing-view .cch.on {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.marketing-view .multi {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-deep);
  background: rgba(62, 165, 53, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
  margin-top: 7px;
}
.marketing-view {
  /* etiqueta de destino en el calendario */
}
.marketing-view .ev .dst {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}
.marketing-view .ev .hr {
  font-size: 9.5px;
  font-weight: 800;
  opacity: 0.9;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.marketing-view {
  /* arrastrar y soltar (funciona con mouse y con el dedo) */
}
.marketing-view .ev {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.marketing-view .ev.drag {
  opacity: 0.35;
}
.marketing-view .ghost {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(1.06);
}
.marketing-view .day.over {
  background: rgba(62, 165, 53, 0.12);
  box-shadow: inset 0 0 0 2px var(--green-bright);
}
.marketing-view .hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 10px;
}
.marketing-view .hint svg {
  width: 14px;
  height: 14px;
  color: var(--green-bright);
}
.marketing-view {
  /* modal */
}
.marketing-view .scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 21, 0.45);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.marketing-view .scrim.show {
  display: flex;
}
.marketing-view .modal {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.5);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
}
.marketing-view .modal-h, .marketing-view .modal-f {
  flex-shrink: 0;
}
.marketing-view .modal-b {
  overflow-y: auto;
}
.marketing-view {
  /* la ficha crece: el cuerpo hace scroll, el encabezado y los botones quedan fijos */
}
.marketing-view .modal-h {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line-soft);
}
.marketing-view .modal-h .mic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.marketing-view .modal-h b {
  font-size: 14.5px;
  display: block;
}
.marketing-view .modal-h span {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.marketing-view .modal-h .mx {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 16px;
  font-weight: 700;
}
.marketing-view .modal-b {
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.marketing-view .mf label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.marketing-view .mf input, .marketing-view .mf select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 9px;
  padding: 0 10px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  font-weight: 600;
}
.marketing-view .estados {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.marketing-view .est {
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.marketing-view .est.on {
  color: #fff;
}
.marketing-view .modal-f {
  display: flex;
  gap: 9px;
  padding: 13px 17px;
  border-top: 1px solid var(--line-soft);
  justify-content: space-between;
}
.marketing-view .del {
  background: none;
  border: none;
  color: var(--bad);
  font-size: 12.5px;
  font-weight: 700;
}
.marketing-view {
  /* fase 2 */
}
.marketing-view .f2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.marketing-view .f2c {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  background: var(--panel);
  opacity: 0.75;
}
.marketing-view .f2c .lg2 {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  margin-bottom: 11px;
  font-size: 15px;
}
.marketing-view .f2c b {
  font-size: 13.5px;
  display: block;
  margin-bottom: 4px;
}
.marketing-view .f2c p {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.marketing-view .f2c .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--field);
  color: var(--ink-faint);
  padding: 3px 8px;
  border-radius: 5px;
}
.marketing-view .f2note {
  display: flex;
  gap: 10px;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.marketing-view .f2note svg {
  width: 16px;
  height: 16px;
  color: var(--green-bright);
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width: 1050px) {
  .marketing-view .plan {
    grid-template-columns: 1fr;
  }
  .marketing-view .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .marketing-view .f2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .marketing-view .rail {
    width: 56px;
  }
  .marketing-view .mod {
    width: 40px;
    height: 40px;
  }
  .marketing-view .mod svg {
    width: 19px;
    height: 19px;
  }
  .marketing-view .topbar {
    height: 56px;
    padding: 0 13px;
  }
  .marketing-view .tb-t h1 {
    font-size: 17px;
  }
  .marketing-view .scroll {
    padding: 14px 12px 50px;
  }
  .marketing-view .day {
    min-height: 74px;
    padding: 5px;
  }
  .marketing-view .ev .tx {
    display: none;
  }
  .marketing-view .ev {
    padding: 3px;
    justify-content: center;
  }
  .marketing-view .qrow {
    flex-direction: column;
    gap: 7px;
  }
  .marketing-view .qrow .ql {
    width: auto;
  }
  .marketing-view .mescal .m {
    min-width: 92px;
    font-size: 12px;
  }
}

.obsequios-view .ob-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.obsequios-view .ob-caja {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.obsequios-view .ob-lid {
  height: 10px;
}
.obsequios-view .ob-body {
  padding: 15px;
}
.obsequios-view .ob-n {
  font-size: 14px;
  font-weight: 700;
}
.obsequios-view .ob-w {
  font-size: 11px;
  color: var(--green-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 4px 0 8px;
}
.obsequios-view .ob-c {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 860px) {
  .obsequios-view .ob-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.obsequios-view .ob-lid {
  background: var(--c, var(--green-bright));
}
.obsequios-view .ob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.obsequios-view .ob-body {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.obsequios-view .ob-n {
  font-size: 13.5px;
  font-weight: 700;
}

.oportunidades-view .topbar .backbtn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  place-items: center;
  flex-shrink: 0;
}
.oportunidades-view .topbar .backbtn svg {
  width: 17px;
  height: 17px;
}
.oportunidades-view .view {
  display: none;
}
.oportunidades-view .view.on {
  display: block;
}
.oportunidades-view {
  /* ---- kanban formato Clientes ---- */
}
.oportunidades-view .kanban {
  display: flex;
  gap: 14px;
  height: calc(100dvh - 130px);
  overflow-x: auto;
  align-items: flex-start;
  padding-bottom: 6px;
}
.oportunidades-view .kcol {
  width: 288px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.oportunidades-view .kcol-head {
  border-radius: 12px 12px 0 0;
  padding: 12px 14px;
  color: #fff;
}
.oportunidades-view .kcol-head .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.oportunidades-view .kcol-head .nm {
  font-size: 13px;
  font-weight: 700;
}
.oportunidades-view .kcol-head .ct {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
}
.oportunidades-view .kcol-head .amt {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.oportunidades-view .kcol-head .amt small {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 5px;
}
.oportunidades-view .kcol-body {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 70px;
}
.oportunidades-view .kcard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  box-shadow: 0 1px 2px rgba(22, 73, 59, 0.04);
  cursor: pointer;
  transition: 0.14s;
}
.oportunidades-view .kcard:hover {
  border-color: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.oportunidades-view .kcard .kname {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
  padding-right: 24px;
}
.oportunidades-view .kcard .kmeta {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.oportunidades-view .kcard .kmeta .mrow {
  display: flex;
  align-items: center;
  gap: 7px;
}
.oportunidades-view .kcard .kmeta svg {
  width: 12px;
  height: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.oportunidades-view .kcard .kfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.oportunidades-view .kcard .kase {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
  min-width: 0;
}
.oportunidades-view .kcard .kval {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.oportunidades-view .kcard.lost .kval {
  color: var(--bad);
}
.oportunidades-view .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--lime));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.oportunidades-view {
  /* indicador pendiente/vencido */
}
.oportunidades-view .knotif {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.oportunidades-view .knotif svg {
  width: 13px;
  height: 13px;
}
.oportunidades-view .knotif.pend {
  background: #FBF3DE;
  color: #A9840F;
}
.oportunidades-view .knotif.venc {
  background: #FBE7E3;
  color: #C0392B;
}
.oportunidades-view .knotif .bdot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--panel);
}
.oportunidades-view .knotif.pend .bdot {
  background: var(--warn);
}
.oportunidades-view .knotif.venc .bdot {
  background: var(--bad);
}
.oportunidades-view .kb-sep {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0 2px;
}
.oportunidades-view .kb-sep span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #B23A29;
  background: #FBE7E3;
  border: 1px solid #F3D9D2;
  border-radius: 8px;
  padding: 16px 5px;
}
.oportunidades-view .seg button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 13px;
  border-radius: 7px;
  cursor: pointer;
}
.oportunidades-view .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.oportunidades-view .btn:hover {
  border-color: #C7D3C7;
}
.oportunidades-view .btn.bad {
  color: var(--bad);
  border-color: #F3D9D2;
  background: #FEF6F4;
}
.oportunidades-view .esbozo .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
}
.oportunidades-view thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #FAFCFA;
}
.oportunidades-view tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.oportunidades-view tbody tr {
  cursor: pointer;
}
.oportunidades-view .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.oportunidades-view .phbar {
  height: 5px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 5px;
  width: 150px;
}
.oportunidades-view .phfill {
  height: 100%;
  border-radius: 5px;
}
.oportunidades-view {
  /* ---- interior de la oportunidad ---- */
}
.oportunidades-view .deal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.oportunidades-view .deal-av {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-bright));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.oportunidades-view .deal-h-t .dn {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.oportunidades-view .deal-h-t .ds {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.oportunidades-view .deal-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.oportunidades-view .iact {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--field);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
}
.oportunidades-view .iact:hover {
  border-color: var(--green-bright);
  color: var(--green-deep);
}
.oportunidades-view .iact svg {
  width: 18px;
  height: 18px;
}
.oportunidades-view .deal-val {
  text-align: right;
}
.oportunidades-view .deal-val .dv {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}
.oportunidades-view .deal-val .dl {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}
.oportunidades-view {
  /* stepper de fases */
}
.oportunidades-view .stepper {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.oportunidades-view .stepper-h {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.oportunidades-view .stepper-h h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.oportunidades-view .stepper-h .pct {
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  color: var(--green-deep);
}
.oportunidades-view .steps {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.oportunidades-view .stp {
  flex: 1;
  min-width: 96px;
  position: relative;
  padding-top: 22px;
  text-align: center;
}
.oportunidades-view .stp::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line);
}
.oportunidades-view .stp.done::before, .oportunidades-view .stp.now::before {
  background: var(--green-bright);
}
.oportunidades-view .stp .sd {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--bg);
  z-index: 2;
}
.oportunidades-view .stp.done .sd {
  background: var(--green-bright);
}
.oportunidades-view .stp.now .sd {
  background: var(--green-deep);
  box-shadow: 0 0 0 4px rgba(22, 73, 59, 0.14);
}
.oportunidades-view .stp .sn {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.25;
  padding: 0 4px;
}
.oportunidades-view .stp.now .sn {
  color: var(--green-deep);
  font-weight: 800;
}
.oportunidades-view .stp .sp {
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 700;
}
.oportunidades-view {
  /* cols interior */
}
.oportunidades-view .dgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}
.oportunidades-view .dcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.oportunidades-view .dcard-h {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.oportunidades-view .dcard-h h3 {
  font-size: 13.5px;
  font-weight: 700;
}
.oportunidades-view .dcard-h svg {
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
}
.oportunidades-view .dcard-h .cnt {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}
.oportunidades-view .dcard-b {
  padding: 16px 18px;
}
.oportunidades-view .linkrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.oportunidades-view .linkrow:last-child {
  border-bottom: 0;
}
.oportunidades-view .lk-fac {
  width: 52px;
  height: 44px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.oportunidades-view .lk-t {
  font-size: 13.5px;
  font-weight: 700;
}
.oportunidades-view .lk-s {
  font-size: 11.5px;
  color: var(--ink-soft);
}
.oportunidades-view .lk-go {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-bright);
}
.oportunidades-view .act {
  display: flex;
  gap: 11px;
  padding: 12px;
  border-radius: 11px;
  margin-bottom: 8px;
}
.oportunidades-view .act.pend {
  background: #FBF6E9;
}
.oportunidades-view .act.venc {
  background: #FEF6F4;
}
.oportunidades-view .act.prog {
  background: #F4FAF4;
}
.oportunidades-view .act-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.oportunidades-view .act-ic svg {
  width: 15px;
  height: 15px;
}
.oportunidades-view .act-t {
  font-size: 13px;
  font-weight: 700;
}
.oportunidades-view .act-d {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 1px;
}
.oportunidades-view .act-when {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.oportunidades-view .note {
  font-size: 12.5px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 9px;
}
.oportunidades-view .note .nt-m {
  font-size: 10.5px;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 3px;
}
.oportunidades-view .lossbar {
  display: none;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
  background: #FEF6F4;
  border: 1px solid #F3D9D2;
  border-radius: 11px;
}
.oportunidades-view .lossbar.on {
  display: flex;
}
.oportunidades-view .lossbar select {
  flex: 1;
  height: 34px;
  border: 1px solid #F3D9D2;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  padding: 0 10px;
}
@media (max-width: 900px) {
  .oportunidades-view .dgrid {
    grid-template-columns: 1fr;
  }
}
.oportunidades-view {
  /* --- tarjetas formato nuevo --- */
}
.oportunidades-view .krows {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 7px 0 8px;
}
.oportunidades-view .krow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 8px;
}
.oportunidades-view .krow span {
  color: var(--ink-faint);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.oportunidades-view .krow b {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.oportunidades-view .krow .avs {
  width: 16px;
  height: 16px;
  font-size: 8px;
  display: inline-grid;
  place-items: center;
  vertical-align: -4px;
  margin-right: 4px;
}
.oportunidades-view .kfoot {
  flex-wrap: wrap;
  gap: 6px;
}
.oportunidades-view .kfc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.oportunidades-view .ksrc {
  font-size: 9.5px;
  font-weight: 800;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--ink-soft);
}
.oportunidades-view {
  /* --- drag --- */
}
.oportunidades-view .kcard {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.oportunidades-view .kcard.ksrc {
  opacity: 0.35;
}
.oportunidades-view .kghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 16px 38px rgba(15, 50, 39, 0.3);
  transform: rotate(2deg);
  background: #fff;
  border-radius: 12px;
}
.oportunidades-view .kcol.kover {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
  border-radius: 14px;
}
.oportunidades-view {
  /* --- modales --- */
}
.oportunidades-view .om-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 32, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 800;
  padding: 4vh 16px;
  backdrop-filter: blur(3px);
}
.oportunidades-view .om-bg.on {
  display: flex;
}
.oportunidades-view .om {
  background: #fff;
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(10, 35, 27, 0.35);
}
.oportunidades-view .om-h {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.oportunidades-view .om-h h3 {
  font-size: 16px;
  font-weight: 800;
}
.oportunidades-view .om-h p {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.oportunidades-view .om-x {
  margin-left: auto;
  border: none;
  background: var(--field);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
}
.oportunidades-view .om-b {
  padding: 16px 20px;
  overflow-y: auto;
}
.oportunidades-view .om-f {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.oportunidades-view .obtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--field-line);
  background: var(--field);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.oportunidades-view .obtn.pri {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}
.oportunidades-view .onote {
  background: #FBF6E9;
  border: 1px solid #EFE3C2;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: #5a4d20;
  margin-bottom: 12px;
}
.oportunidades-view #otoast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--green-deep);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 50, 39, 0.35);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 900;
  text-align: center;
  line-height: 1.5;
  max-width: 90vw;
}
.oportunidades-view {
  /* --- correo --- */
}
.oportunidades-view .omail {
  border: 1px solid var(--field-line);
  border-radius: 12px;
  overflow: hidden;
}
.oportunidades-view .omail .mr {
  display: flex;
  gap: 10px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  align-items: baseline;
}
.oportunidades-view .omail .mr span {
  width: 52px;
  flex-shrink: 0;
  color: var(--ink-faint);
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.oportunidades-view .omail .mbody {
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.65;
  background: var(--field);
}
.oportunidades-view {
  /* --- formulario oferta --- */
}
.oportunidades-view .ofrm .og2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 11px;
}
.oportunidades-view .ofld label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}
.oportunidades-view .ofld input, .oportunidades-view .ofld select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--field-line);
  border-radius: 9px;
  background: var(--field);
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 0 11px;
  outline: none;
}
.oportunidades-view .ofld input:focus, .oportunidades-view .ofld select:focus {
  border-color: var(--green-bright);
  background: #fff;
}
.oportunidades-view .ofld input[readonly] {
  background: #F7F9F6;
  color: var(--ink-soft);
}
.oportunidades-view .ofld small {
  display: block;
  font-size: 10px;
  color: var(--green-deep);
  font-weight: 700;
  margin-top: 3px;
  min-height: 12px;
}
@media (max-width: 700px) {
  .oportunidades-view .ofrm .og2 {
    grid-template-columns: 1fr;
  }
}
.oportunidades-view {
  /* --- carta --- */
}
.oportunidades-view .carta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 34px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #222;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.oportunidades-view .carta h2 {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.oportunidades-view .carta p {
  margin-bottom: 10px;
}
.oportunidades-view .carta .ctb {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
}
.oportunidades-view .carta .ctb td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 12px;
}
.oportunidades-view .carta .ctb td:first-child {
  width: 38%;
  font-weight: 700;
  background: #f6f6f2;
}
.oportunidades-view .cpay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 22px;
  margin: 4px 0 12px;
  font-size: 12px;
}
.oportunidades-view .cpay .sel {
  font-weight: 800;
  color: var(--green-deep);
}
.oportunidades-view .cfir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 44px;
  text-align: center;
}
.oportunidades-view .cfir .fl {
  border-bottom: 1.5px solid #333;
  height: 34px;
  margin-bottom: 7px;
}
.oportunidades-view .cfir b {
  display: block;
  font-size: 12px;
}
.oportunidades-view .cfir span {
  font-size: 11px;
  color: #666;
}
@media (max-width: 700px) {
  .oportunidades-view .carta {
    padding: 20px;
  }
}
.oportunidades-view .carta .clogo {
  display: block;
  height: 34px;
  margin: 0 auto 14px;
}
.oportunidades-view .btn-portal {
  display: inline-block;
  margin-top: 8px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 9px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
}
.oportunidades-view .obtn.sm {
  height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
  border-radius: 8px;
}
.oportunidades-view .pgrp {
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.oportunidades-view .pg-h {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.oportunidades-view .pdoc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.oportunidades-view .pdoc:last-child {
  border-bottom: none;
}
.oportunidades-view .pd-t {
  font-size: 12.5px;
  flex: 1;
}
.oportunidades-view .pd-a {
  display: flex;
  gap: 6px;
}
.oportunidades-view .pd-st {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-faint);
  width: 74px;
  text-align: right;
}
.oportunidades-view .pdoc.ok .pd-st {
  color: #2E7D27;
}
.oportunidades-view .pdoc.ok .pd-t {
  color: var(--ink);
}
.oportunidades-view .pcurp {
  font-size: 12px;
  background: var(--field);
  border: 1px dashed var(--field-line);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.oportunidades-view .pchk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 10px;
  cursor: pointer;
}
.oportunidades-view .hidden {
  display: none;
}
.oportunidades-view .pprog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.oportunidades-view .pp-bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #E3E9E2;
  overflow: hidden;
}
.oportunidades-view .pp-bar div {
  height: 100%;
  background: var(--green-bright);
  border-radius: 99px;
  transition: width 0.25s;
  width: 0;
}
.oportunidades-view .pprog span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.oportunidades-view .sgn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.oportunidades-view .sgn b {
  font-size: 12.5px;
  display: block;
}
.oportunidades-view .sgn span {
  font-size: 10.5px;
  color: var(--ink-soft);
  display: block;
}
.oportunidades-view .sgn > div {
  flex: 1;
}
.oportunidades-view .sgn-st {
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--field);
  color: var(--ink-faint);
  border: 1px solid var(--field-line);
}
.oportunidades-view .sgn-st.on {
  background: #EAF5E4;
  color: #2E7D27;
  border-color: #CFE7C4;
}
.oportunidades-view .xrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.oportunidades-view .xrow:last-child {
  border-bottom: none;
}
.oportunidades-view .xno {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--field);
  border: 1px solid var(--field-line);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.oportunidades-view .xrow.ok .xno {
  background: #EAF5E4;
  border-color: #CFE7C4;
  color: #2E7D27;
}
.oportunidades-view .xcpt {
  flex: 1;
  min-width: 0;
}
.oportunidades-view .xcpt b {
  font-size: 12.5px;
  font-weight: 700;
  display: block;
}
.oportunidades-view .xfile {
  font-size: 10.5px;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
}
.oportunidades-view .xauto {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: #EDF2FB;
  color: #3A5FA8;
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: 1px;
}
.oportunidades-view .xst {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-faint);
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}
.oportunidades-view .xrow.ok .xst {
  color: #2E7D27;
}
.oportunidades-view .xopts2 {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.oportunidades-view .xo2 {
  font-size: 10px;
  font-weight: 800;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--ink-soft);
  cursor: pointer;
  background: #fff;
}
.oportunidades-view .xo2.on {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.oportunidades-view {
  /* client picker (Nueva oportunidad modal) */
}
.oportunidades-view #opClientResults {
  border: 1px solid var(--field-line);
  border-radius: 9px;
  margin-top: 6px;
  overflow: hidden;
  max-height: 180px;
  overflow-y: auto;
}
.oportunidades-view #opClientResults:empty {
  display: none;
}
.oportunidades-view .client-opt {
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}
.oportunidades-view .client-opt:last-child {
  border-bottom: none;
}
.oportunidades-view .client-opt:hover {
  background: var(--field);
}
.oportunidades-view .xprev {
  display: flex;
  justify-content: center;
}
.oportunidades-view .xp-page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 460px;
  min-height: 340px;
  padding: 28px 30px;
}
.oportunidades-view .xp-h {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 16px;
}
.oportunidades-view .xp-t {
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.oportunidades-view .xp-meta {
  font-size: 10.5px;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 22px;
}
.oportunidades-view .xp-body {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-top: 1px dashed var(--field-line);
  padding-top: 14px;
}
@media (max-width: 700px) {
  .oportunidades-view .xrow {
    flex-wrap: wrap;
  }
  .oportunidades-view .xst {
    width: auto;
  }
}
.oportunidades-view {
  /* ---- móvil: look de app ---- */
}
.oportunidades-view .mdet {
  display: none;
}
.oportunidades-view #mlist {
  display: none;
}
@media (max-width: 820px) {
  .oportunidades-view {
    /* toolbar como pills */
  }
  .oportunidades-view .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 10px;
  }
  .oportunidades-view #boardTools {
    flex-basis: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .oportunidades-view #boardTools::-webkit-scrollbar {
    display: none;
  }
  .oportunidades-view .seg {
    border: none;
    background: none;
    gap: 8px;
    display: flex;
  }
  .oportunidades-view .seg button {
    border: 1.5px solid var(--green-deep);
    background: transparent;
    color: var(--green-deep);
    border-radius: 999px;
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .oportunidades-view .seg button.on {
    background: var(--green-deep);
    color: #fff;
  }
  .oportunidades-view #boardTools .btn.pri {
    border-radius: 999px;
    height: 40px;
    padding: 0 18px;
    white-space: nowrap;
  }
  .oportunidades-view {
    /* lista: tarjetas, tabla oculta */
  }
  .oportunidades-view .tblcard {
    display: none;
  }
  .oportunidades-view #mlist {
    display: block;
  }
  .oportunidades-view .mlrow {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
  }
  .oportunidades-view .mlrow:active {
    background: var(--field);
  }
  .oportunidades-view .mlring {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    position: relative;
  }
  .oportunidades-view .mlring::after {
    content: "";
    position: absolute;
    inset: 7px;
    background: #fff;
    border-radius: 999px;
  }
  .oportunidades-view .mlring span {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 800;
    color: var(--ink);
  }
  .oportunidades-view .mlring.lost, .oportunidades-view .mlring.won {
    background: none;
  }
  .oportunidades-view .mlring.lost::after, .oportunidades-view .mlring.won::after {
    display: none;
  }
  .oportunidades-view .mlring.lost {
    color: #D64530;
  }
  .oportunidades-view .mlring.won {
    color: #2E9E4A;
  }
  .oportunidades-view .mlring.lost svg, .oportunidades-view .mlring.won svg {
    width: 30px;
    height: 30px;
  }
  .oportunidades-view .mlbody {
    flex: 1;
    min-width: 0;
  }
  .oportunidades-view .mlt {
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .oportunidades-view .mlr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
  }
  .oportunidades-view .mlr.b {
    font-weight: 700;
  }
  .oportunidades-view .mlr.mut {
    color: var(--ink-soft);
  }
  .oportunidades-view .mlr svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }
  .oportunidades-view .mldot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: inline-block;
    flex-shrink: 0;
  }
  .oportunidades-view .mlsep {
    color: var(--ink-faint);
  }
  .oportunidades-view .mlgo {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: var(--green-deep);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(15, 50, 39, 0.25);
  }
  .oportunidades-view .mlgo svg {
    width: 18px;
    height: 18px;
  }
  .oportunidades-view {
    /* detalle: encabezado tipo app */
  }
  .oportunidades-view .mdet {
    display: block;
    margin-bottom: 14px;
  }
  .oportunidades-view .mdet-r1 {
    display: flex;
    gap: 10px;
    align-items: stretch;
  }
  .oportunidades-view .mfase {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--field-line);
    background: var(--field);
    border-radius: 14px;
    padding: 0 12px;
    min-width: 0;
  }
  .oportunidades-view .mfd {
    width: 11px;
    height: 11px;
    border-radius: 99px;
    flex-shrink: 0;
  }
  .oportunidades-view .mfase select {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    height: 48px;
    outline: none;
    min-width: 0;
  }
  .oportunidades-view .mth {
    width: 52px;
    border: 1px solid var(--field-line);
    background: var(--field);
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .oportunidades-view .mth svg {
    width: 21px;
    height: 21px;
  }
  .oportunidades-view .mth.up {
    color: #2E9E4A;
  }
  .oportunidades-view .mth.dn {
    color: #D64530;
  }
  .oportunidades-view .mth:active {
    transform: scale(0.94);
  }
  .oportunidades-view {
    /* acciones rápidas */
  }
  .oportunidades-view .mdet-acts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 12px;
    padding: 6px 0 2px;
    border-top: 1px solid var(--line-soft);
  }
  .oportunidades-view .mact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    color: var(--green-deep);
    text-decoration: none;
    cursor: pointer;
    padding: 8px 0;
    border-radius: 12px;
  }
  .oportunidades-view .mact:active {
    background: var(--field);
  }
  .oportunidades-view .mact svg {
    width: 22px;
    height: 22px;
  }
  .oportunidades-view {
    /* espacio eficiente en el detalle */
  }
  .oportunidades-view .scroll {
    padding: 12px 14px 30px !important;
  }
  .oportunidades-view .dcard {
    margin-bottom: 12px !important;
  }
  .oportunidades-view .dcard-b, .oportunidades-view .dcard-h {
    padding-left: 13px;
    padding-right: 13px;
  }
  .oportunidades-view .dgrid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .oportunidades-view #detailTools {
    display: none !important;
  }
}

.portal-view {
  background: var(--bg);
  min-height: 100dvh;
}
.portal-view .inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}
.portal-view .logo {
  height: 26px;
  margin-bottom: 28px;
}
.portal-view .card {
  padding: 28px;
}
.portal-view .card h2 {
  margin-bottom: 6px;
}
.portal-view .card p {
  color: var(--ink-soft);
}
.portal-view .card p + p {
  margin-top: 14px;
}
.portal-view .foot {
  margin-top: 20px;
}
.portal-view .foot a {
  color: var(--ink-soft);
}
.portal-view .portal-phase {
  margin: 14px 0;
}
.portal-view .pp-bar {
  height: 8px;
  border-radius: 6px;
  background: var(--surface-3);
  overflow: hidden;
}
.portal-view .pp-bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
}
.portal-view .pp-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 6px;
}
.portal-view .portal-cronologia {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.portal-view .pc-item {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 0;
  color: var(--ink-soft);
}
.portal-view .pc-item b {
  color: var(--ink);
}

.propiedades-view body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}
.propiedades-view button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
.propiedades-view input, .propiedades-view select, .propiedades-view textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}
.propiedades-view ::selection {
  background: var(--brand-soft);
}
.propiedades-view .hdr {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  transition: 0.3s;
}
.propiedades-view .hdr-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.propiedades-view .mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(22, 73, 59, 0.28);
}
.propiedades-view .mark span {
  font-family: var(--serif);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.propiedades-view .hdr-t b {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.4px;
  display: block;
  line-height: 1.1;
}
.propiedades-view .hdr-t small {
  font-size: 11px;
  color: var(--text-faint);
}
.propiedades-view .hdr-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.propiedades-view .modtag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 11px;
  border-radius: 20px;
}
.propiedades-view .tbtn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: 0.15s;
}
.propiedades-view .tbtn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.propiedades-view .wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 28px 70px;
}
.propiedades-view .page {
  animation: fade 0.35s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.propiedades-view .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.propiedades-view .crumbs .c-link {
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
}
.propiedades-view .crumbs .c-link:hover {
  text-decoration: underline;
}
.propiedades-view .page-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.propiedades-view .page-head h1 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
}
.propiedades-view .page-head p {
  color: var(--text-muted);
  margin-top: 3px;
}
.propiedades-view .page-head .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.propiedades-view .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: 0.15s;
  border: 1px solid transparent;
}
.propiedades-view .btn-primary {
  background: var(--brand);
  color: #fff;
}
.propiedades-view .btn-primary:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 73, 59, 0.28);
}
.propiedades-view .btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.propiedades-view .btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.propiedades-view .btn-gold {
  background: var(--gold);
  color: #fff;
}
.propiedades-view .btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.propiedades-view .btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}
.propiedades-view .ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.propiedades-view .prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.propiedades-view .prop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.2s;
  cursor: pointer;
}
.propiedades-view .prop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-3);
}
.propiedades-view .prop-img {
  height: 150px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  position: relative;
  display: grid;
  place-items: center;
}
.propiedades-view .prop-img .pat {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle at 25% 30%, #fff 1px, transparent 1px), radial-gradient(circle at 70% 65%, #fff 1px, transparent 1px);
  background-size: 32px 32px;
}
.propiedades-view .prop-img .ptype {
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  z-index: 1;
  opacity: 0.95;
}
.propiedades-view .prop-img .ptag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.propiedades-view .prop-img .kind-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.propiedades-view .prop-body {
  padding: 15px 17px;
}
.propiedades-view .prop-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}
.propiedades-view .prop-body .addr {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.propiedades-view .prop-price {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--brand);
}
.propiedades-view .prop-meta {
  display: flex;
  gap: 14px;
  margin-top: 11px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.propiedades-view .prop-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.propiedades-view .badge2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
}
.propiedades-view .b-green {
  background: var(--brand-soft);
  color: var(--brand);
}
.propiedades-view .b-gold {
  background: var(--gold-soft);
  color: var(--gold);
}
.propiedades-view .b-blue {
  background: var(--info-soft);
  color: var(--info);
}
.propiedades-view .b-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.propiedades-view .b-gray {
  background: var(--surface-3);
  color: var(--text-muted);
}
.propiedades-view .dotb {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.propiedades-view .ws-tabs {
  display: flex;
  gap: 5px;
  background: var(--surface-2);
  padding: 5px;
  border-radius: 13px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.propiedades-view .ws-tab {
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  transition: 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
.propiedades-view .ws-tab.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow);
}
.propiedades-view .ov-anclas {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--bg);
  padding: 8px 0 10px;
  margin-bottom: 6px;
}
.propiedades-view .ov-anclas a {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}
.propiedades-view .ov-anclas a:hover {
  border-color: var(--brand);
}
.propiedades-view .ov-sec {
  margin-bottom: 28px;
  scroll-margin-top: 56px;
}
.propiedades-view .ov-sec-t {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}
.propiedades-view .ov-sec-t span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.propiedades-view .ws-tab .tn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-faint);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.propiedades-view .ws-tab.active .tn {
  background: var(--brand);
  color: #fff;
}
.propiedades-view .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.propiedades-view .card-pad {
  padding: 24px;
}
.propiedades-view .method-note {
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
}
.propiedades-view .method-note b {
  color: var(--brand);
}
.propiedades-view .reg-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.propiedades-view .reg-strip .folio {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.propiedades-view .reg-strip .folio b {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--brand);
  display: block;
}
.propiedades-view .field {
  margin-bottom: 16px;
}
.propiedades-view .field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 7px;
}
.propiedades-view .field label .req {
  color: var(--danger);
}
.propiedades-view .hint {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 5px;
}
.propiedades-view .hint.err {
  color: var(--danger);
  font-weight: 600;
}
.propiedades-view .inp {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  outline: none;
  transition: 0.15s;
}
.propiedades-view .inp:focus {
  border-color: var(--brand-3);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.propiedades-view textarea.inp {
  resize: vertical;
  min-height: 80px;
}
.propiedades-view select.inp {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23879189'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.propiedades-view .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.propiedades-view .row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.propiedades-view .row4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.propiedades-view .seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.propiedades-view .seg-opt {
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: 0.15s;
  background: var(--surface);
}
.propiedades-view .seg-opt:hover {
  border-color: var(--brand-3);
}
.propiedades-view .seg-opt.sel {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.propiedades-view .chkrow {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 0;
}
.propiedades-view .chk {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: 0.15s;
}
.propiedades-view .chk.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.propiedades-view .divider {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin: 22px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.propiedades-view .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.propiedades-view .contract-card {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.propiedades-view .contract-card .cc-t b {
  color: var(--gold);
}
.propiedades-view .link-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.propiedades-view .photonote {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.propiedades-view .photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}
.propiedades-view .photo {
  aspect-ratio: 4/3;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  position: relative;
  overflow: hidden;
}
.propiedades-view .photo .pat {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 30% 30%, #fff 1px, transparent 1px);
  background-size: 18px 18px;
}
.propiedades-view .photo .px {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  cursor: pointer;
}
.propiedades-view .plabel {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}
.propiedades-view .plabel.cover {
  background: var(--gold);
}
.propiedades-view .tbl-scroll {
  overflow-x: auto;
  margin: 0 -4px;
}
.propiedades-view .tbl {
  width: 100%;
  border-collapse: collapse;
}
.propiedades-view .tbl th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.propiedades-view .tbl td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.propiedades-view .tbl tr:last-child td {
  border-bottom: none;
}
.propiedades-view .pub-tbl .num { text-align: right; }
.propiedades-view .pub-tbl .pub-share {
  width: 64px;
  text-align: right;
}
.propiedades-view .pub-tbl tfoot td {
  border-top: 2px solid var(--border);
  padding-top: 9px;
}
.propiedades-view .pub-warn { color: var(--bad); }
.propiedades-view .tbl td input {
  min-width: 98px;
}
.propiedades-view input[type=range] {
  accent-color: var(--brand-3);
  width: 100%;
}
.propiedades-view .tbl input, .propiedades-view .tbl select {
  padding:8px 8px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  width:100%;
  text-align:right;
  min-width:74px;
  font-family:inherit;
  font-size:inherit;
  color:var(--text);
}
.propiedades-view .tbl select {
  text-align:left;
  min-width:120px;
  appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23879189'/></svg>");
  background-repeat:no-repeat;
  background-position:right 9px center;
  padding-right:26px;
}
.propiedades-view .tbl input:focus, .propiedades-view .tbl select:focus {
  outline:none;
  border-color:var(--brand-3);
  box-shadow:0 0 0 2px var(--brand-soft);
}
.propiedades-view .tbl input.txt {
  text-align: left;
  min-width: 120px;
}
.propiedades-view .tbl input.txt.sm {
  min-width: 96px;
}
.propiedades-view .tbl input.n {
  min-width: 52px;
}
.propiedades-view .tbl .num {
  text-align: right;
  font-weight: 600;
}
.propiedades-view .tbl .auto {
  text-align: right;
  font-weight: 600;
  color: var(--text-muted);
}
.propiedades-view .val-out {
  color: var(--brand);
  font-weight: 700;
  text-align: right;
}
.propiedades-view .tot-row td {
  font-weight: 700;
  background: var(--surface-2);
}
.propiedades-view .neg-row td {
  color: var(--danger);
}
.propiedades-view .delx {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--text-faint);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.propiedades-view .delx:hover {
  background: var(--danger-soft);
  color: var(--danger);
}
.propiedades-view .addrow {
  margin-top: 12px;
}
.propiedades-view .mini-res {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.propiedades-view .mini-card {
  flex: 1;
  min-width: 150px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.propiedades-view .mini-card .mt {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.propiedades-view .mini-card .mn {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}
.propiedades-view .mini-card.hl {
  background: var(--brand-soft);
  border-color: var(--brand-3);
}
.propiedades-view .mini-card.hl .mn {
  color: var(--brand);
}
.propiedades-view .mini-card.gold {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.propiedades-view .mini-card.gold .mn {
  color: var(--gold);
}
.propiedades-view .ql-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.propiedades-view .ql-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.propiedades-view .ql-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 9px;
  transition: 0.15s;
  cursor: pointer;
}
.propiedades-view .ql-item.on {
  border-color: var(--brand-3);
  background: var(--brand-softer);
}
.propiedades-view .ql-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: 0.15s;
}
.propiedades-view .ql-item.on .ql-check {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.propiedades-view .ql-item .ql-t {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}
.propiedades-view .ql-pct {
  width: 82px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  text-align: right;
  background: var(--surface);
  font-weight: 700;
}
.propiedades-view .summary-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}
.propiedades-view .recon-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.propiedades-view .recon-item:last-child {
  border: none;
}
.propiedades-view .recon-item .ri-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.propiedades-view .recon-item .ri-t {
  font-size: 13px;
  font-weight: 600;
}
.propiedades-view .recon-item .ri-s {
  font-size: 11.5px;
  color: var(--text-faint);
}
.propiedades-view .recon-item .ri-v {
  margin-left: auto;
  text-align: right;
}
.propiedades-view .recon-item .ri-v b {
  font-family: var(--serif);
  font-size: 17px;
}
.propiedades-view .wbox {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 3px;
}
.propiedades-view .wbox input {
  width: 54px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  text-align: right;
  background: var(--surface);
}
.propiedades-view .err-banner {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.propiedades-view .wsum-ok {
  color: var(--brand);
  font-weight: 700;
}
.propiedades-view .wsum-bad {
  color: var(--danger);
  font-weight: 700;
}
.propiedades-view .result-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
}
.propiedades-view .result-card.dim {
  filter: grayscale(0.6);
  opacity: 0.6;
}
.propiedades-view .result-card .rl {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 1px;
}
.propiedades-view .result-card .rv {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  margin: 6px 0;
}
.propiedades-view .result-card .rs {
  font-size: 12.5px;
  opacity: 0.9;
}
.propiedades-view .min-card {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.propiedades-view .min-card .mc-t {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.propiedades-view .min-card .mc-s {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.propiedades-view .min-card .mc-v {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}
.propiedades-view .min-inp {
  width: 64px;
  padding: 3px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  text-align: right;
  background: var(--surface);
  font-weight: 700;
  color: var(--gold);
}
.propiedades-view .doc-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 8px;
}
.propiedades-view .doc-band {
  background: var(--brand);
  color: #fff;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.propiedades-view .doc-band .mark {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.16);
}
.propiedades-view .doc-band h3 {
  font-family: var(--serif);
  font-size: 19px;
}
.propiedades-view .doc-band small {
  opacity: 0.85;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.propiedades-view .doc-in {
  padding: 28px;
}
.propiedades-view .doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin-bottom: 22px;
}
.propiedades-view .doc-meta .dm {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.propiedades-view .doc-meta .dm .k {
  color: var(--text-muted);
}
.propiedades-view .doc-meta .dm .v {
  font-weight: 600;
}
.propiedades-view .doc-vals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.propiedades-view .doc-val {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.propiedades-view .doc-val .dvt {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.propiedades-view .doc-val .dvn {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}
.propiedades-view .doc-concl {
  background: var(--brand-softer);
  border: 1px dashed var(--brand-3);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.propiedades-view .doc-concl .dct {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--brand);
  font-weight: 700;
}
.propiedades-view .doc-concl .dcn {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  margin-top: 4px;
}
.propiedades-view .signs {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}
.propiedades-view .sign {
  text-align: center;
}
.propiedades-view .sign .line {
  border-top: 1.5px solid var(--text);
  margin: 0 12px 8px;
  padding-top: 8px;
}
.propiedades-view .sign b {
  font-size: 13.5px;
  display: block;
}
.propiedades-view .sign small {
  font-size: 11.5px;
  color: var(--text-muted);
}
.propiedades-view .modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.propiedades-view .modal-bg.show {
  display: flex;
}
.propiedades-view .modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  animation: pop 0.25s;
}
@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-bg-tall {
  align-items: flex-start;
  overflow-y: auto;
}

.modal-bg-tall .modal {
  overflow: visible;
  margin: auto;
}
.propiedades-view .modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.propiedades-view .modal-head h3 {
  font-family: var(--serif);
  font-size: 18px;
}
.propiedades-view .modal-head .x {
  margin-left: auto;
  color: var(--text-faint);
}
.propiedades-view .modal-body {
  padding: 22px 24px;
}
.propiedades-view .modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--surface-2);
}
.propiedades-view .opt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.15s;
}
.propiedades-view .opt-row:hover {
  border-color: var(--brand-3);
  background: var(--surface-2);
}
.propiedades-view .opt-row .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.propiedades-view .ws-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.propiedades-view .toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--brand);
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: 0.35s;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
}
.propiedades-view .toast.show {
  transform: translateX(-50%) translateY(0);
}
.propiedades-view html, .propiedades-view body {
  overflow-x: hidden;
}
@media (max-width: 820px) {
  .propiedades-view .summary-grid, .propiedades-view .doc-meta, .propiedades-view .ql-grid, .propiedades-view .row3, .propiedades-view .row4, .propiedades-view .row2 {
    grid-template-columns: 1fr;
  }
  .propiedades-view .doc-vals {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .propiedades-view .wrap {
    padding: 20px 14px 56px;
  }
  .propiedades-view .hdr-in {
    padding: 0 14px;
    gap: 10px;
  }
  .propiedades-view .modtag {
    display: none;
  }
  .propiedades-view .page-head {
    gap: 12px;
  }
  .propiedades-view .page-head h1 {
    font-size: 22px;
  }
  .propiedades-view .page-head .right {
    margin-left: 0;
    width: 100%;
  }
  .propiedades-view .page-head .right .btn {
    flex: 1;
    justify-content: center;
  }
  .propiedades-view .card-pad {
    padding: 18px 15px;
  }
  .propiedades-view .prop-grid {
    grid-template-columns: 1fr;
  }
  .propiedades-view .reg-strip {
    gap: 10px;
  }
  .propiedades-view .contract-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .propiedades-view .contract-card .link-box, .propiedades-view .contract-card > .btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .propiedades-view .min-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .propiedades-view .min-card .mc-v {
    align-self: flex-end;
  }
  .propiedades-view .ws-foot .btn {
    flex: 1;
    justify-content: center;
  }
  .propiedades-view .doc-in, .propiedades-view .doc-band {
    padding-left: 18px;
    padding-right: 18px;
  }
  .propiedades-view .signs {
    grid-template-columns: 1fr !important;
  }
}
.propiedades-view {
  /* ===== DESARROLLOS ===== */
}
.propiedades-view .seg-switch {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px;
  gap: 3px;
  margin-bottom: 20px;
}
.propiedades-view .seg-switch button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.propiedades-view .seg-switch button.on {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow);
  font-weight: 700;
}
.propiedades-view .dev-card .prop-img .pat {
  opacity: 0.5;
}
.propiedades-view .dev-stats {
  display: flex;
  gap: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.propiedades-view .dev-stat {
  flex: 1;
  text-align: center;
}
.propiedades-view .dev-stat .v {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.propiedades-view .dev-stat .l {
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.propiedades-view .absorb {
  height: 6px;
  border-radius: 6px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 4px;
}
.propiedades-view .absorb span {
  display: block;
  height: 100%;
  background: var(--brand-3);
  border-radius: 6px;
}
.propiedades-view .uttable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.propiedades-view .uttable th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.propiedades-view .uttable td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.propiedades-view .uttable tr[data-unit] {
  cursor: pointer;
}
.propiedades-view .uttable tr[data-unit]:hover {
  background: var(--brand-softer);
}
.propiedades-view .uttable .price {
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.propiedades-view .ust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.propiedades-view .ust.disp {
  background: var(--brand-soft);
  color: var(--brand-2);
}
.propiedades-view .ust.apar {
  background: var(--warn-soft);
  color: var(--warn);
}
.propiedades-view .ust.vend {
  background: var(--surface-3);
  color: var(--text-muted);
}
.propiedades-view .pond {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.propiedades-view .pond .field {
  margin: 0;
}
.propiedades-view .pond label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.propiedades-view .ai-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, var(--brand-softer), var(--gold-soft));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.propiedades-view .ai-strip .aic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.propiedades-view .ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.propiedades-view .ai-tool {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.propiedades-view .ai-tool-h {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.propiedades-view .ai-tool-h .ti {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.propiedades-view .ai-tool-h h4 {
  font-size: 14px;
  font-weight: 700;
}
.propiedades-view .ai-tool-h p {
  font-size: 11.5px;
  color: var(--text-muted);
}
.propiedades-view .ba {
  display: flex;
  gap: 0;
}
.propiedades-view .ba > div {
  flex: 1;
  position: relative;
  height: 118px;
}
.propiedades-view .ba .lbl {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(19, 33, 26, 0.72);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
}
.propiedades-view .ba .empty {
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px);
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: 12px;
}
.propiedades-view .ai-tool-b {
  padding: 14px 16px;
}
.propiedades-view .sim-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: start;
}
.propiedades-view .plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 8px;
}
.propiedades-view .plan-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.propiedades-view .plan-table .amt {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.propiedades-view .media-vis {
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.propiedades-view .media-vis .tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(19, 33, 26, 0.72);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
}
.propiedades-view .pub-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.propiedades-view .pub-row .pl {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  color: #fff;
  font-size: 12px;
}
.propiedades-view .pub-row .pt {
  font-size: 14px;
  font-weight: 700;
}
.propiedades-view .pub-row .ps {
  font-size: 12px;
  color: var(--text-muted);
}
.propiedades-view .tgl {
  width: 44px;
  height: 25px;
  border-radius: 20px;
  background: var(--surface-3);
  position: relative;
  cursor: pointer;
  transition: 0.18s;
  flex-shrink: 0;
  margin-left: auto;
}
.propiedades-view .tgl.on {
  background: var(--brand-3);
}
.propiedades-view .tgl::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s;
}
.propiedades-view .tgl.on::after {
  left: 21px;
}
.propiedades-view .embed-box {
  height: 180px;
  border-radius: 12px;
  border: 1.5px dashed var(--border-strong);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-muted);
  margin-top: 10px;
}
.propiedades-view .embed-box.set {
  border-style: solid;
  background: #0D1311;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.propiedades-view .embed-box .pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 9px;
  border-radius: 6px;
}
.propiedades-view .pcircle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: #13211A;
}
@media (max-width: 820px) {
  .propiedades-view .pond {
    grid-template-columns: 1fr;
  }
  .propiedades-view .ai-grid {
    grid-template-columns: 1fr;
  }
  .propiedades-view .sim-wrap {
    grid-template-columns: 1fr;
  }
}
.propiedades-view .hdr {
  display: none !important;
}
.propiedades-view body[data-theme] {
  --bg:#F3F6F4;
}
.propiedades-view .wrap {
  padding-top: 22px !important;
}
.propiedades-view {
  /* Fase 3: photo grid actions (button-based, no drag-and-drop — same precedent as the Fase 1/2 kanbans) */
}
.propiedades-view .photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.propiedades-view {
  /* Fase 3: list toolbar (search + status chips + "Nueva captación") — no equivalent existed in the single-view demo */
}
.propiedades-view .list-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.propiedades-view .list-toolbar .sp {
  flex: 1;
}
.propiedades-view .list-toolbar .inp {
  max-width: 260px;
}
.propiedades-view .count-pill {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.propiedades-view {
  /* Fase 3: printable OV document page (bare, no shell — see PropiedadesController::printOpinion()) */
}
.propiedades-view .print-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px;
}
.propiedades-view .print-btn {
  margin-bottom: 16px;
}
.propiedades-view .doc-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.propiedades-view .doc-boiler {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.propiedades-view .contract-card .inp {
  max-width: 280px;
}
.propiedades-view .reg-strip select.inp {
  width: auto;
}
.propiedades-view {
  /* Fase 3: printable Opinión de Valor doc — hide the "Imprimir" trigger itself when actually printing */
}
@media print {
  .propiedades-view .no-print {
    display: none !important;
  }
  .propiedades-view body {
    background: #fff;
  }
  .propiedades-view .doc-preview {
    box-shadow: none;
    border: none;
  }
}

.propietarios-view .mini-link {
  color: var(--green-bright);
}
.propietarios-view .p-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.propietarios-view .p-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--lime));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.propietarios-view .p-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.propietarios-view .p-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.propietarios-view .cartera-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.propietarios-view .cartera-item:last-child {
  border-bottom: none;
}
.propietarios-view .cartera-item .cf {
  font-weight: 700;
  font-size: 13px;
}
.propietarios-view .cartera-item .cc {
  font-size: 12px;
  color: var(--ink-soft);
}
.propietarios-view .p-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.propietarios-view .p-toolbar input {
  max-width: 280px;
}
.propietarios-view .p-toolbar .sp {
  flex: 1;
}
@media (max-width: 820px) {
  .propietarios-view .p-toolbar {
    flex-wrap: wrap;
  }
  .propietarios-view .p-toolbar input {
    max-width: none;
    flex: 1 1 100%;
  }
  .propietarios-view .p-toolbar .sp {
    display: none;
  }
  .propietarios-view .p-head {
    gap: 11px;
  }
  .propietarios-view .p-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .propietarios-view .p-name {
    font-size: 17px;
  }
}

.proveedores-view .qa {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--green-deep);
}
.proveedores-view .qa svg {
  width: 14px;
  height: 14px;
}
.proveedores-view .qa:hover {
  border-color: var(--green-bright);
}

.proximamente-view .prox-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px 36px;
  max-width: 720px;
}
.proximamente-view .prox-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #A9840F;
  background: #FBF3DE;
  border: 1px solid #EFE3C2;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.proximamente-view .prox-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
}
.proximamente-view h1 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.proximamente-view .prox-lead {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 26px;
}
.proximamente-view .prox-list-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.proximamente-view .prox-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.proximamente-view .prox-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.proximamente-view .prox-list li:last-child {
  border-bottom: 0;
}
.proximamente-view .prox-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
}
.proximamente-view .prox-foot {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 14px 16px;
}
@media (max-width: 820px) {
  .proximamente-view .prox-card {
    padding: 24px 20px;
  }
  .proximamente-view h1 {
    font-size: 23px;
  }
}

/* filter-panel — componente de filtros (scss/components/_filter-panel.scss) */
.fp-host {
  position: relative;
  display: inline-block;
}

.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.fbtn:hover { border-color: var(--brand-3); }
.fbtn[aria-expanded="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.fbtn.has-filters { border-color: var(--brand); color: var(--brand); }
.fbtn svg { width: 15px; height: 15px; }

.orden-wrap { position: relative; }

.orden-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.orden-pop[hidden] { display: none; }

.orden-opt {
  border: none;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.orden-opt:hover { background: var(--surface-2); }
.orden-opt.on { color: var(--brand); font-weight: 800; }
.orden-opt.on::after { content: " ✓"; }

.fbtn-count,
.ffab-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fpanel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: 320px;
  max-height: min(70vh, 560px);
  display: none;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--pop);
  overflow: hidden;
}

.fpanel.open { display: flex; }

.fpanel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 11px;
}

.fpanel-head h3 {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fpanel-x {
  border: none;
  background: none;
  color: var(--text-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.fpanel-x:hover { color: var(--text); }

.fpanel-search {
  position: relative;
  padding: 0 16px 12px;
}

.fpanel-search svg {
  position: absolute;
  left: 27px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  pointer-events: none;
}

.fpanel-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
}

.fpanel-search input:focus { border-color: var(--brand-3); box-shadow: 0 0 0 3px var(--brand-soft); }

.fpanel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 8px;
}

.fpanel-empty {
  padding: 26px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.fgroup + .fgroup { margin-top: 4px; }

.fgroup-h {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 9px 8px;
  border: none;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.fgroup-h svg { width: 13px; height: 13px; color: var(--text-faint); transition: transform .15s; flex-shrink: 0; }
.fgroup.collapsed .fgroup-h svg { transform: rotate(-90deg); }
.fgroup.collapsed .fgroup-b { display: none; }

.fopt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  transition: .12s;
}

.fopt:hover { background: var(--surface-2); }
.fopt.on { background: var(--brand-softer); color: var(--brand); font-weight: 600; }

.fopt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.fbox {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 2px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  transition: .12s;
  position: relative;
}

.fopt.on .fbox { background: var(--brand); border-color: var(--brand); }

.fopt.on .fbox::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fopt input:focus-visible + .fbox { outline: 2px solid var(--brand-3); outline-offset: 2px; }

.ftext { flex: 1; }

.fcnt {
  flex: none;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fopt.on .fcnt { background: var(--panel); color: var(--brand); }
.fopt.empty .ftext,
.fopt.empty .fcnt { opacity: .45; }

.fpanel-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.fclear {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.fclear:disabled { opacity: .45; cursor: default; }
.fclear:not(:disabled):hover { border-color: var(--brand-3); }

.fpanel-foot .fcount {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.ffab,
.fp-scrim { display: none; }

@media (max-width: 820px) {
  .fbtn { display: none; }

  .ffab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 90;
    height: 46px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 32px -10px rgba(22, 73, 59, .6);
    cursor: pointer;
  }

  .ffab svg { width: 18px; height: 18px; }
  .ffab.has-filters { background: var(--brand-2); }

  .fp-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(10, 20, 15, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }

  .fp-scrim.open { opacity: 1; pointer-events: auto; }

  .fpanel {
    position: fixed;
    z-index: 100;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 78vh;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-scrim { transition: none; }
  .fgroup-h svg { transition: none; }
}

/* propiedades · iteración 2 (General): moneda, drop zone, contrato */
.propiedades-view .money-field {
  display:flex;
  gap:8px;
}
.propiedades-view .money-field .moneda-sel {
  flex:0 0 176px;
}
.propiedades-view .money-field input {
  flex:1;
  text-align:right;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
/* .photo-drop{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px; */
/* padding:12px 16px;border:1.5px dashed var(--border-strong);border-radius:11px; */
/* color:var(--text-muted);font-size:12.5px;font-weight:600;cursor:pointer;transition:.15s} */
.propiedades-view .photo-drop:hover,.propiedades-view .photo-drop.over {
  border-color:var(--brand-3);
  color:var(--brand);
  background:var(--brand-softer);
}
.propiedades-view .photo-drop svg {
  width:17px;
  height:17px;
  flex-shrink:0;
}
.propiedades-view .photo-drop b {
  color:var(--brand);
  font-weight:700;
}
.propiedades-view .cc-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.propiedades-view .hint.ok {
  color:var(--brand-2);
  font-weight:600;
}

/* propiedades · iteración 3 (OV): bandas, desgloses, cualitativos, documento */
.propiedades-view .approach-note {
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:13px 16px;
  margin-bottom:20px;
  border-radius:12px;
  background:var(--brand-softer);
  border:1px solid var(--brand-soft);
  font-size:12.5px;
  line-height:1.55;
  color:var(--text-muted);
}
.propiedades-view .approach-note b {
  color:var(--brand);
}
.propiedades-view .approach-note .an-ic {
  font-size:16px;
  line-height:1.2;
  flex-shrink:0;
}
.propiedades-view .sec-label {
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin:26px 0 12px;
}
.propiedades-view .range-row {
  display:flex;
  align-items:center;
  gap:14px;
}
.propiedades-view .range-row .rng {
  flex:1;
  accent-color:var(--brand);
}
.propiedades-view .range-row b {
  min-width:46px;
  text-align:right;
  color:var(--brand);
  font-variant-numeric:tabular-nums;
}
.propiedades-view .calc-rows {
  margin-top:22px;
  border-top:1px solid var(--border);
}
.propiedades-view .calc-row {
  display:flex;
  align-items:baseline;
  gap:16px;
  padding:11px 2px;
  border-bottom:1px solid var(--line-soft);
  font-size:13px;
}
.propiedades-view .calc-row span {
  flex:1;
  color:var(--text-muted);
}
.propiedades-view .calc-row b {
  font-variant-numeric:tabular-nums;
  font-weight:700;
  white-space:nowrap;
}
.propiedades-view .calc-row.minus span, .propiedades-view .calc-row.minus b {
  color:var(--danger);
}
.propiedades-view .calc-row.total {
  background:var(--surface-2);
  border-bottom:none;
  padding:13px 12px;
  border-radius:0 0 10px 10px;
  margin-top:2px;
}
.propiedades-view .calc-row.total span {
  color:var(--text);
  font-weight:700;
}
.propiedades-view .calc-row.total b {
  font-size:15px;
  color:var(--brand);
}
.propiedades-view .calc-cell {
  text-align:right;
  font-weight:700;
  color:var(--brand);
  font-variant-numeric:tabular-nums;
  background:var(--surface-2);
}
.propiedades-view .ql-col h4.pos {
  color:var(--brand-2);
}
.propiedades-view .ql-col h4.neg {
  color:var(--danger);
}
.propiedades-view .ql-item .ql-check {
  width:19px;
  height:19px;
  border-radius:6px;
  border:2px solid var(--border-strong);
  flex-shrink:0;
  background:var(--surface);
  position:relative;
  transition:.15s;
}
.propiedades-view .ql-item.on .ql-check {
  background:var(--brand);
  border-color:var(--brand);
}
.propiedades-view .ql-item.on .ql-check::after {
  content:"";
  position:absolute;
  left:5px;
  top:1px;
  width:4px;
  height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.propiedades-view .ql-item .ql-sign {
  font-weight:800;
  color:var(--text-faint);
}
.propiedades-view .ql-item .ql-unit {
  font-size:12px;
  color:var(--text-faint);
}
.propiedades-view .ql-net {
  display:flex;
  align-items:baseline;
  gap:14px;
  margin-top:18px;
  padding:16px 18px;
  border-radius:12px;
  background:var(--brand-softer);
  border:1px solid var(--brand-soft);
}
.propiedades-view .ql-net .qn-t {
  flex:1;
  font-size:12.5px;
  color:var(--text-muted);
  font-weight:600;
}
.propiedades-view .ql-net .qn-v {
  font-size:24px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.propiedades-view .ql-net .qn-v.pos {
  color:var(--brand);
}
.propiedades-view .ql-net .qn-v.neg {
  color:var(--danger);
}
.propiedades-view .recon-head {
  display:flex;
  gap:11px;
  align-items:flex-start;
  margin-bottom:16px;
}
.propiedades-view .recon-head .an-ic {
  font-size:17px;
}
.propiedades-view .recon-item .ri-ic {
  font-size:16px;
  width:30px;
  text-align:center;
}
.propiedades-view .recon-item .ri-v .ri-n {
  font-weight:700;
  font-variant-numeric:tabular-nums;
  text-align:right;
  margin-bottom:5px;
}
.propiedades-view .doc-preview {
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.propiedades-view .dp-head {
  display:flex;
  align-items:center;
  gap:13px;
  padding:18px 24px;
  background:var(--brand);
  color:#fff;
}
.propiedades-view .dp-head .dp-k {
  width:34px;
  height:34px;
  border-radius:9px;
  background:rgba(255,255,255,.16);
  display:grid;
  place-items:center;
  font-weight:800;
}
.propiedades-view .dp-head b {
  display:block;
  font-size:17px;
}
.propiedades-view .dp-head span {
  font-size:10px;
  letter-spacing:.16em;
  opacity:.75;
}
.propiedades-view .dp-body {
  padding:22px 24px;
}
.propiedades-view .dp-final {
  margin-top:20px;
  padding:22px;
  border:1.5px dashed var(--brand-3);
  border-radius:13px;
  background:var(--brand-softer);
  text-align:center;
}
.propiedades-view .dp-final .dpf-t {
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.13em;
  color:var(--text-muted);
}
.propiedades-view .dp-final .dpf-v {
  font-size:30px;
  font-weight:800;
  color:var(--brand);
  margin:6px 0;
  font-variant-numeric:tabular-nums;
}
.propiedades-view .dp-final .dpf-s {
  font-size:12px;
  color:var(--text-muted);
}
.propiedades-view .dp-legal {
  margin-top:20px;
  font-size:11.5px;
  line-height:1.6;
  color:var(--text-muted);
  text-align:center;
}
.propiedades-view .dp-signs {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:34px;
}
.propiedades-view .dp-sign {
  text-align:center;
  font-size:11.5px;
  color:var(--text-muted);
}
.propiedades-view .dp-sign .dp-line {
  border-top:1px solid var(--text-faint);
  margin-bottom:7px;
}

/* documents — OV y contrato imprimibles (scss/components/_documents.scss) */
body.ov-doc, body.recibo-doc, body.contract-doc {
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--sans);
  margin: 0;
  padding: 0 0 60px;
  height: auto;
  min-height: 100%;
  overflow: visible;
}
.doc-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 18px;
}
.ov, .contract {
  width: 186mm;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 22mm 18mm;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.65;
}
.ov-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--brand);
  margin-bottom: 18px;
}
.ov-brand {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--text-muted);
}
.ov h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin: 2px 0;
}
.ov-folio {
  font-size: 11.5px;
  color: var(--text-muted);
}
.ov-subject {
  background: var(--brand-softer);
  border-left: 3px solid var(--brand-3);
  padding: 11px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  margin: 0 0 22px;
}
.ov h2 {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 26px 0 10px;
}
.ov p {
  margin: 0 0 11px;
  text-align: justify;
}
.ov-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  line-height: 1.45;
  margin-bottom: 14px;
}
.ov-tbl th, .ov-tbl td {
  border: 1px solid var(--border);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}
.ov-tbl thead th {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.3;
}
.ov-tbl tbody tr:nth-child(even) td {
  background: var(--surface-2);
}
.ov-tbl .ov-total td {
  border-top: 2px solid var(--ink, #26302B);
  background: var(--surface-2);
}
.ov-tbl .c-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ov-tbl .c-n {
  white-space: nowrap;
}
.ov-tbl-2 th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ov-tbl-2 td {
  font-weight: 600;
}
.ov-scroll, .c-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 14px;
}
.ov-scroll .ov-tbl, .c-scroll .c-tbl {
  margin-bottom: 0;
  min-width: 560px;
}
.ov-calc {
  background: var(--brand-softer);
  border: 1px dashed var(--brand-3);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 11.5px;
  text-align: left !important;
}
.ov-empty {
  color: var(--text-faint);
  font-style: italic;
}
.ov-quals {
  margin: 0 0 12px;
  padding-left: 20px;
}
.ov-quals li {
  margin-bottom: 4px;
}
.ov-quals b.pos {
  color: var(--brand-2);
}
.ov-quals b.neg {
  color: var(--danger);
}
.ov-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-bottom: 16px;
}
.ov-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
}
.ov-meta span {
  color: var(--text-muted);
}
.ov-vals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.ov-vals div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px;
  text-align: center;
}
.ov-vals span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
}
.ov-vals b {
  display: block;
  font-size: 16px;
  color: var(--brand);
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.ov-vals i {
  font-size: 10px;
  color: var(--text-faint);
  font-style: normal;
}
.ov-final {
  border: 1.5px dashed var(--brand-3);
  border-radius: 13px;
  background: var(--brand-softer);
  padding: 20px;
  text-align: center;
}
.ovf-t {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--text-muted);
}
.ovf-v {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  margin: 5px 0;
  font-variant-numeric: tabular-nums;
}
.ovf-s {
  font-size: 11px;
  color: var(--text-muted);
}
.ov-legal {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center !important;
  margin: 18px auto 0 !important;
  max-width: 78%;
}
.ov-signs, .c-signs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.c-signs {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.ov-signs > div, .c-sign {
  text-align: center;
  font-size: 11px;
}
.ov-line, .c-line {
  border-top: 1px solid var(--text);
  margin-bottom: 7px;
}
.ov-signs b, .c-sign b {
  display: block;
  font-size: 11.5px;
}
.ov-signs span, .c-sign span {
  color: var(--text-muted);
}
.contract {
  font-size: 12px;
}
.c-intro {
  text-align: justify;
  margin: 0 0 20px;
}
.contract h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  margin: 24px 0 12px;
}
.contract h3 {
  font-size: 12px;
  font-weight: 800;
  margin: 18px 0 7px;
}
.contract p {
  margin: 0 0 10px;
  text-align: justify;
}
.contract ol, .contract ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.contract li {
  margin-bottom: 6px;
  text-align: justify;
}
.blank {
  letter-spacing: -.5px;
  color: var(--text-faint);
}
.fill {
  font-weight: 700;
  border-bottom: 1px solid var(--text);
  padding: 0 3px;
}
.c-dom {
  margin-left: 14px;
}
.c-anexo {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 2px solid var(--brand);
}
.c-anexo-note {
  font-size: 11px;
  color: var(--text-muted);
}
.c-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 14px;
}
.c-tbl th, .c-tbl td {
  border: 1px solid var(--border);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}
.c-tbl th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.c-tbl td {
  font-weight: 600;
}
.c-docs {
  font-size: 11.5px;
}
.fill, .c-tbl td, .ov-tbl-2 td, .ov-meta b, .ov-subject b, .c-sign span {
  text-transform: uppercase;
}
.c-dato {
  text-transform: uppercase;
  font-weight: 700;
}
.ov-logo {
  height:52px;
  width:auto;
  flex-shrink:0;
}
.ov-portada,.ov-mapa {
  margin:0 0 20px;
  break-inside:avoid;
}
.ov-portada img {
  width:100%;
  height:auto;
  max-height:78mm;
  object-fit:cover;
  border-radius:8px;
  display:block;
}
.ov-mapa #ovMapa {
  width:100%;
  height:64mm;
  border-radius:8px;
  border:1px solid var(--border);
}
.ov-portada figcaption,.ov-mapa figcaption {
  font-size:10.5px;
  color:var(--text-muted);
  margin-top:5px;
  text-align:center;
}
.ov-supuestos {
  margin:0 0 14px;
  padding-left:20px;
}
.ov-supuestos li {
  margin-bottom:5px;
  text-align:justify;
}
.ov-result {
  border:1px solid var(--brand-3);
  border-radius:11px;
  overflow:hidden;
  margin-bottom:8px;
  break-inside:avoid;
}
.ov-result .ovr-rows {
  background:var(--brand-softer);
}
.ov-result .ovr-rows > div {
  display:flex;
  gap:16px;
  align-items:baseline;
  padding:8px 14px;
  border-bottom:1px solid rgba(46,139,106,.18);
  font-size:11px;
}
.ov-result .ovr-rows > div:last-child {
  border-bottom:none;
}
.ov-result .ovr-rows span {
  flex:1;
}
.ov-result .ovr-rows b {
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.ov-result .ovr-rows .minus,.ov-result .ovr-rows .minus b {
  color:var(--danger);
}
.ov-result .ovr-total {
  display:flex;
  gap:16px;
  align-items:baseline;
  padding:11px 14px;
  background:var(--brand);
  color:#fff;
}
.ov-result .ovr-total span {
  flex:1;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.ov-result .ovr-total b {
  font-size:16px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.ov-tbl .c-num {
  text-align:right;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  width:1%;
}
.ov-tbl .c-n {
  white-space:nowrap;
  width:1%;
}
.ov-firma {
  display:block;
  max-height:18mm;
  max-width:100%;
  margin:0 auto 2px;
}
.ov-firma-gap {
  height:18mm;
}
.ov-acept {
  margin-top:26px;
  padding:12px 15px;
  border:1px dashed var(--brand-3);
  border-radius:10px;
  background:var(--brand-softer);
  font-size:11px;
  text-align:center;
}
.ov-acept b {
  display:block;
  color:var(--brand);
  margin-bottom:2px;
}
@media (max-width: 820px) {
  .ov, .contract {
    padding: 18px 16px;
    width: auto;
  }
  .ov-meta, .ov-vals, .ov-signs, .c-signs {
    grid-template-columns: 1fr;
  }
  .ov-tbl-2 th {
    width: auto;
  }
}
@media print {
  body.ov-doc, body.recibo-doc, body.contract-doc {
    background: #fff;
    padding: 0;
  }
  .ov-scroll, .c-scroll {
    overflow: visible;
  }
  .ov-scroll .ov-tbl, .c-scroll .c-tbl {
    min-width: 0;
  }
  .ov, .contract {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .ov h2, .contract h3 {
    break-after: avoid;
  }
  .ov-tbl, .c-tbl, .ov-final, .ov-signs, .c-signs {
    break-inside: avoid;
  }
  .ov-result, .ov-portada, .ov-mapa {
    break-inside: avoid;
  }
  .ov-result, .ov-final, .ov-tbl thead th, .ov-acept {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.propiedades-view .pct-field {
  display:flex;
  align-items:center;
  gap:8px;
}
.propiedades-view .pct-field input {
  flex:1;
}
.propiedades-view .pct-field span {
  color:var(--text-muted);
  font-weight:700;
}
.propiedades-view .exp-list {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}
.portal-view .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.portal-view .chip {
  border: 1px solid var(--field-line, #DEE5DE);
  background: var(--field, #F4F7F3);
  border-radius: 8px;
  padding: 0 12px;
  height: 34px;
  font-size: 13px;
  color: var(--ink, #26302B);
  font-weight: 600;
  transition: .12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.portal-view .chip:hover { border-color: #3EA535; }
.portal-view .chip.on {
  background: #16493B;
  color: #fff;
  border-color: #16493B;
}
.propiedades-view .enc-stars {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.propiedades-view .enc-star {
  font-size: 30px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #DEE5DE;
  padding: 2px;
  transition: .12s;
}
.propiedades-view .enc-star.on { color: #D99A00; }
.propiedades-view .enc-star:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
.propiedades-view .exp-nota {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 2px;
}
.propiedades-view .exp-i {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.2px solid var(--text-faint);
  color: var(--text-faint);
  background: none;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  cursor: pointer;
  vertical-align: 2px;
  line-height: 1;
  padding: 0;
}
.propiedades-view .exp-i:hover,
.propiedades-view .exp-i[aria-expanded="true"] {
  border-color: var(--brand);
  color: var(--brand);
}
.propiedades-view .exp-i:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.propiedades-view .exp-info {
  margin: 7px 0 4px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.55;
  background: var(--surface-2);
  border-left: 3px solid var(--brand);
  color: var(--text);
  max-width: 64ch;
}
.propietarios-view .exp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.propietarios-view .exp-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
.propietarios-view .exp-row .exp-ic {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--border-strong);
}
.propietarios-view .exp-row.st-cargado .exp-ic { background: var(--warn); }
.propietarios-view .exp-row.st-validado {
  border-color: var(--brand-3);
  background: var(--brand-softer);
}
.propietarios-view .exp-row.st-validado .exp-ic { background: var(--ok); }
.propietarios-view .exp-body {
  flex: 1;
  min-width: 0;
}
.propietarios-view .exp-t {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.propietarios-view .exp-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.propiedades-view .exp-tag.interno,
.propietarios-view .exp-tag.interno {
  background: rgba(22, 73, 59, .1);
  color: #16493B;
}
.propiedades-view .exp-row {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--surface);
}
.propiedades-view .exp-row .exp-ic {
  width:9px;
  height:9px;
  border-radius:50%;
  margin-top:6px;
  flex-shrink:0;
  background:var(--border-strong);
}
.propiedades-view .exp-row.st-cargado .exp-ic {
  background:var(--warn);
}
.propiedades-view .exp-row.st-validado {
  border-color:var(--brand-3);
  background:var(--brand-softer);
}
.propiedades-view .exp-row.st-validado .exp-ic {
  background:var(--ok);
}
.propiedades-view .exp-body {
  flex:1;
  min-width:0;
}
.propiedades-view .exp-t {
  font-size:13px;
  font-weight:600;
  line-height:1.4;
}
.propiedades-view .exp-tag {
  display:inline-block;
  margin-left:6px;
  padding:1px 7px;
  border-radius:6px;
  background:var(--surface-2);
  color:var(--text-muted);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.propiedades-view .exp-s {
  font-size:11.5px;
  color:var(--text-faint);
}
.propiedades-view .exp-files {
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:5px;
}
.propiedades-view .exp-file {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
}
.propiedades-view .exp-file a {
  color:var(--brand);
  font-weight:600;
}
.propiedades-view .exp-nota {
  color:var(--danger);
  font-size:11.5px;
  font-weight:600;
}
.propiedades-view .exp-add {
  flex-shrink:0;
  cursor:pointer;
}
.propiedades-view .lnk {
  border:none;
  background:none;
  padding:0;
  font-family:inherit;
  font-size:11.5px;
  font-weight:700;
  color:var(--brand-3);
  cursor:pointer;
}
.propiedades-view .lnk.warn {
  color:var(--danger);
}
.propiedades-view .exp-head {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}
.propiedades-view .exp-head .hint {
  flex:1;
  margin:0;
}
.propiedades-view .prop-img.has-cover {
  background-size:cover;
  background-position:center;
}
.propiedades-view .prop-img.has-cover::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(10,25,18,.34) 0%,rgba(10,25,18,0) 42%,rgba(10,25,18,.42) 100%);
}
.propiedades-view .prop-img.has-cover .ptype, .propiedades-view .prop-img.has-cover .ptag, .propiedades-view .prop-img.has-cover .kind-tag {
  z-index:2;
}
.propiedades-view .prop-img.has-cover .ptype {
  text-shadow:0 1px 6px rgba(0,0,0,.55);
}
.propiedades-view .inp.dup {
  border-color:var(--danger);
  background:var(--danger-soft);
}
.propiedades-view .map-box {
  height:280px;
  border:1px solid var(--border-strong);
  border-radius:11px;
  overflow:hidden;
}
.propiedades-view .map-canvas {
  width:100%;
  height:100%;
}
.propiedades-view .map-foot {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:6px;
}
.propiedades-view .map-foot .map-coords {
  flex:1;
  margin:0;
  font-variant-numeric:tabular-nums;
}
.propiedades-view .map-fallback {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.propiedades-view .map-fallback .inp {
  max-width:170px;
}
.propiedades-view .stat-row {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-top:16px;
}
.propiedades-view .stat-card {
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface-2);
}
.propiedades-view .stat-card .sc-t {
  font-size:11.5px;
  color:var(--text-muted);
  font-weight:600;
}
.propiedades-view .stat-card .sc-v {
  font-family:var(--serif);
  font-size:21px;
  font-weight:700;
  margin-top:4px;
  font-variant-numeric:tabular-nums;
}
.propiedades-view .stat-card.gold {
  background:var(--gold-soft);
  border-color:var(--gold);
}
.propiedades-view .stat-card.gold .sc-v {
  color:var(--gold);
}
.propiedades-view .stat-card.brand {
  background:var(--brand-softer);
  border-color:var(--brand-3);
}
.propiedades-view .stat-card.brand .sc-v {
  color:var(--brand);
}
.propiedades-view .field-narrow {
  max-width:260px;
}
.propiedades-view .sec-sub {
  margin:-6px 0 14px;
  max-width:62ch;
}
.propiedades-view .unit-field {
  display:flex;
}
.propiedades-view .unit-field .inp {
  flex:1;
  border-radius:10px 0 0 10px;
}
.propiedades-view .unit-field span {
  display:grid;
  place-items:center;
  padding:0 12px;
  border:1px solid var(--border-strong);
  border-left:none;
  border-radius:0 10px 10px 0;
  background:var(--surface-2);
  color:var(--text-muted);
  font-size:12.5px;
  font-weight:600;
}
.propiedades-view .feat-group {
  display:flex;
  gap:20px;
  margin-bottom:18px;
  flex-wrap:wrap;
}
.propiedades-view .feat-label {
  width:120px;
  flex-shrink:0;
  text-align:right;
  font-size:12.5px;
  font-weight:600;
  color:var(--text-muted);
  padding-top:6px;
}
.propiedades-view .feat-items {
  flex:1;
  min-width:220px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:2px 16px;
}
.propiedades-view .feat-item {
  display:flex;
  align-items:center;
  gap:9px;
  padding:5px 0;
  font-size:13px;
  cursor:pointer;
}
.propiedades-view .feat-item input {
  width:17px;
  height:17px;
  flex-shrink:0;
}
.propiedades-view .day-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.propiedades-view .day-chip {
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border:1px solid var(--border-strong);
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:.15s;
  background:var(--surface);
}
.propiedades-view .day-chip input {
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.propiedades-view .day-chip.on {
  background:var(--brand-soft);
  border-color:var(--brand);
  color:var(--brand);
}
.propiedades-view .media-list {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-bottom:12px;
}
.propiedades-view .media-row {
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  font-size:12.5px;
}
.propiedades-view .media-row a {
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--brand);
}
.propiedades-view .media-kind {
  flex-shrink:0;
  padding:2px 9px;
  border-radius:6px;
  background:var(--brand-softer);
  color:var(--brand);
  font-size:10.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.propiedades-view .media-add {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.propiedades-view .media-add select {
  max-width:170px;
}
.propiedades-view .media-add .inp {
  flex:1;
  min-width:220px;
}
.propiedades-view .photo-card {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.propiedades-view .photo-caption, .propiedades-view .photo-caption-ro {
  font-size:12px;
  padding:7px 9px;
}
.propiedades-view .photo-caption-ro {
  color:var(--text-muted);
}
.propiedades-view .field label .desc-ia {
  float:right;
  font-weight:700;
}
.propiedades-view .field label .desc-ia:disabled {
  opacity:.5;
  cursor:default;
}
.propiedades-view .visit-grid {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:16px;
}
.propiedades-view .visit-row {
  display:flex;
  align-items:center;
  gap:14px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  flex-wrap:wrap;
}
.propiedades-view .visit-row.on {
  border-color:var(--brand-3);
  background:var(--brand-softer);
}
.propiedades-view .visit-day {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:130px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.propiedades-view .visit-hours {
  display:flex;
  align-items:center;
  gap:8px;
}
.propiedades-view .visit-hours .inp {
  width:120px;
  padding:6px 9px;
}
.propiedades-view .visit-hours span {
  color:var(--text-muted);
  font-size:12.5px;
}
.propiedades-view .exp-file {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:12px;
}
.propiedades-view .exp-file .exp-name {
  flex:1;
  min-width:140px;
  font-weight:600;
}
.propiedades-view .exp-file.ok .exp-name {
  color:var(--brand-2);
}
.propiedades-view .exp-acts {
  display:flex;
  gap:5px;
  margin-left:auto;
}
.propiedades-view .exp-act {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--surface);
  cursor:pointer;
  transition:.15s;
  color:var(--text-muted);
  padding:0;
}
.propiedades-view .exp-act svg {
  width:15px;
  height:15px;
}
.propiedades-view .exp-act:hover {
  border-color:currentColor;
}
.propiedades-view .exp-act.ver:hover {
  color:var(--info);
}
.propiedades-view .exp-act.ok {
  color:var(--ok);
}
.propiedades-view .exp-act.no {
  color:var(--warn);
}
.propiedades-view .exp-act.del {
  color:var(--danger);
}
.gbtn-ai {
  width:auto;
  padding:0 13px;
  gap:8px;
}
.gbtn-ai span {
  font-size:12.5px;
  font-weight:600;
}
.gbtn-ai.on {
  background:var(--brand-soft);
  color:var(--brand);
}
.ai-fab {
  display:none;
}
.gbtn-ai {
  display:inline-flex;
}
@media (max-width: 820px){
  .ai-fab {
    display:inline-flex;
  }
  .gbtn-ai {
    display:none;
  }
}
.propiedades-view .dp-sign b {
  display:block;
  margin-bottom:3px;
}
.propiedades-view .dp-sign .dp-role {
  display:block;
  margin-top:2px;
  color:var(--text-muted);
}
.propiedades-view .prop-img .ptag {
  position:absolute;
  top:12px;
  left:12px;
  z-index:3;
}
.propiedades-view .prop-img .ptype-tag {
  position:absolute;
  top:12px;
  right:12px;
  z-index:3;
  background:rgba(255,255,255,.95);
  color:var(--brand);
  border-radius:8px;
  padding:5px 10px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.03em;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.propiedades-view .prop-img.has-cover .ptype {
  display:none;
}
.propiedades-view .prop-body h4 {
  margin-bottom:2px;
}
.propiedades-view .prop-price {
  font-family:var(--serif);
  font-size:20px;
  font-weight:700;
  color:var(--brand);
  margin-top:9px;
  font-variant-numeric:tabular-nums;
}
.propiedades-view .prop-meta {
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:11px;
  padding-top:11px;
  border-top:1px solid var(--border);
  color:var(--text-muted);
  font-size:12.5px;
}
.propiedades-view .pm-item {
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.propiedades-view .pm-item svg {
  width:17px;
  height:17px;
  color:var(--brand-3);
  flex-shrink:0;
}
.propiedades-view .pm-item b {
  font-weight:700;
  color:var(--text);
  font-variant-numeric:tabular-nums;
}
.propiedades-view .pm-m2 {
  margin-left:auto;
}
.portal-view .pov-vals {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
  margin:18px 0;
}
.portal-view .pov-val {
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:11px;
  padding:12px;
  text-align:center;
}
.portal-view .pov-val span {
  display:block;
  font-size:10.5px;
  color:var(--text-muted);
  font-weight:700;
}
.portal-view .pov-val b {
  display:block;
  font-size:17px;
  color:var(--brand);
  margin-top:4px;
  font-variant-numeric:tabular-nums;
}
.portal-view .pov-final {
  border:1.5px dashed var(--brand-3);
  border-radius:13px;
  background:var(--brand-softer);
  padding:20px;
  text-align:center;
}
.portal-view .pov-final .pf-t {
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.13em;
  color:var(--text-muted);
}
.portal-view .pov-final .pf-v {
  font-family:var(--serif);
  font-size:30px;
  font-weight:800;
  color:var(--brand);
  margin:5px 0;
  font-variant-numeric:tabular-nums;
}
.portal-view .pov-final .pf-s {
  font-size:12px;
  color:var(--text-muted);
}
.portal-view .pov-sign {
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--border);
}
.portal-view .pov-sign h3 {
  font-family:var(--serif);
  font-size:16px;
  margin-bottom:4px;
}
.portal-view .pov-sign .field {
  display:block;
  margin-top:14px;
}
.portal-view .pov-sign .field > span {
  display:block;
  font-size:12.5px;
  font-weight:600;
  margin-bottom:7px;
}
.portal-view .sign-box {
  position:relative;
  height:170px;
  border:1.5px dashed var(--border-strong);
  border-radius:11px;
  background:var(--surface);
  overflow:hidden;
}
.portal-view .sign-box canvas {
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
  cursor:crosshair;
}
.portal-view .sign-hint {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
  color:var(--text-faint);
  font-size:13px;
}
.portal-view .pov-sign .btn-primary {
  margin-top:16px;
  width:100%;
  justify-content:center;
}
.firma-box {
  margin-top:10px;
}
.firma-actual {
  display:block;
  max-height:70px;
  max-width:100%;
  margin:0 auto;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:6px;
}
.firma-box .sign-box {
  height:110px;
}
.firma-acts {
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:9px;
}
.sign-box {
  position:relative;
  border:1.5px dashed var(--field-line);
  border-radius:11px;
  background:#fff;
  overflow:hidden;
}
.sign-box canvas {
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
  cursor:crosshair;
}
.sign-hint {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
  color:var(--ink-faint);
  font-size:12.5px;
}
.ntf-stack {
  position:fixed;
  top:calc(var(--head-h) + 12px);
  right:16px;
  z-index:120;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:340px;
  max-width:calc(100vw - 32px);
  pointer-events:none;
}
.ntf-float {
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:13px 14px;
  border-radius:13px;
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:var(--pop);
  cursor:pointer;
  pointer-events:auto;
  transform:translateX(120%);
  opacity:0;
  transition:transform .22s ease,opacity .22s ease;
  border-left:3px solid var(--green-bright);
}
.ntf-float.in {
  transform:translateX(0);
  opacity:1;
}
.ntf-float:hover {
  border-color:var(--green-bright);
}
.ntf-float .nf-body {
  flex:1;
  min-width:0;
}
.ntf-float .nf-t {
  font-size:13px;
  font-weight:700;
  line-height:1.35;
}
.ntf-float .nf-m {
  font-size:12px;
  color:var(--ink-soft);
  margin-top:2px;
}
.ntf-float .nf-x {
  border:none;
  background:none;
  color:var(--ink-faint);
  font-size:19px;
  line-height:1;
  cursor:pointer;
  padding:0 2px;
  flex-shrink:0;
}
.ntf-float .nf-x:hover {
  color:var(--ink);
}
@media (max-width: 820px){
  .ntf-stack {
    top:auto;
    bottom:calc(88px + env(safe-area-inset-bottom));
    left:16px;
    right:16px;
    width:auto;
  }
  .ntf-float {
    transform:translateY(120%);
  }
  .ntf-float.in {
    transform:translateY(0);
  }
}
@media (prefers-reduced-motion: reduce){
  .ntf-float {
    transition:none;
  }
}
.propiedades-view .ov-estado {
  margin-bottom:12px;
}
.propiedades-view .ov-acts {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.recibo {
  max-width: 660px;
  margin: 0 auto;
  background: #fff;
  padding: 26px 30px 40px;
  font-size: 14.5px;
  color: #26302B;
}
.rc-head {
  padding: 4px 0 14px;
}
.rc-logo {
  height: 52px;
  display: block;
}
.rc-rule {
  height: 5px;
  background: #BBD3B7;
  margin: 0 -30px;
}
.rc-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 6px;
}
.rc-dir {
  font-size: 13.5px;
  line-height: 2;
  color: #3A4540;
}
.rc-folio {
  text-align: right;
}
.rc-folio span {
  display: block;
  font-weight: 800;
  font-size: 15px;
}
.rc-folio b {
  display: inline-block;
  margin-top: 8px;
  background: #EDF1ED;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 15px;
}
.rc-titulo {
  color: #2F6B33;
  font-size: 21px;
  font-weight: 800;
  margin: 8px 0 4px;
}
.rc-fecha {
  color: #4E9B4E;
  font-weight: 800;
  font-size: 17px;
  margin: 0 0 18px 28px;
}
.rc-datos {
  margin: 18px 0;
  border-collapse: collapse;
}
.rc-datos th {
  text-align: right;
  font-weight: 800;
  padding: 7px 10px 7px 0;
  white-space: nowrap;
  vertical-align: top;
  font-size: 15px;
}
.rc-datos td {
  padding: 7px 0;
  font-size: 15px;
}
.rc-leyenda {
  margin: 24px 0 46px;
  line-height: 1.65;
  color: #3A4540;
  font-size: 15px;
}
.rc-firma {
  max-width: 340px;
  margin: 34px auto 8px;
  text-align: center;
}
.rc-linea {
  border-top: 1px solid #3A4540;
  margin-bottom: 8px;
}
.rc-firma span {
  font-size: 14.5px;
}
@media print {
  .recibo {
    padding: 0;
  }
}
.rc-firma-meta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8A948E;
}
.propiedades-view .prop-grid.as-list {
  display: block;
}
.propiedades-view .inv-list .tbl tbody tr {
  cursor: pointer;
}
.propiedades-view .inv-list .tbl tbody tr:hover td {
  background: var(--surface-2);
}
.propiedades-view .desc-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.propiedades-view .desc-opt input {
  accent-color: var(--brand);
}
.propiedades-view .pub-reloj {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.propiedades-view .pub-reloj b {
  color: var(--brand);
}
.propiedades-view .pub-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 14px;
}
.propiedades-view .pub-form .field {
  margin: 0;
}
.propiedades-view .pub-form .pub-url {
  flex: 1;
  min-width: 220px;
}
.propiedades-view .pub-form .pub-notas {
  flex: 1;
  min-width: 180px;
}
.capitalhumano-view .ch-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
