/* ── Estructura del panel: barra superior, riel, escenario y cápsula de plataformas ── */
body.app {
  --p: #A259FF;            /* color de la plataforma activa */
  --bg: #F4F2F8;
  display: grid;
  grid-template-columns: 84px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
  background:
    radial-gradient(55% 45% at 0% 100%, color-mix(in srgb, var(--p) 34%, transparent), transparent 70%),
    radial-gradient(45% 40% at 100% 0%, color-mix(in srgb, var(--p) 22%, transparent), transparent 70%),
    radial-gradient(40% 35% at 70% 100%, rgb(255 158 219 / .18), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

.topbar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 24px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand-word { height: 28px; width: auto; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgb(255 255 255 / .8); box-shadow: 0 8px 24px -16px rgb(40 10 80 / .3); }
.tab { height: 38px; padding: 0 18px; display: grid; place-items: center; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background-color .25s, color .25s; }
.tab:hover { color: var(--ink); background: rgb(255 255 255 / .8); }
.tab[aria-current='page'] { background: var(--ink); color: #fff; }
.top-tools { justify-self: end; display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgb(255 255 255 / .8); }
.tool { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font-size: 20px; }
.tool:hover { background: #fff; color: var(--ink); }
.tool.has-dot::after { content: ''; position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 2px #fff; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.who-chip { display: inline-flex; align-items: center; gap: 8px; padding-right: 10px; }
.who-text { display: grid; line-height: 1.15; }
.who-text b { font-size: 13px; font-weight: 600; }
.who-text small { font-size: 11px; color: var(--ink-3); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; }
.avatar.sq { border-radius: 14px; background: var(--p); color: var(--ink); }

/* Riel vertical de atajos */
.rail { grid-row: 2; position: sticky; top: 12px; align-self: start; height: calc(100dvh - 120px); display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 18px 0 0; }
.rail-group { display: grid; gap: 6px; padding: 8px; border-radius: 999px; background: rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgb(255 255 255 / .8); }
.rail-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-2); transition: background-color .25s, color .25s; }
.rail-btn:hover { background: #fff; color: var(--ink); }
.rail-btn.is-on { background: var(--ink); color: #fff; }
.rail-btn .count { position: absolute; top: 2px; right: 0; min-width: 18px; padding: 0 5px; border-radius: 999px; font-family: var(--px); font-size: 10px; line-height: 18px; text-align: center; }
.rail-btn .count.has { background: var(--brand); color: var(--ink); }
.mini-nova { display: block; width: 30px; }
.mini-nova svg, .fab-nova svg, .np-face svg { width: 100%; height: auto; overflow: visible; }

/* Escenario */
.stage { grid-row: 2; min-width: 0; padding: 22px 28px 140px 12px; outline: none; }

/* Cápsula inferior para cambiar de plataforma */
.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgb(13 14 16 / .86);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -16px rgb(13 14 16 / .6);
  view-transition-name: dock;
}
.dock-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: rgb(255 255 255 / .7); font-size: 14px; font-weight: 500; transition: background-color .3s, color .3s; }
.dock-btn:hover { color: #fff; }
.dock-btn.is-on { background: #fff; color: var(--ink); }
.dock-btn .pxdot { box-shadow: none; border-radius: 2px; }
.dock-btn .ico { width: 14px; height: 14px; opacity: .6; }

/* Revelado circular al cambiar de plataforma (View Transitions) */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: reveal .75s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes reveal {
  from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 100%)); }
  to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 100%)); }
}

