/* tucentro360 · estilos de la aplicación (mismos tokens que la web de tucentro360) */
@font-face {
	font-family: 'Plus Jakarta Sans Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Plus Jakarta Sans Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #0b1324;
	--ink-2: #1e293b;
	--muted: #5b6476;
	--faint: #8a93a3;
	--line: #e6e9ef;
	--line-2: #f1f3f6;
	--bg: #ffffff;
	--bg-soft: #f5f7fa;
	--brand: #0f9d8a;
	--brand-ink: #0b6f62;
	--brand-soft: #e6f6f3;
	--accent: #5b5bf0;
	--accent-soft: #eeeefe;
	--warn: #d97706;
	--warn-soft: #fef3c7;
	--danger: #dc2626;
	--danger-soft: #fee2e2;
	/* series de gráficas (paleta validada: CVD y contraste) */
	--s1: #0f9d8a;
	--s2: #6250d6;
	--s3: #eb6834;
	--s4: #2a78d6;
	--s5: #e87ba4;
	--s6: #eda100;
	--grid: #eceef2;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgb(11 19 36 / 0.04), 0 8px 24px rgb(11 19 36 / 0.06);
	--shadow-lg: 0 2px 4px rgb(11 19 36 / 0.04), 0 24px 60px rgb(11 19 36 / 0.14);
	--font: 'Plus Jakarta Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--side: 248px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg-soft);
	font-size: 14.5px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.08rem; font-weight: 700; }
h3 { font-size: 0.95rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.85rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--brand); font-weight: 800; }
.logo svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- acceso */
.acceso { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: #fff; }
.acceso__form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 88px); gap: 28px; max-width: 560px; width: 100%; margin: 0 auto; }
.acceso__form h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.acceso__form form { display: grid; gap: 16px; }
.acceso__lado { background: radial-gradient(1200px 500px at 80% -10%, #d7f1ec 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, var(--accent-soft) 0%, transparent 60%), var(--bg-soft);
	display: flex; flex-direction: column; justify-content: center; padding: 48px; gap: 24px; overflow: hidden; }
.acceso__lado h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; max-width: 460px; }
.acceso__lado ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.acceso__lado li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink-2); }
.acceso__lado li .icon { color: var(--brand-ink); background: var(--brand-soft); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.acceso__card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; max-width: 460px; display: grid; gap: 12px; }
.acceso__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acceso__kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; }
.acceso__kpis small { color: var(--muted); font-size: 0.72rem; }
.acceso__kpis strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.acceso__kpis em { font-style: normal; color: var(--brand-ink); font-size: 0.72rem; font-weight: 700; }
@media (max-width: 900px) { .acceso { grid-template-columns: 1fr; } .acceso__lado { display: none; } }

