/* =========================================================
   Dental Propulse · páginas: inicio, agenda, ajustes
   ========================================================= */
.only-desktop { display: inline-grid; } .tb-btn.only-mobile { display: none; }
.tb-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--card); }
@media (max-width: 900px) { .only-desktop { display: none; } .tb-btn.only-mobile { display: inline-grid; } }

/* ---------- Inicio ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.hero h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hchip b { color: var(--ink); font-family: var(--display); font-size: 14px; }
.hchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.dash-grid > * { min-width: 0; }
.card.tight { padding: 18px 20px; margin-bottom: 0; }
.stack-col { display: grid; gap: 18px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { display: flex; align-items: center; gap: 9px; }
.sec-head .count { font-family: var(--mono); font-size: 11px; }

/* agenda de hoy: línea de tiempo */
.today-list { display: grid; }
.trow { display: grid; grid-template-columns: 68px 4px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 6px; border-radius: 12px; position: relative; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow:hover { background: var(--hover); }
.trow .tm { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.trow .tm small { display: block; color: var(--muted); font-size: 10.5px; }
.trow .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); min-height: 30px; }
.trow .who { min-width: 0; } .trow .who strong { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .who span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.trow .acts { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.trow:hover .acts, .trow:focus-within .acts { opacity: 1; }
.mini-btn { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); cursor: pointer; }
.mini-btn:hover { background: var(--hover); }
.mini-btn.ok { color: var(--ok); border-color: rgba(18,183,106,.4); } .mini-btn.bad { color: var(--bad); border-color: rgba(240,68,56,.4); }
.mini-btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; padding: 0 9px; }
.mini-btn .ico { width: 15px; height: 15px; }
.trow.past { opacity: .62; } .trow.now { background: var(--sel); }
.trow.now::after { content: "ahora"; position: absolute; right: 10px; top: -8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 1px 8px; border-radius: 99px; }
.empty-state { display: grid; place-items: center; gap: 6px; text-align: center; padding: 30px 10px; color: var(--muted); }
.empty-state .ico { width: 34px; height: 34px; color: var(--muted-2); }
.empty-state strong { color: var(--ink); font-family: var(--display); font-size: 16px; }

/* embudo */
.fstack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--hover); margin-bottom: 16px; gap: 2px; }
.fstack i { display: block; height: 100%; background: var(--c); min-width: 3px; }
.flist { display: grid; gap: 2px; }
.flist a { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; color: inherit; }
.flist a:hover { background: var(--hover); }
.flist i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.flist b { font-family: var(--display); font-weight: 700; }

