* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background: #f0f2f5; padding: 24px; }
#page { max-width: 800px; margin: 0 auto; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
h1 { font-size: 22px; color: #1a1a2e; }

.grupo-card {
  background: #fff; border-radius: 10px; padding: 20px;
  margin-bottom: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.grupo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.grupo-nombre { font-size: 18px; font-weight: bold; color: #1a1a2e; }
.grupo-actions { display: flex; gap: 8px; }

.supervisor-badge { display: inline-flex; align-items: center; gap: 6px; background: #e8eaf6; color: #3f51b5; padding: 4px 10px; border-radius: 20px; font-size: 13px; margin-bottom: 10px; }
.asesores-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.asesor-chip { background: #f5f5f5; border-radius: 20px; padding: 4px 12px; font-size: 13px; color: #333; }
.asesor-chip .ext { color: #3f51b5; font-size: 11px; margin-left: 4px; }

.btn-primary   { background: #3f51b5; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-secondary { background: #eee; color: #333; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-edit      { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-delete    { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }

/* Modal */
#modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 100; }
#modal { background: #fff; border-radius: 12px; padding: 28px; width: 500px; max-width: 95vw; max-height: 85vh; overflow-y: auto; }
#modal h2 { margin-bottom: 20px; color: #1a1a2e; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: #444; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; }
.field input:focus, .field select:focus { border-color: #3f51b5; }
#asesores-check-list { max-height: 200px; overflow-y: auto; border: 1px solid #ddd; border-radius: 6px; padding: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; cursor: pointer; border-radius: 4px; }
.check-item:hover { background: #f5f5f5; }
.check-item input { width: auto; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }

.hidden { display: none !important; }
