/**
 * CitaHub — tokens y base.
 * Archivo: assets/css/demo-clinica/demo-dcl.css
 * Autor: MVisual
 */

:root {
    --dcl-ink: #0f172a;
    --dcl-muted: #64748b;
    --dcl-bg: #f0f9ff;
    --dcl-surface: #ffffff;
    --dcl-accent: #0ea5e9;
    --dcl-accent-deep: #0369a1;
    --dcl-accent-soft: rgba(14, 165, 233, 0.14);
    --dcl-sidebar-w: 15.5rem;
}

body.dcl-app {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--dcl-ink);
    background: var(--dcl-bg);
}

.dcl-shell {
    display: flex;
    min-height: 100vh;
}

.dcl-sidebar {
    width: var(--dcl-sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, #0c4a6e 0%, #1e3a5f 55%, #172554 100%);
    color: #e0f2fe;
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
}

.dcl-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.25rem 0.5rem 1rem;
}

.dcl-sidebar-brand strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}

.dcl-sidebar-brand small {
    display: block;
    font-size: 0.68rem;
    opacity: 0.85;
    line-height: 1.3;
}

.dcl-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.dcl-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: #bae6fd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.dcl-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dcl-sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
}

.dcl-sidebar-link.is-featured {
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.2);
}

.dcl-sidebar-foot {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dcl-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dcl-demo-banner {
    background: linear-gradient(90deg, #0369a1, #2563eb);
    color: #e0f2fe;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    text-align: center;
}

.dcl-stage {
    flex: 1;
    padding: 1.25rem 1.5rem 2rem;
    max-width: 1400px;
    width: 100%;
}

.dcl-app--agenda-full .dcl-stage {
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

.dcl-footer {
    font-size: 0.75rem;
    color: var(--dcl-muted);
    padding: 0.75rem 1.5rem 1.25rem;
}

.dcl-mobile-bar,
.dcl-mobile-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .dcl-sidebar {
        display: none;
    }
    .dcl-mobile-bar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
        background: var(--dcl-surface);
        border-bottom: 1px solid #e2e8f0;
    }
    .dcl-mobile-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 0.5rem 1rem;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
    }
    .dcl-mobile-nav a {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
        background: var(--dcl-accent-soft);
        color: var(--dcl-accent-deep);
        text-decoration: none;
    }
    .dcl-stage {
        padding: 1rem;
    }
}

.btn-dcl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

.btn-dcl-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
}

.btn-dcl-soft {
    background: var(--dcl-accent-soft);
    color: var(--dcl-accent-deep);
}

.btn-dcl-ghost {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: var(--dcl-accent-deep);
}

.btn-dcl-outline {
    background: #fff;
    border: 2px solid var(--dcl-accent-deep);
    color: var(--dcl-accent-deep);
}

.btn-dcl-secondary {
    background: #334155;
    color: #fff;
}

.btn-dcl-danger {
    background: #dc2626;
    color: #fff;
}

.dcl-acciones-tabla {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.btn-dcl-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

.btn-dcl-pill {
    border-radius: 999px;
}

.dcl-card {
    background: var(--dcl-surface);
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.12);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.dcl-card-pad {
    padding: 1.15rem 1.25rem;
}

.dcl-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.dcl-page-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
}

.dcl-page-subtitle {
    color: var(--dcl-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.dcl-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.dcl-kpi-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.dcl-kpi-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--dcl-accent-soft);
    color: var(--dcl-accent-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.dcl-kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dcl-muted);
}

.dcl-kpi-valor {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.dcl-kpi-hint {
    font-size: 0.75rem;
    color: var(--dcl-muted);
}

.dcl-chart-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dcl-chart-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1fr auto;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
}

.dcl-chart-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.dcl-chart-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.dcl-chart-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
}

.dcl-chart-donut-hole {
    position: absolute;
    inset: 28%;
    background: #fff;
    border-radius: 50%;
}

.dcl-modal-contacto-header {
    background: linear-gradient(135deg, #0c4a6e, #2563eb);
    color: #fff;
}

.dcl-login-page {
    min-height: 100vh;
    margin: 0;
    background: #f0f9ff;
}

.dcl-login-split {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr 1fr;
}

.dcl-login-visual {
    background: linear-gradient(145deg, #0c4a6e 0%, #1d4ed8 50%, #06b6d4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dcl-login-visual h1 {
    font-size: 2rem;
    font-weight: 800;
}

.dcl-login-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.dcl-login-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.dcl-login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dcl-login-card {
    width: 100%;
    max-width: 400px;
}

.dcl-login-credencial {
    background: #e0f2fe;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .dcl-login-split {
        grid-template-columns: 1fr;
    }
    .dcl-login-visual {
        display: none;
    }
}
