:root { --sidebar-w: 256px; --brand: #0d6efd; --brand-soft: #e7f1ff; }
body { background: #f4f6fa; color: #1f2933; }
.min-w-0 { min-width: 0; }

/* Sidebar */
.sidebar { width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--bs-border-color); }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar .brand { min-height: 64px; border-bottom: 1px solid var(--bs-border-color); }
.sidebar .brand-logo { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.sidebar .nav-link { display: flex; align-items: center; gap: .75rem; color: #475467; border-radius: .6rem; padding: .6rem .85rem; font-weight: 500; }
.sidebar .nav-link i { font-size: 1.05rem; }
.sidebar .nav-link:hover { background: #f2f4f7; color: #1f2933; }
.sidebar .nav-link.active { background: var(--brand-soft); color: var(--brand); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: .7rem; background: var(--brand); color: var(--brand-on, #fff); font-size: 1.1rem; }
.brand-mark-lg { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 1rem; }

/* Topbar */
.app-main { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--bs-border-color); min-height: 64px; position: sticky; top: 0; z-index: 1020; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-on, #fff); font-size: .8rem; font-weight: 600; }

/* Tarjetas / KPI */
.card { border-radius: .85rem; }
.kpi { display: flex; align-items: center; gap: .9rem; }
.kpi .kpi-icon { width: 46px; height: 46px; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.kpi .kpi-value { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.kpi .kpi-label { color: #667085; font-size: .82rem; }
.kpi-green .kpi-icon { background: #e6f6ec; color: #198754; }
.kpi-red .kpi-icon { background: #fdecec; color: #dc3545; }
.kpi-amber .kpi-icon { background: #fff4e0; color: #d97706; }
.table > :not(caption) > * > * { padding: .7rem .75rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #667085; font-weight: 600; background: #fafbfc; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: baseline; }
.color-chip { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: .3rem; vertical-align: middle; border: 1px solid rgba(0,0,0,.15); }

/* Auth */
.auth-body { background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 60%); min-height: 100vh; }
.otp-input { letter-spacing: .6rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Calificación con estrellas (solo CSS) */
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label { font-size: 1.9rem; color: #d0d5dd; cursor: pointer; line-height: 1; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #f5a623; }
.star-rating input:focus-visible + label { outline: 2px solid var(--brand); border-radius: .25rem; }

/* Calendario */
.fc { --fc-border-color: #e4e7ec; --fc-button-bg-color: var(--brand); --fc-button-border-color: var(--brand); --fc-button-hover-bg-color: var(--brand); --fc-button-hover-border-color: var(--brand); --fc-button-active-bg-color: var(--brand); --fc-button-active-border-color: var(--brand); --fc-today-bg-color: var(--brand-soft); }
.fc .fc-button { text-transform: capitalize; font-size: .85rem; }
.fc .fc-toolbar-title { font-size: 1.15rem; text-transform: capitalize; }
.fc-event { cursor: pointer; border-radius: .35rem; font-size: .8rem; }
.fc-event.cita-completada { opacity: .75; }
.fc-event.cita-cancelada { opacity: .45; text-decoration: line-through; }
@media (max-width: 575.98px) { .fc .fc-toolbar { flex-direction: column; gap: .5rem; } }

/* Slots de disponibilidad */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .5rem; }
.slot-grid .btn { padding: .4rem .2rem; font-variant-numeric: tabular-nums; }

.table-responsive { border-radius: .6rem; }
.form-label { font-weight: 500; font-size: .9rem; }
@media print { .sidebar, .topbar, .no-print { display: none !important; } body { background: #fff; } }