/* primeros pasos */
.setup { background: var(--grad-soft); border: 1px solid var(--brand-line); }
.setup-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; }
.setup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.setup li a { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.setup li a:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.setup li .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.8px solid var(--line-2); display: grid; place-items: center; flex: none; font-size: 12px; color: #fff; letter-spacing: 0; }
.setup li.done a { color: var(--muted); text-decoration: line-through; } .setup li.done .tick { background: var(--ok); border-color: var(--ok); }
.setup li small { margin-left: auto; color: var(--muted); font-weight: 500; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.trio .card { margin-bottom: 0; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.mini-list li + li { border-top: 1px solid var(--line); }
.mini-list .nm { display: grid; min-width: 0; line-height: 1.3; } .mini-list .nm strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mini-list .nm small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .dash-grid, .trio { grid-template-columns: 1fr; } .trow { grid-template-columns: 62px 4px minmax(0, 1fr) auto; } .trow .acts { grid-column: 3 / -1; opacity: 1; } }

/* ---------- Agenda ---------- */
.cal { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 20px; align-items: start; }
.cal-side { position: sticky; top: 86px; display: grid; gap: 16px; }
.cal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.cal-card h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.mini-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mini-h strong { font-family: var(--display); font-size: 15px; text-transform: capitalize; }
.mini-h button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.mini-h button:hover { background: var(--hover); color: var(--ink); }
.mini-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-g b { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); font-weight: 500; padding: 4px 0; }
.mini-d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; font-size: 12.5px; font-weight: 500; border: 0; background: none; color: var(--ink); cursor: pointer; position: relative; }
.mini-d:hover { background: var(--hover); } .mini-d.out { color: var(--muted-2); }
.mini-d.inw { background: var(--sel); border-radius: 0; } .mini-d.inw.first { border-radius: 9px 0 0 9px; } .mini-d.inw.last { border-radius: 0 9px 9px 0; }
.mini-d.today { font-weight: 800; color: var(--brand); } .mini-d.today::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.mini-d.sel { background: var(--brand); color: #fff; border-radius: 9px; } .mini-d.sel::after { background: #fff; }
.prof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.prof-list label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; }
.prof-list label:hover { background: var(--hover); }
.prof-list input { display: none; }
.prof-list .pd { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); flex: none; }
.prof-list label:has(input:not(:checked)) { opacity: .42; } .prof-list label:has(input:not(:checked)) .pd { box-shadow: none; background: var(--line-2); }
.prof-list em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.lg-list { display: grid; gap: 7px; font-size: 12.5px; color: var(--muted); } .lg-list span { display: flex; align-items: center; gap: 9px; } .lg-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.lg-block { background: repeating-linear-gradient(135deg, var(--warn) 0 2px, transparent 2px 5px) !important; border-radius: 3px !important; }
.blq { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.blq li { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; font-size: 12.5px; } .blq small { display: block; color: var(--muted); }

.cal-main { min-width: 0; }
.cal-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-title { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.025em; margin: 0 8px 0 4px; text-transform: capitalize; }
.cal-nav { display: inline-flex; gap: 2px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; }
.cal-nav button { height: 32px; min-width: 32px; padding: 0 8px; border: 0; background: none; border-radius: 8px; font-weight: 700; font-size: 12.5px; display: grid; place-items: center; color: var(--ink); }
.cal-nav button:hover { background: var(--hover); }
.cal-bar .sp { flex: 1; }
.cal-color { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: auto; height: calc(100vh - 196px); min-height: 520px; position: relative; }
.cal-inner { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(var(--minw, 130px), 1fr)); min-width: calc(58px + var(--cols) * var(--minw, 130px)); }
.cal-corner { position: sticky; left: 0; top: 0; z-index: 9; background: var(--card); border-bottom: 1px solid var(--line); }
.cal-head { position: sticky; top: 0; z-index: 7; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 9px 8px; text-align: center; cursor: default; }
.cal-head .dow { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cal-head .num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; font-family: var(--display); font-size: 18px; font-weight: 600; margin-top: 2px; }
.cal-head.today .num { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(37,99,255,.7); }
.cal-head.today .dow { color: var(--brand); }
.cal-head.res { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }
.cal-head.res strong { display: block; font-size: 13.5px; line-height: 1.2; } .cal-head.res small { color: var(--muted); font-size: 11.5px; }
.cal-head.res .pd { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.cal-hours { position: sticky; left: 0; z-index: 5; background: var(--card); border-right: 1px solid var(--line); }
.cal-hour { height: var(--hh); font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-7px); }
.cal-col { position: relative; border-left: 1px solid var(--line); cursor: cell;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px);
  background-size: 100% var(--hh), 100% calc(var(--hh) / 2); }
.cal-col.today { background-color: color-mix(in srgb, var(--brand) 4%, transparent); }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 5.5%, transparent) 0 6px, transparent 6px 12px); pointer-events: none; }
.cal-block { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--warn) 11%, var(--card)); border-left: 3px solid var(--warn); color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 8px; z-index: 2; pointer-events: none; overflow: hidden; border-radius: 0 8px 8px 0; }
.cal-ev { position: absolute; border-radius: 10px; padding: 5px 9px 5px 10px; font-size: 12px; line-height: 1.25; overflow: hidden; cursor: pointer; user-select: none;
  background: color-mix(in srgb, var(--c) 15%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); border-left: 3px solid var(--c); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: box-shadow .15s, transform .15s, opacity .15s; z-index: 3; }
.cal-ev:hover { box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--c) 70%, transparent); z-index: 8; transform: translateY(-1px); }
.cal-ev .tm { font-family: var(--mono); font-size: 10.5px; color: color-mix(in srgb, var(--c) 75%, var(--ink)); display: block; }
.cal-ev .t { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .s { color: var(--muted); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .sd { position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc) 25%, transparent); }
.cal-ev.s-asistio { opacity: .72; } .cal-ev.s-no_asistio { opacity: .6; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bad) 10%, var(--card)) 0 6px, var(--card) 6px 12px); border-left-color: var(--bad); }
.cal-ev.short { padding-top: 2px; padding-bottom: 2px; display: flex; gap: 6px; align-items: baseline; } .cal-ev.short .tm, .cal-ev.short .s { display: none; }
.cal-ev.web::after { content: "web"; position: absolute; right: 20px; top: 5px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 0 5px; border-radius: 4px; }
.cal-ev.dragging { opacity: .45; transform: none; box-shadow: none; }
.cal-ghost { position: absolute; left: 3px; right: 3px; border-radius: 10px; border: 2px dashed var(--brand); background: var(--brand-soft); z-index: 9; pointer-events: none; display: grid; place-items: start center; padding-top: 4px; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--brand); }
.cal-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--bad); z-index: 6; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.cal-loading { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--card) 70%, transparent); z-index: 12; font-weight: 600; color: var(--muted); }