/* Nova flotante */
.nova-fab { position: fixed; right: 22px; bottom: 18px; z-index: 41; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .8); border-radius: 50%; background: rgb(255 255 255 / .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 30px -14px rgb(40 10 80 / .5); view-transition-name: nova-fab; }
.fab-nova { display: block; width: 40px; }
.nova-panel { position: fixed; right: 22px; bottom: 88px; z-index: 42; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 120px)); display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 10px; padding: 16px; border-radius: 26px; background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid #fff; box-shadow: 0 30px 60px -24px rgb(40 10 80 / .45); animation: pop-in .35s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.97); filter: blur(6px); } }
.np-head { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; }
.np-face { width: 54px; }
.np-logo { width: 64px; height: auto; display: block; }
.np-head small { font-size: 12px; color: var(--ink-3); }
.np-log { display: grid; align-content: start; gap: 8px; overflow: auto; min-height: 120px; padding-right: 4px; }
.msg { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.msg.nova { justify-self: start; background: var(--brand-soft); border-bottom-left-radius: 6px; }
.msg.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.typing::after { content: '···'; font-family: var(--px); letter-spacing: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.np-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-q { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; color: var(--ink-2); }
.chip-q:hover { border-color: var(--brand); color: var(--ink); }
.np-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.np-form .input { height: 42px; border-radius: 999px; }
.np-note { margin: 0; font-size: 11px; color: var(--ink-4); text-align: center; }

/* ── Carga en cascada: cáscaras de vidrio que llegan y contenido que se enfoca ── */
.view .view-head h1 { animation: deblur .7s var(--ease) both; animation-delay: calc(var(--o, 0ms) + 60ms); }
.view .view-head p, .view .view-head .label, .view .view-head > :last-child { animation: deblur .7s var(--ease) both; animation-delay: calc(var(--o, 0ms) + 160ms); }
.is-loading .shell { animation: shell-in .6s var(--ease) both; animation-delay: calc(var(--o, 0ms) + 140ms + var(--i, 0) * 70ms); }
.is-loading .shell > * { animation: deblur .75s var(--ease) both; animation-delay: calc(var(--o, 0ms) + 420ms + var(--i, 0) * 70ms); }
.is-loading .day { animation: deblur .5s var(--ease) both; animation-delay: calc(var(--o, 0ms) + 300ms + var(--d, 0) * 14ms); }
.is-loading .bar i, .is-loading .meter-bar i { animation: grow-y 1s var(--ease) both; animation-delay: calc(var(--o, 0ms) + 600ms + var(--i, 0) * 70ms); }
.is-loading .meter-bar i { animation-name: grow-x; }
@keyframes shell-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes deblur { from { opacity: 0; filter: blur(12px); transform: translateY(6px); } }
@keyframes grow-y { from { height: 0; } }
@keyframes grow-x { from { width: 0; } }

/* Arranque: logo, pestañas, riel y cápsula llegan en orden */
.is-booting .brand-word { animation: deblur .8s var(--ease) both; }
.is-booting .tab { animation: deblur .6s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * 90ms); }
.is-booting .rail-btn { animation: rail-in .5s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * 80ms); }
@keyframes rail-in { from { opacity: 0; transform: translateX(-10px) scale(.6); } }
.is-booting .top-tools, .is-booting .tabs, .is-booting .rail-group { animation: deblur .6s var(--ease) .1s both; }
.is-booting .dock { animation: dock-in .8s var(--ease) .5s both; }
@keyframes dock-in { from { opacity: 0; translate: -50% 30px; } }
.is-booting .nova-fab { animation: dock-in-r .8s var(--ease) .7s both; }
@keyframes dock-in-r { from { opacity: 0; transform: translateY(30px) scale(.6); } }

/* Las tarjetas ahora son vidrio blanco sobre el degradado */
.card, .col, .locked, .demo-card, .private, .row-card, .legend { background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / .85); }
.card { border-radius: 24px; }

.view-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.view-head h1 { margin: 6px 0 0; font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.view-head p { margin: 8px 0 0; color: var(--ink-3); }
.sample { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); }

.grid { display: grid; gap: 14px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: 1.4fr 1fr; }
.card { padding: 20px; border-radius: var(--r-lg); background: var(--paper-2); min-width: 0; }
.card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.card-top h3 { margin: 0; }
.stat { display: grid; gap: 6px; }
.stat .label { display: flex; align-items: center; gap: 8px; }
.stat .label i { width: 8px; height: 8px; border-radius: 0; background: var(--c); }
.stat b { font-family: var(--px); font-size: 32px; font-weight: 400; line-height: 1; }
.stat small { color: var(--ink-3); font-size: 13px; }

