/* Módulo Agente — control del bot */
.agente-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 820px) { .agente-grid { grid-template-columns: 1fr; } }

.card-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.card-h h3 {
    font-family: var(--font-display, inherit);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-1, #111);
    margin: 0;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}
.switch-row span { display: flex; flex-direction: column; gap: 3px; }
.switch-row small { color: var(--ink-2, #777); font-size: 11px; max-width: 320px; }

/* Toggle */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--line, #ccc); border-radius: 26px; transition: .2s;
}
.slider::before {
    content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + .slider { background: var(--accent, #16a34a); }
.switch input:checked + .slider::before { transform: translateX(22px); }

.ag-status {
    margin-top: 10px; font-family: var(--font-mono, monospace); font-size: 12px;
    font-weight: 600;
}
.ag-status.is-on { color: var(--accent, #16a34a); }
.ag-status.is-off { color: var(--ink-2, #999); }

.ag-horas { display: flex; gap: 16px; margin: 12px 0 16px; transition: opacity .2s; }
.ag-horas label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-2, #777); }
.ag-horas input[type="time"] {
    padding: 8px 10px; border: 1px solid var(--line, #ddd); border-radius: 8px;
    font-family: var(--font-mono, monospace); font-size: 14px;
}

.ag-persona {
    width: 100%; border: 1px solid var(--line, #ddd); border-radius: 10px;
    padding: 14px; font-family: var(--font-mono, monospace); font-size: 13px;
    line-height: 1.5; resize: vertical; box-sizing: border-box; margin-top: 8px;
}
.ag-actions {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px; gap: 12px;
}