/* ---------------------------------------------------------------- estructura */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: #fcfcfd; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; gap: 18px; z-index: 30; }
.side__top { padding: 2px 8px 0; }
.side__centro { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.side__centro strong { font-size: 0.86rem; line-height: 1.25; }
.side__centro span { font-size: 0.75rem; color: var(--muted); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.side nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side nav a.activo { background: var(--brand-soft); color: var(--brand-ink); }
.side nav a .badge { margin-left: auto; }
.side__sep { font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 4px; }
.side__user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.side__user div { min-width: 0; flex: 1; display: grid; }
.side__user strong { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__user span { font-size: 0.75rem; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgb(245 247 250 / 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top__menu { display: none; }
.top__buscar { position: relative; flex: 1; max-width: 420px; }
.top__buscar .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.top__buscar input { width: 100%; padding: 9px 12px 9px 38px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.top__buscar .resultados { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; max-height: 360px; overflow: auto; }
.top__buscar .resultados button { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.top__buscar .resultados button:hover, .top__buscar .resultados button.sel { background: var(--bg-soft); }
.top__acciones { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.vista { padding: 8px 28px 48px; display: grid; gap: 20px; align-content: start; }
.cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.cabecera p { color: var(--muted); margin-top: 4px; }
.cabecera__acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

@media (max-width: 980px) {
	.app { grid-template-columns: 1fr; }
	.side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
	.side.abierto { transform: none; }
	.top { padding: 12px 16px; }
	.top__menu { display: inline-flex; }
	.vista { padding: 8px 16px 40px; }
}

/* ---------------------------------------------------------------- botones y controles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; background: none; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgb(11 19 36 / 0.16); }
.btn--primary:hover { background: var(--ink-2); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #cfd5df; }
.btn--danger { background: #fff; color: #b91c1c; border-color: #f3c4c4; }
.btn--sm { padding: 6px 12px; font-size: 0.82rem; }
.btn--icon { padding: 8px; border-radius: 10px; }
.btn--block { width: 100%; padding: 12px 18px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.seg button.activo { background: var(--ink); color: #fff; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 0.78rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=search], input[type=month], select, textarea {
	width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(15 157 138 / 0.15); }
textarea { resize: vertical; min-height: 90px; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6476' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; padding-right: 32px; }
.select-sm { width: auto; padding: 7px 30px 7px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.input-sm { width: auto; padding: 7px 12px; border-radius: 999px; font-size: 0.85rem; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.error-form { background: var(--danger-soft); color: #991b1b; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 0.88rem; }

/* ---------------------------------------------------------------- tarjetas, chips, tablas */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel__head p { color: var(--muted); font-size: 0.84rem; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.tag .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.tag--ok { background: var(--brand-soft); color: var(--brand-ink); }
.tag--warn { background: var(--warn-soft); color: #92400e; }
.tag--bad { background: var(--danger-soft); color: #991b1b; }
.tag--info { background: var(--accent-soft); color: #3730a3; }
.tag--neutro { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; background: var(--warn-soft); color: #92400e; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.avatar--lg { width: 56px; height: 56px; font-size: 1.1rem; }
.tabla-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tabla th { text-align: left; font-weight: 700; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr.clic { cursor: pointer; }
.tabla tbody tr.clic:hover td { background: #fafbfc; }
.tabla .persona { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.tabla .persona div { display: grid; }
.tabla .persona small { color: var(--muted); font-size: 0.78rem; }
.tabla tfoot td { font-weight: 800; border-top: 1px solid var(--line); }
.anulado td { color: var(--faint); text-decoration: line-through; }
.vacio { padding: 40px 20px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.vacio .icon { width: 36px; height: 36px; color: var(--faint); stroke-width: 1.6; }
.paginacion { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.cargando { padding: 60px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; display: grid; gap: 4px; position: relative; overflow: hidden; min-width: 0; }
.kpi__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.kpi__label .icon { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); }
.kpi__valor { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi__delta { font-size: 0.78rem; font-weight: 700; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.kpi__delta .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.kpi__delta span { color: var(--muted); font-weight: 500; }
.sube { color: #0b6f62; }
.baja { color: #b91c1c; }
.igual { color: var(--muted); }
.kpis--mini { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis--mini .kpi { padding: 12px 14px; }
.kpis--mini .kpi__valor { font-size: 1.2rem; margin-top: 2px; }
@media (max-width: 1200px) { .kpis--mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi__valor { font-size: 1.4rem; } }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; }
.dash-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dash-grid, .dash-grid--3 { grid-template-columns: minmax(0, 1fr); } }
.avisos { display: grid; gap: 8px; }
.aviso { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: inherit; background: #fff; }
.aviso:hover { border-color: #cfd5df; }
.aviso .icon:first-child { width: 32px; height: 32px; padding: 7px; border-radius: 9px; }
.aviso--warn .icon:first-child { background: var(--warn-soft); color: #92400e; }
.aviso--info .icon:first-child { background: var(--accent-soft); color: #3730a3; }
.aviso--bad .icon:first-child { background: var(--danger-soft); color: #991b1b; }
.aviso div { display: grid; flex: 1; }
.aviso small { color: var(--muted); }
.lista-hoy { display: grid; gap: 4px; }
.cita-hoy { display: grid; grid-template-columns: 52px 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.cita-hoy:hover { background: var(--bg-soft); }
.cita-hoy time { font-weight: 800; font-variant-numeric: tabular-nums; }
.cita-hoy i { width: 4px; height: 34px; border-radius: 4px; }
.cita-hoy div { display: grid; min-width: 0; }
.cita-hoy strong, .cita-hoy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cita-hoy small { color: var(--muted); }

/* ---------------------------------------------------------------- gráficas */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .eje text, .chart text.eje { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart .base { stroke: #d5dae2; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + g rect, .chart g.foco rect { filter: brightness(0.92); }
.chart .guia { stroke: #c9cfd9; stroke-dasharray: 3 3; }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 11px; font-size: 0.8rem; box-shadow: var(--shadow-lg); white-space: nowrap; z-index: 5; transform: translate(-50%, calc(-100% - 10px)); }
.tooltip b { display: block; margin-bottom: 3px; }
.tooltip div { display: flex; align-items: center; gap: 6px; }
.tooltip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.leyenda { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.barras-h { display: grid; gap: 10px; }
.barra-h { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 0.86rem; }
.barra-h__nombre { display: flex; align-items: center; gap: 8px; min-width: 0; }
.barra-h__nombre span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-h__pista { height: 10px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
.barra-h__pista div { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.barra-h__valor { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.barra-h__valor small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.ver-tabla { border: 0; background: none; color: var(--muted); font-size: 0.78rem; font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 6px; }
.ver-tabla:hover { background: var(--bg-soft); color: var(--ink); }
.ver-tabla .icon { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- agenda */
.agenda-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.agenda-bar__nav { display: flex; align-items: center; gap: 8px; }
.agenda-bar__nav h2 { min-width: 220px; }
.agenda { overflow: auto; max-height: calc(100vh - 230px); border-radius: var(--radius); }
.agenda__grid { display: grid; min-width: 760px; position: relative; }
.agenda__head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: center; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.agenda__head strong { display: block; font-size: 1.15rem; color: var(--ink); font-weight: 800; }
.agenda__head.hoy strong { color: #fff; background: var(--brand); border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center; margin: 2px auto 0; }
.agenda__head.prof { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 0.86rem; }
.agenda__esquina { position: sticky; top: 0; left: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line); }
.agenda__horas { position: sticky; left: 0; z-index: 2; background: #fff; }
.agenda__hora { height: var(--hora, 64px); font-size: 0.72rem; color: var(--faint); text-align: right; padding-right: 8px; transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.agenda__col { position: relative; border-left: 1px solid var(--line-2); background-image: linear-gradient(var(--line-2) 1px, transparent 1px); background-size: 100% var(--hora, 64px); cursor: copy; }
.agenda__col.finde { background-color: #fbfbfc; }
.agenda__ahora { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 2; pointer-events: none; }
.agenda__ahora::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.evento { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 4px 7px; font-size: 0.75rem; line-height: 1.25; overflow: hidden; cursor: pointer; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--ink); box-shadow: 0 0 0 2px #fff; transition: box-shadow .15s; }
.evento:hover { box-shadow: 0 0 0 2px #fff, 0 6px 16px rgb(11 19 36 / 0.14); z-index: 2; }
.evento strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; }
.evento span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.evento .icon { width: 12px; height: 12px; position: absolute; right: 5px; top: 5px; stroke-width: 2.6; }
.evento.realizada { background: #fff; }
.evento.realizada .icon { color: var(--brand-ink); }
.evento.no_asistio { background: repeating-linear-gradient(135deg, #fff, #fff 5px, #fdf1f1 5px, #fdf1f1 10px); border-left-color: var(--danger); }
.evento.no_asistio strong { text-decoration: line-through; color: var(--muted); }
.evento.cancelada { opacity: .55; background: #fff; border-left-style: dashed; }
.agenda-lista { display: grid; gap: 8px; }

/* ---------------------------------------------------------------- ficha paciente */
.ficha-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ficha-top div { display: grid; gap: 4px; }
.ficha-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 20px; }
.ficha-datos div { display: grid; gap: 2px; min-width: 0; }
.ficha-datos dt { font-size: 0.74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ficha-datos dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.activo { color: var(--brand-ink); border-bottom-color: var(--brand); }
.nota { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.nota header { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.nota p { white-space: pre-wrap; }
.privado { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--muted); background: var(--bg-soft); border-radius: 10px; padding: 8px 10px; }
.privado .icon { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- panel lateral, modal, avisos */
.velo { position: fixed; inset: 0; background: rgb(11 19 36 / 0.35); z-index: 50; animation: aparece .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 51; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: entra .2s ease; }
.drawer--ancho { width: min(820px, 100vw); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow: auto; padding: 20px 22px; display: grid; gap: 16px; align-content: start; }
.drawer__foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: #fcfcfd; }
.drawer__foot .izq { margin-right: auto; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 61; padding: 22px; display: grid; gap: 14px; animation: aparece .15s; }
.modal + .velo, .velo--modal { z-index: 60; }
.modal__acciones { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@keyframes entra { from { transform: translateX(40px); opacity: 0; } }
@keyframes aparece { from { opacity: 0; } }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); animation: aparece .2s; }
.toast .icon { color: #5eead4; }
.toast--error { background: #7f1d1d; }
.toast--error .icon { color: #fecaca; }
.estado-acciones { display: flex; flex-wrap: wrap; gap: 6px; }
.estado-acciones button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 0.82rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.estado-acciones button.activo { background: var(--ink); color: #fff; border-color: var(--ink); }
.resumen-cita { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--bg-soft); }
.colores { display: flex; gap: 8px; flex-wrap: wrap; }
.colores label { cursor: pointer; }
.colores input { position: absolute; opacity: 0; }
.colores span { width: 28px; height: 28px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.colores input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.colores input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.pass-temporal { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; font-weight: 700; background: var(--bg-soft); padding: 10px 14px; border-radius: 10px; user-select: all; }
.proximamente { border: 1px dashed #cfd5df; border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 12px; align-items: center; background: #fff; }
.proximamente .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: #3730a3; }
.proximamente div { display: grid; gap: 2px; }
.proximamente p { color: var(--muted); font-size: 0.86rem; }
@media (max-width: 640px) { .ocultar-movil { display: none; } .top__acciones .btn { padding: 9px 12px; } }
/* ajustes de especificidad */
.top__buscar input[type=search] { padding-left: 38px; border-radius: 999px; }
.top .top__menu { display: none; }
@media (max-width: 980px) { .top .top__menu { display: inline-flex; } }

/* ---------------------------------------------------------------- marca y módulos no contratados */
.logo__sufijo { font-style: normal; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; font-size: .82em; }
.side nav a.bloqueado { color: var(--faint); }
.side nav a.bloqueado .icon:last-child { margin-left: auto; width: 15px; height: 15px; }
.side nav a.bloqueado.activo { background: var(--accent-soft); color: #3730a3; }
.upsell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; padding: 28px; }
.upsell h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.upsell__txt { display: grid; gap: 16px; align-content: start; }
.upsell__txt > p { color: var(--muted); font-size: 1rem; }
.upsell__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.upsell__lista li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-2); }
.upsell__lista li .icon { color: var(--brand-ink); background: var(--brand-soft); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 1px; }
.upsell__vista { position: relative; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft); padding: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.upsell__vista .muestra { pointer-events: none; user-select: none; display: grid; gap: 10px; }
.upsell__vista .marca-ejemplo { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.upsell__cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 1000px) { .upsell { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.captados-acciones { display: inline-flex; gap: 4px; }
.captados-acciones button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 700; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: var(--muted); }
.captados-acciones button .icon { width: 13px; height: 13px; }
.captados-acciones button.si { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.captados-acciones button.no { background: var(--danger-soft); border-color: transparent; color: #991b1b; }
.canales-lista { display: grid; gap: 8px; max-width: 520px; }
.canales-lista div { display: flex; gap: 8px; }
@media (max-width: 1100px) { .dash-grid[style*="repeat(2"] { grid-template-columns: minmax(0, 1fr) !important; } }