/* vista mensual */
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 760px; }
.cm-h { position: sticky; top: 0; z-index: 3; background: var(--card); padding: 10px 8px; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.cm-c { min-height: 118px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.cm-c:hover { background: var(--hover); } .cm-c.out { background: var(--card-2); } .cm-c.out .cm-n { color: var(--muted-2); }
.cm-n { font-family: var(--display); font-weight: 600; font-size: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cm-c.today .cm-n { background: var(--brand); color: #fff; }
.cm-ev { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 15%, var(--card)); border-left: 3px solid var(--c); }
.cm-ev em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-right: 5px; }
.cm-more { font-size: 11.5px; color: var(--brand); font-weight: 700; padding-left: 4px; }

/* ventana de detalle de cita */
.cal-pop { position: fixed; z-index: 160; width: 310px; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px; animation: dd-in .14s ease; }
.cal-pop .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-pop .ph strong { display: block; font-family: var(--display); font-size: 16px; line-height: 1.2; } .cal-pop .ph small { color: var(--muted); }
.cal-pop .pr { display: grid; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.cal-pop .pr div { display: flex; align-items: center; gap: 10px; color: var(--ink); } .cal-pop .pr .ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
.cal-pop .pa { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-pop .px { position: absolute; right: 10px; top: 10px; }

@media (max-width: 1100px) { .cal { grid-template-columns: 1fr; } .cal-side { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .cal-side { grid-template-columns: 1fr; } .cal-wrap { height: calc(100vh - 230px); } }

/* ---------- Acceso ---------- */
.login-body { position: relative; overflow: hidden; }
.login-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%); }
.login-card .login-mark { width: 54px; height: 54px; }
.login-card { gap: 14px; padding: 36px 32px; }
.login-card .field > span { font-size: 12px; font-weight: 600; }
.today-list { max-height: 640px; overflow-y: auto; padding-right: 4px; margin-right: -4px; }
body { letter-spacing: 0; }

.cal-title { text-transform: none; }
.cal-ev.narrow { padding: 3px 5px 3px 7px; border-radius: 8px; font-size: 11.5px; }
.cal-ev.narrow .tm, .cal-ev.narrow .s { display: none; }
.cal-ev.narrow .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 8px; }
.cal-ev.narrow .sd { width: 6px; height: 6px; right: 4px; top: 4px; }
.cal-hour { white-space: nowrap; }

/* ---------- Ajustes ---------- */
.set { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 32px; align-items: start; }
.set-nav { position: sticky; top: 86px; display: grid; gap: 2px; }
.set-search { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 11px; margin-bottom: 8px; color: var(--muted); }
.set-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.set-search input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; height: 100%; font-size: 13.5px; }
.set-g { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); padding: 16px 12px 6px; }
.set-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.set-link .ico { width: 18px; height: 18px; }
.set-link:hover { background: var(--hover); color: var(--ink); }
.set-link.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.1), 0 0 0 1px var(--line); }
.set-link.on .ico { color: var(--brand); }
.set-body { min-width: 0; }
.set-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.set-head h1 { font-size: 24px; } .set-head p { margin: 2px 0 0; }
.set-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); border: 1px solid var(--brand-line); flex: none; }
.set-ico .ico { width: 22px; height: 22px; }
.set-status { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); margin-bottom: 18px; }
.set-status > div { display: grid; line-height: 1.3; } .set-status span { color: var(--muted); font-size: 13px; }
.set-status.ok { background: rgba(18,183,106,.07); border-color: rgba(18,183,106,.28); } .set-status.warn { background: rgba(247,144,9,.08); border-color: rgba(247,144,9,.3); }
.set-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.set-main > .card { margin-bottom: 18px; }
.guide-panel { position: sticky; top: 86px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; font-size: 13px; }
.guide-panel h4 { margin: 0 0 14px; font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.guide-panel ol { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 14px; }
.guide-panel li { counter-increment: g; position: relative; padding-left: 34px; line-height: 1.55; color: var(--ink); }
.guide-panel li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 11.5px; display: grid; place-items: center; }
.guide-panel code { background: var(--card); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 11.5px; word-break: break-all; }
.set .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.set .form-actions { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 16px; }
.set .card { margin-bottom: 18px; }
.set-hero { display: flex; align-items: center; gap: 22px; background: var(--grad-soft); border-color: var(--brand-line); }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.conn { display: grid; gap: 4px; align-content: start; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: inherit; transition: .18s; }
.conn:hover { transform: translateY(-2px); border-color: var(--brand-line); }
.conn strong { font-family: var(--display); font-size: 16px; margin-top: 8px; } .conn small { color: var(--muted); font-size: 12.5px; } .conn em { font-style: normal; font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.conn-top { display: flex; align-items: center; justify-content: space-between; }
.conn-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; } .conn-ico .ico { width: 19px; height: 19px; }
.conn .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.8px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: #fff; }
.conn.ok .tick { background: var(--ok); border-color: var(--ok); }
.conn-chip { font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.conn-chip.ok { background: rgba(18,183,106,.14); color: var(--ok); } .conn-chip.warn { background: rgba(247,144,9,.14); color: #B54708; }
details.adv { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--card-2); }
details.adv summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.add-item { padding: 14px; background: var(--card-2); border: 1px dashed var(--line-2); border-radius: 14px; }
.week-hours { gap: 8px; }
.wh-day { padding: 10px; border: 1px solid var(--line); } .wh-day strong { font-size: 12.5px; }
@media (max-width: 1100px) { .set { grid-template-columns: 1fr; } .set-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } .set-g, .set-search { grid-column: 1 / -1; } .set-split { grid-template-columns: 1fr; } .guide-panel { position: static; } }

