/* Concepto: cristal sobre la playa. La foto difuminada al fondo; paneles de agua profunda
   esmerilada encima. Turquesa de laguna para actuar, arena para lo que es tuyo y lo ganado,
   verde palmera para lo pagado y coral para lo que va tarde. */
:root {
  color-scheme: dark;
  --ink: #0A3550;
  --glass: rgba(6, 32, 51, 0.50);
  --glass-strong: rgba(7, 34, 52, 0.86);
  --line: rgba(255, 255, 255, 0.15);
  --line-2: rgba(255, 255, 255, 0.26);
  --text: #F6FBFC;
  --text-2: #D5E6EA;
  --text-3: #B2C9CF;
  --aqua: #74E6E8;
  --aqua-2: #4FD3D7;
  --aqua-3: #1FA4AA;
  --aqua-4: #0E6E77;
  --aqua-ink: #032A30;
  --sand: #F4E3C3;
  --sand-2: #E9CC97;
  --palm: #9BDA8F;
  --warn: #F3C77A;
  --danger: #FF8E7A;
  --c1: #26A4AA;
  --c2: #6F82E8;
  --c3: #CC7E46;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 11px;
}

* { box-sizing: border-box; }
html, body { background: var(--ink); }
body {
  margin: 0;
  color: var(--text);
  font: 400 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100%;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(5, 34, 56, .9); }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--aqua); text-decoration: none; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
svg { display: block; flex: none; }

