/* ═══════ AGENDA ═══════ */
.ag-grid { align-items: start; }
.ag-nav { display: flex; align-items: center; gap: 10px; }
.ag-month { font-weight: 700; color: var(--ink-0); min-width: 130px; text-align: center; }

.ag-cal {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 12px 14px 16px;
}
.ag-h {
    text-align: center; font-size: .7rem; font-weight: 700; color: var(--ink-3);
    text-transform: uppercase; letter-spacing: .04em; padding: 4px 0;
}
.ag-d {
    position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: .85rem; color: var(--ink-1); cursor: pointer;
    border: 1px solid transparent; transition: background .12s, border-color .12s;
}
.ag-d:hover { background: var(--bg-3); }
.ag-d.inactive { cursor: default; }
.ag-d.today { color: var(--accent); font-weight: 800; }
.ag-d.has { border-color: var(--accent-line); background: var(--accent-soft); }
.ag-d.selected { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.ag-dot {
    position: absolute; bottom: 3px; right: 5px; min-width: 15px; height: 15px; padding: 0 3px;
    border-radius: 8px; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.ag-d.selected .ag-dot { background: #fff; color: var(--accent); }

/* Lista de eventos del día */
.ag-ev {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.ag-ev.hecho { opacity: .55; }
.ag-ev.hecho .ag-ev-top b { text-decoration: line-through; }
.ag-chk {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; cursor: pointer;
    border: 1.5px solid var(--border-2); background: var(--bg-1); color: transparent; font-weight: 800;
    transition: all .12s;
}
.ag-chk:hover { border-color: var(--ok); }
.ag-chk.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.ag-ev-body { flex: 1; min-width: 0; }
.ag-ev-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-ev-top b { color: var(--ink-0); font-size: .9rem; }
.ag-hora {
    font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--accent);
    background: var(--accent-soft); padding: 1px 7px; border-radius: 6px;
}
.ag-ev-sub { font-size: .8rem; color: var(--ink-2); margin-top: 3px; }
.ag-ev-acts { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.btn-mini.danger { color: var(--danger); }

@media (max-width: 820px) {
    .ag-grid { grid-template-columns: 1fr; }
}