/* equipo */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.member.off { opacity: .55; }
.m-head { display: flex; align-items: center; gap: 12px; }
.m-head > div { min-width: 0; flex: 1; } .m-head small { color: var(--muted); font-size: 12px; display: block; padding-left: 9px; }
.m-av { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, var(--card)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); font-family: var(--display); font-weight: 700; flex: none; }
.m-name { font-weight: 700; font-size: 15px; padding-left: 9px !important; min-height: 34px !important; }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-row input[type=color] { width: 100%; height: 40px; border-radius: 10px; }
.m-sw { display: grid; gap: 8px; } .m-foot { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.switch input { display: none; }
.switch i { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: .2s; }
.switch input:checked + i { background: var(--brand); } .switch input:checked + i::after { transform: translateX(16px); }
/* horarios por filas */
.week-hours { grid-template-columns: 1fr !important; gap: 0 !important; margin-bottom: 14px; }
.wh-day { display: flex !important; flex-direction: row !important; align-items: center; flex-wrap: wrap; gap: 8px 10px !important; padding: 11px 2px !important; background: none !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; }
.wh-day:last-child { border-bottom: 0 !important; }
.wh-day strong { width: 104px; flex: none; font-size: 13px !important; }
.wh-slot { display: inline-flex !important; align-items: center; gap: 2px; padding: 2px 4px 2px 12px !important; border-radius: 99px !important; background: var(--brand-soft) !important; border: 1px solid var(--brand-line) !important; color: var(--brand); font-weight: 700; font-size: 12.5px; }
.wh-slot .icon-btn { width: 24px !important; height: 24px !important; color: var(--brand) !important; }
.field { align-content: start; }
.set .form-grid .field > span { line-height: 1.3; }

/* contactos: selector "ver N por página" */
.ct-per { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); } .ct-per select { width: auto; min-height: 34px; padding: 4px 10px; }
.filters select, .filters input { font-size: 13px; }

/* inbox: buscador sin doble borde */
.ib-search input { border: 0 !important; background: none !important; box-shadow: none !important; padding: 10px 0 !important; min-height: 0 !important; }

/* móvil */
@media (max-width: 900px) {
  .cal-main { order: -1; }
  .topbar { gap: 8px; }
  .cmdk-trigger { flex: 1; min-width: 0; }
  .top-actions { gap: 6px; flex: none; }
  .top-actions .tb-btn[href] { display: none; }
  .top-actions .btn-gold { padding: 0 11px; }
}
@media (max-width: 700px) {
  .stat-ico { display: none; } .spark { height: 34px; opacity: .6; }
  .trow { grid-template-columns: 58px 4px minmax(0, 1fr); } .trow > .badge { display: none; } .trow .acts { grid-column: 1 / -1; flex-wrap: wrap; opacity: 1; padding-left: 62px; }
  .hero-chips { width: 100%; }
  .cal-bar { gap: 6px; } .cal-color { display: none; } .cal-title { font-size: 17px; }
  .set-head h1 { font-size: 20px; }
}

/* páginas públicas y documentos */
.book-brand { font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; letter-spacing: -.02em; }
.book-head { padding: 28px 16px 10px; }
.book-card h1, .book-step h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.doc-brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: #0B1220; }