/* ---------- Escena: la playa difuminada ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #0B4A6B; }
.scene .photo {
  position: absolute; inset: -60px;
  background: url("fondo-playa.jpg") 64% 50% / cover no-repeat;
  filter: blur(9px) saturate(1.12);
  transform: scale(1.05);
}
.scene .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 26, 50, .24) 0%, rgba(3, 30, 50, .22) 36%, rgba(4, 36, 54, .38) 66%, rgba(6, 40, 56, .56) 100%); }
.scene .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 95% at 50% 25%, transparent 45%, rgba(2, 18, 32, .40) 100%); }
@media (max-width: 760px), (orientation: portrait) { .scene .photo { background-position: 72% 50%; } }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(5, 34, 56, .30);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.topbar-in {
  max-width: 1480px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
  height: 64px; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, #8EEFF0, #1FA4AA); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px -6px rgba(79, 211, 215, .8); color: var(--aqua-ink); font-weight: 700; font-size: 14px; }
.brand em { font-style: normal; color: var(--sand); }
.nav {
  position: relative; display: flex; align-items: center; gap: 2px; min-width: 0;
  padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.nav-pill, .seg-pill {
  position: absolute; top: 0; left: 0; height: 100%; pointer-events: none; z-index: 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px -8px rgba(1, 20, 34, .6);
  clip-path: inset(4px 100% 4px 4px round 10px);
}
.nav a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap;
  transition: color 220ms ease, transform 160ms var(--ease-out);
}
.nav a:active { transform: scale(.96); }
.nav a.on { color: #06303A; }
.nav a.on .count { background: rgba(6, 48, 58, .12); color: #06303A; }
.nav .count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; background: rgba(116, 230, 232, .2); color: var(--aqua); transition: background-color 220ms ease, color 220ms ease; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; min-width: 230px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08);
  color: var(--text-2); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease;
}
.search-btn span { flex: 1; text-align: left; }
kbd { font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: var(--text); }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px rgba(5, 34, 56, .9); }
.me { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: linear-gradient(145deg, #F7E7C8, #E2BF85); color: #4A3516; border: 1px solid rgba(255, 255, 255, .4); }

@media (max-width: 1580px) {
  .nav a svg { display: none; }
  .search-btn { min-width: 190px; }
}
@media (max-width: 1240px) {
  .search-btn { min-width: 0; }
  .search-btn span, .search-btn kbd { display: none; }
}
@media (max-width: 1060px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a svg { display: block; }
}

/* ---------- Vista ---------- */
.view {
  position: relative; z-index: 1;
  max-width: 1480px; margin: 0 auto; outline: none;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 64px;
}
@media (min-width: 900px) {
  .topbar-in, .view {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
.v-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; text-shadow: 0 1px 18px rgba(2, 22, 40, .45); }
.eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.v-title { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
.v-sub { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.v-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; text-shadow: none; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .38); background: rgba(6, 32, 51, .25); color: var(--text-2); font-size: 12px; }
.on-scene { text-shadow: 0 1px 14px rgba(2, 22, 40, .55); }

.view.enter .anim { animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---------- Cristal ---------- */
.glass {
  position: relative; isolation: isolate; min-width: 0;
  background-color: var(--glass);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025) 36%, rgba(255, 255, 255, 0) 62%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 30px 60px -32px rgba(1, 18, 32, .7);
  transition: border-color 240ms ease, transform 240ms var(--ease-out), box-shadow 240ms ease;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 248, 250, .13), transparent 45%);
  opacity: 0; transition: opacity 300ms ease;
}
.glass::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(220, 252, 253, .85), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 300ms ease;
}
.card { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.card-t { margin: 0; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.card-s { font-size: 12.5px; color: var(--text-3); }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--aqua); background: none; border: 0; padding: 4px 2px; cursor: pointer; border-radius: 6px; }
.link svg { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .glass.hov:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 40px 70px -34px rgba(1, 18, 32, .8); }
  .glass.hov:hover::before, .glass.hov:hover::after { opacity: 1; }
  .nav a:not(.on):hover { color: var(--text); }
  .search-btn:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .13); }
  .icon-btn:hover { background: rgba(255, 255, 255, .12); }
  .btn:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .34); }
  .btn-primary:hover { background: #7FE5E8; }
  .row:hover { background: rgba(255, 255, 255, .07); }
  .link:hover svg { transform: translate(2px, -2px); }
  .deal:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .34); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 15px; border-radius: 12px; white-space: nowrap;
  font-weight: 500; font-size: 13.5px; color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .22);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--aqua-2); color: var(--aqua-ink); border-color: rgba(255, 255, 255, .35); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 28px -12px rgba(31, 164, 170, .9); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-danger { background: rgba(255, 142, 122, .22); border-color: rgba(255, 142, 122, .5); color: #FFD3CA; }
.btn-lg { height: 52px; padding: 0 20px; border-radius: 15px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(6, 32, 51, .35); color: var(--text-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(.97); }
.chip.on { color: #06303A; background: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .9); }
.chip .n { font-size: 11.5px; color: var(--text-3); }
.chip.on .n { color: #2C5A63; }
.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(6, 32, 51, .4); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.seg .seg-pill { clip-path: inset(3px 100% 3px 3px round 9px); }
.seg button { position: relative; z-index: 1; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: color 220ms ease; }
.seg button.on { color: #06303A; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .9; }
.st-llamar { background: rgba(255, 255, 255, .13); color: #E2EEF1; }
.st-contactada { background: rgba(111, 130, 232, .28); color: #D7DDFF; }
.st-agendada { background: rgba(116, 230, 232, .2); color: #A9F2F3; }
.st-negociando { background: rgba(243, 199, 122, .22); color: #FBE3B6; }
.st-cliente { background: rgba(244, 227, 195, .26); color: #FFF2D8; }
.st-archivada { background: rgba(255, 255, 255, .08); color: var(--text-3); }
.tag-hot { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 500; background: rgba(255, 142, 122, .24); color: #FFD3CA; flex: none; }
.tag-ia { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--aqua); }
.sq { width: 8px; height: 8px; border-radius: 2px; flex: none; display: inline-block; }
.sq-ia { background: var(--aqua); box-shadow: 0 0 10px rgba(116, 230, 232, .7); }
.sq-tu { background: var(--sand); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); flex: none; animation: live 1.8s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(116, 230, 232, .6); } 60% { box-shadow: 0 0 0 6px rgba(116, 230, 232, 0); } }

.av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; border: 1px solid rgba(255, 255, 255, .14); }
.av-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.av-lg { width: 66px; height: 66px; border-radius: 50%; font-size: 22px; }
.av-0 { background: rgba(31, 164, 170, .35); color: #C9F7F8; }
.av-1 { background: rgba(111, 130, 232, .35); color: #DDE2FF; }
.av-2 { background: rgba(233, 204, 151, .32); color: #FFEED0; }
.av-3 { background: rgba(196, 140, 220, .32); color: #F2DDFA; }
.av-4 { background: rgba(155, 218, 143, .28); color: #E1F7DC; }
.av-5 { background: rgba(255, 142, 122, .3); color: #FFDCD4; }

/* ---------- Rejilla del panel ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
@media (max-width: 1180px) {
  .s3, .s4, .s5 { grid-column: span 6; } .s7, .s8 { grid-column: span 12; } .s6 { grid-column: span 6; }
  .s5.wide-md { grid-column: span 12; }
}
@media (max-width: 760px) {
  .bento > * { grid-column: 1 / -1 !important; }
}

/* Héroe */
.hero {
  background-color: rgba(14, 104, 118, .42);
  background-image: radial-gradient(120% 140% at 0% 0%, rgba(140, 240, 242, .34), transparent 52%), linear-gradient(135deg, rgba(31, 164, 170, .30), rgba(6, 40, 60, .35));
  border-color: rgba(190, 248, 250, .3);
  padding: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
}
.hero .grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 70% 40%, #000, transparent 75%);
}
.hero-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hero-num { font-family: var(--display); font-size: clamp(48px, 5.8vw, 72px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin-top: 4px; }
.hero-up { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #E4FAFA; }
.hero-up .badge { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: rgba(244, 227, 195, .3); color: var(--sand); }
.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #E9CC97, #FFF6E4); transform-origin: left; transition: transform 700ms var(--ease-out); }
.hero-side { padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 150px; }
.hero-side dt { font-size: 12px; color: #D2F3F4; }
.hero-side dd { margin: 2px 0 0; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
}

/* Embudo abierto */
.big { font-family: var(--display); font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stack-bar { display: flex; gap: 3px; height: 26px; }
.stack-bar > i { display: block; height: 100%; border-radius: 7px; transform-origin: left; transition: flex-grow 600ms var(--ease-out); min-width: 6px; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 18px; }
.legend > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.legend .k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.legend b { font-weight: 500; font-size: 16px; letter-spacing: -0.02em; padding-left: 15px; }
.legend .d { font-size: 11.5px; color: var(--text-3); padding-left: 15px; }

/* Gráfico de barras */
.bars { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 10px; height: 170px; padding-top: 26px; }
.bars .col-b { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; cursor: default; min-width: 0; }
.bars .trk { position: relative; flex: 1; width: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.bars .trk .val { position: absolute; left: 50%; transform: translateX(-50%); }
.bars .b { width: 100%; max-width: 42px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, rgba(150, 240, 242, .78), rgba(79, 211, 215, .5)); transform-origin: bottom; transition: filter 180ms ease, height 500ms var(--ease-out); }
.bars .b.today { background: linear-gradient(180deg, #FFF6E4, #E9CC97); box-shadow: 0 0 22px -4px rgba(244, 227, 195, .7); }
.bars .lab { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.bars .lab.today { color: var(--sand); font-weight: 600; }
.view.enter .bars .b { animation: grow 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 140ms); }
@keyframes grow { from { transform: scaleY(.02); } to { transform: none; } }
.tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%);
  padding: 7px 10px; border-radius: 10px; font-size: 12px; line-height: 1.35; white-space: nowrap;
  background: rgba(250, 253, 253, .96); color: #062A33; box-shadow: 0 10px 30px -10px rgba(1, 18, 32, .7);
  opacity: 0; transition: opacity 120ms ease;
}
.tip.show { opacity: 1; }
.tip b { font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .bars .col-b:hover .b:not(.today) { filter: brightness(1.25); } }

/* Listas */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; margin: 0 -10px; border-radius: 13px; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); border: 0; background: transparent; text-align: left; width: calc(100% + 20px); }
.li:active { transform: scale(.985); }
.li .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li .t { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .s { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.li .r { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.li .r b { font-weight: 500; }
.li .r small { font-size: 11.5px; color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .li:hover { background: rgba(255, 255, 255, .08); } }

/* Siguiente reunión */
.next { background-image: linear-gradient(180deg, rgba(244, 227, 195, .12), rgba(255, 255, 255, 0) 55%); }
.next-t { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.countdown { display: flex; align-items: baseline; gap: 8px; }
.countdown b { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; color: var(--sand); }

/* Tareas */
.task { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.check { width: 40px; height: 40px; margin: -6px -4px -6px -8px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; flex: none; }
.check i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .5); display: grid; place-items: center; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out); }
.check:active i { transform: scale(.9); }
.check i svg { opacity: 0; transform: scale(.6); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.task.done .check i { background: var(--aqua-2); border-color: var(--aqua-2); }
.task.done .check i svg { opacity: 1; transform: none; }
.task .when { width: 82px; flex: none; font-size: 12.5px; color: var(--text-3); }
.task .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.task .t { font-size: 13.5px; font-weight: 500; transition: color 200ms ease; }
.task .s { font-size: 12px; color: var(--text-3); }
.task.done .t { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .5); }

/* Aprobaciones */
.ok-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 15px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: opacity 220ms ease, transform 260ms var(--ease-out); }
.ok-item .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ok-item .t { font-weight: 500; font-size: 13.5px; }
.ok-item .s { font-size: 12px; color: var(--text-3); }
.ok-item.leaving { opacity: 0; transform: translateX(16px) scale(.98); }
.ai-badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(150, 240, 242, .4), rgba(31, 164, 170, .35)); color: #DDFBFC; border: 1px solid rgba(190, 248, 250, .4); flex: none; }
.warn-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 500; background: rgba(243, 199, 122, .24); color: #FDE6BD; }

/* Sesión de llamadas */
.timer { font-family: var(--mono); font-size: clamp(36px, 3.6vw, 46px); font-weight: 500; letter-spacing: -0.03em; text-align: center; font-variant-numeric: tabular-nums; }
.timer .sep { color: var(--text-3); }
.ctrl { display: flex; justify-content: center; gap: 10px; }
.ctrl button { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .12); color: var(--text); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.ctrl button:active { transform: scale(.93); }
.ctrl .go { background: var(--aqua-2); border-color: rgba(255, 255, 255, .4); color: var(--aqua-ink); }
.ctrl .stop { background: rgba(255, 142, 122, .9); border-color: transparent; color: #3A0B04; }

/* ---------- Llamadas ---------- */
.call-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .call-layout { grid-template-columns: minmax(0, 1fr) 320px; } .call-queue { grid-column: 1 / -1; order: 3; } }
@media (max-width: 800px) {
  .call-layout { grid-template-columns: 1fr; }
  .call-ctrl { order: 1; }
  .clinic-card { order: 2; padding: 22px 20px; }
  .call-queue { order: 3; }
}
.q-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 13px; border: 1px solid transparent; transition: background-color 160ms ease, border-color 160ms ease; }
.q-item.cur { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.q-item.done { opacity: .55; }
.q-item .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-item .t { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-item .s { font-size: 12px; color: var(--text-3); }
.q-res { font-size: 11.5px; color: var(--text-3); }
.squares { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.squares i { height: 6px; border-radius: 2px; background: rgba(255, 255, 255, .16); transition: background-color 300ms ease; }
.squares i.d { background: var(--sand); }
.squares i.c { background: var(--aqua); box-shadow: 0 0 10px rgba(116, 230, 232, .7); }
.clinic-card { padding: 26px 28px; gap: 20px; }
.clinic-name { margin: 0; font-family: var(--display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.why { padding: 16px 18px; border-radius: 16px; background: rgba(116, 230, 232, .1); border: 1px solid rgba(116, 230, 232, .26); display: flex; flex-direction: column; gap: 8px; }
.why p { margin: 0; font-size: 15px; line-height: 1.55; }
.opener { font-family: var(--display); font-size: 20px; line-height: 1.4; letter-spacing: -0.005em; color: #FFF6E4; margin: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kv > div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kv span { font-size: 11.5px; color: var(--text-3); }
.kv b { font-weight: 500; font-size: 14.5px; overflow-wrap: anywhere; }
.copy-num { display: inline-flex; align-items: center; gap: 8px; }
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.res {
  height: 88px; border-radius: 17px; padding: 12px 14px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: var(--text); font-weight: 500; font-size: 14.5px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.res:active { transform: scale(.97); }
.res.yes { background: var(--aqua-2); color: var(--aqua-ink); border-color: rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
@media (hover: hover) and (pointer: fine) { .res:not(.yes):hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .36); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--text-2); }
.input {
  height: 46px; width: 100%; padding: 0 14px; border-radius: 13px; font-size: 16px;
  border: 1px solid rgba(255, 255, 255, .24); background: rgba(3, 24, 40, .45); color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder { color: rgba(213, 230, 234, .6); }
.input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(116, 230, 232, .25); }
.input.bad { border-color: var(--danger); }
textarea.input { height: 76px; padding: 12px 14px; resize: none; line-height: 1.4; }
.err { margin: 0; font-size: 12.5px; color: #FFC5BA; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-swap { animation: rise 280ms var(--ease-out) both; }
.recording { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--aqua); }

/* ---------- Embudo (kanban) ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(262px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.col { padding: 14px 12px 12px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 460px; scroll-snap-align: start; transition: border-color 180ms ease, background-color 180ms ease; }
.col.over { border-color: rgba(190, 248, 250, .7); background-color: rgba(31, 164, 170, .32); }
.col-h { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 2px; }
.col-h .top { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.col-h .top .n { margin-left: auto; font-size: 12px; color: var(--text-3); }
.col-h .sum { font-size: 12.5px; color: var(--text-2); }
.col-h .bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.col-h .bar i { display: block; height: 100%; background: var(--aqua); border-radius: 3px; transition: width 500ms var(--ease-out); }
.deal {
  padding: 13px 14px; border-radius: 16px; background: rgba(4, 26, 42, .45); border: 1px solid rgba(255, 255, 255, .13);
  display: flex; flex-direction: column; gap: 10px; cursor: grab; user-select: none; touch-action: auto;
  transition: transform 200ms var(--ease-out), border-color 180ms ease, opacity 200ms ease;
}
.deal:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.deal.ghost { opacity: .28; }
.deal .h { display: flex; align-items: center; gap: 10px; }
.deal .h .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.deal .h .k { font-size: 11.5px; color: var(--text-3); }
.deal .h .t { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal .v { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.deal .v b { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.03em; }
.deal .v small { font-size: 11.5px; color: var(--text-3); }
.deal .f { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.deal .f .when { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal .f .who { margin-left: auto; white-space: nowrap; }
.drop-hint { margin-top: auto; height: 64px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .28); display: grid; place-items: center; font-size: 12.5px; color: var(--text-3); }
.more-n { font-size: 12.5px; color: var(--text-3); text-align: center; padding: 6px 0; }
.drag-clone { position: fixed; z-index: 80; pointer-events: none; margin: 0; box-shadow: 0 30px 60px -20px rgba(1, 18, 32, .85), 0 0 0 1px rgba(190, 248, 250, .5); background: rgba(10, 52, 74, .96); }
.landed { animation: landed 440ms var(--ease-out); }
@keyframes landed { 0% { box-shadow: 0 0 0 0 rgba(190, 248, 250, .7); } 100% { box-shadow: 0 0 0 12px rgba(190, 248, 250, 0); } }

/* ---------- Tablas ---------- */
.table { width: 100%; }
.thead, .trow { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1.1fr) 150px 120px minmax(190px, 1.4fr) 110px; align-items: center; gap: 12px; padding: 0 18px; }
.thead { height: 44px; font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.trow { min-height: 62px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color 140ms ease; width: 100%; border-left: 0; border-right: 0; border-top: 0; background: transparent; text-align: left; }
.trow:last-child { border-bottom: 0; }
.trow .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trow .who > span:not(.av) { display: flex; flex-direction: column; min-width: 0; }
.trow .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .s { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .val { font-weight: 500; }
@media (max-width: 900px) {
  .thead { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who st" "next val"; padding: 14px 16px; row-gap: 8px; }
  .trow > :nth-child(1) { grid-area: who; } .trow > :nth-child(2) { display: none; } .trow > :nth-child(3) { grid-area: st; }
  .trow > :nth-child(4) { grid-area: val; text-align: right; } .trow > :nth-child(5) { grid-area: next; } .trow > :nth-child(6) { display: none; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.search { position: relative; flex: 0 1 300px; min-width: 200px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { height: 38px; padding-left: 36px; font-size: 14px; border-radius: 12px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.empty { padding: 36px 20px; text-align: center; color: var(--text-3); }

/* ---------- Capa: cajón, paleta ---------- */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2, 20, 34, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 280ms ease; }
.layer.open .backdrop { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(500px, 100vw);
  background: rgba(7, 36, 56, .72); border-left: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(40px) saturate(160%); backdrop-filter: blur(40px) saturate(160%);
  box-shadow: -40px 0 80px -30px rgba(1, 18, 32, .8), inset 1px 0 0 rgba(255, 255, 255, .12);
  transform: translateX(104%); transition: transform 460ms var(--ease-drawer);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) max(22px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.layer.open .drawer { transform: none; }
.layer.closing .drawer { transition-duration: 260ms; }
.d-close { position: sticky; top: 0; align-self: flex-end; z-index: 2; }
.d-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-top: -26px; }
.d-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; }
.d-head p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.d-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.d-sec { display: flex; flex-direction: column; gap: 10px; }
.d-sec h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.stage-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: rgba(255, 255, 255, .22); }
.timeline li:last-child::before { display: none; }
.timeline .sq { margin-top: 6px; }
.timeline .t { font-size: 13.5px; }
.timeline .s { font-size: 12px; color: var(--text-3); }
.timeline .q { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.timeline li.new { animation: rise 320ms var(--ease-out); }
.prep { padding: 16px; border-radius: 16px; background: rgba(116, 230, 232, .09); border: 1px solid rgba(116, 230, 232, .24); display: flex; flex-direction: column; gap: 12px; }
.prep p { margin: 0; font-size: 14px; line-height: 1.55; }
.prep ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.5; color: #E4F1F3; }
.prep h4 { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.note-row { display: flex; gap: 8px; }
.note-row .input { height: 42px; font-size: 14px; }

.palette { position: fixed; z-index: 62; left: 50%; top: max(12vh, calc(env(safe-area-inset-top, 0px) + 20px)); transform: translateX(-50%); width: min(620px, calc(100vw - 32px)); background: rgba(7, 36, 56, .8); -webkit-backdrop-filter: blur(36px) saturate(160%); backdrop-filter: blur(36px) saturate(160%); border: 1px solid rgba(255, 255, 255, .24); border-radius: 20px; box-shadow: 0 40px 100px -30px rgba(1, 18, 32, .9); overflow: hidden; }
.palette .p-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette input { flex: 1; height: 56px; border: 0; background: transparent; font-size: 16px; color: var(--text); outline: none; }
.palette input::placeholder { color: rgba(213, 230, 234, .6); }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette li button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.palette li button[aria-selected="true"] { background: rgba(255, 255, 255, .14); }
.palette li .s { margin-left: auto; font-size: 12px; color: var(--text-3); }
.palette .grp { padding: 8px 12px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

.pop { position: fixed; z-index: 62; width: min(360px, calc(100vw - 32px)); padding: 14px; border-radius: 18px; background: rgba(7, 36, 56, .82); -webkit-backdrop-filter: blur(36px) saturate(160%); backdrop-filter: blur(36px) saturate(160%); border: 1px solid rgba(255, 255, 255, .24); box-shadow: 0 30px 80px -30px rgba(1, 18, 32, .9); display: flex; flex-direction: column; gap: 10px; transform-origin: top right; animation: pop 200ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }

/* ---------- Avisos ---------- */
.toasts { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); display: flex; flex-direction: column-reverse; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 10px 10px 14px; min-height: 50px; border-radius: 15px;
  background: rgba(252, 254, 254, .96); color: #062A33; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(1, 18, 32, .75);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-out);
}
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(6px) scale(.98); transition-duration: 180ms; }
.toast .ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #0E6E77; color: #DDFBFC; flex: none; }
.toast span { flex: 1; }
.toast button { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: #062A33; color: #F6FBFC; font-weight: 600; font-size: 13px; cursor: pointer; }

/* ---------- Agenda ---------- */
.cal-wrap { overflow-x: auto; }
.cal { min-width: 780px; display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); }
.cal .dh { padding: 14px 10px 12px; border-left: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.cal .dh .dn { font-size: 12.5px; color: var(--text-3); }
.cal .dh .dd { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.cal .dh.today .dn { color: var(--sand); }
.cal .hours { position: relative; border-top: 1px solid var(--line); }
.cal .hours span { position: absolute; right: 10px; font-size: 11px; color: var(--text-3); transform: translateY(-50%); }
.cal .day { position: relative; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 100% 48px; }
.cal .day.today { background-color: rgba(244, 227, 195, .06); }
.ev {
  position: absolute; left: 5px; right: 5px; border-radius: 11px; padding: 6px 8px; overflow: hidden; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 1px; color: var(--text); font-size: 12px; border: 1px solid;
  transition: transform 160ms var(--ease-out), filter 160ms ease, box-shadow 160ms ease;
}
.ev:active { transform: scale(.98); }
.ev b { font-weight: 600; font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev small { font-size: 11px; color: var(--text-2); }
.ev.meet { background: rgba(79, 211, 215, .3); border-color: rgba(150, 240, 242, .6); }
.ev.client { background: rgba(244, 227, 195, .34); border-color: rgba(244, 227, 195, .75); }
.ev.call { background: rgba(255, 142, 122, .24); border-color: rgba(255, 170, 150, .6); }
.ev.block { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 6px, transparent 6px 12px); border-color: rgba(255, 255, 255, .35); border-style: dashed; }
.ev.sel { box-shadow: 0 0 0 2px #fff; }
.ev.fresh { animation: landed 900ms var(--ease-out) 2; }
.now-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--danger); z-index: 3; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
@media (hover: hover) and (pointer: fine) { .ev:hover { filter: brightness(1.15); } }

/* ---------- Cobros ---------- */
.months { display: flex; gap: 6px; }
.months > span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); }
.months i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; transition: background-color 300ms ease, border-color 300ms ease, transform 300ms var(--ease-out); }
.m-paid { background: var(--palm); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.m-pend { border: 1.5px solid var(--warn); }
.m-late { background: var(--danger); }
.m-none { border: 1px dashed rgba(255, 255, 255, .3); }
.m-pop { transform: scale(1.18); }
.client-row { display: grid; grid-template-columns: minmax(200px, 1.3fr) 150px 170px minmax(230px, 1.2fr) 300px; gap: 18px; align-items: center; padding: 18px 22px; }
.client-row > :last-child { justify-self: end; }
@media (max-width: 1100px) { .client-row { grid-template-columns: 1fr 1fr; } .client-row > :last-child { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 560px) { .client-row { grid-template-columns: 1fr; } }
.lbl { font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; display: block; }

/* ---------- Emails ---------- */
.warm { display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: 4px; }
.warm i { height: 16px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.warm i.on { background: var(--aqua); box-shadow: 0 0 8px rgba(116, 230, 232, .6); }
.warm i.today { background: transparent; border: 1.5px solid var(--sand); }
.mail-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .mail-split { grid-template-columns: 1fr; } }
.mail-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.mail-list button { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: background-color 150ms ease; }
.mail-list button.on { background: rgba(255, 255, 255, .12); }
.mail-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mail-body p.body { margin: 0; white-space: pre-line; font-size: 14.5px; line-height: 1.65; color: #EAF4F6; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.switch .tr { width: 44px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .25); position: relative; flex: none; transition: background-color 220ms ease; }
.switch .tr i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 260ms var(--ease-out); box-shadow: 0 2px 6px rgba(1, 18, 32, .4); }
.switch[aria-checked="true"] .tr { background: var(--aqua-2); }
.switch[aria-checked="true"] .tr i { transform: translateX(18px); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: baseline; font-size: 13.5px; }
.steps li span:first-child { width: 58px; flex: none; font-size: 12px; color: var(--text-3); font-family: var(--mono); }

/* ---------- Informes ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .big { font-size: 40px; }
.delta { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 500; background: rgba(155, 218, 143, .22); color: #D8F4D2; }
.chart-box { position: relative; }
.chart-box svg text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart-box .grid-l { stroke: rgba(255, 255, 255, .12); }
.cross { stroke: rgba(255, 255, 255, .5); stroke-dasharray: 3 3; }
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel .fr { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; }
.funnel .fr .k { display: flex; flex-direction: column; font-size: 13px; }
.funnel .fr .k small { font-size: 11.5px; color: var(--text-3); }
.funnel .track { height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.funnel .track i { display: block; height: 100%; border-radius: 8px; transform-origin: left; transition: transform 700ms var(--ease-out); }
.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.donut-legend { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 160px; }
.donut-legend div { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.donut-legend b { margin-left: auto; font-weight: 500; }
.donut-legend small { color: var(--text-3); font-size: 12px; width: 40px; text-align: right; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.stepper .ctl { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .1); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: transform 120ms var(--ease-out), background-color 160ms ease; }
.stepper button:active { transform: scale(.92); }
.stepper output { min-width: 44px; text-align: center; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.result-chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.result-chain > div { display: flex; flex-direction: column; gap: 4px; }
.result-chain .big { font-size: clamp(36px, 4vw, 50px); }
.day-sq { display: flex; flex-wrap: wrap; gap: 5px; }
.day-sq i { width: 16px; height: 16px; border-radius: 4px; background: var(--sand); animation: rise 220ms var(--ease-out) both; }

/* ---------- Equipo ---------- */
.agent { gap: 14px; }
.agent .h { display: flex; align-items: center; gap: 12px; }
.agent .h .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agent .st { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.agent.off { opacity: .65; }
.agent-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.agent-ic.ia { background: linear-gradient(145deg, rgba(150, 240, 242, .4), rgba(31, 164, 170, .35)); color: #DDFBFC; border: 1px solid rgba(190, 248, 250, .4); }
.agent-ic.tu { background: rgba(244, 227, 195, .22); color: var(--sand); border: 1px solid rgba(244, 227, 195, .4); }

/* ---------- Onda al hacer clic ---------- */
.ripple {
  position: fixed; z-index: 95; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, .85);
  background: radial-gradient(closest-side, rgba(190, 248, 250, .24), rgba(190, 248, 250, 0) 72%);
  box-shadow: 0 0 14px rgba(116, 230, 232, .55);
  animation: ripple 620ms cubic-bezier(.23, 1, .32, 1) forwards;
}
.ripple.late { background: none; box-shadow: none; border-width: 1px; border-color: rgba(190, 248, 250, .6); opacity: 0; animation-duration: 820ms; animation-delay: 70ms; }
.ripple.strong { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
@keyframes ripple { 0% { transform: scale(.08); opacity: .95; } 100% { transform: scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .view.enter .anim, .view.enter .bars .b, .day-sq i, .panel-swap, .timeline li.new, .landed, .ev.fresh, .pop { animation: none !important; }
  .live { animation: none; }
  .glass, .btn, .chip, .deal, .li, .res, .ev, .nav a { transition-property: background-color, border-color, color, opacity; }
  .drawer { transition: opacity 200ms ease; transform: none; opacity: 0; }
  .layer.open .drawer { opacity: 1; }
  .toast { transform: none; }
}

/* ---------- Añadidos: bloque pulsable, llamada híbrida, importes, ajustes ---------- */
.call-queue .qlist { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
button.q-item { width: 100%; font: inherit; color: inherit; text-align: left; background: transparent; cursor: pointer; }
button.q-item:active { transform: scale(.985); }
.q-item { transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms var(--ease-out); }
.q-item.todo .q-res { color: var(--aqua); font-weight: 500; }
.q-item.cur .q-res { color: var(--sand); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  button.q-item:not(.cur):hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); opacity: 1; }
}
.phone-big { font-family: var(--display); font-size: clamp(30px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; text-align: center; padding: 4px 0 2px; user-select: all; -webkit-user-select: all; }
.unval { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pay-row:first-child { border-top: 0; }
.pay-row .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.pay-row .main .link { justify-content: flex-start; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-row .s { font-size: 12px; color: var(--text-3); }
.pay-row .amt { font-size: 14px; font-weight: 500; white-space: nowrap; }
.pay-row .btn-sm { width: 34px; padding: 0; flex: none; }
.add-row { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.add-row .input { height: 40px; font-size: 14px; border-radius: 12px; }
.add-row .input:first-of-type { flex: 1; min-width: 0; }
.add-row input[type="time"] { width: 104px; flex: none; padding: 0 10px; }
.add-row .btn { height: 40px; flex: none; }
@media (max-width: 420px) { .add-row { flex-wrap: wrap; } .add-row .input:first-of-type { flex-basis: 100%; } .add-row input[type="time"] { flex: 1; width: auto; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .input { height: 42px; font-size: 15px; }
.form-grid textarea.input { height: 76px; }
@media (max-width: 420px) { .form-grid { grid-template-columns: 1fr; } }
.help { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--aqua-2); flex: none; }
.dialog-wrap { position: fixed; inset: 0; z-index: 61; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.dialog {
  pointer-events: auto; width: min(460px, 100%); padding: 24px; border-radius: 22px; display: flex; flex-direction: column; gap: 14px;
  background: rgba(7, 36, 56, .86); border: 1px solid rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(36px) saturate(160%); backdrop-filter: blur(36px) saturate(160%);
  box-shadow: 0 40px 100px -30px rgba(1, 18, 32, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
  opacity: 0; transform: scale(.96); transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out);
}
.layer.open .dialog { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dialog { transition: none; transform: none; } }
/* Móvil: la barra de arriba en una sola fila (el avatar es decorativo). */
@media (max-width: 480px) { .me { display: none; } .top-actions { gap: 2px; } }
/* El gráfico de llamadas ocupa todo el alto de su tarjeta. */
#calls-chart { flex: 1; min-height: 170px; height: auto; }

/* ---------- Versión real: entrada, cargando, vacíos ---------- */
body.auth .nav, body.auth .top-actions { display: none; }
.login-wrap { min-height: calc(100vh - 190px); display: grid; place-items: center; }
.login { width: min(420px, 100%); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.login .brand-mark { display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--aqua-ink); }
.loading { font-size: 15px; animation: rise 280ms var(--ease-out) both; }
.empty-card { max-width: 640px; }
.seg-nav { display: flex; align-items: center; gap: 4px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { color: #0A3550; }
.prep-text { white-space: pre-wrap; font-size: 14px; line-height: 1.55; color: #E4F1F3; max-height: 420px; overflow-y: auto; }
.prep-paste { display: flex; flex-direction: column; gap: 8px; }
.prep-paste[open] { gap: 10px; }
.prep-paste summary { cursor: pointer; font-size: 13px; color: var(--aqua); list-style: none; }
.prep-paste summary::-webkit-details-marker { display: none; }
.prep-paste[open] > * + * { margin-top: 8px; }
.task > .check:not(button) { width: 40px; height: 40px; margin: -6px -4px -6px -8px; }