/* Inicio: la convergencia de tu organización */
.knot-hero {
  position: relative;
  height: 260px;
  margin-bottom: 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brand);
}
.knot-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.knot-hero .copy { position: absolute; left: 28px; bottom: 24px; z-index: 1; max-width: 46%; }
.knot-hero h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.knot-hero p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }

.log { list-style: none; margin: 0; padding: 0; display: grid; }
.log li { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.log li:first-child { border-top: 0; }
.log .mono { font-size: 12px; color: var(--ink-3); }
.log .who { color: var(--ink-3); }

/* Work: pipeline */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { padding: 12px; border-radius: var(--r-lg); background: var(--paper-2); min-height: 380px; transition: background-color .2s; }
.col.is-over { background: #eef6d6; }
.col-head { display: flex; justify-content: space-between; padding: 4px 6px 12px; font-size: 13px; font-weight: 600; }
.col-head .mono { font-weight: 400; color: var(--ink-3); }
.deal { display: grid; gap: 8px; padding: 14px; margin-bottom: 8px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-1); cursor: grab; font-size: 13px; }
.deal:active { cursor: grabbing; }
.deal.is-dragging { opacity: .4; }
.deal b { font-size: 14px; font-weight: 600; }
.deal-meta { display: flex; justify-content: space-between; color: var(--ink-3); }
.deal-meta .mono { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); }
.tag.link { background: var(--c-eco); }