/* pasos previos a firmar */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--hover); color: var(--muted); border: 1.5px solid var(--line-2); }
.steps li.now .n { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.steps li.done .n { background: var(--ok); color: #fff; border-color: var(--ok); }
.steps p { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; }
.hc-steps { background: var(--grad-soft); border-color: var(--brand-line); }

/* mi plan y mejoras */
.plan-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.plan-chip { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); margin-bottom: 8px; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.meter { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .meter-top span { font-family: var(--display); font-weight: 700; }
.meter-bar { height: 8px; border-radius: 99px; background: var(--hover); overflow: hidden; } .meter-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; } .meter-bar i.warn { background: var(--warn); } .meter-bar i.full { background: var(--bad); }
.fn-g { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); padding: 14px 0 4px; }
.fn { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); } .fn:last-child { border-bottom: 0; }
.fn-t { width: 22px; color: var(--ok); font-weight: 800; display: grid; place-items: center; } .fn-t .ico { width: 16px; height: 16px; color: var(--muted-2); } .fn-l { flex: 1; font-weight: 600; font-size: 13.5px; }
.fn.off .fn-l { color: var(--muted); }
.fn-e { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--hover); color: var(--muted); }
.fn-e.disponible { background: rgba(18,183,106,.14); color: var(--ok); } .fn-e.desarrollo { background: rgba(245,165,36,.16); color: #B54708; }
.upsell { max-width: 640px; margin: 40px auto; text-align: center; padding: 38px 34px; }
.upsell-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); border: 1px solid var(--brand-line); } .upsell-ico .ico { width: 28px; height: 28px; }
.upsell .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.upsell h1 { margin-bottom: 10px; }
.upsell-list { list-style: none; margin: 18px auto; padding: 0; display: grid; gap: 8px; max-width: 420px; text-align: left; } .upsell-list li { display: flex; gap: 10px; font-weight: 600; font-size: 14px; } .upsell-list li span { color: var(--ok); } .upsell-list em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.upsell-price { margin: 6px 0 18px; color: var(--muted); } .upsell-price strong { font-family: var(--display); font-size: 26px; color: var(--ink); }
.upsell-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nav a.is-locked { opacity: .55; } .nav a.is-locked .lock { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.1); color: #9DB0D6; }

