/* ── Layout general ─────────────────────────────────── */
.dash-wrap {
    padding: 28px 32px;
    max-width: 1300px;
}

.dash-header {
    margin-bottom: 28px;
}

.dash-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a2c5b;
    margin: 0 0 4px 0;
}

.dash-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ── Grid de KPIs ────────────────────────────────────── */
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-kpi-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-kpi-icon .material-icons-outlined {
    font-size: 22px;
}

.dash-kpi-icon.blue {
    background: #eff6ff;
    color: #255CBA;
}

.dash-kpi-icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.dash-kpi-icon.amber {
    background: #fffbeb;
    color: #d97706;
}

.dash-kpi-icon.indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.dash-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a2c5b;
    line-height: 1;
    margin-bottom: 4px;
}

.dash-kpi-label {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ── Grid principal (2 columnas) ─────────────────────── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

/* ── Tarjeta base ────────────────────────────────────── */
.dash-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
}

.dash-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2c5b;
    margin: 0 0 20px 0;
}

/* ── Tarjeta Nueva Consulta (degradado azul) ─────────── */
.dash-nueva-consulta {
    background: linear-gradient(135deg, #255CBA, #4da8d6);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    margin-bottom: 16px;
}

.dash-nueva-consulta .dash-nc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dash-nueva-consulta .dash-nc-icon .material-icons-outlined {
    font-size: 22px;
    color: #fff;
}

.dash-nueva-consulta h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #fff;
}

.dash-nueva-consulta p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 20px 0;
}

.dash-nueva-consulta .dash-nc-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #255CBA;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow .2s;
}

.dash-nueva-consulta .dash-nc-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    text-decoration: none;
    color: #255CBA;
}

/* ── Accesos rápidos ─────────────────────────────────── */
.dash-accesos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-acceso-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    color: #1a2c5b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background .15s;
}

.dash-acceso-item:hover {
    background: #eff6ff;
    text-decoration: none;
    color: #255CBA;
}

.dash-acceso-item .material-icons-outlined {
    font-size: 20px;
    color: #255CBA;
}

/* ── Lista pacientes recientes ───────────────────────── */
.dash-paciente-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.dash-paciente-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dash-paciente-item:hover {
    text-decoration: none;
    color: #255CBA;
}

.dash-paciente-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eff6ff;
    color: #255CBA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.dash-paciente-nombre {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a2c5b;
    margin-bottom: 2px;
}

.dash-paciente-expediente {
    font-size: 0.75rem;
    color: #9ca3af;
}

.dash-paciente-fecha {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.dash-ver-todos {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #255CBA;
    font-weight: 500;
    text-decoration: none;
}

.dash-ver-todos:hover {
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .dash-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dash-wrap {
        padding: 16px;
    }

    .dash-kpis {
        grid-template-columns: 1fr 1fr;
    }
}