/* Eco: calendario */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); padding: 4px 6px; }
.day { min-height: 104px; padding: 8px; border-radius: var(--r); background: var(--paper-2); display: grid; align-content: start; gap: 4px; font-size: 12px; }
.day.is-out { background: transparent; color: var(--ink-4); }
.day.is-today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.day > span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.post { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; background: #fff; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post i { flex: none; width: 6px; height: 6px; border-radius: 0; background: var(--st); }
.st-ok { --st: #3d9a50; }
.st-wait { --st: #e0a100; }
.st-done { --st: var(--ink-4); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 0; background: var(--st); }

/* Balance */
.bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 170px; }
.bar { position: relative; display: grid; align-items: end; height: 100%; }
.bar i { display: block; height: var(--h); border-radius: 4px 4px 0 0; background: var(--c-balance); transition: height .8s var(--ease); }
.bar.neg i { background: #e8e4da; }
.bar small { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 0 0 10px; }
.tbl td { padding: 10px 0; border-top: 1px solid var(--line); }
.tbl .num { text-align: right; font-family: var(--mono); }
.pos { color: #2f7d32; }

/* Life */
.private {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: var(--r-lg);
  border: 1px dashed rgb(13 14 16 / .2);
  background: #fff6fb;
  font-size: 14px;
}
.habit { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.habit:first-of-type { border-top: 0; }
.habit input { width: 18px; height: 18px; accent-color: #d6339a; }
.habit .streak { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.ring { position: relative; display: grid; place-items: center; height: 40px; margin: 6px 0 0; background: linear-gradient(90deg, var(--c-life) calc(var(--p) * 1%), var(--line) 0); background-size: 100% 100%; }
.ring::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 10px, #fff 10px 12px); }
.ring span { position: relative; z-index: 1; font-family: var(--px); font-size: 20px; }

/* Núcleo bloqueado */
.locked { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 36px; border-radius: 24px; background: var(--paper-2); position: relative; overflow: hidden; }
.locked::before { content: ''; position: absolute; inset: 0 0 0 55%; background: conic-gradient(var(--c) 25%, transparent 0 50%, var(--c) 0 75%, transparent 0) 0 0 / 10px 10px; -webkit-mask: linear-gradient(90deg, rgb(0 0 0 / .35) 0 20%, rgb(0 0 0 / .7) 20% 45%, #000 45%); mask: linear-gradient(90deg, rgb(0 0 0 / .35) 0 20%, rgb(0 0 0 / .7) 20% 45%, #000 45%); }
.locked > * { position: relative; }
.locked h2 { margin: 8px 0; font-family: var(--px); font-size: 52px; font-weight: 400; }
.locked ul { padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.locked .price-tag { justify-self: center; padding: 28px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-2); text-align: center; display: grid; gap: 10px; min-width: 240px; }
.locked .price-tag b { font-family: var(--px); font-size: 38px; font-weight: 400; }
.locked .price-tag small { color: var(--ink-3); font-size: 12px; }

/* Plan */
.plan-row { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.plan-row:first-of-type { border-top: 0; }
.plan-row i { width: 12px; height: 12px; border-radius: 0; background: var(--c); }
.plan-row small { display: block; color: var(--ink-3); font-size: 13px; }
.plan-row .mono { font-size: 13px; }
.switch { position: relative; width: 40px; height: 24px; border: 0; border-radius: 999px; background: var(--line); transition: background-color .25s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-1); transition: transform .25s var(--ease); }
.switch[aria-checked='true'] { background: var(--ink); }
.switch[aria-checked='true']::after { transform: translateX(16px); }
.switch:disabled { opacity: .5; }

.sess { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sess:first-of-type { border-top: 0; }
.sess .mono { font-size: 12px; color: var(--ink-3); }
.badge { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--c-work); }

.fade-in { animation: fade .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .locked { grid-template-columns: 1fr; }
  .locked::before { inset: 60% 0 0 0; }
}
@media (max-width: 760px) {
  body.app { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: auto 1fr; padding: 12px 12px 4px; }
  .who-text { display: none; }
  .brand-word { height: 22px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: 100%; overflow-x: auto; }
  .rail { display: none; }
  .stage { grid-column: 1; padding: 16px 12px 150px; }
  .dock { max-width: calc(100vw - 96px); overflow-x: auto; left: 12px; translate: none; }
  .dock-btn { padding: 0 12px; }
  .nova-fab { right: 12px; }
  .g-4 { grid-template-columns: 1fr; }
  .knot-hero .copy { max-width: none; right: 24px; }
  .cal { gap: 3px; }
  .day { min-height: 64px; padding: 4px; }
  .post { font-size: 0; padding: 3px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
}
.grid + .grid, .knot-hero + .grid { margin-top: 14px; }
.spacer { height: 14px; }
.card h3.spaced { margin-top: 24px; }
.bars { margin-bottom: 22px; }

.knot-hero h2 .px { font-size: .95em; }

/* ── Bandeja de demos ── */

.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.st-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink-2); }
.st-tab .px { font-size: 12px; color: var(--ink-3); }
.st-tab:hover { border-color: var(--ink-4); }
.st-tab[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-tab[aria-selected='true'] .px { color: var(--brand); }

.demo-list { display: grid; gap: 12px; }
.demo-card { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 22px; border-radius: var(--r-lg); background: var(--paper-2); border-left: 4px solid var(--c); }
.dc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-demo { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 8px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 550; }
.dc-date { font-size: 12px; color: var(--ink-3); }
.demo-card h3 { margin: 14px 0 2px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.dc-who { margin: 0; color: var(--ink-2); font-size: 14px; }
.dc-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.dc-facts a { color: var(--brand-ink); font-weight: 550; }
.dc-facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-card blockquote { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff; font-size: 14px; color: var(--ink-2); }
.dc-side { display: grid; gap: 10px; align-content: start; }
.st-select { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 550; }
.st-select.st-nueva { box-shadow: inset 4px 0 0 var(--brand); }
.st-select.st-contactada { box-shadow: inset 4px 0 0 var(--c-eco); }
.st-select.st-agendada { box-shadow: inset 4px 0 0 var(--c-balance); }
.st-select.st-realizada { box-shadow: inset 4px 0 0 var(--c-work); }
.st-select.st-descartada { box-shadow: inset 4px 0 0 var(--ink-4); color: var(--ink-3); }
.note { height: auto; padding: 10px 12px; resize: vertical; font-size: 13px; line-height: 1.45; }
.dc-foot { display: flex; align-items: center; gap: 12px; }
.saved { font-size: 12px; color: var(--brand-ink); }
.dc-upd { font-size: 11px; color: var(--ink-3); }
.demo-empty { display: grid; justify-items: center; gap: 8px; padding: 56px 20px; border-radius: var(--r-lg); background: var(--paper-2); text-align: center; color: var(--ink-3); font-size: 14px; }
.demo-empty b { color: var(--ink); font-size: 16px; }
@media (max-width: 1100px) { .demo-card { grid-template-columns: 1fr; } }

/* ── Secciones nuevas ── */
.muted { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--paper-2); font-size: 12px; white-space: nowrap; }
.pill.wait { background: #fff4d6; }
.pill.ok { background: #e3f7d0; }
.pill.late { background: #ffe0e4; }
.pill.prio-alta { background: var(--brand-soft); color: var(--brand-ink); }
.rows { display: grid; gap: 8px; }
.row-card { padding: 14px 18px; border-radius: 18px; }
.task { display: grid; grid-template-columns: 20px 1fr auto auto; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.task input { width: 18px; height: 18px; accent-color: var(--ink); }
.task:has(input:checked) span:first-of-type { text-decoration: line-through; color: var(--ink-3); }
.client h3, .brand-card h3 { margin: 14px 0 0; }
.client-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.client-foot .px { font-size: 20px; font-weight: 400; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.brand-stats { display: grid; gap: 4px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.brand-stats b { font-size: 18px; font-weight: 400; color: var(--ink); }
.approval { display: grid; grid-template-columns: 52px 1fr auto auto auto; align-items: center; gap: 14px; }
.approval b { font-size: 15px; }
.ap-thumb { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--c-eco), var(--brand)); }
.invoice { display: grid; grid-template-columns: 70px 1fr auto auto; align-items: center; gap: 14px; }
.invoice .amt { font-size: 18px; }
.meter-bar { height: 10px; margin: 14px 0 8px; border-radius: 999px; background: rgb(13 14 16 / .07); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: repeating-linear-gradient(90deg, var(--p) 0 8px, color-mix(in srgb, var(--p) 70%, #fff) 8px 10px); }
.goal .px, .spend .px { font-size: 18px; }
@media (max-width: 760px) {
  .approval { grid-template-columns: 44px 1fr; }
  .approval .pill, .approval .btn { grid-column: 2; justify-self: start; }
  .task { grid-template-columns: 20px 1fr; }
  .task .pill { grid-column: 2; justify-self: start; }
  .invoice { grid-template-columns: 1fr auto; }
}

/* Vidrio sobre el degradado (va al final para ganarle a los fondos de cada componente) */
.card, .col, .locked, .demo-card, .private, .row-card, .legend { background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgb(255 255 255 / .85); }
.card, .demo-card { border-radius: 24px; }
.col { border-radius: 22px; }
.legend { display: inline-flex; padding: 10px 16px; border-radius: 999px; }
.day { background: rgb(255 255 255 / .6); }
.view-head h1 { font-size: clamp(36px, 4vw, 54px); }
.empty-nova { display: block; width: 56px; } .empty-nova svg { width: 100%; height: auto; overflow: visible; }

/* ── Panel administrativo ── */
.ver { display: block; padding: 4px 0 2px; text-align: center; font-family: var(--px); font-size: 11px; color: var(--ink-3); }
.dot-state { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--ink-4); }
.dot-state.on { background: #3aa856; }
.integ-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.integ-mini li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.integ-mini small { color: var(--ink-3); font-size: 12px; }
.ver-big { display: block; font-size: 44px; font-weight: 400; margin: 4px 0 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.org-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px; }
.mod-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; color: var(--ink-3); }
.mod-chip .pxdot { opacity: .35; }
.mod-chip.is-on { border-color: var(--ink); color: var(--ink); }
.mod-chip.is-on .pxdot { opacity: 1; }
.integ .muted { margin-bottom: 12px; }
.integ.is-ok { box-shadow: inset 4px 0 0 #3aa856; }
.env-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.env-list li { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 8px; font-size: 13px; }
.env-list code { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--paper-2); }
.env-list small { justify-self: end; color: var(--ink-3); }
.setting-row i { background: var(--brand); }
@media (max-width: 760px) { .org-row { grid-template-columns: 1fr; } }