/* ---------- Soporte: botón flotante y página ---------- */
.sop { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sop-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 11px 16px 11px 13px; border-radius: 99px; background: var(--wa-deep); color: #fff; font: 700 13.5px var(--sans); box-shadow: 0 10px 26px -8px rgba(22,163,74,.7), 0 2px 6px rgba(15,23,42,.18); transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.sop-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(22,163,74,.8), 0 2px 6px rgba(15,23,42,.18); }
.sop-btn .ico { width: 20px; height: 20px; }
.sop-n { font-style: normal; background: #F04438; color: #fff; font: 700 10.5px var(--sans); padding: 2px 7px; border-radius: 99px; }
.sop-btn .sop-n { position: absolute; top: -5px; right: -3px; box-shadow: 0 0 0 2px var(--bg); }
.sop-pop { width: min(320px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; transform-origin: bottom right; animation: sopIn .16s ease-out; }
.sop-pop[hidden] { display: none; }
@keyframes sopIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.sop-head { padding: 10px 12px 8px; display: grid; gap: 2px; } .sop-head strong { font: 600 15px var(--display); } .sop-head span { color: var(--muted); font-size: 12.5px; }
.sop-op { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink); } .sop-op:hover { background: var(--hover); }
.sop-op .ico { width: 22px; height: 22px; flex: none; color: var(--brand); } .sop-op.sop-wa .ico { color: var(--wa-deep); }
.sop-op span { display: grid; flex: 1; min-width: 0; } .sop-op b { font-size: 14px; } .sop-op small { color: var(--muted); font-size: 12px; }
body.page-inbox .sop, body.no-sop .sop { display: none; }
@media (max-width: 720px) { .sop { right: 14px; bottom: 14px; } .sop-btn span { display: none; } .sop-btn { padding: 13px; } }
@media print { .sop { display: none; } }

.pill-amber { background: rgba(245,165,36,.16); color: #B54708; } .pill-blue { background: var(--brand-soft); color: var(--brand); } .pill-violet { background: rgba(124,92,255,.14); color: #6246E0; } .pill-green { background: rgba(18,183,106,.14); color: #0B8A52; }
.sup-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; } @media (max-width: 900px) { .sup-grid { grid-template-columns: 1fr; } }
.sup-side { display: grid; gap: 14px; }
.sup-wa { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, rgba(37,211,102,.14), rgba(22,163,74,.06)); border-color: rgba(22,163,74,.35); color: var(--ink); }
.sup-wa:hover { border-color: var(--wa-deep); } .sup-wa strong { display: block; font: 600 15px var(--display); } .sup-wa small { display: block; color: var(--muted); margin-top: 2px; font-size: 12.5px; line-height: 1.4; }
.sup-wa-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--wa-deep); color: #fff; display: grid; place-items: center; flex: none; } .sup-wa-ico .ico { width: 24px; height: 24px; }
.sup-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .sup-list li a { display: grid; gap: 6px; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent; }
.sup-list li a:hover { background: var(--hover); } .sup-list li.is-on a { background: var(--sel); border-color: var(--brand-line); }
.sup-t { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .sup-t strong { font-size: 14px; } .sup-m { display: flex; justify-content: space-between; align-items: center; }
.sup-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; } .sup-head h2 { margin: 0 0 3px; }
.sup-conv { display: grid; gap: 10px; margin-bottom: 16px; max-height: 50vh; overflow-y: auto; padding-right: 4px; }
.sup-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; } .sup-msg small { display: block; font-size: 11.5px; opacity: .7; margin-bottom: 3px; } .sup-msg p { margin: 0; line-height: 1.5; word-break: break-word; }
.sup-msg.eq { background: var(--card-2); border: 1px solid var(--line); border-top-left-radius: 4px; justify-self: start; }
.sup-msg.mio { background: var(--grad); color: #fff; border-top-right-radius: 4px; justify-self: end; }
.sup-reply textarea { width: 100%; }

.ec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ec-grid > div { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 1px; } .ec-grid small { color: var(--muted); font-size: 11.5px; font-weight: 600; } .ec-grid strong { font: 600 21px var(--display); letter-spacing: -.02em; } .ec-grid em { font-style: normal; color: var(--muted); font-size: 12px; }
.ec-grid .deuda { background: rgba(245,165,36,.12); border-color: rgba(245,165,36,.4); }
.ec-fila { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13.5px; } .ec-fila.deuda span { color: #B54708; font-weight: 600; }
.conn-prop summary { cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; } .conn-prop summary::-webkit-details-marker { display: none; } .conn-prop[open] summary { margin-bottom: 8px; }

/* ---------- Marca de la clínica ---------- */
.clinic-chip { display: flex; align-items: center; gap: 10px; margin: 0 12px 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.clinic-chip:hover { background: rgba(255,255,255,.09); }
.cc-logo { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.cc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cc-logo b { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font: 600 13px var(--display); }
.cc-txt { display: grid; min-width: 0; } .cc-txt strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cc-txt small { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.side-collapsed .cc-txt { display: none; } body.side-collapsed .clinic-chip { justify-content: center; padding: 6px; margin: 0 8px 10px; }
.brand-card { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; }
.brand-prev { width: 96px; height: 96px; border-radius: 20px; border: 1px solid var(--line); background: var(--card-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-prev img { width: 100%; height: 100%; object-fit: contain; padding: 8px; } .brand-ini { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font: 600 30px var(--display); }
.brand-info { min-width: 0; flex: 1; } .brand-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .brand-form input[type=file] { max-width: 100%; font-size: 13px; }
@media (max-width: 600px) { .brand-card { flex-direction: column; align-items: flex-start; } }

/* ---------- Modo demostración ---------- */
.demo-banner { display: flex; gap: 12px; align-items: center; padding: 9px 18px; background: linear-gradient(90deg, rgba(124,92,255,.14), rgba(37,99,255,.10)); border-bottom: 1px solid var(--brand-line); font-size: 13px; }
.demo-pill { background: var(--violet); color: #fff; font: 600 11px var(--display); letter-spacing: .04em; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; white-space: nowrap; }
.ib-as { display: flex; gap: 4px; padding: 6px 14px 0; } .ib-as button { border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font: 600 12px var(--sans); padding: 5px 12px; border-radius: 99px; cursor: pointer; }
.ib-as button.on { background: var(--brand); border-color: var(--brand); color: #fff; } .inbox.sim-paciente .ib-as button.on { background: var(--violet); border-color: var(--violet); }
.inbox.sim-paciente #ibText { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,255,.15); }
.ib-typing { display: flex; align-items: center; gap: 4px; padding: 6px 18px 10px; color: var(--muted); font-size: 12.5px; } .ib-typing[hidden] { display: none; }
.ib-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-deep); opacity: .4; animation: tp 1s infinite; } .ib-typing span:nth-child(2) { animation-delay: .15s; } .ib-typing span:nth-child(3) { animation-delay: .3s; } .ib-typing em { font-style: normal; margin-left: 6px; }
@keyframes tp { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.demo-form { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .demo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); } .demo-card { margin-bottom: 16px; }

.sso-bar { background: linear-gradient(90deg, #7C5CFF, #2563FF); color: #fff; padding: 8px 20px; font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; } .sso-bar a { color: #fff; text-decoration: underline; margin-left: auto; }


/* ---------- Inbox: emojis, recursos, voz, visor y panel del paciente ---------- */
.content:has(.demo-banner) .inbox { height: calc(100vh - 132px); }
.inbox.panel-open { grid-template-columns: 340px minmax(0, 1fr) 340px; }
@media (max-width: 1100px) { .inbox.panel-open { grid-template-columns: 300px minmax(0, 1fr); } .inbox.panel-open .ib-panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(380px, 100vw); z-index: 70; box-shadow: -24px 0 60px -20px rgba(15,23,42,.45); } }
@media (max-width: 800px) { .inbox.panel-open { grid-template-columns: 1fr; } }
.ib-panel { border-left: 1px solid var(--line); background: var(--card); overflow-y: auto; min-height: 0; } .ib-panel[hidden] { display: none; }
.ibp-body { padding: 16px; display: grid; gap: 14px; align-content: start; }
.ibp-head { display: flex; gap: 12px; align-items: center; } .ibp-head > div { flex: 1; min-width: 0; display: grid; } .ibp-head strong { font: 600 16px var(--display); } .ibp-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibp-x { border: 0; background: var(--hover); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--muted); }
.ibp-row { display: grid; gap: 4px; } .ibp-row label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .ibp-row select { width: 100%; }
.ibp-links { display: flex; flex-wrap: wrap; gap: 6px; } .ibp-links .chip-btn { text-decoration: none; }
.ibp-sec { border-top: 1px solid var(--line); padding-top: 12px; } .ibp-sec h4 { margin: 0 0 8px; font: 600 13px var(--display); letter-spacing: .01em; }
.ibp-cita { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; } .ibp-cita > div { display: grid; } .ibp-cita small { color: var(--muted); }
.ibp-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--hover); color: var(--muted); white-space: nowrap; }
.ibp-pill.programada { background: var(--brand-soft); color: var(--brand); } .ibp-pill.confirmada, .ibp-pill.asistio { background: rgba(18,183,106,.14); color: #0B8A52; } .ibp-pill.no_asistio { background: rgba(240,68,56,.12); color: #D92D20; } .ibp-pill.cancelada { background: var(--hover); color: var(--muted); }
.ibp-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .chip-btn.ok { color: #0B8A52; border-color: rgba(18,183,106,.4); } .chip-btn.bad { color: #D92D20; border-color: rgba(240,68,56,.4); }
.ibp-hist { margin-top: 10px; display: grid; gap: 6px; } .ibp-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12.5px; } .ibp-h > span:first-child { display: grid; } .ibp-h small { color: var(--muted); }
.ibp-cot { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; color: var(--ink); } .ibp-cot:hover { background: var(--hover); } .ibp-cot span { display: grid; } .ibp-cot small { color: var(--muted); } .ibp-cot b { font: 600 14px var(--display); }
.ibp-chips { display: flex; flex-wrap: wrap; gap: 6px; } .ibp-notas { white-space: pre-wrap; font: 12.5px/1.45 var(--sans); background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 0 0 8px; max-height: 140px; overflow: auto; }
#ibpNota { width: 100%; }

.ib-emoji, .ib-recs { position: absolute; bottom: calc(100% + 6px); left: 14px; width: min(380px, calc(100% - 28px)); background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 15; } .ib-emoji[hidden], .ib-recs[hidden], .ib-recording[hidden] { display: none; }
.emo-tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); } .emo-tabs button { border: 0; background: none; font-size: 19px; padding: 6px 10px; border-radius: 8px 8px 0 0; cursor: pointer; opacity: .55; } .emo-tabs button.on { opacity: 1; background: var(--hover); }
.emo-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; max-height: 210px; overflow-y: auto; } .emo-grid button { border: 0; background: none; font-size: 22px; padding: 5px 0; border-radius: 8px; cursor: pointer; } .emo-grid button:hover { background: var(--hover); }
.recs-head { padding: 12px 14px 4px; display: grid; } .recs-head small { color: var(--muted); }
.recs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 14px; max-height: 290px; overflow-y: auto; }
.rec { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--card-2); display: grid; } .rec:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); } .rec.sending { opacity: .5; pointer-events: none; }
.rec img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; } .rec-pdf { aspect-ratio: 3 / 2; display: grid; place-items: center; background: #FEECEC; color: #D92D20; font: 700 20px var(--display); } .rec em { font-style: normal; font-size: 11px; padding: 5px 7px; line-height: 1.25; }
.rec-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(15,23,42,.65); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: none; } .rec:hover .rec-del { display: block; }
.recs-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 14px 12px; }
.ib-recording { display: flex; align-items: center; gap: 12px; padding: 4px 6px; } .ib-recording i { width: 11px; height: 11px; border-radius: 50%; background: #F04438; animation: rc 1s infinite; } .ib-recording span { font: 600 15px var(--mono); } .ib-recording em { font-style: normal; color: var(--muted); flex: 1; }
@keyframes rc { 50% { opacity: .25; } }
.ib-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,22,.88); display: grid; place-items: center; padding: 24px; cursor: zoom-out; } .ib-lightbox[hidden] { display: none; } .ib-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); } .ib-lightbox button { position: absolute; top: 16px; right: 20px; border: 0; background: rgba(255,255,255,.16); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.ib-msg audio { width: 240px; } .ib-img { cursor: zoom-in; }

/* Logo Dental Propulse (muela con chevrones): proporción cuadrada */
.brand-mark { width: 36px !important; height: 36px !important; filter: drop-shadow(0 6px 14px rgba(31,107,255,.45)); }
.login-card .login-mark { width: 64px !important; height: 64px !important; }

/* ===== Paleta unificada: se eliminan los fondos crema heredados (se veían «en negativo» en el tema oscuro) ===== */
.res-item:hover, .res-item.hl, .tooth:hover, .ib-newres .res-item:hover, .ib-item:hover, .ib-quick button:hover, .ls-item:hover { background: var(--hover); }
.table th, .ag-head, .ag-corner, .bulkbar, .gcal-box, .ib-list { background: var(--card-2); }
.table tbody tr:hover td { background: var(--hover); }
.col { background: var(--card-2); border: 1px solid var(--line); }
.col--en_tratamiento { background: rgba(18, 183, 106, .09); } .col--on_hold { background: rgba(100, 116, 139, .12); } .col--perdido { background: rgba(240, 68, 56, .09); }
.file-thumb { background: var(--hover); }
.pac-sel { background: var(--brand-soft); border-color: var(--brand-line); }
.radio-card:has(input:checked), .chosen { background: var(--brand-soft); border-color: var(--brand-line); box-shadow: none; }
.radio-card:has(input:checked) { box-shadow: 0 0 0 3px var(--brand-soft); } .chosen span { color: var(--ink); }
.ib-banner { background: var(--brand-soft); color: var(--ink); } .ib-banner.warn { background: rgba(240, 68, 56, .12); color: var(--bad); }
.ib-msg.by-ia { background: rgba(18, 214, 160, .16); box-shadow: 0 1px 1px rgba(0, 0, 0, .08), inset 3px 0 0 var(--brand); }
.ib-item.on, .ls-item.on { background: var(--sel); }
.ct-q { background: var(--brand-soft); color: var(--brand); }
.ct-table tr.is-llamado td { background: rgba(18, 183, 106, .08); }
.btn-danger:hover, .chip-danger:hover { background: rgba(240, 68, 56, .12); } .dock-zone--ganado { background: rgba(18, 183, 106, .14); color: var(--ok); } .dock-zone--perdido { background: rgba(240, 68, 56, .12); color: var(--bad); }
/* Cotizador */
.cz-item { background: var(--card-2); border: 1px solid var(--line-2); }
.cz-sub b { color: var(--ink); font-weight: 600; }
.cz-total { background: linear-gradient(145deg, #0E2A6E 0%, #1747D6 62%, #0F8F78 135%); color: #fff; border-color: rgba(120, 160, 255, .35); }
.cz-total small { color: rgba(255, 255, 255, .72); } .cz-total__r { color: rgba(255, 255, 255, .8); } .cz-total hr { border-top-color: rgba(255, 255, 255, .18); }
.cz-total__n { background: linear-gradient(120deg, #fff, #8FF3D3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cz-sent { background: rgba(18, 183, 106, .09); border-color: var(--ok); }
.cz-total .btn-dark { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); } .cz-total .btn-dark:hover { background: rgba(255,255,255,.22); }
.cz-total .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); } .cz-total .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Logo muela + cohete */
.brand-mark { width: 34px !important; height: 37px !important; filter: drop-shadow(0 6px 14px rgba(31,107,255,.45)); }
.login-card .login-mark { width: 58px !important; height: 63px !important; }
